/* Generated from design/tokens.json by apps/site/build.mjs. Do not edit. */
:root {
  color-scheme: light dark;
  --koto-color-washi: #F7F3E9;
  --koto-color-sumi: #1F3A32;
  --koto-color-matcha: #698976;
  --koto-color-matcha-ink: #405B4E;
  --koto-color-torii: #A64230;
  --koto-color-wood: #B9A58A;
  --koto-color-paper: #FFFDF7;
  --koto-color-forest: #1F3A32;
  --koto-color-line: #CDD2C4;
  --koto-color-muted: #657458;
  --koto-color-sage: #DDE4D6;
  --koto-color-sand: #E6D7C6;
  --koto-color-moss: #D7DFD5;
  --koto-color-clay: #EADDD2;
  --koto-color-washi-shade: #E8E6DB;
  --koto-color-mist: #E1E6D9;
  --koto-color-stone: #58685E;
  --koto-color-frost: #CDD5C8;
  --koto-color-dew: #D1DCCB;
  --koto-color-rating-again: #F0D8D0;
  --koto-color-rating-hard: #E8DDCA;
  --koto-color-rating-good: #D9E3D3;
  --koto-color-rating-easy: #C7D8C3;
  --koto-color-sage-green: #698976;
  --koto-color-soft-moss: #CBD3AD;
  --koto-color-coral: #ED826C;
  --koto-color-peach: #F8C3A4;
  --koto-color-night: #142820;
  --koto-color-night-surface: #20382E;
  --koto-color-night-raised: #2D493C;
  --koto-color-night-line: #60766A;
  --koto-color-night-muted: #C0CEBE;
  --koto-color-night-ink: #F7F3E9;
  --koto-color-warning-ink: #745016;
  --koto-color-success-ink: #315F43;
  --koto-color-dark-warning: #F8C3A4;
  --koto-color-dark-tintsage: #2D493C;
  --koto-color-dark-tintsand: #493D2E;
  --koto-color-dark-tintmoss: #34462F;
  --koto-color-dark-tintclay: #4B3933;
  --koto-color-dark-ratingagain: #58372F;
  --koto-color-dark-ratinghard: #4B402B;
  --koto-color-dark-ratinggood: #304B37;
  --koto-color-dark-ratingeasy: #24473C;
  --koto-radius-small: 8px;
  --koto-radius-medium: 12px;
  --koto-radius-large: 20px;
  --koto-radius-xl: 26px;
  --koto-font-ui: Inter, system-ui, sans-serif;
  --koto-font-japanese: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --koto-font-display: Inter, "Noto Sans JP", sans-serif;
  --koto-motion: 160ms;
  --koto-background: #F7F3E9;
  --koto-surface: #FFFDF7;
  --koto-text: #1F3A32;
  --koto-text-secondary: #405B4E;
  --koto-text-inactive: #58685E;
  --koto-accent: #A64230;
  --koto-primary: #1F3A32;
  --koto-on-primary: #F7F3E9;
  --koto-on-primary-muted: #CDD5C8;
  --koto-on-primary-eyebrow: #D1DCCB;
  --koto-primary-soft: #CBD3AD;
  --koto-on-primary-soft: #1F3A32;
  --koto-border: #CDD2C4;
  --koto-selected: #DDE4D6;
  --koto-sidebar: #E8E6DB;
  --koto-stat: #E1E6D9;
  --koto-focus-ring: #A64230;
  --koto-progress-track: #CDD2C4;
  --koto-progress-fill: #405B4E;
  --koto-warm: #B9A58A;
  --koto-coral: #ED826C;
  --koto-hero: #1F3A32;
  --koto-success: #315F43;
  --koto-warning: #745016;
  --koto-error: #A64230;
  --koto-highlight: #F8C3A4;
  --koto-knowledge-new: #A64230;
  --koto-knowledge-learning: #745016;
  --koto-knowledge-known: #315F43;
  --koto-tint-sage: #DDE4D6;
  --koto-tint-sand: #E6D7C6;
  --koto-tint-moss: #D7DFD5;
  --koto-tint-clay: #EADDD2;
  --koto-rating-again: #F0D8D0;
  --koto-rating-hard: #E8DDCA;
  --koto-rating-good: #D9E3D3;
  --koto-rating-easy: #C7D8C3;
  --koto-action-background: #1F3A32;
}
@media (prefers-color-scheme: dark) {
  :root {
    --koto-background: #142820;
    --koto-surface: #20382E;
    --koto-text: #F7F3E9;
    --koto-text-secondary: #C0CEBE;
    --koto-text-inactive: #C0CEBE;
    --koto-accent: #F8C3A4;
    --koto-primary: #CBD3AD;
    --koto-on-primary: #F7F3E9;
    --koto-on-primary-muted: #CDD5C8;
    --koto-on-primary-eyebrow: #D1DCCB;
    --koto-primary-soft: #2D493C;
    --koto-on-primary-soft: #F7F3E9;
    --koto-border: #60766A;
    --koto-selected: #2D493C;
    --koto-sidebar: #20382E;
    --koto-stat: #2D493C;
    --koto-focus-ring: #F8C3A4;
    --koto-progress-track: #60766A;
    --koto-progress-fill: #CBD3AD;
    --koto-warm: #F8C3A4;
    --koto-coral: #ED826C;
    --koto-hero: #1F3A32;
    --koto-success: #CBD3AD;
    --koto-warning: #F8C3A4;
    --koto-error: #F8C3A4;
    --koto-highlight: #2D493C;
    --koto-knowledge-new: #F8C3A4;
    --koto-knowledge-learning: #F7F3E9;
    --koto-knowledge-known: #CBD3AD;
    --koto-tint-sage: #2D493C;
    --koto-tint-sand: #493D2E;
    --koto-tint-moss: #34462F;
    --koto-tint-clay: #4B3933;
    --koto-rating-again: #58372F;
    --koto-rating-hard: #4B402B;
    --koto-rating-good: #304B37;
    --koto-rating-easy: #24473C;
    --koto-action-background: #1F3A32;
  }
}

/* Koto Study landing page: a cinematic opening, editorial serif headlines, warm reading panels.
   Colours and radii come from design/tokens.json (the build puts them above this file); the opening and the forest
   interlude keep the dark palette in both themes. */

/* Latin-only cuts made by tools/make-fonts.py: Inter for the text, Newsreader for the headlines. */
@font-face {
  font-family: Inter;
  src: url(/assets/fonts/inter-latin.woff2?v=acf0381f9f) format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url(/assets/fonts/newsreader-latin.woff2?v=345fea6893) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url(/assets/fonts/newsreader-italic-latin.woff2?v=00892d48e1) format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --gutter: 56px;
  --display: Newsreader, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --soft: var(--koto-stat);
  --button-edge: transparent;
  --shadow-card: 0 24px 70px rgb(31 58 50 / 8%);
}
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --button-edge: var(--koto-border);
    --shadow-card: 0 24px 70px rgb(0 0 0 / 35%);
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 32px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--koto-background);
  color: var(--koto-text);
  font: 400 1rem/1.65 var(--koto-font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

:lang(ja) { font-family: var(--koto-font-japanese); }
span:lang(ja) { white-space: nowrap; }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 400; }
h1, h2 { font-family: var(--display); letter-spacing: -0.028em; word-spacing: 0.04em; line-height: 1.06; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); }
h3 { font-size: 1.6rem; line-height: 1.3; }
em { font-family: var(--display); font-weight: 400; }
p + p { margin-top: 1rem; }
[hidden] { display: none !important; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a, button { transition: background-color 180ms, color 180ms, transform 180ms; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--koto-focus-ring); outline-offset: 4px; border-radius: 4px; }
.on-dark { --koto-focus-ring: var(--koto-color-peach); color: var(--koto-color-washi); }

.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.section { padding-block: 110px; }
.muted { color: var(--koto-text-secondary); }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.17em; line-height: 1.6; text-transform: uppercase; }

.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 20;
  padding: 12px 16px;
  border-radius: var(--koto-radius-medium);
  background: var(--koto-surface);
  color: var(--koto-text);
  font-weight: 600;
}
.skip:focus { top: 12px; }

/* Actions */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.button:hover { transform: translateY(-2px); }
.coral { background: var(--koto-color-coral); color: var(--koto-color-night); }
.coral:hover { background: var(--koto-color-peach); }
.dark { border-color: var(--button-edge); background: var(--koto-action-background); color: var(--koto-on-primary); }
.dark:hover { background: var(--koto-color-matcha-ink); }
.pill, .demo-label {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--koto-border);
  border-radius: 999px;
  background: var(--soft);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
  white-space: nowrap;
}

/* Header: over the opening picture on the start page, a forest bar elsewhere */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px var(--gutter);
  border-bottom: 1px solid rgb(247 243 233 / 13%);
  color: var(--koto-color-washi);
  --koto-focus-ring: var(--koto-color-peach);
}
.header--solid { position: static; background: var(--koto-hero); }
.brand { display: inline-flex; align-items: center; min-height: 44px; border-radius: 8px; text-decoration: none; }
.brand img { width: auto; height: 40px; }
.brand-label {
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid rgb(255 255 255 / 31%);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.header nav { display: flex; align-items: center; gap: 34px; font-size: 0.875rem; }
.header nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.header nav a:hover { color: var(--koto-color-peach); }
.header nav .nav-cta { padding: 0 20px; border: 1px solid rgb(247 243 233 / 38%); border-radius: 999px; }

/* Opening */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: min(900px, 100svh);
  min-height: 760px;
  background: var(--koto-color-night);
}
.hero-art { position: absolute; inset: -2% -3% -8%; z-index: -3; animation: landscape-arrive 2.6s var(--ease) both; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgb(10 30 24 / 62%), rgb(10 30 24 / 30%) 46%, rgb(10 30 24 / 0%) 78%),
    linear-gradient(0deg, rgb(10 30 24 / 48%), transparent 40%),
    linear-gradient(180deg, rgb(10 30 24 / 64%), rgb(10 30 24 / 50%) 10%, transparent 25%);
}
.hero-content { position: relative; z-index: 1; padding-top: 190px; text-shadow: 0 1px 18px rgb(10 30 24 / 40%); }
.hero-content .button { text-shadow: none; }
.hero h1 { max-width: 880px; margin-top: 25px; font-size: clamp(4.8rem, 8.6vw, 8.2rem); letter-spacing: -0.035em; line-height: 0.97; text-wrap: initial; }
.hero-copy { margin-top: 26px; color: #f0eee2; font-size: 1.05rem; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: 34px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; font-weight: 500; text-decoration: underline; text-decoration-color: rgb(247 243 233 / 45%); text-underline-offset: 0.5em; }
.hero-note { margin-top: 17px; color: #dbe2d4; font-size: 0.75rem; }
.hero-enter { animation: enter 1.2s var(--ease) both; }
.hero-enter:nth-child(2) { animation-delay: 0.12s; }
.hero-enter:nth-child(3) { animation-delay: 0.22s; }
.hero-enter:nth-child(4) { animation-delay: 0.32s; }
.hero-enter:nth-child(5) { animation-delay: 0.42s; }
.vertical-jp {
  position: absolute;
  top: 210px;
  right: 9%;
  writing-mode: vertical-rl;
  color: rgb(247 243 233 / 74%);
  font: 1.3rem/1.7 var(--koto-font-japanese);
  letter-spacing: 0.35em;
  text-shadow: 0 0 14px rgb(10 30 24 / 70%);
}
.landscape-caption { display: none; position: absolute; left: var(--gutter); bottom: 48px; color: #d1dbcc; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; }
.landscape-caption span { display: block; margin-top: 8px; letter-spacing: 0.15em; }
.hero-preview {
  position: absolute;
  right: 7.5%;
  bottom: 100px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 370px;
  padding: 23px;
  border-radius: 12px;
  background: rgb(247 243 233 / 94%);
  box-shadow: 0 15px 50px rgb(16 37 29 / 15%);
  color: var(--koto-color-forest);
  transform: rotate(-3deg);
}
.hero-preview small { display: block; margin-bottom: 4px; font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-preview strong { display: block; font-size: 0.85rem; font-weight: 500; }
.hero-preview div > span { color: var(--koto-color-matcha-ink); font-size: 0.7rem; }
.mini-sun { flex: none; width: 46px; height: 46px; border: 8px solid var(--koto-color-peach); border-radius: 50%; background: var(--koto-color-coral); }
.preview-kanji { margin-left: auto; color: var(--koto-color-sage-green); font-size: 2rem; }
.waves { position: absolute; left: -10%; bottom: -2px; width: 120%; height: 90px; pointer-events: none; }
.waves i {
  position: absolute;
  inset: 0;
  background: var(--koto-background);
  -webkit-mask: url(/assets/wave.svg?v=4d593e559b) center / 100% 100% no-repeat;
  mask: url(/assets/wave.svg?v=4d593e559b) center / 100% 100% no-repeat;
}
.waves i:first-child { bottom: 15px; opacity: 0.25; }
.js .waves i { animation: wave-drift 17s ease-in-out infinite alternate; }
.js .waves i:first-child { animation-duration: 23s; animation-direction: alternate-reverse; }
.motion-button {
  position: absolute;
  right: 30px;
  bottom: 35px;
  z-index: 2;
  min-height: 44px;
  padding: 7px 16px;
  border: 1px solid rgb(228 235 220 / 40%);
  border-radius: 999px;
  background: rgb(20 40 32 / 69%);
  color: var(--koto-color-washi);
  font-size: 0.75rem;
}

/* The idea */
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 100px; align-items: center; }
.intro h2 { margin-top: 20px; }
.intro-copy { max-width: 460px; font-size: 1.1rem; }
.intro-copy .muted { font-size: 1rem; }

/* What works today */
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 35px; }
.section-heading h2 { margin-top: 12px; font-size: clamp(2.3rem, 3.5vw, 3.2rem); }
.workspace { border: 1px solid var(--koto-border); border-radius: 24px; background: var(--koto-surface); box-shadow: var(--shadow-card); overflow: hidden; overflow-anchor: none; }
.tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; padding: 8px; border-bottom: 1px solid var(--koto-border); background: var(--soft); }
.tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 8px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}
.tabs a span { color: var(--koto-text-secondary); font-size: 0.8rem; }
.tabs a:hover { background: var(--koto-selected); }
.tabs a[aria-selected="true"] { background: var(--koto-action-background); color: var(--koto-on-primary); box-shadow: 0 2px 8px rgb(20 40 32 / 7%); }
.tabs a[aria-selected="true"] span { color: var(--koto-color-soft-moss); }
.panel { display: grid; grid-template-columns: 0.85fr 1.15fr; min-height: 555px; }
.panel + .panel { border-top: 1px solid var(--koto-border); }
.js .panel { animation: panel-in 0.4s var(--ease); }
.js .panel + .panel { border-top: 0; }
.panel-shot { display: flex; align-items: end; justify-content: center; margin: 24px; padding: 32px 28px 0; border-radius: 14px; overflow: hidden; }
.panel-shot--sage { background: var(--koto-tint-sage); }
.panel-shot--sand { background: var(--koto-tint-sand); }
.panel-shot--moss { background: var(--koto-tint-moss); }
.panel-shot--clay { background: var(--koto-tint-clay); }
.panel-shot img {
  width: min(100%, 310px);
  aspect-ratio: 390 / 610;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--koto-border);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 18px 40px -18px rgb(20 40 32 / 35%);
}
.panel-shot--low img { object-position: bottom; }
.reader { min-width: 0; padding: 48px 48px 40px 24px; align-self: center; }
.reader h3 { margin-top: 20px; font-family: var(--display); font-size: clamp(2rem, 3vw, 2.5rem); letter-spacing: -0.018em; line-height: 1.15; }
.reader > .muted { max-width: 52ch; margin-top: 14px; }
.points { max-width: 52ch; margin-top: 22px; }
.points li { padding: 13px 0; border-top: 1px solid var(--koto-border); font-size: 0.9375rem; }
.points li:last-child { border-bottom: 1px solid var(--koto-border); }
.wbw { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 14px; margin-top: 30px; }
.w { display: inline-flex; flex-direction: column; align-items: center; }
.wg { display: inline-flex; align-items: flex-end; gap: 4px; }
.w .jp { padding: 0 6px 6px; border-bottom: 3px solid var(--koto-text); font-size: 1.5rem; font-weight: 600; line-height: 1.5; }
.w--particle .jp { border-bottom-color: var(--koto-warm); }
.w rt { color: var(--koto-text-secondary); font-size: 0.5em; font-weight: 400; }
.w small { margin-top: 5px; color: var(--koto-text-secondary); font-family: var(--koto-font-ui); font-size: 0.8125rem; white-space: nowrap; }
.wbw .mark { padding-bottom: 30px; font-size: 1.5rem; font-weight: 600; }
.translation { margin-top: 22px; }
.translation summary { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 0.5em; cursor: pointer; list-style: none; }
.translation summary::-webkit-details-marker { display: none; }
.translation p { margin-top: 6px; color: var(--koto-text-secondary); }
.panel-note { margin-top: 20px; color: var(--koto-text-secondary); font-size: 0.75rem; line-height: 1.6; }
.demo-footnote { margin-top: 18px; color: var(--koto-text-secondary); font-size: 0.75rem; text-align: center; }
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 80px; }
.extras article { padding-top: 25px; border-top: 1px solid var(--koto-border); }
.extras h3 { font-family: var(--display); font-size: 1.8rem; letter-spacing: -0.012em; }
.extras p { max-width: 52ch; margin-top: 12px; color: var(--koto-text-secondary); font-size: 0.9375rem; }
.wide-shot { margin-top: 80px; }
.wide-shot img { width: 100%; border: 1px solid var(--koto-border); border-radius: 24px; box-shadow: var(--shadow-card); }
.wide-shot figcaption { margin-top: 16px; color: var(--koto-text-secondary); font-size: 0.75rem; text-align: center; }

/* Forest interlude */
.rhythm { position: relative; margin-top: 110px; background: var(--koto-hero); overflow: hidden; }
.rhythm::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -180px;
  width: 600px;
  height: 600px;
  border: 1px solid rgb(203 211 173 / 9%);
  border-radius: 48% 52% 62% 38%;
  box-shadow: 0 0 0 50px rgb(203 211 173 / 2%), 0 0 0 100px rgb(203 211 173 / 1%);
  pointer-events: none;
}
.rhythm-heading { position: relative; z-index: 1; text-align: center; }
.rhythm-heading .eyebrow { color: var(--koto-color-soft-moss); }
.rhythm h2 { margin-top: 20px; }
.rhythm h2 em { color: var(--koto-color-peach); }
.rhythm-heading > p:last-child { margin-top: 24px; color: #cfdbca; }
.journey { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; margin-top: 75px; }
.journey article { padding-top: 25px; border-top: 1px solid rgb(203 211 173 / 25%); }
.journey-symbol { color: var(--koto-color-peach); font-size: 1.25rem; }
.journey h3 { margin-top: 22px; font-family: var(--display); font-size: 1.8rem; }
.journey p { max-width: 290px; margin-top: 12px; color: #cfdbca; font-size: 0.9rem; }

/* What comes next, content, pricing */
.split-heading { display: grid; grid-template-columns: 1.1fr 1fr; gap: 100px; align-items: end; margin-bottom: 60px; }
.split-heading h2 { margin-top: 20px; }
.split-heading > p { max-width: 440px; }
.coming-list { display: grid; grid-template-columns: 1fr 1fr; gap: 50px 60px; }
.coming-list li { display: grid; gap: 10px; align-content: start; justify-items: start; padding-top: 25px; border-top: 1px solid var(--koto-border); }
.coming-list h3 { margin-top: 8px; font-family: var(--display); font-size: 1.8rem; letter-spacing: -0.012em; }
.coming-list p { max-width: 52ch; color: var(--koto-text-secondary); font-size: 0.9375rem; }
#coming, #pricing { padding-bottom: 0; }

.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 60px; }
.checks li { padding-top: 25px; border-top: 1px solid var(--koto-border); }
.checks h3 { font-family: var(--display); font-size: 1.6rem; letter-spacing: -0.012em; }
.checks p { margin-top: 10px; color: var(--koto-text-secondary); font-size: 0.9375rem; }
#content { padding-bottom: 0; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan { padding: 40px; border: 1px solid var(--koto-border); border-radius: 24px; background: var(--koto-surface); box-shadow: var(--shadow-card); }
.plan-when { display: flex; align-items: center; gap: 12px; min-height: 30px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase; }
.plan h3 { margin-top: 14px; font-family: var(--display); font-size: 2.6rem; letter-spacing: -0.018em; line-height: 1.15; }
.plan p:last-child { max-width: 44ch; margin-top: 12px; color: var(--koto-text-secondary); }

/* Closing */
.closing { text-align: center; }
.closing img { margin: 0 auto 25px; border-radius: 17px; }
.closing h2 { margin-top: 20px; }
.closing .button { margin-top: 32px; }
.closing > .muted { margin-top: 18px; font-size: 0.8rem; }

/* Legal placeholders and the 404 page */
.legal { display: grid; gap: 20px; justify-items: start; align-content: start; min-height: 46vh; }
.legal h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.legal .lead { max-width: 52ch; color: var(--koto-text-secondary); font-size: 1.1rem; }
.legal .text-link { text-decoration-color: currentColor; }

/* Footer */
.site-footer { padding-block: 32px 56px; border-top: 1px solid var(--koto-border); color: var(--koto-text-secondary); font-size: 0.75rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 25px; }
.footer-brand { display: inline-flex; align-items: center; min-height: 44px; border-radius: 8px; }
.footer-brand img { width: auto; height: 36px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.footer-links li { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 44px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-notes { display: grid; gap: 8px; max-width: 90ch; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--koto-border); line-height: 1.7; }
.footer-notes p + p { margin-top: 0; }

/* Motion: only with the script, never against the reader's settings */
.js-motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.js-motion .reveal.visible { opacity: 1; transform: none; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; transition: none !important; }
.motion-paused { scroll-behavior: auto; }
.motion-paused .reveal { opacity: 1; transform: none; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes landscape-arrive { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes wave-drift { from { transform: translateX(-2%) scaleY(0.88); } to { transform: translateX(2%) scaleY(1.12); } }
@keyframes panel-in { from { opacity: 0.35; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-motion .reveal { opacity: 1; transform: none; }
}

@media (min-width: 1600px) {
  .hero-content { padding-top: 240px; }
}
@media (max-width: 1100px) {
  .hero { height: auto; min-height: 850px; padding-bottom: 115px; }
  .hero-content { padding-top: 170px; }
  .hero h1 { font-size: 6rem; }
  .hero-preview { position: relative; right: auto; bottom: auto; width: 320px; margin: 45px 6% 0 auto; }
  .landscape-caption { display: block; }
  .intro, .split-heading { gap: 50px; }
  .checks { gap: 40px; }
  .tabs a { gap: 7px; font-size: 0.8rem; }
  .tabs a span { display: none; }
  .reader { padding: 36px 30px 32px 10px; }
  .journey { gap: 32px; }
  .extras, .coming-list { gap: 40px; }
}
@media (max-width: 760px) {
  .section { padding-block: 70px; }
  .header { padding-block: 18px; }
  .brand img { height: 36px; }
  .brand-label, .header nav > a:not(.nav-cta) { display: none; }
  .header nav .nav-cta { padding: 0 15px; font-size: 0.75rem; }
  .hero-content { padding-top: 150px; }
  .hero h1 { max-width: 620px; font-size: clamp(3.6rem, 15vw, 6.8rem); }
  .hero .eyebrow { font-size: 0.6rem; letter-spacing: 0.13em; }
  .hero-copy { max-width: 330px; margin-top: 24px; font-size: 0.95rem; }
  .hero-copy br { display: none; }
  .hero-actions { margin-top: 27px; }
  .hero-art img { object-position: center; }
  .hero-shade { background: linear-gradient(90deg, rgb(16 43 36 / 70%), rgb(16 43 36 / 46%)), linear-gradient(0deg, rgb(16 43 36 / 50%), transparent 60%), linear-gradient(180deg, rgb(16 43 36 / 66%), rgb(16 43 36 / 50%) 10%, transparent 30%); }
  .vertical-jp { display: none; }
  .hero-preview { width: 310px; max-width: calc(100% - 50px); min-height: 106px; margin: 45px 25px 0 auto; padding: 18px; }
  .hero-preview small { font-size: 0.6rem; }
  .preview-kanji { display: none; }
  .landscape-caption { bottom: 60px; font-size: 0.55rem; letter-spacing: 0.1em; }
  .landscape-caption span { display: none; }
  .motion-button { right: 16px; bottom: 28px; }
  .waves { height: 50px; }
  .intro, .split-heading { grid-template-columns: 1fr; gap: 28px; }
  .intro-copy { max-width: none; font-size: 1rem; }
  .split-heading { margin-bottom: 40px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 2.3rem; }
  .demo-label { margin-top: 16px; }
  .tabs { grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 6px; }
  .tabs a { min-height: 48px; padding: 8px 6px; }
  .panel { grid-template-columns: 1fr; min-height: 0; }
  .panel-shot { margin: 16px 16px 0; padding: 24px 20px 0; }
  .panel-shot img { width: min(100%, 270px); }
  .reader { padding: 28px 24px 30px; }
  .reader h3 { font-size: 2.1rem; }
  .w .jp, .wbw .mark { font-size: 1.3rem; }
  .wbw { gap: 16px 10px; }
  .demo-footnote { margin-inline: 10px; font-size: 0.7rem; }
  .extras, .coming-list, .checks, .plans { grid-template-columns: 1fr; gap: 30px; }
  .extras, .wide-shot { margin-top: 56px; }
  .wide-shot img { border-radius: 14px; }
  .rhythm { margin-top: 70px; }
  .rhythm-heading { text-align: left; }
  .rhythm-heading > p:last-child br { display: none; }
  .journey { grid-template-columns: 1fr; gap: 30px; margin-top: 42px; }
  .journey article { display: grid; grid-template-columns: 80px 1fr; gap: 8px 10px; }
  .journey-symbol { grid-row: span 2; padding-top: 6px; font-size: 1rem; }
  .journey h3 { margin-top: 0; font-size: 1.6rem; }
  .journey p { max-width: none; margin: 0; }
  .plan { padding: 28px 24px; }
  .closing h2 { font-size: 3rem; }
  .footer-top { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 370px) {
  .hero h1 { font-size: 3.3rem; }
  .hero .button { padding-inline: 20px; }
  .reader { padding-inline: 18px; }
  .closing h2 { font-size: 2.6rem; }
}
