@font-face {
  font-family: 'Hanken Grotesk';
  src: url('assets/hanken.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf9fd;
  --white: #fff;
  --ink: #211937;
  --muted: #615b72;
  --quiet: #6f667f;
  --edge: #e3dfed;
  --lavender: #efebfb;
  --violet: #5b3ad4;
  --violet-dark: #4d30bc;
  --warning: #9a273f;
  font-family: 'Hanken Grotesk', 'Segoe UI', sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
::selection { color: var(--ink); background: #ded4ff; }
:focus-visible { outline: 3px solid #7b5ce7; outline-offset: 4px; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 3px; }
p, h1, h2, h3 { margin: 0; }

.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2; top: 10px; left: 10px; padding: 12px; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--edge); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; font-size: 19px; letter-spacing: -.035em; white-space: nowrap; text-decoration: none; }
.brand-accent { color: var(--violet); }
.brand-mark { width: 35px; height: 35px; display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 2px; border-radius: 10px; background: var(--violet); }
.brand-mark i { background: white; display: block; width: 2px; height: 7px; border-radius: 2px; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(4) { height: 12px; }
.brand-mark i:nth-child(3) { height: 17px; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }
.site-header nav a, .site-footer nav a { font-weight: 650; font-size: 14px; color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--violet); text-decoration: underline; }

.hero { max-width: 740px; padding-block: 42px 40px; }
.hero h1 { font-size: clamp(36px, 5vw, 55px); line-height: 1.04; letter-spacing: -.04em; font-weight: 850; text-wrap: balance; }
.hero h1 span { color: var(--violet); }
.hero-lede { font-size: clamp(17px, 1.55vw, 20px); line-height: 1.45; color: var(--muted); margin-block: 12px 22px; }
.download-form label { display: block; font-size: 14px; font-weight: 750; margin-bottom: 7px; }
.form-row { display: flex; gap: 10px; align-items: stretch; }
.input-group { min-width: 0; flex: 1; display: flex; align-items: center; gap: 9px; padding-inline: 13px 7px; min-height: 54px; border: 1px solid #9185a7; border-radius: 11px; background: var(--white); }
.input-group:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px #e8dfff; }
.input-group:has(input[aria-invalid='true']) { border-color: var(--warning); }
.input-group input { flex: 1; width: 0; min-width: 0; background: transparent; color: var(--ink); border: 0; padding: 10px 0; caret-color: var(--violet); }
.input-group input:focus { outline: 0; }
.input-group input::placeholder { color: var(--quiet); opacity: 1; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.input-icon { color: var(--quiet); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border: 0; border-radius: 10px; padding: 0 16px; font-weight: 750; white-space: nowrap; text-decoration: none; transition: background-color .15s ease; }
.primary { color: var(--white); background: var(--violet); }
.primary:hover { background: var(--violet-dark); }
.primary:disabled { cursor: wait; background: var(--violet-dark); }
.paste-button { border: 0; background: var(--lavender); color: var(--violet-dark); min-height: 38px; padding: 0 10px; border-radius: 7px; font-size: 13px; font-weight: 750; }
.paste-button:hover { background: #e5ddfa; }
.rights-note, .form-feedback, .preview-note { color: var(--quiet); font-size: 13px; line-height: 1.5; }
.rights-note { margin-top: 8px; }
.form-feedback:not(:empty) { margin-top: 9px; }
.form-feedback[data-kind='error'], .form-feedback[data-kind='failure'] { color: var(--warning); }
.form-feedback[data-kind='progress'] { color: var(--violet-dark); font-weight: 750; }
.preview-note { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.result:not([hidden]) + .preview-note { display: none; }
.demo-button { padding-inline: 13px; background: var(--lavender); color: var(--violet-dark); font-size: 14px; }
.demo-button:hover { background: #e5ddfa; }
.demo-button:disabled { cursor: wait; opacity: .7; }
.play-icon { display: inline-block; width: 10px; height: 12px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }

.result { margin-top: 14px; padding: 12px; border: 1px solid #d9cdef; border-radius: 12px; background: var(--white); }
.result-header, .track-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.result h2 { font-size: 21px; letter-spacing: -.025em; }
.result-header p, .track-duration, .reuse-note { font-size: 13px; line-height: 1.45; color: var(--quiet); }
.result-header p { margin-top: 3px; }
.text-button { padding: 4px 0; min-height: 34px; border: 0; background: transparent; color: var(--violet-dark); font-weight: 750; font-size: 14px; text-align: left; }
.text-button:hover { text-decoration: underline; }
.tracks { margin-top: 8px; }
.track { padding-block: 10px; border-top: 1px solid var(--edge); }
.track-header { margin-bottom: 8px; }
.track-header strong { font-size: 15px; }
.track-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.track-controls audio { display: block; width: 100%; height: 42px; }
.track-controls .button { font-size: 13px; min-height: 40px; }
.reuse-note a { color: var(--violet-dark); }

.section { padding-block: 58px; }
.steps-section { border-top: 1px solid var(--edge); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px 36px; margin-bottom: 26px; }
.section h2, .policy-main h1 { font-size: clamp(31px, 3.55vw, 49px); letter-spacing: -.034em; font-weight: 820; line-height: 1.05; }
.section-heading p, .guide-intro p { color: var(--muted); max-width: 41ch; line-height: 1.5; }
.steps { display: grid; grid-template-columns: minmax(0, 1.42fr) repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; border-block: 1px solid var(--edge); }
.steps li { display: flex; flex-direction: column; min-width: 0; padding: 20px 20px 24px; }
.steps li:first-child { padding-left: 0; }
.steps li:last-child { padding-right: 0; }
.steps li + li { border-left: 1px solid var(--edge); }
.step-number { align-self: flex-start; border-radius: 6px; background: var(--lavender); color: var(--violet-dark); padding: 4px 8px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.steps h3, .link-row h3 { font-size: 21px; margin-block: 9px 5px; letter-spacing: -.025em; line-height: 1.2; }
.steps p, .link-row p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.steps p { margin-bottom: 15px; }
.step-screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.step-screen { margin: 0; min-width: 0; }
.step-image { position: relative; border-radius: 12px; background: var(--lavender); box-shadow: 0 0 0 1px var(--edge); }
.step-image img { display: block; width: 100%; height: auto; border-radius: inherit; }
.step-screen figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.step-screen figcaption span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 3px; border-radius: 50%; background: var(--lavender); color: var(--violet-dark); font-weight: 800; }
.step-marker { position: absolute; border: 2px solid #f5b725; border-radius: 6px; box-shadow: 0 0 0 1px #3c2a0f; pointer-events: none; }
.step-marker--share { left: 87%; top: 37.2%; width: 10.5%; height: 7.2%; }
.step-marker--copy { left: 26.5%; top: 77.5%; width: 17.5%; height: 17.4%; }
.step-marker--paste { inset: 51.9% 1.5% 32.8%; }
.step-marker--submit { inset: 68.9% 1.5% 15.8%; }
.step-marker--play { left: 9%; top: 45%; width: 7%; height: 10%; }
.step-marker--save { inset: 60.5% 5% 24.2%; }
.step-screen-redaction { position: absolute; inset: 23% 5% 27%; display: grid; place-items: center; padding: 8px; border-radius: 8px; background: #f5f3f8; color: var(--muted); font-size: 11px; text-align: center; }
.steps .step-source { font-size: 12px; margin: 8px 0 0; }
.link-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--edge); }
.link-row { padding: 16px 24px 20px 0; border-bottom: 1px solid var(--edge); }
.link-row:nth-child(even) { padding: 16px 0 20px 24px; border-left: 1px solid var(--edge); }
.link-row h3 { margin-top: 0; }
.link-row .text-button { display: inline-block; margin-top: 6px; }
.guide { padding-top: 18px; display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); gap: clamp(24px, 5vw, 76px); }
.guide-intro p { margin-top: 13px; }
.questions { border-top: 1px solid var(--edge); }
details { border-bottom: 1px solid var(--edge); }
summary { position: relative; cursor: pointer; list-style: none; padding: 16px 34px 16px 0; font-size: 17px; font-weight: 730; line-height: 1.35; }
summary::-webkit-details-marker { display: none; }
summary::before, summary::after { content: ''; position: absolute; background: var(--violet-dark); width: 13px; height: 2px; top: 50%; right: 6px; transform: translateY(-50%); }
summary::after { transform: translateY(-50%) rotate(90deg); }
details[open] summary::after { transform: translateY(-50%); }
details p { padding-bottom: 16px; color: var(--muted); line-height: 1.62; max-width: 66ch; }
details p a { color: var(--violet-dark); }
.error-demo { margin: -9px 0 12px; }
.site-footer { border-top: 1px solid var(--edge); background: #f3f0fa; }
.footer-inner { padding-block: 31px; display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; }
.footer-inner p { color: var(--muted); margin-top: 12px; max-width: 59ch; font-size: 14px; line-height: 1.45; }
.footer-inner nav { padding-top: 9px; }

.policy-main { max-width: 760px; padding-block: 64px 78px; }
.policy-main h1 { margin-bottom: 14px; }
.policy-main h2 { font-size: 23px; margin-block: 29px 7px; letter-spacing: -.02em; }
.policy-main p, .policy-main ul { color: var(--muted); line-height: 1.64; }
.policy-main p a { color: var(--violet-dark); }
.policy-main .draft-note { padding: 12px 15px; background: var(--lavender); border-radius: 8px; color: var(--ink); }
.back-link { color: var(--violet-dark); font-weight: 750; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

@media (max-width: 940px) {
  .wrap { width: min(1160px, calc(100% - 48px)); }
}

@media (max-width: 760px) {
  .wrap { width: min(640px, calc(100% - 36px)); }
  .header-inner { min-height: 62px; gap: 9px 18px; }
  .site-header nav { gap: 12px; }
  .site-header nav a { font-size: 13px; }
  .hero { padding-block: 28px 34px; }
  .hero-lede { margin-bottom: 18px; }
  .section { padding-block: 40px; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 18px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:first-child { padding: 16px 0; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--edge); }
  .step-screens { max-width: 450px; }
  .steps li > .step-screen { max-width: 382px; }
  .guide { grid-template-columns: 1fr; padding-top: 3px; }
  .footer-inner { flex-direction: column; }
  .footer-inner nav { padding-top: 0; }
  .policy-main { padding-block: 43px 52px; }
}

@media (max-width: 510px) {
  .wrap { width: calc(100% - 34px); }
  .header-inner { min-height: 60px; }
  .brand { font-size: 17px; gap: 7px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .site-header nav a:nth-child(2) { display: none; }
  .hero { padding-top: 20px; }
  .hero-lede { margin-block: 8px 14px; }
  .form-row { flex-wrap: wrap; }
  .input-group { flex: 1 0 100%; min-height: 48px; }
  .primary { min-height: 48px; width: 100%; }
  .link-list { grid-template-columns: 1fr; }
  .link-row, .link-row:nth-child(even) { padding: 16px 0; }
  .link-row:nth-child(even) { border-left: 0; }
  .track-controls { grid-template-columns: 1fr; }
  .footer-inner nav { gap: 12px 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
