:root {
  color-scheme: light;
  --navy: #143b6b;
  --blue: #1f59a1;
  --lake: #347fc1;
  --sky: #78bae8;
  --mist: #d4e8fa;
  --red: #a33845;
  --green: #1a6645;
  --amber: #e89c33;
  --ink: #202a35;
  --muted: #5d6976;
  --paper: #f8fafc;
  --white: #ffffff;
  --line: #cbd8e5;
  --shadow: 0 18px 45px rgba(20, 59, 107, 0.12);
  font-family: "Aptos", "Segoe UI Variable Text", Calibri, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

section[id],
.phone,
form {
  scroll-margin-top: 24px;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #e8f3fc 0, var(--paper) 23rem);
  font-size: 1.0625rem;
  line-height: 1.7;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--red);
}

:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-180%);
}

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

.site-header {
  border-top: 6px solid var(--red);
  border-bottom: 1px solid rgba(20, 59, 107, 0.18);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

.header-inner,
.page-shell,
.site-footer {
  width: min(100% - 40px, 980px);
  margin-inline: auto;
}

.header-inner,
.site-footer,
.content-width {
  width: min(100% - 64px, 1160px);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-family: "Aptos Display", "Segoe UI Variable Display", Calibri, sans-serif;
  font-size: 1.125rem;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  box-shadow: 0 5px 14px rgba(20, 59, 107, 0.18);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  white-space: nowrap;
}

.site-nav a {
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
  background: var(--mist);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: clamp(40px, 7vw, 88px);
  padding-block: clamp(56px, 9vw, 96px) 80px;
}

.page-main {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Aptos Display", "Segoe UI Variable Display", Calibri, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.5rem, 8vw, 4.75rem);
  line-height: 0.98;
}

.lede {
  max-width: 42rem;
  margin: 24px 0 0;
  color: #34485c;
  font-family: Charter, Georgia, serif;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.55;
}

.updated {
  display: inline-block;
  margin: 24px 0 0;
  padding: 5px 10px;
  border-left: 3px solid var(--amber);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
}

.policy-body {
  margin-top: 52px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.policy-section {
  padding: 30px 0 28px;
  border-bottom: 1px solid var(--line);
}

.policy-section h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.25;
}

.policy-section p,
.policy-section ul {
  margin: 0 0 14px;
}

.policy-section p:last-child,
.policy-section ul:last-child {
  margin-bottom: 0;
}

.policy-section ul {
  padding-left: 1.25rem;
}

.policy-section li + li {
  margin-top: 6px;
}

.page-aside {
  align-self: start;
  position: sticky;
  top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.page-aside h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1rem;
}

.page-aside p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.page-aside a {
  overflow-wrap: anywhere;
  font-weight: 700;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 6px;
  color: var(--white);
  background: var(--blue);
  font-weight: 750;
  text-decoration: none;
  gap: 12px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.action-link:hover {
  color: var(--white);
  background: var(--navy);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

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

.landing {
  background: radial-gradient(ellipse at 85% 8%, #cfe5f6 0, transparent 30%);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 50px;
  padding-block: 76px 64px;
}

.hero h1 {
  max-width: 13ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 5.8vw, 5.1rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero h1 em {
  color: var(--green);
}

.hero .lede {
  max-width: 38ch;
  font: inherit;
  font-size: 1.2rem;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 32px;
}

.hero-actions .action-link {
  padding: 13px 20px;
}

.text-link {
  padding-block: 10px;
  font-weight: 700;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 25px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.87rem;
  list-style: none;
}

.hero-notes li::before {
  content: "\2713";
  margin-right: 7px;
  color: var(--green);
  font-weight: bold;
}

.hero-art {
  position: relative;
  min-width: 0;
  isolation: isolate;
  padding: 12px 0 0;
}

.mountain {
  position: absolute;
  z-index: -1;
  right: -15px;
  bottom: 35px;
  left: -40px;
  height: 330px;
  border-radius: 0 0 45% 30%;
  clip-path: polygon(0 65%, 22% 24%, 34% 42%, 56% 0, 72% 37%, 80% 22%, 100% 65%, 100% 100%, 0 100%);
  background: #adcede;
}

.mountain-front {
  bottom: 15px;
  height: 200px;
  background: #87b5af;
  opacity: 0.5;
  transform: scaleX(-1);
}

.word-note {
  position: absolute;
  z-index: 1;
  top: 45px;
  left: -30px;
  padding: 10px 18px;
  border: 1px solid #fff;
  border-radius: 12px;
  background: #fffdf5;
  box-shadow: var(--shadow);
  transform: rotate(-8deg);
}

.word-note span,
.word-note small {
  display: block;
}

.word-note span {
  color: var(--green);
  font: italic 1.8rem Georgia, serif;
}

.word-note small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.phone {
  width: 320px;
  max-width: 100%;
  margin-inline: auto;
  padding: 14px 20px 24px;
  border: 7px solid #173651;
  border-radius: 42px;
  background: linear-gradient(155deg, #f5fbff, #d4e8fa);
  box-shadow: 14px 24px 55px #143b6b26, inset 0 0 0 2px white;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-size: 0.65rem;
  font-weight: 700;
}

.phone-island {
  width: 80px;
  height: 20px;
  border-radius: 20px;
  background: #173651;
}

.phone-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}

.phone-brand img {
  border-radius: 7px;
}

.demo-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 26px;
  color: #425c72;
  font-size: 0.7rem;
}

.phone h2 {
  margin: 14px 0 0;
  color: var(--navy);
  font-size: 1.3rem;
}

.demo-instruction {
  margin: 2px 0;
  color: #425c72;
  font-size: 0.8rem;
}

.demo-word {
  margin: 14px 0 20px;
  color: var(--navy);
  text-align: center;
  font: 3.5rem Georgia, serif;
}

.demo-options {
  display: grid;
  min-width: 0;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.demo-options button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid #a4c2d9;
  border-radius: 8px;
  color: var(--navy);
  background: white;
  text-align: left;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.demo-options button span {
  color: #52697e;
  font-size: 0.75rem;
}

.demo-options button:hover:not(:disabled) {
  border-color: var(--blue);
  background: #eef6ff;
}

.demo-options button:disabled {
  cursor: default;
}

.demo-options .is-correct {
  border-color: var(--green);
  color: #12472f;
  background: #e0f2e6;
}

.demo-options .is-incorrect {
  border-color: var(--red);
  color: #792532;
  background: #fce9eb;
}

.demo-feedback,
.demo-noscript {
  margin: 18px 0 0;
  color: #425c72;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

.demo-action {
  display: block;
  min-height: 44px;
  margin: 8px auto 0;
  padding: 8px 16px;
  border: 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

.preview-caption {
  margin: 24px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
}

.promise-strip {
  border-block: 1px solid var(--line);
  background: #fff9;
}

.promise-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
}

.promise-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.promise-inner strong {
  color: var(--navy);
}

.app-screen-section,
.quiz-screen-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: clamp(48px, 8vw, 100px);
}

.quiz-screen-section {
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
}

.app-screen-copy > p:not(.eyebrow) {
  max-width: 55ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.screen-highlights {
  display: grid;
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.screen-highlights li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  column-gap: 14px;
}

.screen-highlights li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--green);
}

.screen-highlights strong,
.screen-highlights span {
  grid-column: 2;
}

.screen-highlights strong {
  color: var(--navy);
}

.screen-highlights span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.92rem;
}

.screen-features-link {
  display: inline-block;
  margin-top: 30px;
}

.app-screen-figure {
  position: relative;
  margin: 0;
  text-align: center;
}

.app-screen-figure::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10% 0 8%;
  border-radius: 48% 52% 45% 55%;
  background: linear-gradient(145deg, #dceef9, #c8dfda);
  transform: rotate(5deg);
}

.app-screen-frame {
  width: min(100%, 378px);
  margin-inline: auto;
  padding: 8px;
  border: 1px solid #173651;
  border-radius: 32px;
  background: #173651;
  box-shadow: 16px 24px 55px #143b6b2e;
}

.app-screen-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.app-screen-figure figcaption {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.quiz-screen-figure::before {
  background: linear-gradient(145deg, #c8dfda, #dceef9);
  transform: rotate(-5deg);
}

.practice-gallery {
  border-top: 1px solid var(--line);
}

.practice-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 8vw, 88px);
  max-width: 880px;
  margin-inline: auto;
}

.practice-gallery-item {
  margin: 0;
  text-align: center;
}

.practice-gallery-item .app-screen-frame {
  width: min(100%, 340px);
}

.practice-gallery-item figcaption {
  max-width: 360px;
  margin: 22px auto 0;
}

.practice-gallery-item h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.15rem;
}

.practice-gallery-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-space {
  padding-block: 84px;
}

.section-heading {
  max-width: 620px;
  margin: 0 auto 36px;
  text-align: center;
}

.landing h2:not(.phone h2) {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-heading > p:last-child,
.contact-banner p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
}

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

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffffc9;
}

.feature-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--blue);
  background: #e4effa;
  font: bold 1.4rem Georgia, serif;
}

.green-mark {
  color: var(--green);
  background: #e3efe7;
}

.amber-mark {
  color: #885611;
  background: #faf0dc;
}

.feature-card h3 {
  margin: 22px 0 8px;
  color: var(--navy);
  font-size: 1.22rem;
}

.feature-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1rem;
}

.feature-tag {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
}

.learning-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 80px;
  padding-bottom: 84px;
}

.phrase-card {
  padding: 54px 36px;
  border: 1px solid #c3d8d0;
  border-radius: 20px;
  background: linear-gradient(135deg, #edf5ec, #d9eae3);
  text-align: center;
}

.phrase-card .eyebrow {
  color: var(--green);
}

.phrase-sl {
  margin: 28px 0 0;
  color: #234f3c;
  font: italic clamp(2.6rem, 4vw, 3.6rem) Georgia, serif;
}

.phrase-en {
  margin: 12px 0 32px;
  color: #496455;
}

.phrase-divider {
  width: 48px;
  height: 2px;
  margin: auto;
  background: #719e87;
}

.phrase-card > p:not([class]) {
  margin: 28px 0 8px;
  color: #234f3c;
  font-weight: 700;
}

.phrase-small {
  margin: 0;
  color: #496455;
  font-size: 0.85rem;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 18px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  flex: 0 0 36px;
  padding-top: 2px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 700;
}

.steps h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 1.1rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.privacy-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 40px;
  border-radius: 20px;
  background: var(--navy);
}

.privacy-banner > div {
  max-width: 620px;
}

.privacy-banner .eyebrow {
  color: #b4d6f0;
}

.landing .privacy-banner h2:not(.phone h2) {
  color: white;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.privacy-banner p:last-child {
  margin: 12px 0 0;
  color: #d1e2f0;
}

.light-action {
  flex-shrink: 0;
  color: var(--navy);
  background: white;
}

.light-action:hover {
  color: var(--navy);
  background: var(--mist);
}

.contact-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 76px;
}

.contact-banner .action-link {
  flex-shrink: 0;
}

form {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

label {
  color: var(--navy);
  font-weight: 700;
}

.optional,
.field-help {
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #96aabe;
  border-radius: 6px;
  color: var(--ink);
  background: white;
  font: inherit;
  line-height: 1.5;
}

textarea {
  resize: vertical;
}

form .action-link {
  justify-self: start;
}

#contact-status {
  margin: 8px 0 0;
  color: var(--green);
}

#contact-status:empty {
  display: none;
}

#email-draft {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ecf4fb;
}

#email-draft .field-help {
  margin-block: 18px;
}

#email-draft label {
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 1020px) {
  .hero {
    gap: 24px;
  }

  .word-note {
    top: -10px;
    left: 0;
  }

  .feature-card {
    padding: 22px;
  }

  .app-screen-section,
  .quiz-screen-section {
    gap: 48px;
  }

  .learning-section {
    gap: 40px;
  }

  .privacy-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .app-screen-section,
  .quiz-screen-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-screen-copy {
    max-width: 620px;
  }

  .app-screen-figure {
    width: min(100%, 430px);
    margin-inline: auto;
  }

  .app-screen-figure::before,
  .quiz-screen-figure::before {
    inset-inline: 12px;
    transform: none;
  }

  .quiz-screen-figure {
    order: 2;
  }
}

@media (max-width: 760px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-block: 14px;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1;
    text-align: center;
  }

  .page-shell {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 48px 64px;
  }

  .page-aside {
    position: static;
    order: -1;
  }

  .hero,
  .feature-grid,
  .practice-gallery-grid,
  .learning-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    gap: 44px;
    padding-top: 44px;
  }

  .hero h1 {
    max-width: 16ch;
    font-size: clamp(3rem, 9vw, 4.6rem);
  }

  .hero .lede {
    max-width: 48ch;
  }

  .hero-art {
    width: min(100%, 420px);
    margin-inline: auto;
  }

  .mountain {
    right: 0;
    left: 0;
  }

  .promise-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .section-space {
    padding-block: 56px;
  }

  .learning-section {
    padding-bottom: 56px;
  }

  .contact-banner {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 56px;
  }

  .privacy-banner {
    padding: 28px;
  }
}

@media (max-width: 430px) {
  .header-inner,
  .page-shell,
  .site-footer,
  .content-width {
    width: min(100% - 28px, 980px);
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .site-footer {
    flex-direction: column;
    gap: 6px;
  }

  .word-note {
    left: -2px;
    padding: 8px 12px;
  }

  .hero .eyebrow {
    font-size: 0.68rem;
  }

  .phone {
    padding-inline: 16px;
  }

  .privacy-banner {
    padding: 22px;
  }
}

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