:root {
  --ink: #172335;
  --ink-soft: #536070;
  --navy: #153d68;
  --blue: #385a8c;
  --blue-bright: #4c70a5;
  --blue-pale: #eaf0fa;
  --paper: #f8f4ea;
  --paper-dark: #eee5d5;
  --white: #fffdf8;
  --coral: #e56f5a;
  --coral-pale: #f8d5ca;
  --gold: #daa44a;
  --green: #31815d;
  --border: rgba(23, 35, 53, 0.13);
  --shadow: 0 26px 80px rgba(24, 46, 77, 0.13);
  --radius: 24px;
  --shell: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, Avenir, "Avenir Next", "Helvetica Neue", "Hiragino Sans",
    "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

button,
input {
  font: inherit;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 10px;
  color: #fff;
  background: var(--navy);
  font-weight: 700;
}

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

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

.site-header.scrolled {
  border-color: var(--border);
  background: rgba(248, 244, 234, 0.9);
  box-shadow: 0 8px 30px rgba(23, 35, 53, 0.05);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.035em;
}

/* The icon files are full-bleed squares, because every store and home screen
   masks them itself; on the page nothing does, so the radius lives here. A
   percentage rather than pixels: this rule dresses the mark at 44px in the
   header, 42px in the footer and 36px on 404.html, and only a ratio keeps the
   same silhouette at all three. 22.4% is Apple's icon corner. */
.brand img {
  border-radius: 22.4%;
  box-shadow: 0 5px 15px rgba(26, 58, 94, 0.16);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 29px;
  color: #384655;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a:not(.nav-cta) {
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--coral);
  transition: transform 220ms var(--ease);
}

.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  color: white;
  background: var(--navy);
  box-shadow: 0 7px 18px rgba(21, 61, 104, 0.19);
  transition: transform 180ms ease, background 180ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-2px);
  background: var(--blue);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: 870px;
  padding: 156px 0 0;
  background:
    linear-gradient(105deg, rgba(255, 253, 248, 0.9), rgba(248, 244, 234, 0.64)),
    var(--paper);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 93px;
  left: 0;
  height: 85px;
  content: "";
  opacity: 0.7;
  background:
    radial-gradient(55px 28px at 7% 100%, transparent 97%, rgba(56, 90, 140, 0.13) 100%),
    radial-gradient(70px 36px at 17% 100%, transparent 97%, rgba(56, 90, 140, 0.12) 100%),
    radial-gradient(62px 32px at 28% 100%, transparent 97%, rgba(56, 90, 140, 0.13) 100%),
    radial-gradient(78px 39px at 42% 100%, transparent 97%, rgba(56, 90, 140, 0.12) 100%),
    radial-gradient(61px 31px at 56% 100%, transparent 97%, rgba(56, 90, 140, 0.13) 100%),
    radial-gradient(75px 37px at 70% 100%, transparent 97%, rgba(56, 90, 140, 0.12) 100%),
    radial-gradient(65px 33px at 83% 100%, transparent 97%, rgba(56, 90, 140, 0.13) 100%),
    radial-gradient(75px 38px at 96% 100%, transparent 97%, rgba(56, 90, 140, 0.12) 100%);
}

.hero-pattern,
.final-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-pattern::before {
  position: absolute;
  top: 88px;
  left: -110px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(56, 90, 140, 0.11);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 48px rgba(56, 90, 140, 0.025),
    0 0 0 96px rgba(56, 90, 140, 0.018);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 76px;
}

.hero-copy {
  padding-bottom: 110px;
}

.eyebrow,
.kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid rgba(56, 90, 140, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(49, 129, 93, 0.12);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", "Yu Mincho", serif;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h1 {
  max-width: 660px;
  margin: 30px 0 27px;
  font-size: clamp(58px, 6.2vw, 88px);
}

h1 em,
h2 em {
  position: relative;
  color: var(--coral);
  font-weight: inherit;
}

h1 em::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 2px;
  height: 8px;
  content: "";
  transform: rotate(-1.5deg);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12'%3E%3Cpath d='M3 8c68-5 174-6 294-2' fill='none' stroke='%23e56f5a' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.hero-lede {
  max-width: 585px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 21px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 12px 28px rgba(21, 61, 104, 0.19);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue);
  box-shadow: 0 16px 34px rgba(21, 61, 104, 0.24);
}

.button-quiet {
  border-color: rgba(21, 61, 104, 0.18);
  background: rgba(255, 255, 255, 0.62);
}

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

.hero-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 31px;
}

.learner-faces {
  display: flex;
  padding-left: 8px;
}

.learner-faces span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-left: -8px;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-family: "Hiragino Sans", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.learner-faces span:nth-child(2) { background: var(--coral); }
.learner-faces span:nth-child(3) { background: var(--green); }

.hero-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.35;
}

.hero-note strong { color: var(--ink); }

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

.sun-disc {
  position: absolute;
  top: 32px;
  right: 6px;
  width: 455px;
  height: 455px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 50%),
    #efbaa8;
  box-shadow: inset 0 0 0 1px rgba(229, 111, 90, 0.13);
}

.sun-disc::after {
  position: absolute;
  inset: 23px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  content: "";
}

.phone {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 108px;
  width: 298px;
  padding: 8px;
  transform: rotate(2deg);
  border: 1px solid rgba(16, 31, 50, 0.2);
  border-radius: 48px;
  background: #17202c;
  box-shadow: 0 36px 70px rgba(23, 35, 53, 0.26);
}

.phone img,
.reference-phone img {
  width: 100%;
  height: auto;
  border-radius: 40px;
}

.float-card {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(21, 61, 104, 0.14);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 45px rgba(23, 35, 53, 0.16);
  backdrop-filter: blur(8px);
}

.float-card-form {
  right: -18px;
  bottom: 107px;
  width: 208px;
  padding: 18px 19px;
  transform: rotate(-3deg);
}

.float-card-form > span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.float-card-form strong {
  display: block;
  margin: 5px 0 11px;
  font-family: "Hiragino Sans", sans-serif;
  font-size: 27px;
}

.float-card-form small {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--green);
  font-weight: 700;
}

.float-card-bonus {
  bottom: 210px;
  left: -5px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  transform: rotate(-4deg);
  font-size: 12px;
}

.float-card-bonus svg {
  width: 25px;
  fill: none;
  stroke: var(--coral);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.float-card-bonus strong {
  display: block;
  font-size: 17px;
  line-height: 1;
}

.word-orbit {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(21, 61, 104, 0.15);
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 253, 248, 0.7);
  font-family: "Hiragino Sans", sans-serif;
  font-size: 23px;
  font-weight: 700;
}

.word-orbit-one { top: 25px; left: 35px; transform: rotate(-9deg); }
.word-orbit-two { top: 368px; right: 9px; transform: rotate(8deg); }

.proof-bar {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 120px;
  border: 1px solid rgba(21, 61, 104, 0.11);
  border-radius: 24px 24px 0 0;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 -10px 45px rgba(23, 35, 53, 0.06);
}

.proof-bar > div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.proof-bar > div:not(:last-child)::after {
  position: absolute;
  top: 31px;
  right: 0;
  bottom: 31px;
  width: 1px;
  content: "";
  background: var(--border);
}

.proof-bar strong {
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.proof-bar span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.section {
  padding: 132px 0;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 55px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  margin-bottom: 17px;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(43px, 5vw, 66px);
}

.section-heading > p:last-child,
.section-intro,
.level-copy > p:not(.kicker) {
  color: var(--ink-soft);
  font-size: 17px;
}

.learning {
  background: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 20px;
}

.step-card,
.feature-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.step-card {
  min-height: 390px;
  padding: 30px;
}

.step-card.featured {
  transform: translateY(-10px);
  color: #fff;
  border-color: transparent;
  background: var(--navy);
  box-shadow: 0 25px 55px rgba(21, 61, 104, 0.2);
}

.step-number {
  color: #8b96a3;
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
}

.step-card.featured .step-number { color: #afbed0; }

.step-icon {
  height: 155px;
  margin: 18px 0 16px;
}

.icon-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Hiragino Sans", sans-serif;
}

.icon-prompt span {
  font-size: 31px;
  font-weight: 750;
}

.icon-prompt i {
  color: #9ba4ae;
  font-size: 18px;
  font-style: normal;
}

.icon-prompt strong {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  color: var(--coral);
  background: var(--coral-pale);
  font-size: 26px;
}

.option-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
}

.option-stack span {
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  font-family: "Hiragino Sans", sans-serif;
  font-size: 15px;
}

.option-stack span:first-child {
  color: #19334c;
  border-color: #9bd1b9;
  background: #cce9dc;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 9px;
  padding: 28px 45px 16px;
  border-bottom: 1px solid #ccd4dc;
}

.mini-chart i {
  width: 25px;
  height: var(--h);
  border-radius: 7px 7px 2px 2px;
  background: var(--blue-pale);
}

.mini-chart i:nth-child(2) { background: #cddcf0; }
.mini-chart i:nth-child(3) { background: #90abd0; }
.mini-chart i:nth-child(4) { background: var(--blue); }

.step-card h3,
.feature-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.2;
}

.step-card p,
.feature-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.step-card.featured p { color: #cbd5e1; }

.reference {
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(56, 90, 140, 0.035) 50%),
    var(--paper);
}

.reference-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 100px;
}

.reference-copy h2 {
  max-width: 530px;
}

.reference-copy .section-intro {
  max-width: 545px;
}

.visually-hidden {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Shared by the landing-page search and the live reference index. */
.word-search {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 13px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(21, 61, 104, 0.18);
  border-radius: 16px;
  background: var(--white);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.word-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(21, 61, 104, 0.13);
}

.word-search-landing {
  max-width: 480px;
  margin: 31px 0 25px;
  box-shadow: 0 11px 25px rgba(21, 61, 104, 0.06);
}

.word-search svg {
  width: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-width: 2;
}

.word-search input {
  width: 100%;
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.word-search-landing input {
  font-size: 20px;
  font-weight: 700;
}

/* The value a visitor types is display-sized; the hint that stands in for it
   must not be, or an untouched box reads as one somebody already filled in. */
.word-search-landing input::placeholder {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  opacity: 0.85;
}

.word-search button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}

.word-search button:hover,
.word-search button:focus-visible {
  transform: translateY(-1px);
  background: var(--navy);
}

.check-list {
  margin: 0 0 27px;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: #43515f;
  font-size: 14px;
}

.check-list span {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: #dceee5;
  font-size: 12px;
  font-weight: 900;
}

/* "Browse: N5 verbs · Ichidan verbs · …" under the reference check-list. The
   list hubs are the pages a reader wants when they do not have one word in
   mind, and this is the only place on the site that says they exist. */
.browse-line {
  margin: 14px 0 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.browse-line a {
  color: var(--navy);
  font-weight: 800;
}

.browse-line a:hover,
.browse-line a:focus-visible {
  text-decoration: underline;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--navy);
  font-size: 14px;
  font-weight: 850;
}

.text-link:hover span,
.text-link:focus-visible span { transform: translate(2px, -2px); }
.text-link span { transition: transform 180ms ease; }

.reference-visual {
  position: relative;
  min-height: 680px;
}

.reference-visual::before {
  position: absolute;
  top: 30px;
  right: -20px;
  width: 530px;
  height: 530px;
  border-radius: 50%;
  content: "";
  background: var(--blue-pale);
}

.reference-phone {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 105px;
  width: 304px;
  height: 650px;
  overflow: hidden;
  padding: 8px;
  transform: rotate(-2deg);
  border: 1px solid rgba(16, 31, 50, 0.2);
  border-radius: 48px;
  background: #17202c;
  box-shadow: 0 35px 75px rgba(23, 35, 53, 0.25);
}

.grammar-card {
  position: absolute;
  z-index: 3;
  width: 215px;
  padding: 17px 18px;
  border: 1px solid rgba(21, 61, 104, 0.14);
  border-radius: 17px;
  background: rgba(255, 253, 248, 0.95);
  box-shadow: 0 18px 45px rgba(23, 35, 53, 0.14);
  backdrop-filter: blur(8px);
}

.grammar-card span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.grammar-card strong,
.grammar-card small {
  display: block;
}

.grammar-card strong {
  margin: 4px 0 1px;
  font-family: "Hiragino Sans", sans-serif;
  font-size: 21px;
}

.grammar-card small { color: var(--ink-soft); }

.grammar-card-top {
  top: 120px;
  right: -32px;
  transform: rotate(3deg);
}

.grammar-card-bottom {
  bottom: 82px;
  left: -3px;
  transform: rotate(-3deg);
}

.features {
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 290px;
  padding: 31px;
}

.feature-wide {
  display: grid;
  grid-column: span 2;
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: 34px;
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 30px;
  place-items: center;
  border-radius: 12px;
  color: var(--blue);
  background: var(--blue-pale);
}

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

.feature-dark {
  color: #fff;
  background: var(--navy);
}

.feature-dark .feature-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.feature-dark p { color: #c5d1dd; }

.mode-switch {
  padding: 8px;
  border-radius: 18px;
  background: var(--blue-pale);
}

.mode-switch span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 16px;
  color: #718093;
  font-size: 14px;
  font-weight: 800;
}

.mode-switch span.active {
  border-radius: 13px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(56, 90, 140, 0.2);
}

.mode-switch small {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.78;
}

.accuracy-preview {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.065);
}

.accuracy-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accuracy-summary > span {
  color: #aebdcb;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.accuracy-summary > strong {
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.accuracy-summary small {
  color: #aebdcb;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.accuracy-form {
  display: grid;
  grid-template-columns: 58px 1fr 28px;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 9px;
  line-height: 1;
}

.accuracy-form > span { color: #d4dde6; }

.accuracy-form > strong {
  color: #fff;
  font-size: 9px;
  text-align: right;
}

.accuracy-form > i {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.accuracy-form b {
  display: block;
  width: var(--score);
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
}

.feature-privacy {
  background: #f7eee2;
}

.privacy-stamp {
  justify-self: center;
  display: grid;
  width: 158px;
  height: 158px;
  place-content: center;
  transform: rotate(5deg);
  border: 2px solid var(--coral);
  border-radius: 50%;
  color: var(--coral);
  text-align: center;
}

.privacy-stamp::before {
  position: absolute;
  width: 138px;
  height: 138px;
  border: 1px dashed var(--coral);
  border-radius: 50%;
  content: "";
}

.privacy-stamp span {
  font-family: "Hiragino Sans", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.privacy-stamp small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.level-section {
  color: #fff;
  background: var(--navy);
}

.level-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 110px;
}

.level-copy .kicker { color: #9eb7d5; }
.level-copy h2 { color: #fff; }
.level-copy > p:not(.kicker) { color: #c6d1dc; }
.level-copy .button-primary { color: var(--navy); background: #fff; }

.level-ladder {
  padding: 29px 30px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.055);
}

.level-row {
  position: relative;
  display: grid;
  grid-template-columns: 55px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 75px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.level-row:last-child { border-bottom: 0; }

.level-row strong {
  position: relative;
  z-index: 2;
  font-family: Georgia, serif;
  font-size: 23px;
}

.level-row span {
  position: relative;
  z-index: 2;
  color: #c8d4df;
  font-size: 13px;
}

.level-row i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: var(--w);
  height: 2px;
  background: var(--coral);
}

.faq {
  background: var(--paper);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
  gap: 100px;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  position: relative;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 6px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary span {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue-pale);
}

.faq-list summary span::before,
.faq-list summary span::after {
  position: absolute;
  top: 11px;
  left: 7px;
  width: 10px;
  height: 2px;
  content: "";
  background: var(--blue);
  transition: transform 180ms ease;
}

.faq-list summary span::after { transform: rotate(90deg); }
.faq-list details[open] summary span::after { transform: rotate(0); }

.faq-list details p {
  max-width: 670px;
  margin: -3px 44px 24px 6px;
  color: var(--ink-soft);
  font-size: 14px;
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 105px 0;
  color: #fff;
  background: var(--coral);
}

.final-pattern::before,
.final-pattern::after {
  position: absolute;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.04), 0 0 0 110px rgba(255, 255, 255, 0.025);
}

.final-pattern::before { top: -245px; left: -160px; }
.final-pattern::after { right: -170px; bottom: -265px; }

.final-cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.final-cta-inner > img {
  margin: 0 auto 23px;
  border: 3px solid rgba(255, 255, 255, 0.42);
  border-radius: 22.4%;
  box-shadow: 0 17px 38px rgba(119, 43, 34, 0.22);
}

.final-cta .kicker { color: #722f27; }

.final-cta h2 {
  margin-bottom: 17px;
  color: #fff;
  font-size: clamp(45px, 5vw, 67px);
}

.final-cta-inner > p:not(.kicker) {
  margin-bottom: 30px;
  font-size: 17px;
}

.final-actions { justify-content: center; }

.button-light {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 12px 28px rgba(107, 39, 30, 0.16);
}

.app-store {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  padding: 8px 17px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 14px;
  color: #fff;
  transition: transform 180ms ease, background 180ms ease;
}

.app-store:hover,
.app-store:focus-visible {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
}

.app-store svg { width: 25px; fill: currentColor; }
.app-store span { display: flex; flex-direction: column; text-align: left; line-height: 1; }
.app-store small { margin-bottom: 3px; font-size: 8px; }
.app-store strong { font-size: 16px; }

.site-footer {
  padding: 68px 0 25px;
  color: #cbd5df;
  background: #102b49;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 70px;
  padding-bottom: 50px;
}

.footer-brand .brand { color: #fff; }

.footer-brand p {
  margin: 18px 0 0;
  color: #94a8bb;
  font-size: 13px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
}

.footer-links strong {
  margin-bottom: 6px;
  color: #fff;
  font-size: 12px;
}

.footer-links a { color: #9db0c1; }
.footer-links a:hover,
.footer-links a:focus-visible { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8196aa;
  font-size: 11px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(229, 111, 90, 0.7);
  outline-offset: 4px;
}

@media (max-width: 1040px) {
  .site-nav { gap: 19px; }
  .hero-grid { gap: 25px; }
  .phone { left: 82px; }
  .float-card-form { right: -4px; }
  .reference-grid { gap: 40px; }
  .reference-phone { left: 65px; }
  .grammar-card-top { right: 0; }
  .grammar-card-bottom { left: -20px; }
}

@media (max-width: 820px) {
  .shell { width: min(calc(100% - 36px), var(--shell)); }

  .nav-toggle { display: block; cursor: pointer; }

  .site-nav {
    position: fixed;
    top: 70px;
    right: 18px;
    left: 18px;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 13px;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top;
    border: 1px solid var(--border);
    border-radius: 18px;
    opacity: 0;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: var(--shadow);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

  .site-nav.open {
    visibility: visible;
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .site-nav a {
    padding: 12px 13px;
    border-radius: 10px;
  }

  .site-nav a:hover { background: var(--blue-pale); }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta { margin-top: 7px; text-align: center; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero {
    min-height: auto;
    padding-top: 125px;
  }

  .hero-grid,
  .reference-grid,
  .level-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 25px;
    text-align: center;
  }

  h1 { margin-inline: auto; }
  .hero-lede { margin-inline: auto; }
  .hero-actions,
  .hero-note { justify-content: center; }

  .hero-visual {
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .proof-bar { margin-top: 15px; }

  .steps { grid-template-columns: 1fr; }
  .step-card { min-height: auto; }
  .step-card.featured { transform: none; }
  .step-icon { height: 130px; }

  .reference { background: var(--paper); }
  .reference-grid { gap: 65px; }
  .reference-copy { max-width: 650px; }
  .reference-visual { width: min(100%, 550px); margin: 0 auto; }

  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-wide { grid-column: span 2; }

  .level-grid { gap: 55px; }
  .faq-grid { gap: 15px; }
  .faq .section-heading { margin-bottom: 30px; }

  .footer-main { grid-template-columns: 0.75fr 1.25fr; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .nav-wrap { min-height: 70px; }
  .brand img { width: 39px; height: 39px; }

  .hero { padding-top: 105px; }
  .eyebrow { font-size: 9px; }
  h1 { margin-top: 22px; font-size: clamp(48px, 15vw, 64px); }
  .hero-lede { font-size: 16px; }

  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-note { margin-top: 24px; }

  .hero-visual { min-height: 580px; }
  .sun-disc { top: 42px; right: calc(50% - 210px); width: 420px; height: 420px; }
  .phone { left: calc(50% - 126px); width: 252px; border-radius: 41px; }
  .phone img { border-radius: 34px; }
  .word-orbit-one { left: 8px; }
  .word-orbit-two { right: 1px; }
  .float-card-form { right: -5px; bottom: 62px; width: 177px; padding: 14px; }
  .float-card-form strong { font-size: 22px; }
  .float-card-bonus { bottom: 166px; left: -3px; }

  .proof-bar {
    grid-template-columns: 1fr 1fr;
    border-radius: 20px 20px 0 0;
  }

  .proof-bar > div { min-height: 96px; }
  .proof-bar > div:nth-child(2)::after { display: none; }
  .proof-bar > div:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
  .proof-bar strong { font-size: 26px; }

  .section { padding: 90px 0; }
  h2 { font-size: clamp(40px, 12vw, 52px); }
  .section-heading { margin-bottom: 38px; }

  .reference-visual { min-height: 600px; }
  .reference-visual::before { top: 40px; right: calc(50% - 230px); width: 460px; height: 460px; }
  .reference-phone { left: calc(50% - 132px); width: 264px; height: 565px; border-radius: 42px; }
  .reference-phone img { border-radius: 34px; }
  .grammar-card { width: 180px; padding: 13px 14px; }
  .grammar-card strong { font-size: 17px; }
  .grammar-card-top { top: 95px; right: -4px; }
  .grammar-card-bottom { bottom: 44px; left: -3px; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: span 1; grid-template-columns: 1fr; }
  .privacy-stamp { margin: 5px auto; }

  .level-ladder { padding: 18px; }
  .level-copy .button { width: 100%; }

  .faq-list summary { font-size: 15px; }

  .final-cta { padding: 83px 0; }
  .final-actions { align-items: stretch; flex-direction: column; }
  .final-actions > * { width: 100%; }
  .app-store { justify-content: center; }

  .footer-main { grid-template-columns: 1fr; gap: 38px; }
  .footer-links { gap: 18px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 5px; }
}

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