:root {
  --vanilla-50: #fffdf8;
  --vanilla-100: #fffbf3;
  --vanilla-200: #fbf4e6;
  --sand-300: #efe6d4;
  --sand-400: #dfd3bc;
  --moss-500: #8a988f;
  --moss-600: #5f6f66;
  --pine-800: #36453e;
  --pine-900: #23302b;
  --green-100: #e2f5ec;
  --green-200: #c2eada;
  --green-300: #7fd3b6;
  --green-500: #0e9b77;
  --green-600: #0c8767;
  --green-700: #0a7257;
  --green-900: #0b3d30;
  --sun-100: #fff0d6;
  --sun-200: #ffe3b0;
  --sun-400: #ffb84c;
  --sun-800: #8c5e12;
  --red-100: #fce5e0;
  --red-500: #de5b4c;
  --red-700: #b23d30;
  --blue-100: #e3eff7;
  --blue-500: #3e7ca6;
  --bg-page: var(--vanilla-100);
  --bg-raised: var(--vanilla-50);
  --surface-card: #fff;
  --surface-mint: var(--green-100);
  --surface-sun: var(--sun-100);
  --surface-sunken: var(--vanilla-200);
  --text-body: var(--pine-900);
  --text-muted: var(--moss-600);
  --text-faint: var(--moss-500);
  --text-on-primary: #fff;
  --text-on-mint: var(--green-700);
  --text-on-sun: var(--sun-800);
  --text-link: var(--green-600);
  --interactive-primary: var(--green-500);
  --interactive-primary-hover: var(--green-600);
  --interactive-primary-active: var(--green-700);
  --interactive-accent: var(--sun-400);
  --border-default: var(--sand-300);
  --border-strong: var(--sand-400);
  --border-focus: var(--green-500);
  --status-danger-bg: var(--red-100);
  --status-danger-fg: var(--red-700);
  --status-info-bg: var(--blue-100);
  --status-info-fg: var(--blue-500);
  --highlight-marker: var(--sun-100);
  --font-display: "Bitter", Georgia, serif;
  --font-sans: "Albert Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", "SF Mono", monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 999px;
  --radius-blob: 45% 55% 60% 40% / 55% 45% 55% 45%;
  --shadow-card: 0 4px 20px rgb(35 48 43 / 5%);
  --shadow-card-hover: 0 8px 28px rgb(35 48 43 / 9%);
  --shadow-button: 0 3px 10px rgb(14 155 119 / 30%);
  --shadow-overlay: 0 16px 48px rgb(35 48 43 / 16%);
  --border-width: 1.5px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --duration-fast: 140ms;
  --duration-base: 220ms;
  --duration-slow: 360ms;
  --container-max: 1140px;
  --container-pad: 24px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg-page: #161f1b;
  --bg-raised: #1b2520;
  --surface-card: #1f2b26;
  --surface-mint: #21382f;
  --surface-sun: #3a2e14;
  --surface-sunken: #131b17;
  --text-body: #f2f7f1;
  --text-muted: #9db0a6;
  --text-faint: #71857b;
  --text-on-primary: #0b231c;
  --text-on-mint: #8fe0c2;
  --text-on-sun: #ffd894;
  --text-link: #4cc9a0;
  --interactive-primary: #2db78d;
  --interactive-primary-hover: #4cc9a0;
  --interactive-primary-active: #25a37c;
  --interactive-accent: #ffc56b;
  --border-default: #2e3c35;
  --border-strong: #3d4e45;
  --border-focus: #4cc9a0;
  --highlight-marker: #4a3a16;
  --shadow-card: 0 4px 20px rgb(0 0 0 / 16%);
  --shadow-card-hover: 0 8px 30px rgb(0 0 0 / 24%);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open { overflow: hidden; }

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--highlight-marker); }
:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--pine-900);
  color: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.container { width: min(100% - (var(--container-pad) * 2), var(--container-max)); margin-inline: auto; }
.section { padding-block: var(--space-24); }
.section--mint { background: var(--surface-mint); }
.section-head { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.overline {
  color: var(--interactive-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-title { margin-top: 10px; font-size: clamp(32px, 5vw, 44px); }
.section-lead { margin-top: 12px; color: var(--text-muted); font-size: 18px; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 21px;
  border: var(--border-width) solid transparent;
  border-radius: var(--radius-pill);
  background: var(--interactive-primary);
  box-shadow: var(--shadow-button);
  color: var(--text-on-primary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-spring), background var(--duration-fast), box-shadow var(--duration-fast);
}
.button:hover { background: var(--interactive-primary-hover); text-decoration: none; transform: translateY(-1px); }
.button:active { background: var(--interactive-primary-active); transform: scale(0.97); }
.button:disabled { cursor: not-allowed; opacity: 0.5; transform: none; }
.button--large { min-height: 52px; padding-inline: 26px; font-size: 15px; }
.button--secondary { border-color: var(--green-200); background: var(--surface-mint); box-shadow: none; color: var(--text-on-mint); }
.button--secondary:hover { background: var(--green-200); }
.button--ghost { border-color: var(--border-default); background: transparent; box-shadow: none; color: var(--text-body); }
.button--ghost:hover { border-color: var(--green-300); background: var(--surface-card); }
.button--sun { background: var(--interactive-accent); box-shadow: none; color: var(--green-900); }
.button--sun:hover { background: var(--sun-200); }
.button--full { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--surface-mint);
  color: var(--text-on-mint);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.badge::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.badge--neutral { background: var(--surface-sunken); color: var(--text-muted); }
.badge--sun { background: var(--surface-sun); color: var(--text-on-sun); }
.badge--info { background: var(--status-info-bg); color: var(--status-info-fg); }
.badge--danger { background: var(--status-danger-bg); color: var(--status-danger-fg); }

.card {
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
}
.card--hover { transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base); }
.card--hover:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }

.field { display: grid; gap: 6px; }
.field label { color: var(--text-body); font-size: 13px; font-weight: 800; }
.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  color: var(--text-body);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgb(14 155 119 / 12%); outline: none; }
.field-hint { color: var(--text-faint); font-size: 12px; }
.form-error {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--status-danger-bg);
  color: var(--status-danger-fg);
  font-size: 13px;
  font-weight: 700;
}
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--interactive-primary); }

.navbar {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: var(--border-width) solid rgb(239 230 212 / 80%);
  background: rgb(255 251 243 / 86%);
  backdrop-filter: blur(12px);
}
[data-theme="dark"] .navbar { background: rgb(22 31 27 / 86%); }
.navbar__inner { display: flex; min-height: 72px; align-items: center; gap: 28px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; color: var(--text-body); }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand__word { font-family: var(--font-display); font-size: 25px; font-weight: 700; letter-spacing: -0.03em; }
.brand__ai { color: var(--interactive-primary); }
.navbar__links { display: flex; align-items: center; gap: 24px; margin-left: 12px; }
.navbar__links a { color: var(--text-muted); font-size: 13px; font-weight: 700; }
.navbar__mobile-only { display: none; }
.navbar__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang-switch { display: inline-flex; align-items: center; padding: 5px; border: var(--border-width) solid var(--border-default); border-radius: var(--radius-pill); background: var(--surface-card); }
.lang-switch a { padding: 3px 7px; border-radius: var(--radius-pill); color: var(--text-faint); font-size: 11px; font-weight: 800; line-height: 1; }
.lang-switch a[aria-current="true"] { background: var(--surface-mint); color: var(--text-on-mint); }
.nav-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border: var(--border-width) solid var(--border-default); border-radius: 50%; background: var(--surface-card); cursor: pointer; }

.hero { overflow: hidden; padding: 68px 0 54px; }
.hero__grid { display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: 58px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: var(--radius-pill); background: var(--surface-sun); color: var(--text-on-sun); font-size: 12px; font-weight: 800; }
.hero__eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: var(--interactive-accent); content: ""; }
.hero h1 { max-width: 650px; margin-top: 20px; font-size: clamp(44px, 6vw, 64px); }
.hero h1 em { color: var(--interactive-primary); font-weight: 700; }
.hero__lead { max-width: 570px; margin-top: 18px; color: var(--text-muted); font-size: 18px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.hero__visual { position: relative; min-height: 390px; }
.hero__blob { position: absolute; inset: 0 -7% 0 4%; border-radius: var(--radius-blob); background: var(--surface-mint); transform: rotate(-2deg); }
.sample-card { position: absolute; z-index: 1; inset: 44px 0 auto 20px; padding: 22px; border-radius: var(--radius-xl); box-shadow: var(--shadow-card-hover); transform: rotate(1.2deg); }
.sample-card__top { display: flex; align-items: center; gap: 11px; }
.sample-play { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--interactive-primary); color: #fff; }
.sample-play::after { border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid currentColor; content: ""; transform: translateX(2px); }
.sample-meta strong { display: block; font-size: 13px; }
.sample-meta span { color: var(--text-faint); font-family: var(--font-mono); font-size: 11px; }
.sample-card .badge { margin-left: auto; }
.waveform { display: flex; height: 48px; align-items: center; justify-content: space-between; gap: 4px; margin-block: 18px; }
.waveform span { width: 4px; height: var(--h); border-radius: var(--radius-pill); background: var(--green-200); }
.waveform span:nth-child(-n + 18) { background: var(--interactive-primary); }
.waveform--active span { animation: breathe 1.3s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -45ms); }
.sample-quote { padding: 13px 15px; border: var(--border-width) solid var(--border-default); border-radius: var(--radius-md); background: var(--bg-raised); color: var(--text-muted); font-size: 13px; }
.sample-quote mark { padding-inline: 3px; border-radius: 4px; background: var(--highlight-marker); color: var(--text-body); }

.upload-section { padding: 32px 0 88px; }
.upload-card { padding: clamp(22px, 4vw, 34px); border-radius: var(--radius-xl); box-shadow: var(--shadow-card-hover); }
.upload-card__head { max-width: 720px; margin: 0 auto 22px; text-align: center; }
.upload-card__head h2 { font-size: clamp(26px, 4vw, 34px); }
.upload-card__head p { margin-top: 9px; color: var(--text-muted); }
.upload-grid { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 18px; }
.dropzone {
  position: relative;
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 28px;
  border: 2px dashed var(--green-300);
  border-radius: var(--radius-lg);
  background: var(--surface-mint);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--duration-base), background var(--duration-base), transform var(--duration-base) var(--ease-spring);
}
.dropzone:hover, .dropzone.is-dragging { border-color: var(--green-600); background: var(--green-200); transform: translateY(-2px); }
.dropzone.is-busy { cursor: wait; pointer-events: none; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { position: relative; display: grid; width: 58px; height: 58px; margin: 0 auto 14px; place-items: center; border-radius: var(--radius-blob); background: var(--surface-card); color: var(--interactive-primary); box-shadow: var(--shadow-card); font-size: 27px; font-weight: 500; }
.dropzone__title { font-weight: 800; }
.dropzone__hint { display: block; margin-top: 7px; color: var(--text-muted); font-size: 12px; }
.upload-controls { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 6px; }
.upload-selected { min-height: 47px; padding: 11px 13px; border-radius: var(--radius-md); background: var(--surface-sunken); font-size: 12px; }
.upload-selected strong { display: block; overflow: hidden; color: var(--text-body); text-overflow: ellipsis; white-space: nowrap; }
.upload-selected span { color: var(--text-faint); }
.upload-secure { display: flex; align-items: center; gap: 7px; color: var(--text-faint); font-size: 11px; line-height: 1.4; }
.upload-secure::before { color: var(--interactive-primary); content: "✓"; font-weight: 900; }
.upload-progress { grid-column: 1 / -1; }
.progress-track { height: 8px; overflow: hidden; border-radius: var(--radius-pill); background: var(--surface-sunken); }
.progress-track span { display: block; width: var(--progress, 0%); height: 100%; border-radius: inherit; background: var(--interactive-primary); transition: width 160ms ease-out; }
.progress-label { display: flex; justify-content: space-between; margin-top: 7px; color: var(--text-muted); font-size: 12px; font-weight: 700; }
.turnstile-slot { min-height: 1px; }

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit-card { padding: 22px; }
.feature-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: var(--radius-blob); background: var(--surface-mint); color: var(--text-on-mint); font-size: 19px; font-weight: 900; }
.benefit-card h3 { margin-top: 14px; font-size: 19px; }
.benefit-card p { margin-top: 7px; color: var(--text-muted); font-size: 13px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { padding: 22px; }
.step__number { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--interactive-primary); color: var(--text-on-primary); font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.step h3 { margin-top: 14px; font-size: 19px; }
.step p { margin-top: 7px; color: var(--text-muted); font-size: 13px; }
.comparison { overflow-x: auto; border-radius: var(--radius-xl); }
.comparison table { width: 100%; min-width: 690px; border-collapse: collapse; }
.comparison th, .comparison td { padding: 15px 18px; border-top: var(--border-width) solid var(--border-default); text-align: left; font-size: 13px; }
.comparison th { border-top: 0; background: var(--bg-raised); color: var(--text-faint); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.comparison th:nth-child(2), .comparison td:nth-child(2) { background: var(--surface-mint); color: var(--text-on-mint); font-weight: 800; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { overflow: hidden; }
.image-slot { display: grid; aspect-ratio: 16 / 10; place-items: center; background: var(--surface-sunken); color: var(--text-faint); }
.image-slot__inner { display: grid; max-width: 190px; gap: 8px; place-items: center; padding: 15px; text-align: center; }
.image-slot__inner::before { content: "▧"; font-size: 28px; }
.case-card__body { padding: 20px; }
.case-card h3 { margin-top: 12px; font-size: 20px; }
.case-card__result { margin-top: 9px; color: var(--interactive-primary); font-size: 13px; font-weight: 800; }
.case-note { margin-top: 20px; color: var(--text-faint); font-size: 12px; text-align: center; }

.pricing-panel { display: grid; max-width: 940px; grid-template-columns: 0.92fr 1.08fr; overflow: hidden; border-radius: var(--radius-xl); }
.pricing-panel__intro { padding: 44px; background: var(--green-700); color: #fff; }
.pricing-panel__intro .overline { color: var(--green-200); }
.pricing-panel__intro h2 { margin-top: 12px; font-size: 36px; }
.pricing-panel__intro p { margin-top: 15px; color: var(--green-200); }
.pricing-panel__offer { display: grid; align-content: center; padding: 38px 44px; background: var(--surface-card); }
.price-lockup { display: flex; align-items: baseline; gap: 10px; }
.price-lockup strong { font-family: var(--font-display); font-size: 48px; line-height: 1; }
.price-lockup span { color: var(--text-muted); }
.feature-list { display: grid; gap: 10px; margin: 22px 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 9px; }
.feature-list li::before { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--surface-mint); color: var(--text-on-mint); content: "✓"; font-size: 11px; font-weight: 900; }
.price-after { margin-top: 13px; color: var(--text-faint); font-size: 11px; text-align: center; }
.faq-list { display: grid; max-width: 780px; gap: 10px; margin-inline: auto; }
.faq-item { overflow: hidden; border: var(--border-width) solid var(--border-default); border-radius: var(--radius-lg); background: var(--surface-card); }
.faq-item[open] { border-color: var(--green-300); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 20px; cursor: pointer; font-weight: 800; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--surface-mint); color: var(--text-on-mint); content: "+"; }
.faq-item[open] summary::after { background: var(--interactive-primary); color: #fff; content: "−"; }
.faq-item p { padding: 0 20px 19px; color: var(--text-muted); font-size: 13px; }

.footer { border-top: var(--border-width) solid var(--border-default); background: var(--bg-raised); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 0.8fr 0.8fr; gap: 48px; padding-block: 48px 34px; }
.footer__about { max-width: 360px; margin-top: 14px; color: var(--text-muted); font-size: 13px; }
.footer__col { display: grid; align-content: start; gap: 8px; font-size: 13px; }
.footer__col strong { margin-bottom: 3px; color: var(--text-faint); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.footer__col a { color: var(--text-muted); }
.footer__bottom { display: flex; justify-content: space-between; padding-block: 18px 28px; border-top: var(--border-width) solid var(--border-default); color: var(--text-faint); font-size: 11px; }

.auth-page { min-height: 100vh; padding: 24px; }
.auth-shell { display: grid; width: min(1100px, 100%); min-height: calc(100vh - 48px); grid-template-columns: 0.92fr 1.08fr; overflow: hidden; margin-inline: auto; border: var(--border-width) solid var(--border-default); border-radius: var(--radius-xl); background: var(--surface-card); box-shadow: var(--shadow-overlay); }
.auth-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 42px; background: var(--green-700); color: #fff; }
.auth-story .brand { color: #fff; }
.auth-story .brand__ai { color: var(--sun-400); }
.auth-story__copy { position: relative; z-index: 1; max-width: 410px; }
.auth-story h1 { font-size: clamp(36px, 5vw, 52px); }
.auth-story p { margin-top: 15px; color: var(--green-200); font-size: 17px; }
.auth-story .waveform { position: absolute; right: -20px; bottom: 40px; width: 310px; opacity: 0.18; transform: rotate(-8deg); }
.auth-form-wrap { display: grid; align-content: center; padding: clamp(32px, 7vw, 86px); }
.auth-form { display: grid; max-width: 430px; gap: 17px; margin-inline: auto; }
.auth-form form { display: grid; gap: 17px; }
.auth-form h2 { font-size: 31px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--radius-pill); background: var(--surface-sunken); }
.auth-tab { padding: 9px 13px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-muted); cursor: pointer; font-size: 13px; font-weight: 800; }
.auth-tab[aria-selected="true"] { background: var(--surface-card); box-shadow: var(--shadow-card); color: var(--text-body); }
.auth-security { color: var(--text-faint); font-size: 11px; text-align: center; }

.result-page { min-height: 100vh; padding: 22px 0 80px; }
.result-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 42px; }
.result-back { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 13px; font-weight: 700; }
.result-head { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.result-head h1 { margin-top: 9px; font-size: clamp(34px, 5vw, 48px); }
.result-status { margin-top: 13px; color: var(--text-muted); font-size: 16px; }
.processing-card { max-width: 760px; margin-inline: auto; padding: 30px; text-align: center; }
.processing-card .waveform { max-width: 430px; margin-inline: auto; }
.processing-card p { color: var(--text-muted); }
.transcript-shell { position: relative; display: grid; max-width: 930px; gap: 14px; margin-inline: auto; }
.transcript-toolbar { display: flex; align-items: center; justify-content: space-between; }
.transcript-toolbar h2 { font-size: 24px; }
.transcript-card { position: relative; overflow: hidden; padding: 12px; }
.transcript-line { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: var(--radius-md); }
.transcript-line:hover { background: var(--bg-raised); }
.time-pill { align-self: start; padding: 5px 8px; border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--text-faint); font-family: var(--font-mono); font-size: 11px; text-align: center; }
.speaker-name { margin-bottom: 3px; color: var(--interactive-primary); font-size: 12px; font-weight: 800; }
.transcript-text { line-height: 1.72; }
.gate-fade { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; height: 200px; background: linear-gradient(to bottom, transparent, var(--surface-card) 72%); pointer-events: none; }
.trial-gate { position: relative; z-index: 3; display: grid; max-width: 680px; gap: 20px; margin: -70px auto 0; padding: clamp(24px, 5vw, 38px); border: var(--border-width) solid var(--green-300); border-radius: var(--radius-xl); background: var(--surface-card); box-shadow: var(--shadow-overlay); text-align: center; }
.trial-gate h2 { font-size: 30px; }
.trial-gate > p { color: var(--text-muted); }
.gate-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gate-points span { padding: 6px 11px; border-radius: var(--radius-pill); background: var(--surface-mint); color: var(--text-on-mint); font-size: 11px; font-weight: 800; }
.gate-points span::before { margin-right: 5px; content: "✓"; }
.gate-auth { display: grid; max-width: 430px; gap: 13px; margin-inline: auto; text-align: left; }
.gate-auth .auth-tabs { margin-bottom: 2px; }
.unlocked-banner { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 18px; border: var(--border-width) solid var(--green-200); border-radius: var(--radius-lg); background: var(--surface-mint); color: var(--text-on-mint); font-weight: 800; }

.app-body { background: var(--bg-page); }
.app-shell { display: grid; min-height: 100vh; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 24px 18px; border-right: var(--border-width) solid var(--border-default); background: var(--bg-raised); }
.sidebar-nav { display: grid; gap: 5px; margin-top: 36px; }
.sidebar-link { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: var(--radius-md); color: var(--text-muted); font-size: 13px; font-weight: 700; }
.sidebar-link:hover { background: var(--surface-mint); color: var(--text-on-mint); text-decoration: none; }
.sidebar-link[aria-current="page"] { background: var(--surface-mint); color: var(--text-on-mint); font-weight: 800; }
.sidebar-icon { display: grid; width: 24px; height: 24px; place-items: center; font-size: 16px; }
.plan-card { margin-top: auto; padding: 15px; border-radius: var(--radius-lg); background: var(--green-700); color: #fff; }
.plan-card strong { display: block; font-family: var(--font-display); font-size: 18px; }
.plan-card span { color: var(--green-200); font-size: 11px; }
.plan-card a { display: block; margin-top: 10px; color: #fff; font-size: 11px; font-weight: 800; }
.sidebar-user { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding: 10px 4px 0; border-top: var(--border-width) solid var(--border-default); }
.avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--surface-sun); color: var(--text-on-sun); font-size: 12px; font-weight: 900; }
.sidebar-user__text { min-width: 0; }
.sidebar-user__text strong, .sidebar-user__text span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user__text strong { font-size: 12px; }
.sidebar-user__text span { color: var(--text-faint); font-size: 10px; }
.app-main { min-width: 0; padding: 38px clamp(24px, 5vw, 58px) 70px; }
.app-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.app-header h1 { font-size: 34px; }
.app-header p { margin-top: 6px; color: var(--text-muted); }
.app-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.search-box { position: relative; flex: 1 1 260px; }
.search-box .input { padding-left: 38px; }
.search-box::before { position: absolute; z-index: 1; top: 10px; left: 14px; color: var(--text-faint); content: "⌕"; font-size: 20px; }
.filter-chip { padding: 8px 13px; border: var(--border-width) solid var(--border-default); border-radius: var(--radius-pill); background: var(--surface-card); color: var(--text-muted); cursor: pointer; font-size: 12px; font-weight: 800; }
.filter-chip.is-active { border-color: var(--green-200); background: var(--surface-mint); color: var(--text-on-mint); }
.recording-list { display: grid; gap: 10px; }
.recording-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: 15px; padding: 15px 17px; }
.recording-row:hover { text-decoration: none; }
.recording-file-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: var(--radius-blob); background: var(--surface-mint); color: var(--text-on-mint); font-size: 18px; }
.recording-row__name { overflow: hidden; color: var(--text-body); font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.recording-row__meta { color: var(--text-faint); font-size: 11px; }
.recording-row__date { color: var(--text-faint); font-size: 11px; }
.empty-state { display: grid; min-height: 300px; place-items: center; padding: 40px; text-align: center; }
.empty-state__icon { display: grid; width: 70px; height: 70px; margin: 0 auto 15px; place-items: center; border-radius: var(--radius-blob); background: var(--surface-mint); color: var(--text-on-mint); font-size: 29px; }
.empty-state h2 { font-size: 24px; }
.empty-state p { max-width: 440px; margin-top: 8px; color: var(--text-muted); }

.recording-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 20px; }
.audio-player { padding: 18px; margin-bottom: 16px; }
.audio-player audio { width: 100%; height: 42px; }
.recording-transcript { padding: 10px; }
.editable-line { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 13px; border-radius: var(--radius-md); }
.editable-line:hover { background: var(--bg-raised); }
.editable-line__body { min-width: 0; }
.editable-line__top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.editable-line__top strong { color: var(--interactive-primary); font-size: 12px; }
.line-edit { margin-left: auto; padding: 3px 9px; border: 0; border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--text-muted); cursor: pointer; font-size: 10px; font-weight: 800; opacity: 0; }
.editable-line:hover .line-edit, .line-edit:focus { opacity: 1; }
.line-editor { display: grid; gap: 8px; }
.line-editor textarea { min-height: 94px; resize: vertical; }
.line-editor__actions { display: flex; gap: 8px; }
.line-editor__actions .button { min-height: 34px; padding: 7px 13px; font-size: 11px; }
.speakers-panel { position: sticky; top: 24px; display: grid; gap: 12px; }
.speakers-panel__title { display: flex; align-items: center; gap: 8px; }
.speaker-card { padding: 14px; }
.speaker-card__top { display: flex; align-items: center; gap: 9px; }
.speaker-card__meta strong, .speaker-card__meta span { display: block; }
.speaker-card__meta strong { font-size: 13px; }
.speaker-card__meta span { color: var(--text-faint); font-size: 10px; }

.settings-grid { display: grid; max-width: 850px; gap: 18px; }
.settings-card { padding: 24px; }
.settings-card h2 { margin-bottom: 20px; font-size: 22px; }
.setting-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 280px); align-items: center; gap: 24px; padding-block: 16px; border-top: var(--border-width) solid var(--border-default); }
.setting-row:first-of-type { padding-top: 0; border-top: 0; }
.setting-row strong { display: block; font-size: 13px; }
.setting-row p { color: var(--text-faint); font-size: 11px; }
.switch { position: relative; width: 46px; height: 27px; justify-self: end; }
.switch input { width: 1px; height: 1px; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: var(--radius-pill); background: var(--border-strong); cursor: pointer; transition: background var(--duration-fast); }
.switch span::after { position: absolute; top: 4px; left: 4px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgb(0 0 0 / 15%); content: ""; transition: transform var(--duration-base) var(--ease-spring); }
.switch input:checked + span { background: var(--interactive-primary); }
.switch input:checked + span::after { transform: translateX(19px); }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; padding: 12px 17px; border: var(--border-width) solid var(--green-200); border-radius: var(--radius-md); background: var(--surface-card); box-shadow: var(--shadow-overlay); color: var(--text-body); font-size: 13px; font-weight: 800; animation: toast-in var(--duration-slow) var(--ease-spring); }

@keyframes breathe { from { transform: scaleY(0.58); opacity: 0.65; } to { transform: scaleY(1); opacity: 1; } }
@keyframes toast-in { from { transform: translateY(14px); opacity: 0; } }

@media (max-width: 980px) {
  .navbar__links { display: none; position: absolute; top: calc(100% + 1px); right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 14px 24px 20px; border-bottom: var(--border-width) solid var(--border-default); background: var(--bg-page); }
  .navbar__links.is-open { display: flex; }
  .navbar__links a { padding: 10px 0; }
  .navbar__links .navbar__mobile-only { display: block; }
  .nav-toggle { display: inline-flex; }
  .navbar__actions .button--ghost { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: 760px; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__badges { justify-content: center; }
  .hero__visual { width: min(600px, 100%); min-height: 350px; margin-inline: auto; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .recording-layout { grid-template-columns: 1fr; }
  .speakers-panel { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .speakers-panel__title { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --container-pad: 18px; --space-24: 72px; }
  .navbar__inner { min-height: 64px; }
  .brand__word { font-size: 22px; }
  .navbar__actions .button { display: none; }
  .hero { padding-top: 48px; }
  .hero__grid { gap: 34px; }
  .hero__visual { min-height: 310px; }
  .sample-card { inset: 20px 0 auto; transform: none; }
  .hero__badges .badge--neutral:nth-child(2) { display: none; }
  .upload-grid { grid-template-columns: 1fr; }
  .upload-controls { padding: 0; }
  .benefit-grid, .case-grid { grid-template-columns: 1fr; }
  .pricing-panel { grid-template-columns: 1fr; }
  .pricing-panel__intro, .pricing-panel__offer { padding: 30px 25px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 5px; }
  .auth-page { padding: 0; }
  .auth-shell { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .auth-story { min-height: 280px; padding: 28px; }
  .auth-story h1 { font-size: 36px; }
  .auth-form-wrap { padding: 34px 24px 48px; }
  .result-top { margin-bottom: 30px; }
  .transcript-line { grid-template-columns: 1fr; gap: 5px; }
  .time-pill { width: max-content; }
  .trial-gate { margin-inline: 10px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; z-index: 40; top: 0; width: 100%; height: auto; flex-direction: row; align-items: center; padding: 12px 18px; border-right: 0; border-bottom: var(--border-width) solid var(--border-default); }
  .sidebar .brand__word { display: none; }
  .sidebar-nav { display: flex; gap: 3px; margin: 0 0 0 auto; }
  .sidebar-link { padding: 8px; }
  .sidebar-link span:last-child { display: none; }
  .plan-card, .sidebar-user { display: none; }
  .app-main { padding: 28px 18px 55px; }
  .app-header { flex-direction: column; }
  .recording-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .recording-row__date { display: none; }
  .speakers-panel { grid-template-columns: 1fr; }
  .editable-line { grid-template-columns: 1fr; }
  .setting-row { grid-template-columns: 1fr; gap: 10px; }
  .switch { justify-self: start; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 42px; }
  .sample-card { padding: 17px; }
  .sample-card .badge { display: none; }
  .upload-card { padding: 18px; }
  .dropzone { min-height: 190px; padding: 20px 12px; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__grid > :first-child { grid-column: auto; }
  .auth-story { min-height: 240px; }
  .auth-story p { font-size: 15px; }
  .recording-row { grid-template-columns: 36px minmax(0, 1fr); }
  .recording-row .badge { grid-column: 2; justify-self: start; }
}

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