@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f8fafd;
  --bg-2: #f2f6fb;
  --sky: #eaf5ff;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #5b6b82;
  --line: #e7edf5;
  --line-strong: #d7e0ec;
  --brand: #1677ff;
  --action: #0f6aef;
  --link: #0961d5;
  --on-action: #ffffff;
  --soft: #eaf3ff;
  --tint: #dcebff;
  --wall: #a8b6c9;
  --wall-lit: #1677ff;
  --hill-1: #c5e0ff;
  --hill-2: #a9d1ff;
  --hill-3: #8cc9ff;
  --sun: #ffd27a;
  --mint: #e7faf2;
  --mint-ink: #087a52;
  --error: #ba2948;
  --error-bg: #ffe4e8;
  --shadow:
    0 2px 4px rgba(15, 23, 42, 0.04), 0 24px 48px -12px rgba(15, 23, 42, 0.16);
  --shadow-soft:
    0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 24px -8px rgba(15, 23, 42, 0.1);
  --max: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
  caret-color: var(--brand);
  scrollbar-color: var(--line-strong) var(--bg);
}

::selection {
  background: var(--tint);
  color: var(--ink);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
  margin: 0;
}

p {
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 20;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 10px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.wordmark em {
  font-style: normal;
  color: var(--brand);
}

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.nav a:hover {
  color: var(--ink);
}

@media (max-width: 760px) {
  .nav a:not(.btn) {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 16px;
  background: var(--action);
  color: var(--on-action);
  font:
    600 16px/1.2 'Inter',
    system-ui,
    sans-serif;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition:
    transform 160ms var(--ease),
    background 160ms var(--ease);
}

.btn:hover {
  background: color-mix(in srgb, var(--action) 88%, var(--ink));
}

.btn:active {
  transform: scale(0.985);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn.small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: 12px;
}

.nav .btn,
.nav .btn:hover {
  color: var(--on-action);
}

.btn.quiet {
  background: var(--soft);
  color: var(--link);
  box-shadow: inset 0 0 0 1px var(--tint);
}

.btn.quiet:hover {
  background: var(--tint);
}

/* The word wall: one layer behind the whole page */
.page {
  position: relative;
  overflow: hidden;
  background: var(--sky);
}

.wall {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 28px 18px 0;
  overflow: hidden;
  text-align: center;
  line-height: 1.18;
  user-select: none;
}

.hero {
  position: relative;
  height: min(100svh - 64px, 880px);
  min-height: 640px;
  pointer-events: none;
}

.w {
  display: inline;
  margin: 0;
  padding: 0 0.12em;
  border: 0;
  background: none;
  color: var(--wall);
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  border-radius: 6px;
  transition:
    color 900ms var(--ease),
    background 200ms var(--ease);
}

.w.s0 {
  font-size: 17px;
}
.w.s1 {
  font-size: 23px;
}
.w.s2 {
  font-size: 30px;
  font-weight: 800;
}
.w.s3 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.w.lit {
  color: var(--wall-lit);
}

.w:hover,
.w[aria-expanded='true'] {
  color: var(--ink);
  background: var(--surface);
  transition-duration: 120ms;
}

.wall-panel {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 46%;
  translate: -50% -50%;
  width: min(620px, calc(100% - 32px));
  padding: 40px 40px 32px;
  background: var(--bg);
  border-radius: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.wall-panel h1 {
  font-size: clamp(38px, 6.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.wall-panel h1 em {
  font-style: normal;
  color: var(--brand);
}

.wall-panel .lede {
  margin: 18px auto 26px;
  max-width: 30em;
  color: var(--muted);
  font-size: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.find {
  margin: 22px auto 0;
  max-width: 360px;
  position: relative;
}

.find label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.find input {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font:
    400 16px 'Inter',
    system-ui,
    sans-serif;
  padding: 0 16px;
}

.find input:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.find .hint {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;
  min-height: 1.4em;
}

.trust {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .hero {
    height: calc(100svh - 64px);
    min-height: 600px;
  }
  .wall {
    padding: 14px 10px 0;
  }
  .w.s0 {
    font-size: 14px;
  }
  .w.s1 {
    font-size: 18px;
  }
  .w.s2 {
    font-size: 23px;
  }
  .w.s3 {
    font-size: 29px;
  }
  .wall-panel {
    padding: 26px 20px 20px;
    border-radius: 24px;
  }
  .wall-panel .lede {
    margin: 12px auto 18px;
    font-size: 16px;
  }
  .wall-panel .find,
  .wall-panel .trust {
    display: none;
  }
  .wall-panel .cta-row {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .wall-panel .phone-link {
    background: none;
    box-shadow: none;
    min-height: 44px;
  }
}

/* Context card that opens from a word */
.ctx {
  position: absolute;
  z-index: 5;
  width: min(360px, calc(100vw - 32px));
  padding: 20px 22px;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: left;
  opacity: 0;
  translate: 0 6px;
  transition:
    opacity 180ms var(--ease),
    translate 180ms var(--ease);
  pointer-events: none;
}

.ctx.on {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

.ctx .head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.ctx .lemma {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ctx .meta {
  font-size: 13px;
  color: var(--muted);
}

.ctx .sentence {
  margin: 12px 0 10px;
  font-size: 16px;
  line-height: 1.55;
}

.ctx .sentence mark {
  background: var(--tint);
  color: var(--ink);
  font-weight: 600;
  border-radius: 5px;
  padding: 0 3px;
}

.ctx .means {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.ctx .means b {
  color: var(--ink);
  font-weight: 600;
}

.ctx .close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ctx .close:hover {
  background: var(--soft);
  color: var(--ink);
}

/* Middle scenes: the wall continues, panels float on it */
.scene {
  position: relative;
  padding: 120px 0;
  pointer-events: none;
}

.wall-panel,
.panel,
.close-panel,
.hills {
  pointer-events: auto;
}

.panel {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 48px;
}

.panel-right {
  max-width: 620px;
  margin-left: auto;
}

.panel-left {
  max-width: 760px;
  margin-right: auto;
}

.panel-center {
  max-width: 720px;
  margin: 0 auto;
}

.panel h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.panel h2 em {
  font-style: normal;
  color: var(--brand);
}

.panel .intro {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.panel .intro b,
.trace b {
  color: var(--link);
  font-weight: 600;
}

@media (max-width: 640px) {
  .scene {
    padding: 96px 0;
  }
  .panel {
    padding: 30px 22px;
    border-radius: 24px;
  }
}

/* How it works: a timeline inside the panel */
.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.steps li {
  position: relative;
  padding-left: 28px;
}

.steps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px var(--tint);
}

.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 26px;
  bottom: -26px;
  width: 2px;
  background: var(--tint);
}

.steps .time {
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
}

.steps h3 {
  margin: 2px 0 6px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.steps .trace {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  font-size: 16px;
}

/* Try one: tabs switch the question type */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 20px;
}

@media (max-width: 640px) {
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -22px;
    padding-right: 22px;
    scrollbar-width: none;
  }
  .tabs button {
    flex: none;
  }
}

.tabs button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font:
    600 15px 'Inter',
    system-ui,
    sans-serif;
  cursor: pointer;
}

.tabs button:hover {
  color: var(--ink);
  border-color: var(--brand);
}

.tabs button[aria-selected='true'] {
  background: var(--soft);
  color: var(--link);
  border-color: var(--tint);
}

.q {
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.q .passage {
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.q .passage mark {
  background: var(--tint);
  color: var(--ink);
  border-radius: 6px;
  padding: 0 4px;
  font-weight: 600;
}

.q .ask {
  margin: 0 0 16px;
  font-weight: 600;
}

.choices {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.choices button {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  font:
    400 17px 'Inter',
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 10px 14px;
  cursor: pointer;
  transition:
    border-color 160ms var(--ease),
    background 160ms var(--ease);
}

.choices button:hover:not(:disabled) {
  border-color: var(--brand);
}

.choices button:disabled {
  cursor: default;
}

.choices .key {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--link);
  font-weight: 600;
  font-size: 14px;
  flex: none;
}

.choices .state {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
}

.choices button[data-state='right'] {
  border: 2px solid var(--mint-ink);
  background: var(--mint);
}

.choices button[data-state='right'] .state {
  color: var(--mint-ink);
}

.choices button[data-state='wrong'] {
  border: 2px solid var(--error);
  background: var(--error-bg);
}

.choices button[data-state='wrong'] .state {
  color: var(--error);
}

.feedback {
  margin: 16px 0 0;
  min-height: 3.2em;
  color: var(--muted);
  font-size: 16px;
}

.again {
  margin-top: 4px;
  background: none;
  border: 0;
  padding: 6px 0;
  color: var(--link);
  font:
    600 15px 'Inter',
    system-ui,
    sans-serif;
  cursor: pointer;
}

/* Plans: two columns inside the panel */
.plan-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.plan.plus {
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--tint);
}

.plan h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.soon {
  font-size: 12px;
  font-weight: 600;
  color: var(--link);
  background: var(--surface);
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: 0;
}

.price {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price span {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1;
  align-content: start;
}

.ticks li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087A52' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.plan .btn {
  align-self: flex-start;
}

.fine {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .plan-cols {
    grid-template-columns: 1fr;
  }
}

/* FAQ inside its panel */
.faq h2 {
  margin-bottom: 16px;
}

.faq details {
  border-top: 1px solid var(--line-strong);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.faq summary svg {
  width: 22px;
  height: 22px;
  color: var(--brand);
  flex: none;
  transition: rotate 200ms var(--ease);
}

.faq details[open] summary svg {
  rotate: 45deg;
}

.faq details p {
  margin: 0 0 20px;
  color: var(--muted);
}

/* Close */
.close-band {
  position: relative;
  text-align: center;
  padding: 120px 0 0;
  pointer-events: none;
}

.close-panel {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px 44px;
  background: var(--bg);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.close-band h2 {
  margin: 0 auto;
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 800;
}

@media (max-width: 640px) {
  .close-panel {
    margin: 0 16px;
    padding: 32px 22px;
    width: auto;
  }
}

.close-band .intro {
  margin: 18px auto 32px;
}

.stores {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.hills {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 170px;
  margin-top: 72px;
}

.hills .h1 {
  fill: var(--hill-1);
}
.hills .h2 {
  fill: var(--hill-2);
}
.hills .h3 {
  fill: var(--hill-3);
}
.hills .sun {
  fill: var(--sun);
}

/* Footer */
.site-footer {
  background: var(--hill-3);
  color: var(--ink);
  padding: 8px 0 40px;
  font-size: 14px;
}

.site-footer .wrap {
  display: grid;
  gap: 18px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer .wordmark em {
  color: var(--link);
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.disclaimer {
  margin: 0;
  font-size: 13px;
  max-width: 70ch;
}

/* Document pages */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 120px;
}

.doc h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.doc h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 48px 0 10px;
}

.doc h3 {
  font-size: 19px;
  margin: 32px 0 6px;
}

.doc .updated {
  color: var(--muted);
  font-size: 15px;
  margin: 12px 0 0;
}

.doc .lede {
  font-size: 19px;
  color: var(--muted);
}

.doc p,
.doc li {
  max-width: 68ch;
}

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

.short {
  margin: 32px 0;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--soft);
}

.short p {
  margin: 0;
}

.table-scroll {
  overflow-x: auto;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0;
}

.doc th,
.doc td {
  text-align: left;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 8px;
  vertical-align: top;
}

.doc th {
  color: var(--muted);
  font-weight: 600;
}

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