/* Onetake website / Stage 1 v1.0. These tokens follow the supplied 2026-09-07 kit. */
:root {
  --black: #000000;
  --white: #FFFFFF;
  --green: #03FF07;
  --gray: #666666;
  --line: #D9D9D9;
  --signal: #FF4D32; /* Reserved; no real recording or real error in this prototype. */
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  --page-width: 1120px;
  --radius: 26px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 128px; }
body { margin: 0; color: var(--black); background: var(--white); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a, textarea { -webkit-tap-highlight-color: transparent; }
button { border: 0; background: none; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 5px; }
::selection { color: var(--black); background: var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 24px; padding: 10px 18px; border: 1px solid var(--black); background: var(--white); z-index: 100; }
.skip-link:focus { top: 16px; }
.header-shell { position: sticky; top: 20px; z-index: 20; width: min(1040px, calc(100% - 64px)); margin: 20px auto 0; border: 1px solid var(--line); border-radius: 36px; background: var(--white); }
.header-row { height: 66px; display: flex; align-items: center; padding: 0 14px 0 27px; gap: 32px; }
.brand { flex: 0 0 auto; display: flex; align-items: center; min-height: 44px; }
.brand img { width: 136px; height: auto; aspect-ratio: 1706 / 426; }
.desktop-nav { margin-left: auto; display: flex; gap: 30px; align-items: center; font-size: 14px; }
.desktop-nav a { min-height: 44px; display: flex; align-items: center; }
.desktop-nav a:hover, .text-link:hover span { text-decoration: underline; text-underline-offset: 5px; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.language-switch { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0; font-size: 13px; white-space: nowrap; }
.language-switch:hover span { text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1.4; transition: transform .16s ease, border-color .16s ease; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-black { background: var(--black); color: var(--white); }
.button-green { background: var(--green); color: var(--black); }
.button-green:hover { border-color: var(--black); }
.header-release { min-height: 42px; padding: 0 22px; font-size: 13px; }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; padding: 0; font-size: 13px; }
.mobile-nav { display: none; }
.hero { max-width: 1040px; margin: 44px auto 0; padding: 0 24px 60px; text-align: center; }
.slogan { color: var(--gray); font-size: 14px; margin: 0 0 20px; line-height: 1.6; letter-spacing: .01em; }
h1 { margin: 0; font-weight: 600; font-size: clamp(56px, 5.2vw, 76px); letter-spacing: -.045em; line-height: 1.12; }
h1 span { display: block; }
html[lang="en"] h1 { font-size: clamp(56px, 5.7vw, 82px); letter-spacing: -.055em; line-height: 1.04; }
.hero-description { margin: 24px auto 0; max-width: 650px; color: var(--gray); font-size: 18px; line-height: 1.65; }
.hero-description span { display: block; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; }
.release-status { margin: 14px 0 0; color: var(--gray); font-size: 12px; line-height: 1.6; }
.demo-section { width: min(var(--page-width), calc(100% - 80px)); margin: 0 auto; padding: 30px 0 64px; scroll-margin-top: 120px; }
.demo-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
h2 { font-size: 38px; line-height: 1.22; letter-spacing: -.04em; font-weight: 600; margin: 0; }
.section-description { margin: 12px 0 0; color: var(--gray); font-size: 15px; line-height: 1.6; }
.scenario-tabs { display: flex; flex: 0 0 auto; gap: 24px; border-bottom: 1px solid var(--line); }
.scenario-tabs button { position: relative; min-height: 44px; padding: 8px 0 13px; color: var(--gray); font-size: 14px; font-weight: 400; white-space: nowrap; }
.scenario-tabs button[aria-selected="true"] { color: var(--black); font-weight: 600; }
.scenario-tabs button[aria-selected="true"]::after { position: absolute; content: ""; height: 2px; bottom: -1px; background: var(--black); left: 0; right: 0; }
.scenario-tabs button:hover { color: var(--black); }
.demo-board { border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; }
.demo-content { display: grid; grid-template-columns: 1fr 1.13fr; min-height: 350px; }
.speech-pane { padding: 30px 40px 34px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.pane-label { font-size: 13px; line-height: 1.5; color: var(--gray); margin: 0 0 40px; }
.spoken-quote { padding: 0; margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 400; line-height: 1.7; letter-spacing: -.015em; }
.correction { white-space: nowrap; }
.changed-word { transition: color .2s ease; }
.demo-board[data-state="done"] .changed-word, .demo-board[data-state="failed"] .changed-word { color: var(--gray); text-decoration: line-through; text-decoration-thickness: 1px; }
.final-words { font-weight: 600; }
html[lang="en"] .spoken-quote { font-size: 26px; }
.speech-note { margin: auto 0 0; padding-top: 34px; color: var(--gray); font-size: 13px; line-height: 1.6; }
.writing-pane { position: relative; padding: 30px 40px 34px; display: flex; flex-direction: column; min-width: 0; }
.writing-pane .pane-label { margin-bottom: 20px; }
.writing-surface { border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; min-height: 228px; display: flex; flex-direction: column; }
.field-heading { font-size: 12px; color: var(--gray); margin-bottom: 18px; }
textarea { display: block; resize: none; border: none; background: transparent; color: var(--black); padding: 0; width: 100%; min-height: 94px; font-size: 22px; line-height: 1.6; outline-offset: 4px; border-radius: 1px; }
textarea::placeholder { color: var(--gray); opacity: 1; font-size: 20px; }
textarea[readonly] { cursor: default; }
.field-note { color: var(--gray); font-size: 12px; line-height: 1.5; margin-top: auto; padding-top: 18px; }
.capture-area { display: flex; justify-content: center; position: absolute; bottom: 22px; left: 32px; right: 32px; pointer-events: none; }
.capture-pill { height: 52px; padding: 4px; background: var(--black); border-radius: 999px; display: flex; gap: 12px; align-items: center; pointer-events: auto; }
.capture-pill button { position: relative; width: 44px; height: 44px; border-radius: 50%; padding: 12px; display: grid; place-items: center; background: transparent; }
.capture-pill button::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; }
.capture-pill button img { position: relative; }
.capture-pill button:focus-visible { outline-color: var(--black); outline-offset: 8px; }
.capture-cancel::before { background: var(--gray); }
.capture-cancel img { filter: invert(1); }
.capture-finish::before { background: var(--white); }
.waveform { display: flex; align-items: center; justify-content: center; height: 32px; gap: 3px; padding: 0 4px; }
.waveform i { display: block; width: 3px; height: var(--h); border-radius: 2px; background: var(--white); transform-origin: center; animation: wave .85s ease-in-out infinite alternate; animation-delay: var(--delay); }
@keyframes wave { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
.demo-board[data-paused="true"] .waveform i { animation-play-state: paused; }
.processing-pill { color: var(--white); background: var(--black); padding: 12px 24px; min-height: 48px; border-radius: 999px; font-size: 14px; display: flex; align-items: center; }
.demo-board[data-state="preparing"] .writing-surface, .demo-board[data-state="listening"] .writing-surface { border-color: var(--black); }
.recovery-area { margin-top: 18px; }
details { border-top: 1px solid var(--line); }
summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; min-height: 48px; padding-top: 4px; font-size: 14px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary img { transition: transform .16s ease; }
details[open] summary img { transform: rotate(90deg); }
.recovery-body { padding: 10px 0 4px; }
#recovered-text { font-size: 18px; line-height: 1.6; margin: 0 0 10px; overflow-wrap: anywhere; }
.copy-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 600; padding: 0; }
.copy-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.recovery-note { color: var(--gray); font-size: 12px; line-height: 1.6; margin: 10px 0 0; }
.demo-controls { border-top: 1px solid var(--line); padding: 20px 28px; min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.control-context { display: flex; align-items: center; gap: 16px; min-width: 0; }
.fn-key { position: relative; flex: 0 0 48px; height: 48px; width: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; color: var(--black); font-size: 12px; line-height: 1; }
.fn-key img { align-self: flex-start; }
.fn-key:hover:not(:disabled) { border-color: var(--black); }
.fn-key:active:not(:disabled) { background: var(--green); }
.demo-board[data-state="listening"] .fn-key { background: var(--green); border-color: var(--green); }
#demo-status { margin: 0; font-size: 13px; color: var(--gray); line-height: 1.6; }
.play-button { flex: 0 0 auto; min-width: 144px; min-height: 48px; font-size: 14px; }
.demo-caption { margin: 16px 0 0; color: var(--gray); font-size: 12px; text-align: center; line-height: 1.6; }
.noscript-note { font-size: 14px; text-align: center; }
@media (min-width: 1600px) {
  .hero { margin-top: 64px; }
}
@media (max-width: 1020px) {
  .header-row { gap: 24px; }
  .desktop-nav { gap: 22px; }
  .header-actions { gap: 18px; }
  .speech-pane, .writing-pane { padding: 28px; }
  .demo-heading { align-items: flex-start; }
  h2 { font-size: 32px; }
  .demo-section { width: calc(100% - 64px); }
  .section-description { max-width: 420px; }
  .scenario-tabs { gap: 18px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 100px; }
  .header-shell { top: 12px; width: calc(100% - 32px); margin-top: 12px; }
  .header-row { height: 58px; padding: 0 16px 0 20px; gap: 12px; }
  .brand img { width: 112px; }
  .desktop-nav, .header-release { display: none; }
  .header-actions { margin-left: auto; gap: 18px; }
  .language-switch { font-size: 12px; gap: 6px; }
  .language-switch img { display: none; }
  .menu-toggle { display: block; font-size: 12px; }
  .header-shell[data-menu-open="true"] { border-radius: 26px; }
  .mobile-nav:not([hidden]) { display: flex; flex-direction: column; padding: 8px 20px 16px; border-top: 1px solid var(--line); }
  .mobile-nav a { display: flex; align-items: center; min-height: 48px; font-size: 14px; }
  .hero { margin-top: 42px; padding: 0 22px 46px; }
  .slogan { font-size: 12px; margin-bottom: 24px; letter-spacing: 0; }
  h1 { font-size: clamp(30px, 8.9vw, 48px); line-height: 1.17; font-weight: 600; letter-spacing: -.045em; }
  html[lang="en"] h1 { font-size: clamp(32px, 9.75vw, 52px); line-height: 1.1; letter-spacing: -.055em; }
  .hero-description { margin-top: 22px; font-size: 15px; line-height: 1.75; max-width: 410px; }
  .hero-description span { display: block; }
  .hero-actions { margin-top: 26px; flex-direction: column; gap: 6px; }
  .hero-actions .button { min-width: 228px; min-height: 50px; font-size: 14px; }
  .hero-actions .text-link { font-size: 13px; min-height: 44px; }
  .release-status { font-size: 11px; margin-top: 8px; }
  .demo-section { width: calc(100% - 32px); padding-top: 20px; padding-bottom: 40px; scroll-margin-top: 100px; }
  .demo-heading { display: block; padding: 0 6px; margin-bottom: 20px; }
  h2 { font-size: 28px; line-height: 1.25; }
  .section-description { font-size: 14px; margin-top: 10px; line-height: 1.7; }
  .scenario-tabs { margin-top: 20px; gap: 28px; width: fit-content; }
  .scenario-tabs button { font-size: 13px; padding-bottom: 12px; }
  .demo-board { border-radius: 26px; }
  .demo-content { grid-template-columns: 1fr; min-height: 0; }
  .speech-pane { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px; }
  .pane-label { font-size: 12px; margin-bottom: 22px; }
  .spoken-quote { font-size: 24px; line-height: 1.6; }
  .speech-note { padding-top: 20px; margin-top: 0; font-size: 12px; }
  .writing-pane { padding: 24px; }
  .writing-pane .pane-label { margin-bottom: 16px; }
  .writing-surface { padding: 18px; min-height: 218px; border-radius: 16px; }
  textarea { font-size: 20px; min-height: 86px; }
  textarea::placeholder { font-size: 18px; }
  .field-heading { margin-bottom: 16px; }
  .field-note { font-size: 11px; }
  .capture-area { bottom: 12px; left: 24px; right: 24px; }
  .demo-controls { padding: 18px 20px; align-items: stretch; flex-direction: column; gap: 18px; }
  .control-context { gap: 14px; }
  #demo-status { font-size: 12px; }
  .play-button { width: 100%; min-height: 46px; }
  .demo-caption { font-size: 11px; margin-top: 14px; padding: 0 10px; }
}
@media (max-width: 359px) {
  .header-row { padding-left: 16px; padding-right: 12px; }
  .brand img { width: 100px; }
  .header-actions { gap: 8px; }
  .hero { padding-left: 18px; padding-right: 18px; }
  .hero-description { font-size: 14px; }
  .speech-pane, .writing-pane { padding: 20px; }
  .spoken-quote { font-size: 21px; }
  .writing-surface { padding: 16px; }
  textarea { font-size: 18px; }
  .capture-pill { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 760px) { html[lang="en"] .spoken-quote { font-size: 23px; } }
@media (max-width: 359px) { html[lang="en"] .spoken-quote { font-size: 21px; } }
