:root {
  --font-display: "Space Grotesk", Inter, system-ui, sans-serif;
  --font-kanji: "Noto Serif JP", "Yu Mincho", serif;
  --bg: #130b1a;
  --bg-deep: #09050d;
  --surface: #190f21;
  --surface-raised: #21162a;
  --surface-high: #2d2137;
  --text: #f6e6fd;
  --muted: #b7a9be;
  --subtle: #7d7185;
  --border: rgba(204, 151, 255, 0.16);
  --primary: #cc97ff;
  --primary-bright: #e4c6ff;
  --primary-dark: #8d3ed8;
  --pink: #ff67ad;
  --blue: #699cff;
  --green: #31d58b;
  --error: #ff6e84;
  --header-bg: rgba(19, 11, 26, 0.72);
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
  --glow: 0 0 55px rgba(204, 151, 255, 0.14);
  --shell: min(1180px, calc(100% - 48px));
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f8f4fb;
  --bg-deep: #eee8f2;
  --surface: #ffffff;
  --surface-raised: #f3edf6;
  --surface-high: #e9e1ed;
  --text: #241829;
  --muted: #675b6d;
  --subtle: #8a7e90;
  --border: rgba(85, 42, 113, 0.14);
  --primary: #7c3aed;
  --primary-bright: #6426cf;
  --primary-dark: #5920b4;
  --pink: #c32a72;
  --blue: #2768d7;
  --green: #007a45;
  --error: #c52246;
  --header-bg: rgba(248, 244, 251, 0.78);
  --shadow: 0 28px 70px rgba(44, 21, 55, 0.14);
  --glow: 0 0 55px rgba(124, 58, 237, 0.1);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  transition: background-color 280ms ease, color 280ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

svg {
  display: block;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding-block: clamp(100px, 12vw, 168px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--primary);
  color: #24003d;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.scrolled {
  border-color: var(--border);
  background: var(--header-bg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  width: max-content;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  font-size: 19px;
  font-weight: 700;
}

.brand-mark {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(204, 151, 255, 0.22));
}

[data-theme="light"] .brand-mark,
[data-theme="light"] .window-brand img {
  filter: invert(1) drop-shadow(0 0 6px rgba(89, 32, 180, 0.12));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 180ms ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.theme-toggle,
.nav-toggle {
  display: grid;
  border: 0;
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface), transparent 12%);
}

.theme-toggle svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.sun-icon,
[data-theme="light"] .moon-icon {
  display: none;
}

[data-theme="light"] .sun-icon {
  display: block;
}

.nav-toggle {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-primary {
  background: var(--primary);
  color: #2d0050;
  box-shadow: 0 10px 32px rgba(204, 151, 255, 0.22);
}

[data-theme="light"] .button-primary {
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 14px 42px rgba(204, 151, 255, 0.33);
}

.button-small {
  min-height: 42px;
  padding: 0 19px;
  font-size: 12px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
}

.eyebrow > span {
  width: 28px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  align-items: center;
  min-height: min(900px, 100svh);
  padding-top: 122px;
  padding-bottom: 85px;
  gap: 48px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 30px;
}

.hero h1,
.section-copy h2,
.section-heading h2,
.privacy-copy h2,
.cta-inner h2 {
  margin: 22px 0 24px;
  letter-spacing: -0.065em;
  font-size: clamp(58px, 6.3vw, 88px);
  line-height: 0.94;
}

.hero h1 em,
.section-copy h2 em,
.section-heading h2 em,
.privacy-copy h2 em {
  color: var(--primary);
  font-family: var(--font-kanji);
  font-style: normal;
  font-weight: 500;
}

.hero-lede,
.section-copy > p,
.privacy-copy > p,
.cta-inner > p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 35px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.text-link span {
  color: var(--primary);
  font-size: 18px;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateY(3px);
}

.availability {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  color: var(--muted);
}

.availability-icon {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  place-items: center;
}

.availability-icon svg {
  width: 16px;
  fill: none;
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.availability > span:last-child {
  display: grid;
  gap: 2px;
}

.availability strong {
  color: var(--text);
  font-size: 12px;
}

.availability small {
  font-size: 10px;
}

.hero-visual {
  position: relative;
  min-height: 650px;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  inset: 8% -15% 0 -5%;
  z-index: -3;
  content: "";
  background:
    radial-gradient(circle at 48% 45%, rgba(204, 151, 255, 0.2), transparent 33%),
    radial-gradient(circle at 77% 66%, rgba(255, 103, 173, 0.11), transparent 27%);
  filter: blur(20px);
}

.hero-orbit {
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 54%;
  border: 1px solid var(--border);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-one {
  width: 510px;
  height: 510px;
  opacity: 0.55;
}

.orbit-two {
  width: 610px;
  height: 610px;
  border-style: dashed;
  opacity: 0.2;
  animation: orbit-spin 50s linear infinite;
}

.ink-circle {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 54%;
  display: grid;
  width: 430px;
  height: 430px;
  border: 4px solid color-mix(in srgb, var(--primary), transparent 84%);
  border-right-color: color-mix(in srgb, var(--primary), transparent 55%);
  border-bottom-color: transparent;
  border-radius: 48% 53% 47% 52%;
  place-items: center;
  transform: translate(-50%, -50%) rotate(-14deg);
  box-shadow: inset -8px 3px 0 color-mix(in srgb, var(--primary), transparent 95%);
}

.ink-circle::before,
.ink-circle::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.25;
}

.ink-circle::before {
  top: 6%;
  left: 2%;
  width: 5px;
  height: 5px;
  box-shadow: -8px 12px 0 -1px var(--primary), 5px -12px 0 -1px var(--primary);
}

.ink-circle::after {
  right: -2%;
  bottom: 24%;
  width: 7px;
  height: 7px;
  box-shadow: 11px -8px 0 -2px var(--primary), 8px 14px 0 -2px var(--primary);
}

.ink-circle span {
  color: var(--primary);
  font-family: var(--font-kanji);
  font-size: 230px;
  opacity: 0.03;
}

.phone {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(246, 230, 253, 0.18);
  background: #08050b;
  box-shadow: 0 55px 100px rgba(0, 0, 0, 0.52), 0 0 70px rgba(204, 151, 255, 0.12);
}

.phone-main {
  top: 45px;
  left: 50%;
  width: 300px;
  height: 610px;
  padding: 9px;
  border-radius: 43px;
  transform: translateX(-48%) rotate(3deg);
}

.phone-main::before {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 50%;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  background: #08050b;
  box-shadow: inset 0 0 3px rgba(105, 156, 255, 0.22), 0 0 0 2px rgba(8, 5, 11, 0.28);
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 44%, rgba(204, 151, 255, 0.08), transparent 37%),
    #130b1a;
}

[data-theme="light"] .phone {
  border-color: rgba(36, 24, 41, 0.2);
  background: #1b181e;
  box-shadow: 0 55px 100px rgba(44, 21, 55, 0.2), 0 0 70px rgba(99, 14, 212, 0.1);
}

[data-theme="light"] .phone-main::before {
  background: #1b181e;
}

[data-theme="light"] .phone-screen {
  background:
    radial-gradient(circle at 50% 44%, rgba(99, 14, 212, 0.07), transparent 37%),
    #fbf8fc;
}

[data-theme="light"] .app-topbar {
  color: #630ed4;
  background: rgba(251, 248, 252, 0.92);
  box-shadow: 0 8px 24px rgba(44, 21, 55, 0.1);
}

[data-theme="light"] .phone-menu i {
  background: #630ed4;
}

[data-theme="light"] .phone-app-logo {
  filter: invert(1) drop-shadow(0 0 4px rgba(99, 14, 212, 0.18));
}

[data-theme="light"] .app-heading span {
  border-bottom-color: #630ed4;
  color: #1b1b1e;
  box-shadow: 0 8px 10px -10px #630ed4;
}

[data-theme="light"] .session-count {
  color: #365b8c;
}

[data-theme="light"] .mini-flashcard {
  border-color: #630ed4;
  color: #1b1b1e;
  background: #f6f2f7;
  box-shadow: 0 0 24px rgba(99, 14, 212, 0.16), inset 0 0 14px rgba(99, 14, 212, 0.03);
}

[data-theme="light"] .mini-flashcard::before {
  background-image: radial-gradient(#630ed4 0.6px, transparent 0.6px);
}

[data-theme="light"] .lane-pill {
  border-color: rgba(99, 14, 212, 0.32);
  color: #630ed4;
}

[data-theme="light"] .mini-flashcard .meaning {
  color: #630ed4;
}

[data-theme="light"] .app-bottom-nav {
  border-top-color: rgba(99, 14, 212, 0.08);
  background: rgba(251, 248, 252, 0.96);
  box-shadow: 0 -10px 35px rgba(44, 21, 55, 0.1);
}

[data-theme="light"] .app-bottom-nav > span {
  color: #918897;
}

[data-theme="light"] .app-bottom-nav .active {
  color: #630ed4;
  background: rgba(99, 14, 212, 0.09);
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 17px;
  color: #cc97ff;
  background: rgba(19, 11, 26, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.app-topbar strong {
  text-transform: uppercase;
  letter-spacing: -0.04em;
  font-size: 14px;
}

.phone-menu {
  display: flex;
  width: 25px;
  height: 14px;
  padding-right: 7px;
  flex-direction: column;
  justify-content: space-between;
}

.phone-menu i {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #cc97ff;
  box-shadow: 0 0 5px rgba(204, 151, 255, 0.25);
}

.phone-app-logo {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(204, 151, 255, 0.22));
}

.app-heading {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.app-heading span {
  padding: 0 27px 7px;
  border-bottom: 1px solid #cc97ff;
  color: #f6e6fd;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 10px -10px #cc97ff;
}

.session-count {
  margin: 17px 0 12px;
  color: #b4a6bc;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
}

.mini-flashcard {
  position: relative;
  display: flex;
  width: 210px;
  height: 296px;
  margin: 0 auto;
  border: 2px solid #cc97ff;
  border-radius: 25px;
  outline: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #f6e6fd;
  background: #190f21;
  box-shadow: 0 0 24px rgba(204, 151, 255, 0.22), inset 0 0 14px rgba(204, 151, 255, 0.04);
}

.mini-flashcard::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  opacity: 0.13;
  background-image: radial-gradient(#cc97ff 0.6px, transparent 0.6px);
  background-size: 13px 13px;
}

.lane-pill {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 44px;
  height: 20px;
  border: 1px solid rgba(204, 151, 255, 0.4);
  border-radius: 8px;
  color: #cc97ff;
  font-size: 7px;
  font-weight: 700;
  place-items: center;
}

.mini-flashcard .kanji {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  font-family: var(--font-kanji);
  font-size: 87px;
  line-height: 1.2;
}

.mini-flashcard .meaning {
  position: relative;
  z-index: 1;
  color: #cc97ff;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
}

.app-bottom-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 64px;
  padding: 9px 7px 5px;
  border-top: 1px solid rgba(204, 151, 255, 0.06);
  background: rgba(19, 11, 26, 0.95);
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.32);
}

.app-bottom-nav > span {
  display: flex;
  min-width: 0;
  border-radius: 9px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #594c61;
}

.app-bottom-nav .active {
  color: #cc97ff;
  background: rgba(204, 151, 255, 0.1);
}

.app-bottom-nav small {
  font-size: 6px;
  font-weight: 700;
}

.app-bottom-nav i {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  font-style: normal;
  font-size: 13px;
}

.grid-icon {
  border: 1px solid currentColor;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent 45%, currentColor 46%, currentColor 54%, transparent 55%), linear-gradient(transparent 45%, currentColor 46%, currentColor 54%, transparent 55%);
}

.chart-icon {
  border-bottom: 1px solid currentColor;
  background: linear-gradient(to top, currentColor 45%, transparent 45%) 1px bottom/3px 11px no-repeat, linear-gradient(to top, currentColor 75%, transparent 75%) 7px bottom/3px 14px no-repeat, linear-gradient(to top, currentColor 58%, transparent 58%) 13px bottom/3px 13px no-repeat;
}

.float-card {
  position: absolute;
  z-index: 6;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-raised), transparent 12%);
  box-shadow: var(--shadow), var(--glow);
  backdrop-filter: blur(20px);
}

.float-streak {
  top: 130px;
  right: -8px;
  display: grid;
  width: 150px;
  padding: 16px 18px;
  transform: rotate(3deg);
}

.float-label {
  color: var(--pink);
  letter-spacing: 0.14em;
  font-size: 8px;
  font-weight: 700;
}

.float-streak strong {
  margin: 2px 0 -1px;
  color: var(--text);
  font-size: 37px;
  line-height: 1;
}

.float-streak > span:last-child {
  color: var(--muted);
  font-size: 8px;
}

.float-schedule {
  bottom: 78px;
  left: -15px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 190px;
  padding: 14px;
  transform: rotate(-4deg);
}

.schedule-icon {
  display: flex;
  align-items: end;
  gap: 3px;
  width: 37px;
  height: 37px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(105, 156, 255, 0.11);
}

.schedule-icon span {
  width: 5px;
  border-radius: 2px 2px 0 0;
  background: var(--blue);
}

.schedule-icon span:nth-child(1) { height: 8px; opacity: 0.45; }
.schedule-icon span:nth-child(2) { height: 17px; }
.schedule-icon span:nth-child(3) { height: 12px; opacity: 0.7; }

.float-schedule > div:last-child {
  display: grid;
  gap: 3px;
}

.float-schedule strong {
  font-size: 10px;
}

.float-schedule div > span {
  color: var(--muted);
  font-size: 8px;
}

.hero-footnote {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-self: end;
  margin-top: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--subtle);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 9px;
  font-weight: 700;
}

.hero-footnote span + span {
  border-left: 1px solid var(--border);
}

.path-section {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--bg-deep);
}

.path-section::before {
  position: absolute;
  top: -180px;
  right: -140px;
  width: 540px;
  height: 540px;
  border: 1px solid var(--border);
  border-radius: 50%;
  content: "";
  opacity: 0.45;
}

.path-grid,
.progress-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  align-items: center;
  gap: clamp(70px, 10vw, 145px);
}

.section-copy h2,
.section-heading h2,
.privacy-copy h2 {
  font-size: clamp(44px, 5vw, 68px);
  line-height: 0.98;
}

.section-copy > p,
.privacy-copy > p {
  font-size: 16px;
}

.path-steps {
  display: grid;
  gap: 0;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.path-steps li {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 14px;
  padding: 19px 0;
  border-top: 1px solid var(--border);
  opacity: 0.55;
  transition: opacity 180ms ease, padding-left 180ms ease;
}

.path-steps li:last-child {
  border-bottom: 1px solid var(--border);
}

.path-steps li:hover,
.path-steps li.active {
  padding-left: 8px;
  opacity: 1;
}

.path-steps li > span {
  padding-top: 3px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
}

.path-steps li div {
  display: grid;
  gap: 5px;
}

.path-steps strong {
  font-size: 15px;
}

.path-steps small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.study-demo-wrap {
  position: relative;
  min-height: 610px;
  perspective: 1400px;
}

.study-demo-wrap::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(204, 151, 255, 0.16), transparent 66%);
  transform: translate(-50%, -50%);
}

.study-demo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(350px, 72vw);
  aspect-ratio: 19 / 25;
  padding: 0;
  border: 0;
  outline: 0;
  cursor: pointer;
  background: transparent;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
}

.study-demo:focus-visible {
  border-radius: 34px;
  outline: 3px solid var(--blue);
  outline-offset: 7px;
}

.demo-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
  border: 3px solid var(--primary);
  border-radius: 34px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  background: var(--surface);
  box-shadow: 0 0 32px rgba(204, 151, 255, 0.2), inset 0 0 24px rgba(204, 151, 255, 0.03), var(--shadow);
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-card-face::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.12;
  background-image: radial-gradient(var(--primary) 0.6px, transparent 0.6px);
  background-size: 16px 16px;
}

.demo-front {
  transform: rotateY(0deg);
}

.demo-back {
  transform: rotateY(180deg);
}

.study-demo.revealed .demo-front {
  transform: rotateY(-180deg);
}

.study-demo.revealed .demo-back {
  transform: rotateY(0deg);
}

.study-demo.answering-fail {
  pointer-events: none;
  animation: card-exit-left 320ms cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.study-demo.answering-pass {
  pointer-events: none;
  animation: card-exit-right 320ms cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.study-demo.entering {
  pointer-events: none;
  animation: card-enter 430ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.study-demo.entering .demo-card-face {
  transition: none;
}

.demo-card-face b {
  position: relative;
  margin-top: 4px;
  font-family: var(--font-kanji);
  font-size: 128px;
  font-weight: 500;
  line-height: 1.25;
}

.demo-card-face strong {
  position: relative;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 17px;
}

.demo-card-face > small:last-child {
  position: absolute;
  bottom: 31px;
  color: color-mix(in srgb, var(--muted), transparent 50%);
  letter-spacing: 0.15em;
  font-size: 8px;
  font-weight: 700;
}

.demo-lane {
  position: absolute;
  top: 36px;
  min-width: 66px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--primary);
  text-align: center;
  letter-spacing: 0.12em;
  font-size: 8px;
  font-weight: 700;
}

.swipe-cue {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  padding: 0;
  border: 0;
  justify-items: center;
  gap: 7px;
  cursor: pointer;
  background: transparent;
  transform: translateY(-50%);
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms ease;
}

.swipe-cue:disabled {
  cursor: default;
  opacity: 0.28;
  filter: saturate(0.35);
}

.swipe-cue:not(:disabled):hover,
.swipe-cue:not(:disabled):focus-visible {
  filter: drop-shadow(0 0 10px currentColor);
  transform: translateY(-50%) scale(1.08);
}

.swipe-cue:focus-visible {
  border-radius: 50%;
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

.swipe-cue > span {
  display: grid;
  width: 48px;
  height: 48px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 23px;
  place-items: center;
}

.swipe-cue small {
  letter-spacing: 0.13em;
  font-size: 8px;
  font-weight: 700;
}

.cue-fail {
  left: 0;
  color: var(--error);
}

.cue-pass {
  right: 0;
  color: var(--green);
}

.demo-hint {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 8px;
  font-weight: 700;
}

.demo-hint span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 1.8s ease-in-out infinite;
}

.demo-hint b {
  font: inherit;
}

.features-section {
  background:
    radial-gradient(circle at 50% 12%, rgba(204, 151, 255, 0.08), transparent 28%),
    var(--bg);
}

.section-heading.centered {
  margin: 0 auto 72px;
  text-align: center;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

.section-heading h2 {
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.feature-card {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 390px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  flex-direction: column;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-raised), transparent 7%), color-mix(in srgb, var(--surface), transparent 7%));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

.feature-card::after {
  position: absolute;
  inset: auto -20% -45% 20%;
  height: 70%;
  border-radius: 50%;
  content: "";
  background: var(--primary);
  filter: blur(100px);
  opacity: 0.07;
}

.feature-large {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  min-height: 430px;
}

.feature-index {
  position: absolute;
  top: 27px;
  right: 28px;
  color: var(--subtle);
  letter-spacing: 0.14em;
  font-size: 8px;
  font-weight: 700;
}

.feature-content {
  position: relative;
  z-index: 2;
  align-self: end;
}

.feature-large .feature-content {
  align-self: center;
  max-width: 440px;
  padding-left: 20px;
}

.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border: 1px solid color-mix(in srgb, var(--primary), transparent 68%);
  border-radius: 13px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary), transparent 91%);
  place-items: center;
}

.feature-icon.pink {
  border-color: color-mix(in srgb, var(--pink), transparent 68%);
  color: var(--pink);
  background: color-mix(in srgb, var(--pink), transparent 91%);
}

.feature-icon.blue {
  border-color: color-mix(in srgb, var(--blue), transparent 68%);
  color: var(--blue);
  background: color-mix(in srgb, var(--blue), transparent 91%);
}

.feature-icon svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.feature-card h3 {
  max-width: 480px;
  margin: 0 0 14px;
  letter-spacing: -0.035em;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.08;
}

.feature-card p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.memory-curve {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 50px 20px 35px 38px;
}

.memory-curve svg {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 210;
  overflow: visible;
}

.curve-area {
  fill: url(#curve-fill);
}

.curve-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(204, 151, 255, 0.55));
}

.memory-curve .curve-threshold {
  stroke: var(--primary);
  stroke-width: 1;
  stroke-dasharray: 5 7;
  opacity: 0.32;
}

.memory-curve circle {
  fill: var(--surface);
  stroke: var(--primary);
  stroke-width: 3;
  filter: drop-shadow(0 0 7px rgba(204, 151, 255, 0.7));
}

.curve-label {
  position: absolute;
  color: var(--subtle);
  letter-spacing: 0.12em;
  font-size: 7px;
  font-weight: 700;
}

.curve-axis-label {
  position: absolute;
  color: var(--subtle);
  letter-spacing: 0.13em;
  font-size: 7px;
  font-weight: 700;
}

.curve-recall {
  top: 8px;
  left: 38px;
}

.curve-time {
  right: 21px;
  bottom: 24px;
}

.curve-target-label {
  top: 67%;
  left: 39px;
  color: var(--primary);
  opacity: 0.7;
}

.review-label {
  top: 32px;
  color: var(--primary);
  transform: translateX(-50%);
}

.learn-label {
  top: 32px;
  left: 38px;
  color: var(--primary);
  transform: translateX(-8%);
}

.review-one { left: 15%; }
.review-two { left: 30%; }
.review-three { left: 81%; }

.interval-label {
  bottom: 24px;
  transform: translateX(-50%);
}

.interval-one { left: 10%; }
.interval-two { left: 22%; }
.interval-three { left: 57%; }

.order-pills {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 9px;
  margin-top: 35px;
}

.order-pills span {
  padding: 13px 17px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.order-pills .selected {
  border-color: color-mix(in srgb, var(--pink), transparent 55%);
  color: var(--pink);
  background: color-mix(in srgb, var(--pink), transparent 93%);
  box-shadow: 0 0 28px color-mix(in srgb, var(--pink), transparent 88%);
}

.sync-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-top: auto;
}

.device {
  position: relative;
  display: block;
  border: 2px solid color-mix(in srgb, var(--blue), transparent 40%);
  background: color-mix(in srgb, var(--blue), transparent 94%);
  box-shadow: 0 0 30px color-mix(in srgb, var(--blue), transparent 88%);
}

.device i {
  position: absolute;
  inset: 8px;
  border-radius: 3px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--blue), transparent 75%), transparent);
}

.mobile-device {
  width: 48px;
  height: 88px;
  border-radius: 10px;
}

.desktop-device {
  width: 112px;
  height: 73px;
  border-radius: 7px;
}

.desktop-device::after {
  position: absolute;
  bottom: -13px;
  left: 50%;
  width: 47px;
  height: 12px;
  border-bottom: 2px solid color-mix(in srgb, var(--blue), transparent 40%);
  content: "";
  transform: translateX(-50%);
}

.sync-line {
  position: relative;
  display: block;
  width: 80px;
  height: 1px;
  margin-inline: 13px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 5px, transparent 5px 10px);
  opacity: 0.6;
}

.sync-line i {
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  animation: sync-dot 2.8s ease-in-out infinite;
}

.progress-section {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--bg-deep);
}

.progress-grid {
  grid-template-columns: minmax(500px, 1.18fr) minmax(340px, 0.82fr);
}

.progress-visual {
  position: relative;
}

.dashboard-window {
  overflow: hidden;
  min-height: 530px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow), var(--glow);
  transform: perspective(1400px) rotateY(5deg) rotateX(1deg);
  transform-origin: right center;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 17px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-raised), transparent 5%);
}

.window-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  letter-spacing: -0.02em;
  font-size: 9px;
  font-weight: 700;
}

.window-brand img {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(204, 151, 255, 0.2));
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--subtle);
  opacity: 0.45;
}

.window-layout {
  display: grid;
  grid-template-columns: 50px 1fr;
  min-height: 482px;
}

.window-sidebar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-right: 1px solid var(--border);
  flex-direction: column;
}

.window-sidebar span {
  width: 14px;
  height: 14px;
  border: 1px solid var(--subtle);
  border-radius: 4px;
  opacity: 0.35;
}

.window-sidebar span.active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary), transparent 55%);
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary), transparent 50%);
  opacity: 1;
}

.window-content {
  padding: 23px;
}

.window-title,
.chart-title,
.heatmap-panel > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-title > span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
}

.window-title small {
  color: var(--subtle);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.dashboard-stats > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface-raised), transparent 6%);
}

.dashboard-stats > div:last-child {
  border-left-color: var(--pink);
}

.dashboard-stats small {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: var(--primary);
  letter-spacing: 0.1em;
  font-size: 7px;
  font-weight: 700;
}

.dashboard-stats > div:last-child small {
  color: var(--pink);
}

.dashboard-stats strong {
  font-size: 25px;
  line-height: 1;
}

.dashboard-stats span {
  color: var(--green);
  font-size: 7px;
}

.chart-panel,
.heatmap-panel {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface-raised), transparent 6%);
}

.chart-title span,
.heatmap-panel strong {
  font-size: 9px;
}

.chart-title strong {
  color: var(--primary);
  font-size: 15px;
}

.chart-panel svg {
  width: 100%;
  height: 150px;
  margin-top: 10px;
  overflow: visible;
}

.grid-lines line {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.progress-area {
  fill: url(#progress-fill);
}

.progress-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  filter: drop-shadow(0 0 5px rgba(204, 151, 255, 0.45));
}

.heatmap-panel > div:first-child small {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--subtle);
  font-size: 6px;
}

.heatmap-panel small i {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--surface-high);
}

.heatmap-panel small i:nth-child(2) { background: color-mix(in srgb, var(--pink), transparent 65%); }
.heatmap-panel small i:nth-child(3) { background: color-mix(in srgb, var(--pink), transparent 25%); }
.heatmap-panel small i:nth-child(4) { background: var(--primary); }

.heatmap {
  display: grid;
  grid-template-rows: repeat(7, 7px);
  grid-auto-flow: column;
  grid-auto-columns: 7px;
  justify-content: space-between;
  gap: 3px;
  margin-top: 12px;
}

.heatmap i {
  border-radius: 2px;
  background: var(--surface-high);
}

.heatmap i[data-level="1"] { background: color-mix(in srgb, var(--pink), transparent 72%); }
.heatmap i[data-level="2"] { background: color-mix(in srgb, var(--pink), transparent 40%); }
.heatmap i[data-level="3"] { background: var(--pink); }
.heatmap i[data-level="4"] { background: var(--primary); box-shadow: 0 0 7px color-mix(in srgb, var(--primary), transparent 50%); }

.stat-float {
  position: absolute;
  right: -28px;
  bottom: 46px;
  display: grid;
  width: 150px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--blue), transparent 55%);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface-raised), transparent 8%);
  box-shadow: var(--shadow), 0 0 40px color-mix(in srgb, var(--blue), transparent 88%);
  backdrop-filter: blur(18px);
  transform: rotate(-3deg);
}

.stat-float span {
  color: var(--blue);
  letter-spacing: 0.11em;
  font-size: 7px;
  font-weight: 700;
}

.stat-float strong {
  margin: 3px 0 8px;
  font-size: 28px;
}

.stat-float > i {
  display: block;
  overflow: hidden;
  height: 4px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--blue), transparent 82%);
}

.stat-float b {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  box-shadow: 0 0 9px var(--blue);
}

.check-list {
  display: grid;
  gap: 15px;
  margin: 35px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-list span {
  display: grid;
  width: 23px;
  height: 23px;
  border: 1px solid color-mix(in srgb, var(--primary), transparent 60%);
  border-radius: 50%;
  color: var(--primary);
  font-size: 11px;
  place-items: center;
}

.privacy-section {
  padding-block: clamp(85px, 10vw, 130px);
}

.privacy-card {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: 0.9fr 1.2fr 0.9fr;
  align-items: center;
  min-height: 480px;
  padding: clamp(40px, 6vw, 75px);
  border: 1px solid var(--border);
  border-radius: 28px;
  gap: 50px;
  background: linear-gradient(125deg, color-mix(in srgb, var(--surface-raised), transparent 3%), var(--surface));
  box-shadow: var(--shadow);
}

.privacy-card::before {
  position: absolute;
  top: -70%;
  left: -20%;
  width: 750px;
  height: 750px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(204, 151, 255, 0.12), transparent 68%);
}

.privacy-mark {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(220px, 100%);
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  place-items: center;
  box-shadow: inset 0 0 70px rgba(204, 151, 255, 0.07), 0 0 50px rgba(204, 151, 255, 0.08);
}

.privacy-mark::before,
.privacy-mark::after {
  position: absolute;
  border: 1px dashed var(--border);
  border-radius: 50%;
  content: "";
}

.privacy-mark::before { inset: 16px; }
.privacy-mark::after { inset: -16px; opacity: 0.4; }

.privacy-mark svg {
  width: 65px;
  fill: none;
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
  filter: drop-shadow(0 0 14px rgba(204, 151, 255, 0.35));
}

.privacy-copy {
  position: relative;
  z-index: 1;
}

.privacy-copy h2 {
  margin-top: 18px;
  font-size: clamp(38px, 4.2vw, 58px);
}

.privacy-points {
  position: relative;
  z-index: 1;
  display: grid;
}

.privacy-points > div {
  display: grid;
  grid-template-columns: 33px 1fr;
  gap: 9px;
  padding: 19px 0;
  border-top: 1px solid var(--border);
}

.privacy-points > div:last-child {
  border-bottom: 1px solid var(--border);
}

.privacy-points span {
  color: var(--primary);
  font-size: 9px;
}

.privacy-points strong {
  font-size: 12px;
  line-height: 1.5;
}

.cta-section {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  color: #2d0050;
  background: #bf76ff;
  isolation: isolate;
}

.cta-section::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.25;
  background-image: linear-gradient(rgba(45, 0, 80, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(45, 0, 80, 0.16) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.cta-orb {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 4%;
  display: grid;
  width: 480px;
  height: 480px;
  place-items: center;
  transform: translateY(-50%) rotate(-12deg);
}

.cta-orb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.13;
  filter: invert(1);
}

.cta-inner {
  display: flex;
  min-height: 590px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.eyebrow.light {
  color: #490080;
}

.cta-inner h2 {
  max-width: 770px;
  margin: 23px 0 18px;
  font-size: clamp(54px, 7.3vw, 94px);
}

.cta-inner > p {
  color: rgba(45, 0, 80, 0.72);
  font-size: 17px;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 34px;
}

.button-dark {
  color: #f6e6fd;
  background: #190f21;
  box-shadow: 0 15px 35px rgba(45, 0, 80, 0.23);
}

.android-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(45, 0, 80, 0.72);
  font-size: 11px;
  font-weight: 700;
}

.android-note svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.site-footer {
  padding-block: 60px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 50px;
}

.footer-grid > div:first-child p {
  margin: 15px 0 0;
  color: var(--subtle);
  font-size: 11px;
}

.footer-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.footer-links a:hover,
.footer-meta a:hover {
  color: var(--primary);
}

.footer-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: var(--subtle);
  font-size: 10px;
}

@keyframes orbit-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
  50% { opacity: 0.35; transform: scale(0.72); }
}

@keyframes sync-dot {
  0%, 10% { left: 0; }
  90%, 100% { left: calc(100% - 7px); }
}

@keyframes card-exit-left {
  to {
    opacity: 0;
    transform: translate(-145%, -46%) rotate(-15deg) scale(0.9);
  }
}

@keyframes card-exit-right {
  to {
    opacity: 0;
    transform: translate(45%, -46%) rotate(15deg) scale(0.9);
  }
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 1040px) {
  :root {
    --shell: min(100% - 40px, 900px);
  }

  .nav-links {
    gap: 19px;
  }

  .hero {
    grid-template-columns: 0.88fr 1.12fr;
  }

  .hero h1 {
    font-size: clamp(52px, 7vw, 72px);
  }

  .float-streak { right: -6px; }
  .float-schedule { left: -5px; }

  .path-grid,
  .progress-grid {
    gap: 60px;
  }

  .privacy-card {
    grid-template-columns: 0.7fr 1.3fr;
  }

  .privacy-points {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }

  .privacy-points > div {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 820px) {
  :root {
    --shell: min(100% - 36px, 700px);
  }

  .desktop-cta {
    display: none;
  }

  .nav {
    grid-template-columns: minmax(0, 1fr) 40px 40px;
    width: 100%;
    max-width: 736px;
    padding-inline: 18px;
    column-gap: 4px;
  }

  .nav .brand {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .nav .brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    margin-left: 0;
    order: 3;
  }

  .nav-toggle span:not(.sr-only) {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease, top 180ms ease;
  }

  .nav-toggle span:nth-child(2) { top: 15px; }
  .nav-toggle span:nth-child(3) { top: 23px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

  .nav-actions {
    width: 40px;
    min-width: 0;
    justify-content: center;
    gap: 0;
    order: 2;
  }

  .nav-links {
    position: fixed;
    inset: 77px 0 auto;
    display: grid;
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    border-bottom: 1px solid transparent;
    gap: 0;
    background: var(--header-bg);
    opacity: 0;
    backdrop-filter: blur(24px);
    transition: max-height 260ms ease, opacity 180ms ease, padding 260ms ease, border-color 180ms ease;
  }

  .nav-links.open {
    max-height: 330px;
    padding-block: 13px 24px;
    border-color: var(--border);
    opacity: 1;
  }

  .nav-links a {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }

  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }

  .hero {
    display: block;
    min-height: 0;
    padding-top: 140px;
  }

  .hero-copy {
    max-width: 650px;
  }

  .hero h1 {
    font-size: clamp(60px, 12vw, 88px);
  }

  .hero-visual {
    min-height: 690px;
    margin-top: 20px;
  }

  .hero-footnote {
    margin-top: 0;
  }

  .path-grid,
  .progress-grid {
    grid-template-columns: 1fr;
  }

  .study-demo-wrap {
    width: min(100%, 610px);
    margin-inline: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-large {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .feature-large .feature-content {
    align-self: auto;
    padding: 40px 0 0;
  }

  .memory-curve {
    align-self: end;
    width: 100%;
  }

  .progress-grid {
    gap: 85px;
  }

  .progress-visual {
    order: 2;
  }

  .progress-copy {
    order: 1;
  }

  .privacy-card {
    grid-template-columns: 190px 1fr;
  }

  .privacy-points {
    grid-template-columns: 1fr;
  }

  .cta-orb {
    right: -180px;
    opacity: 0.65;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
  }

  .footer-links {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 580px) {
  :root {
    --shell: calc(100% - 32px);
  }

  html {
    scroll-padding-top: 78px;
  }

  .section {
    padding-block: 95px;
  }

  .nav {
    min-height: 70px;
    padding-inline: 16px;
  }

  .nav-links {
    top: 69px;
  }

  .brand {
    gap: 8px;
    font-size: 16px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .theme-toggle {
    width: 37px;
    height: 37px;
  }

  .hero {
    padding-top: 118px;
    padding-bottom: 65px;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: clamp(51px, 16.5vw, 76px);
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions,
  .cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .text-link {
    justify-content: center;
  }

  .availability {
    margin-top: 30px;
  }

  .hero-visual {
    min-height: 570px;
    margin-top: 42px;
  }

  .phone-main {
    top: 0;
    width: 260px;
    height: 535px;
  }

  .mini-flashcard {
    width: 185px;
    height: 258px;
  }

  .mini-flashcard .kanji {
    font-size: 75px;
  }

  .orbit-one { width: 380px; height: 380px; }
  .orbit-two { width: 460px; height: 460px; }
  .ink-circle { width: 335px; height: 335px; }

  .float-streak {
    top: 88px;
    right: -8px;
    width: 125px;
    padding: 13px;
  }

  .float-streak strong { font-size: 31px; }

  .float-schedule {
    bottom: 50px;
    left: -9px;
    width: 158px;
    padding: 11px;
  }

  .schedule-icon {
    width: 32px;
    height: 32px;
    padding: 7px;
  }

  .hero-footnote {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding-top: 17px;
  }

  .hero-footnote span {
    padding: 10px 4px;
    border-bottom: 1px solid var(--border);
  }

  .hero-footnote span:nth-child(3) {
    border-left: 0;
  }

  .section-copy h2,
  .section-heading h2,
  .privacy-copy h2 {
    font-size: clamp(41px, 13vw, 57px);
  }

  .section-heading.centered {
    margin-bottom: 48px;
    text-align: left;
  }

  .section-heading.centered .eyebrow {
    justify-content: flex-start;
  }

  .path-grid {
    gap: 54px;
  }

  .study-demo-wrap {
    min-height: 550px;
  }

  .study-demo {
    width: min(295px, 76vw);
  }

  .demo-card-face b {
    font-size: 103px;
  }

  .swipe-cue > span {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .cue-fail { left: -4px; }
  .cue-pass { right: -4px; }

  .feature-card {
    min-height: 380px;
    padding: 23px;
  }

  .feature-large {
    min-height: 600px;
  }

  .feature-large .feature-content {
    padding-top: 50px;
  }

  .memory-curve {
    padding-right: 0;
    padding-left: 0;
  }

  .curve-recall,
  .curve-target-label {
    left: 0;
  }

  .curve-target-label {
    top: 66%;
  }

  .learn-label {
    left: 2px;
    top: 24px;
  }

  .curve-time {
    right: 0;
  }

  .review-label {
    top: 43px;
  }

  .review-one { left: 10%; }
  .review-two { left: 27%; }
  .review-three { left: 83%; }

  .interval-one {
    left: 0;
    transform: none;
  }
  .interval-two { left: 17%; }
  .interval-three { left: 56%; }

  .progress-grid {
    gap: 62px;
  }

  .progress-visual {
    width: calc(100% + 10px);
    margin-left: -10px;
  }

  .dashboard-window {
    min-height: 465px;
    border-radius: 17px;
    transform: none;
  }

  .window-layout {
    grid-template-columns: 35px 1fr;
    min-height: 417px;
  }

  .window-content {
    padding: 14px 11px;
  }

  .window-sidebar {
    gap: 20px;
  }

  .dashboard-stats > div {
    padding: 10px;
  }

  .dashboard-stats strong { font-size: 20px; }
  .dashboard-stats span { display: none; }
  .chart-panel svg { height: 125px; }
  .heatmap { grid-auto-columns: 5px; grid-template-rows: repeat(7, 5px); gap: 2px; }

  .stat-float {
    right: -9px;
    bottom: -36px;
  }

  .privacy-card {
    grid-template-columns: 1fr;
    padding: 40px 25px;
    gap: 45px;
  }

  .privacy-mark {
    width: 160px;
    margin-inline: auto;
  }

  .privacy-copy {
    text-align: left;
  }

  .cta-section,
  .cta-inner {
    min-height: 620px;
  }

  .cta-inner h2 {
    font-size: clamp(49px, 15vw, 73px);
  }

  .cta-inner > p {
    font-size: 15px;
  }

  .android-note {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 34px;
  }

  .footer-links {
    grid-column: auto;
    grid-row: auto;
    flex-wrap: wrap;
    gap: 18px 25px;
  }

  .footer-meta {
    justify-items: start;
  }
}

@media (max-width: 360px) {
  .nav .brand > span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
