/* Duetbook's site. Two voices, like the app icon's two books: orange is the language of the book, blue the
   listener's own. Navy is the ink (the headphones). The page talks in a rounded sans; text that comes from a book
   is set in a book face; pieces of the app use the system font, as the app does. */

@font-face { font-family: "Rounded"; src: url(fonts/rounded-latin-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-017F, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Rounded"; src: url(fonts/rounded-latin-500.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-017F, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Rounded"; src: url(fonts/rounded-latin-800.woff2) format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-017F, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Rounded JP"; src: url(fonts/rounded-ja-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+3000-30FF, U+3400-9FFF, U+FF00-FFEF; }
@font-face { font-family: "Rounded JP"; src: url(fonts/rounded-ja-500.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+3000-30FF, U+3400-9FFF, U+FF00-FFEF; }
@font-face { font-family: "Rounded JP"; src: url(fonts/rounded-ja-800.woff2) format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+3000-30FF, U+3400-9FFF, U+FF00-FFEF; }
@font-face { font-family: "Book"; src: url(fonts/literata.woff2) format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-017F, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Book JP"; src: url(fonts/mincho-ja-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+3000-30FF, U+3400-9FFF, U+FF00-FFEF; }
@font-face { font-family: "Book JP"; src: url(fonts/mincho-ja-500.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+3000-30FF, U+3400-9FFF, U+FF00-FFEF; }

:root {
  color-scheme: light dark;
  --ink: #23305E;
  --ink-2: #5B668C;
  --paper: #FFFFFF;
  --tile: #FFF3E0;
  --line: #E4E7F1;
  --orange: #FF7A45;
  --orange-deep: #E25E2B;
  --orange-text: #C2481A;
  --blue: #3E7BFA;
  --blue-deep: #2A60D6;
  --blue-text: #2A60D6;
  --mark: #FFD84D;
  --stage: #23305E;
  --stage-text: #FFF3E0;
  --stage-2: #B9C2DE;
  --stage-blue: #9DBBFF;
  --headphones: #23305E;
  --cushion: #3F4F8A;
  /* the app's own colors, for the pieces of its screens */
  --app-bg: #FFFFFF;
  --app-grouped: #F2F2F7;
  --app-raised: #F2F2F7;
  --app-fill: #EEEEF0;
  --app-text: #000000;
  --app-text-2: #6C6C70;
  --app-tint: #4A7AD9;
  --app-sentence: rgba(74, 122, 217, 0.12);
  --app-word: rgba(255, 204, 0, 0.5);
  --app-shadow: 0 1px 2px rgba(35, 48, 94, 0.08), 0 12px 32px rgba(35, 48, 94, 0.14);
  --app-green: #248A3D;
  --app-red: #D70015;

  --font-page: "Rounded", "Rounded JP", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  --font-book: "Book", "Book JP", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --font-app: system-ui, -apple-system, "Hiragino Sans", "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
  --measure: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F3ECDD; --ink-2: #AEB6D3; --paper: #11182F; --tile: #1B2443; --line: #29335A;
    --orange-text: #FF9A6E; --blue-text: #9DBBFF; --stage: #23305E;
    --headphones: #F6EEDD; --cushion: #D9CDB5;
    --app-bg: #1C1C1E; --app-grouped: #000000; --app-raised: #2C2C2E; --app-fill: #2C2C2E; --app-text: #FFFFFF; --app-text-2: #AEAEB2;
    --app-tint: #6C9BF0; --app-sentence: rgba(108, 155, 240, 0.2); --app-word: rgba(255, 214, 10, 0.42);
    --app-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
    --app-green: #30D158; --app-red: #FF6961;
  }
}
:root[data-theme="dark"] {
  --ink: #F3ECDD; --ink-2: #AEB6D3; --paper: #11182F; --tile: #1B2443; --line: #29335A;
  --orange-text: #FF9A6E; --blue-text: #9DBBFF; --stage: #23305E;
  --headphones: #F6EEDD; --cushion: #D9CDB5;
  --app-bg: #1C1C1E; --app-grouped: #000000; --app-raised: #2C2C2E; --app-fill: #2C2C2E; --app-text: #FFFFFF; --app-text-2: #AEAEB2;
  --app-tint: #6C9BF0; --app-sentence: rgba(108, 155, 240, 0.2); --app-word: rgba(255, 214, 10, 0.42);
  --app-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
  --app-green: #30D158; --app-red: #FF6961;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-page);
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:lang(ja) body, body:lang(ja) { line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: 0.01em; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--paper); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: 0; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(35, 48, 94, 0.08); }
.site-nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); }
.head-tools { display: flex; align-items: center; gap: 16px; margin-left: auto; font-size: 15px; font-weight: 500; }
.site-nav + .head-tools { margin-left: 4px; }
.lang-switch { color: var(--ink-2); text-decoration: none; }
.lang-switch:hover { color: var(--ink); }
.soon { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 500; font-size: 15px; white-space: nowrap; }
.soon svg { width: 16px; height: 16px; }
@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-nav + .head-tools { margin-left: auto; }
}
@media (max-width: 420px) {
  .site-head .soon { display: none; }
}

/* Hero */
.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: clamp(24px, 5vw, 72px); }
.hero h1 { font-size: clamp(42px, 6.4vw, 80px); line-height: 1.04; max-width: 11em; }
:lang(ja) .hero h1 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1.22; }
.lede { margin-top: 24px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; max-width: 34em; color: var(--ink); }
:lang(ja) .lede { line-height: 1.9; max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; }
.cta .soon { padding: 13px 22px; font-size: 16px; }
.cta p { color: var(--ink-2); font-size: 15px; }
.mascots { width: 100%; max-width: 400px; justify-self: center; }
.mascots svg { width: 100%; height: auto; overflow: visible; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .mascots { order: -1; max-width: 168px; justify-self: start; margin-left: -10px; }
}

/* The stage: a book's lines, lit word by word as the narrator reads */
.stage { background: var(--stage); color: var(--stage-text); padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); }
.stage-head { display: flex; align-items: center; gap: 20px; }
.play { flex: none; width: 68px; height: 68px; border-radius: 50%; border: 0; background: var(--orange); color: var(--stage); display: grid; place-items: center; cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease; }
.play:hover { background: #FF8B5C; }
.play:active { transform: scale(0.96); }
.play:focus-visible { outline-color: var(--stage-text); }
.play svg { width: 28px; height: 28px; }
.play .icon-pause, .play[aria-pressed="true"] .icon-play { display: none; }
.play[aria-pressed="true"] .icon-pause { display: block; }
.stage h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; }
.stage-head p { color: var(--stage-2); font-size: 15px; margin-top: 4px; }
.duet { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: clamp(22px, 3vw, 36px); max-width: 1000px; }
.line { margin: 0; padding: 10px 14px; margin-inline: -14px; border-radius: 14px; transition: background-color 0.25s ease; }
.line.is-current { background: rgba(255, 243, 224, 0.07); }
.original { display: block; font: 400 clamp(25px, 3.3vw, 42px)/1.34 var(--font-book); letter-spacing: -0.005em; font-variation-settings: "opsz" 48; }
.translation { display: block; margin-top: 10px; font: 400 clamp(17px, 1.7vw, 21px)/1.55 var(--font-book); color: var(--stage-blue); max-width: 46em; }
.translation:lang(ja) { font-size: clamp(17px, 1.75vw, 21px); line-height: 1.8; font-weight: 500; letter-spacing: 0.03em; }
.word { border-radius: 0.14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; cursor: pointer; transition: background-color 0.08s linear, color 0.08s linear; }
.word.is-current { background: var(--mark); color: var(--stage); box-shadow: 0 0 0 0.06em var(--mark); }
.stage-foot { display: flex; align-items: center; gap: 16px; margin-top: clamp(28px, 4vw, 44px); max-width: 1000px; }
.scrub { flex: 1; appearance: none; -webkit-appearance: none; height: 28px; background: transparent; cursor: pointer; margin: 0; }
.scrub::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(var(--orange), var(--orange)) 0 / var(--progress, 0%) 100% no-repeat, rgba(255, 243, 224, 0.2); }
.scrub::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 243, 224, 0.2); }
.scrub::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--orange); }
.scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--stage-text); border: 0; }
.scrub::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--stage-text); border: 0; }
.scrub:focus-visible { outline: 3px solid var(--stage-text); outline-offset: 2px; }
.clock { font: 500 14px/1 var(--font-app); font-variant-numeric: tabular-nums; color: var(--stage-2); min-width: 7.5em; text-align: right; }
.credit { margin-top: 18px; font-size: 13px; line-height: 1.6; color: var(--stage-2); max-width: 60em; }
.credit a { color: var(--stage-text); }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 40em; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.1; }
:lang(ja) .section-head h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.35; }
.section-head p { margin-top: 18px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); }
.pro-tag { display: inline-block; vertical-align: 0.15em; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font: 500 13px/1.5 var(--font-page); letter-spacing: 0.02em; color: var(--orange-text); background: color-mix(in srgb, var(--orange) 14%, transparent); }

/* Learning: one sentence, its translation, your turn */
.turns { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: 1.15fr 1fr 0.8fr; gap: 0; counter-reset: turn; }
.turn { position: relative; padding: 0 clamp(16px, 2.4vw, 32px) 0 0; counter-increment: turn; }
.turn + .turn { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.wave { height: 64px; width: 100%; }
.turn-original .wave { color: var(--orange); }
.turn-translation .wave { color: var(--blue); }
.turn-yours .wave { color: var(--ink-2); opacity: 0.45; }
.turn-text { margin-top: 18px; font: 400 19px/1.45 var(--font-book); }
.turn-original .turn-text { color: var(--orange-text); }
.turn-translation .turn-text { color: var(--blue-text); }
.turn-text:lang(ja) { font-size: 17px; line-height: 1.75; font-weight: 500; }
.turn-yours .turn-text { color: var(--ink-2); font-family: var(--font-page); font-size: 17px; }
.turn h3 { margin-top: 14px; font-size: 17px; font-weight: 500; color: var(--ink); display: flex; gap: 10px; align-items: baseline; }
.turn h3::before { content: counter(turn); flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 800; transform: translateY(-1px); }
.turn-options { margin-top: clamp(28px, 4vw, 44px); max-width: 44em; color: var(--ink-2); }
@media (max-width: 820px) {
  .turns { grid-template-columns: 1fr; gap: 28px; }
  .turn, .turn + .turn { padding: 0; border-left: 0; }
  .turn + .turn { padding-top: 28px; border-top: 1px solid var(--line); }
}

/* Study: pieces of the app, at their own sizes */
.study { margin-top: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 32px); align-items: start; }
.piece-word { grid-column: 1 / span 7; grid-row: 1; }
.piece-review { grid-column: 8 / span 5; grid-row: 1 / span 2; }
.piece-dictation { grid-column: 1 / span 7; grid-row: 2; }
.piece-explain { grid-column: 1 / span 7; grid-row: 3; }
.piece-export { grid-column: 8 / span 5; grid-row: 3; align-self: center; }
.piece figcaption { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 30em; }
.piece figcaption strong { display: block; color: var(--ink); font-weight: 800; font-size: 18px; margin-bottom: 2px; }
.piece { margin: 0; }
@media (max-width: 900px) {
  .study { grid-template-columns: 1fr; }
  .piece, .piece-word, .piece-review, .piece-dictation, .piece-explain, .piece-export { grid-column: 1; grid-row: auto; }
}

/* the app's look */
.app { font-family: var(--font-app); color: var(--app-text); background: var(--app-bg); border-radius: 26px; box-shadow: var(--app-shadow); padding: 22px; font-size: 16px; line-height: 1.35; letter-spacing: -0.01em; }
.app-transcript { padding: 26px 22px 22px; background: var(--app-bg); }
.app-transcript .app-line { font-size: 21px; line-height: 1.38; }
.app-transcript .app-line + .app-trans { margin-top: 6px; color: var(--app-text-2); font-size: 16px; }
.app-sel { background: var(--app-sentence); border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.app-hit { background: var(--app-word); border-radius: 4px; }
.popover { position: relative; margin: 0 0 18px; padding: 18px 20px 14px; border-radius: 22px; background: var(--app-raised); max-width: 360px; }
.popover::after { content: ""; position: absolute; left: 30px; bottom: -9px; width: 20px; height: 20px; background: inherit; transform: rotate(45deg); border-radius: 3px; }
.popover .w { font-size: 24px; font-weight: 600; }
.popover .lemma { color: var(--app-text-2); font-size: 15px; margin-top: 2px; }
.popover .meaning { margin-top: 8px; font-size: 17px; }
.controls { display: flex; justify-content: space-between; gap: 6px; margin-top: 14px; color: var(--app-tint); font-size: 12px; text-align: center; }
.controls span { display: grid; justify-items: center; gap: 4px; min-width: 52px; }
.controls svg { width: 24px; height: 24px; }
.app-review { padding: 26px 22px 22px; }
.app-review .count { text-align: center; font-weight: 600; font-size: 17px; }
.app-review .kind { text-align: center; color: var(--app-text-2); font-size: 13px; margin-top: 14px; }
.app-review .sentence { font-size: 20px; line-height: 1.38; margin-top: 12px; }
.app-review .sentence b { color: var(--app-tint); font-weight: 700; }
.app-review .ask { color: var(--app-text-2); margin-top: 10px; font-size: 16px; }
.app-review hr { border: 0; border-top: 1px solid color-mix(in srgb, var(--app-text) 14%, transparent); margin: 18px 0 14px; }
.app-review .answer-word { font-weight: 600; font-size: 17px; }
.app-review .answer { font-size: 20px; margin-top: 2px; }
.app-review .from { color: var(--app-text-2); font-size: 12px; margin-top: 8px; }
.round-buttons { display: flex; justify-content: center; gap: 22px; margin-top: 22px; }
.round { width: 52px; height: 52px; border-radius: 50%; background: var(--app-tint); color: #fff; display: grid; place-items: center; }
.round svg { width: 24px; height: 24px; }
.grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; }
.grades span { display: grid; justify-items: center; padding: 9px 2px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.grades small { font-weight: 400; font-size: 12px; color: var(--app-text-2); }
.g-again { color: var(--app-red); background: color-mix(in srgb, var(--app-red) 13%, transparent); }
.g-hard { color: #C25700; background: rgba(255, 149, 0, 0.15); }
.g-good { color: var(--app-green); background: color-mix(in srgb, var(--app-green) 13%, transparent); }
.g-easy { color: var(--app-tint); background: color-mix(in srgb, var(--app-tint) 14%, transparent); }
:root[data-theme="dark"] .g-hard { color: #FFB340; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .g-hard { color: #FFB340; } }
.app-dictation .score { font-size: 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.app-dictation .score small { font-size: 12px; font-weight: 400; color: var(--app-text-2); }
.app-dictation .label { color: var(--app-text-2); font-size: 12px; margin-top: 14px; }
.app-dictation .said { font-size: 20px; margin-top: 2px; }
.app-dictation .wrote { font-size: 17px; margin-top: 2px; }
.ok { color: var(--app-green); }
.miss { color: var(--app-red); }
.wrote .miss { text-decoration: line-through; }
.app-dictation .trans { color: var(--app-text-2); margin-top: 12px; font-size: 15px; }
.app-explain { padding: 0; overflow: hidden; }
.sheet-bar { display: flex; align-items: center; justify-content: center; position: relative; padding: 18px 22px 10px; font-weight: 600; font-size: 17px; }
.sheet-bar::before { content: ""; position: absolute; top: 7px; width: 36px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--app-text) 22%, transparent); }
.app-explain .quote { margin: 6px 22px 0; padding: 16px 18px; border-radius: 18px; background: var(--app-raised); font-size: 17px; line-height: 1.4; }
.app-explain .body { padding: 16px 22px 24px; font-size: 16px; line-height: 1.5; }
.app-explain .body b { font-weight: 600; }
.files { display: flex; flex-wrap: wrap; gap: 12px; }
.file { position: relative; width: 74px; height: 92px; border-radius: 10px 22px 10px 10px; background: var(--app-bg); box-shadow: var(--app-shadow); display: grid; align-content: end; justify-items: center; padding-bottom: 12px; font: 600 14px/1 var(--font-app); color: var(--app-text); }
.file::before { content: ""; position: absolute; top: 0; right: 0; width: 22px; height: 22px; border-radius: 0 0 0 8px; background: var(--app-fill); }
.file:nth-child(odd) { color: var(--orange-text); }
.file:nth-child(even) { color: var(--blue-text); }

/* Privacy */
.section.privacy-band { background: var(--tile); padding: clamp(64px, 9vw, 120px) 0; }
.privacy-band + .section { padding-top: clamp(64px, 9vw, 120px); }
.privacy-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.facts li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.facts svg { width: 32px; height: 32px; color: var(--ink); }
.facts strong { display: block; font-weight: 800; font-size: 18px; line-height: 1.35; }
.facts p { color: var(--ink-2); margin-top: 4px; }
@media (max-width: 820px) { .privacy-band .wrap { grid-template-columns: 1fr; } }

/* The player */
.features { list-style: none; margin: clamp(32px, 5vw, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px clamp(24px, 3vw, 44px); }
.features li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.features svg { width: 26px; height: 26px; color: var(--ink); margin-top: 2px; }
.features strong { display: block; font-weight: 800; font-size: 17px; line-height: 1.4; }
.features p { color: var(--ink-2); font-size: 16px; margin-top: 2px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Languages */
.hellos { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 6px 26px; font: 400 clamp(26px, 3.6vw, 44px)/1.3 var(--font-book); }
.hellos span:nth-child(odd) { color: var(--orange-text); }
.hellos span:nth-child(even) { color: var(--blue-text); }
.hellos [lang="ko"], .hellos [lang="zh"], .hellos [lang="ar"], .hellos [lang="ru"], .hellos [lang="hi"], .hellos [lang="th"] { font-family: var(--font-app); font-weight: 300; }
.lang-notes { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px clamp(24px, 4vw, 56px); max-width: 980px; color: var(--ink-2); }
.lang-notes strong { color: var(--ink); font-weight: 800; display: block; }
@media (max-width: 700px) { .lang-notes { grid-template-columns: 1fr; } }

/* Pricing */
.plans { margin-top: clamp(32px, 5vw, 52px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); max-width: 980px; }
.plan { border-radius: 28px; padding: clamp(24px, 3vw, 36px); border: 1.5px solid var(--line); }
.plan-pro { border-color: transparent; background: var(--tile); }
.plan h3 { font-size: 24px; }
.price { margin-top: 8px; font-size: clamp(34px, 4vw, 44px); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
.price small { font-size: 16px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-left: 6px; }
.plan ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.plan li::before { content: ""; width: 12px; height: 12px; margin-top: 0.45em; border-radius: 4px; background: var(--blue); }
.plan-pro li::before { background: var(--orange); }
.plan .note { margin-top: 22px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: clamp(28px, 4vw, 44px); max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 800; font-size: 18px; line-height: 1.45; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; border-right: 2.5px solid var(--ink-2); border-bottom: 2.5px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 44em; }

/* Maker's note and footer */
.maker { display: grid; grid-template-columns: 76px 1fr; gap: 22px; align-items: start; max-width: 760px; }
.maker img { width: 76px; height: 76px; border-radius: 18px; }
.maker p { font-size: 18px; line-height: 1.7; }
.maker p + p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--ink-2); }
.site-foot .wrap { display: grid; gap: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 500; }
.foot-links a { text-decoration: none; color: var(--ink); }
.foot-links a:hover { text-decoration: underline; }
.legal { font-size: 13px; }

/* Plain text pages: privacy policy, support */
.doc { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.doc .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.doc h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.12; }
:lang(ja) .doc h1 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.35; }
.doc .updated { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.doc h2 { font-size: 23px; margin-top: 44px; line-height: 1.3; }
.doc h3 { font-size: 18px; margin-top: 26px; }
.doc p, .doc ul { margin-top: 14px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 8px; }
.doc .summary { margin-top: 28px; padding: 22px 26px; border-radius: 22px; background: var(--tile); }
.doc .summary ul { margin: 0; }
.contact { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.button { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 500; }
.button:hover { text-decoration: none; background: color-mix(in srgb, var(--ink) 88%, var(--blue)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .app { border-radius: 22px; padding: 18px; }
  .app-transcript .app-line { font-size: 19px; }
}
.mascots .hp { fill: var(--headphones); }
.mascots .hp-band { stroke: var(--headphones); }
.mascots .cushion { fill: var(--cushion); }
@media (max-width: 600px) {
  .files { gap: 10px; }
  .file { width: 60px; height: 76px; font-size: 13px; }
}
:lang(ja) { line-break: strict; }
:lang(ja) :is(h1, h2, h3, .lede, summary, .facts strong, .features strong, figcaption strong) { word-break: auto-phrase; }
.contact p { color: var(--ink-2); font-size: 15px; }

/* Press kit and Start pages. */
.kit-facts { margin-top: 18px; display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; }
.kit-facts dt { font-weight: 600; }
.kit-facts dd { margin: 0; }
.shots { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px; }
.shots a { display: block; }
.shots img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.shots .icon img { border-radius: 22%; }
.classics { list-style: none; padding-left: 0 !important; }
.classics li { padding: 14px 0; border-top: 1px solid var(--line); margin-top: 0 !important; }
.classics .lang { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.classics .meta { color: var(--ink-2); }
.classics code { display: block; margin-top: 6px; font-size: 13px; overflow-wrap: anywhere; color: var(--ink-2); }
@media (max-width: 600px) {
  .kit-facts { grid-template-columns: 1fr; gap: 2px; }
  .kit-facts dd { margin-bottom: 10px; }
}
