/* PocketProf landing site — the Hybrid look (cobalt, with a "punch" at moments of understanding). Tokens are web/src/styles/tokens.css, copied verbatim to assets/tokens.css. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font-sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p, ul, ol {
  margin: 0;
}

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

::selection {
  background: var(--marker);
  color: var(--on-marker);
}

mark {
  background: linear-gradient(transparent 38%, var(--marker) 38% 92%, transparent 92%);
  color: inherit;
  padding: 0 0.08em;
}

/* On the dark page the underline-style highlighter would leave light text on
   the dark half; a solid marker block with dark text reads in both. */
.dark mark {
  background: var(--marker);
  color: var(--on-marker);
  border-radius: 3px;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-text);
}

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 26px/1 var(--font-display);
}

.logo .band { fill: var(--logo-band); }
.logo .board { fill: var(--logo-board); }
.logo .tassel { fill: var(--logo-tassel); }
.logo .tassel-line { fill: none; stroke: var(--logo-tassel); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-2);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.nav-links a.nav-signup {
  margin-left: 2px;
  padding: 11px 20px;
  background: var(--action);
  color: var(--on-action);
  font-weight: 500;
}

.nav-links a.nav-signup:hover {
  background: var(--action-hover);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.theme-toggle .icon-sun,
.dark .theme-toggle .icon-moon {
  display: none;
}

.dark .theme-toggle .icon-sun {
  display: block;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.15s, transform 0.15s var(--ease-out);
}

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

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-plain {
  padding: 0 22px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  color: var(--text);
}

.btn-plain:hover {
  background: var(--surface-hover);
}

.btn-now {
  background: var(--now-strong);
  color: var(--on-now);
  font-weight: 600;
}

.btn-now:hover {
  filter: brightness(0.94);
}

.btn-sm {
  min-height: 46px;
  padding: 0 22px;
  font-size: 14.5px;
}

.btn:focus-visible,
.opt:focus-visible,
.picker button:focus-visible,
.nav-links a:focus-visible,
.theme-toggle:focus-visible,
.footer a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0 96px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-sub {
  margin-top: 22px;
  max-width: 480px;
  font-size: 18px;
  color: var(--text-2);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hint {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-2);
}

/* ---------- example stacks ----------
   Each [data-part] holds all three examples in one grid cell, so it is as
   tall as its tallest example at any width and switching never shifts the
   page. Only the active layer is visible. */

.stack {
  display: grid;
}

.stack > * {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s var(--ease-out), visibility 0s linear 0.15s;
}

.stack > .is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s var(--ease-out) 0.1s, visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  .stack > *,
  .stack > .is-active {
    transition: none;
  }
}

/* ---------- subject picker (one per section, kept in sync) ---------- */

.stage-bar {
  margin-bottom: 16px;
}

.picker {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-3);
}

.picker button {
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
}

.picker button:hover {
  color: var(--text);
}

.picker button[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ---------- app window (the lesson screens, as the app draws them) ---------- */

.win {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-pop);
}

.win-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  min-height: 56px;
  padding: 8px 22px;
  border-bottom: 1px solid var(--surface-3);
}

.win-title {
  font-size: 14px;
  font-weight: 500;
}

.win-body {
  padding: 22px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-2);
}

.stepper .dot {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}

.stepper .is-done .dot {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

.stepper .is-current {
  font-weight: 600;
  color: var(--text);
}

.stepper .is-current .dot {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: var(--ring-current);
}

.stepper > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stepper i {
  width: 14px;
  height: 1px;
  background: var(--border-strong);
}

.progress {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
}

.progress b {
  display: block;
  width: 72px;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-3);
}

.progress b i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--now);
}

.bubble {
  align-self: flex-end;
  max-width: 340px;
  padding: 12px 16px;
  border-radius: 18px 18px 4px 18px;
  background: var(--action);
  color: var(--on-action);
  font-size: 15px;
  line-height: 1.45;
}

.tutor-line {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-prose);
}

/* ---------- cards inside the window ---------- */

.card {
  padding: 18px 22px;
  background: var(--surface);
  border: 2.5px solid var(--action);
  border-radius: 16px;
  box-shadow: var(--punch);
}

/* The tutor talking (the plan) stays soft; cards that test you (the probe and the think-it-through) punch. */
.card-plan {
  border: 0;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 2px 8px;
  border: 2px solid currentColor;
  border-radius: 6px;
  font: 600 11px var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.card-plan .kicker {
  border: 0;
  background: var(--brand-soft);
  color: var(--brand-text);
}

.card-q {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ---------- quiz options and verdicts ---------- */

.opts {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 14px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--action);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.opt:hover {
  background: var(--brand-soft);
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--text);
}

.opt-key {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--action);
  font: 600 12px var(--font-mono);
  color: var(--on-action);
}

.opt.is-right {
  border-color: var(--success);
  background: var(--success-soft);
}

.opt.is-right .opt-key {
  background: var(--success);
  color: var(--on-brand);
}

.opt.is-wrong {
  border-color: var(--wrong);
  background: var(--wrong-soft);
}

.opt.is-wrong .opt-key {
  background: var(--wrong);
  color: var(--on-brand);
}

.opt.is-unsure {
  border-color: var(--warning);
  background: var(--warning-soft);
}

.opt.is-unsure .opt-key {
  background: var(--warning);
  color: var(--on-brand);
}

.verdicts {
  margin-top: 12px;
}

.verdict {
  padding: 12px 14px;
  border: 2.5px solid var(--action);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.verdict.is-empty {
  border: 1px dashed var(--border-strong);
  color: var(--text-2);
}

.verdict-label {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-punch);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--text);
}

.verdict.misconception { background: var(--wrong-soft); }
.verdict.solid { background: var(--success-soft); }
.verdict.shaky { background: var(--warning-soft); }

/* ---------- walkthrough rows ---------- */

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.row-copy {
  max-width: 460px;
}

.row h2,
.pricing-head h2 {
  margin-top: 10px;
  font-size: clamp(32px, 3.6vw, 42px);
  line-height: 1.1;
  text-wrap: balance;
}

.row-copy p:not(.eyebrow),
.pricing-head p:not(.eyebrow) {
  margin-top: 14px;
  font-size: 16.5px;
  color: var(--text-2);
}

/* plan card */

.plan-list-ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  font-size: 15px;
}

.plan-list-ol li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.plan-no {
  width: 18px;
  text-align: right;
  font: 12px var(--font-mono);
  color: var(--text-2);
}

.plan-name {
  flex: 1 1 120px;
  font-weight: 500;
}

.dot-status {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}

.s-solid { --c: var(--status-solid); }
.s-shaky { --c: var(--status-shaky); }
.s-misconception { --c: var(--status-misconception); }
.s-unseen { --c: var(--status-unseen); }

.tag {
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand-text);
  font-size: 11px;
  font-weight: 600;
}

.mode {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  background: var(--bg);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
}

.mode span {
  padding: 4px 8px;
  border-radius: 6px;
}

.mode .on {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-2);
}

.fake-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-lg);
  background: var(--action);
  color: var(--on-action);
  font-size: 14px;
  font-weight: 500;
}

/* teaching */

.idea-title {
  font: 700 28px/1.15 var(--font-display);
}

.lesson-p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-prose);
}

.teach-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.think-box {
  margin-top: 12px;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg);
  font: 700 17px/1.4 var(--font-display);
  color: var(--text-3);
}

/* memory */

.mem {
  padding: 16px 18px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-pop);
}

.mem-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.pill-solid {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.seg {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.seg span {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--text-2);
}

.seg .on {
  background: var(--action);
  color: var(--on-action);
}

.health {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.health-bar {
  display: flex;
  gap: 3px;
  height: 8px;
}

.health-bar i {
  border-radius: 4px;
  background: var(--c);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-2);
}

.stats b {
  font-weight: 600;
  color: var(--text);
}

.memory-map {
  display: block;
  width: 100%;
  height: auto;
}

.memory-map text {
  font: 500 12px var(--font-sans);
  fill: var(--text);
}

.note {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.note .eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--now-text);
}

.note p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.45;
}

/* ---------- pricing ---------- */

.pricing {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.pricing-head {
  max-width: 560px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 18px;
  margin-top: 36px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
}

.dark .plan {
  box-shadow: 0 0 0 1px var(--border);
}

.plan h3 {
  font-size: 24px;
}

.plan-price {
  margin-top: 10px;
  font: 700 44px/1.05 var(--font-display);
}

.plan-price span {
  margin-left: 4px;
  font: 400 15px/1 var(--font-sans);
  color: var(--text-2);
}

.plan-list {
  flex: 1;
  margin: 20px 0 26px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--text-prose);
}

.plan-list li {
  padding: 10px 0;
  border-top: 1px solid var(--divider);
}

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

.plan-main {
  background: var(--hero);
  color: var(--on-hero);
}

.plan-main .plan-price span,
.plan-main .plan-list {
  color: var(--on-hero-2);
}

.plan-main .plan-list li {
  border-top-color: var(--hero-track);
  color: var(--on-hero);
}

.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--hero-track);
  color: var(--hero-eyebrow);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- closing ---------- */

.end {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 72px;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 28px;
  background: var(--hero);
  color: var(--on-hero);
}

.end .eyebrow {
  margin-bottom: 14px;
  color: var(--hero-eyebrow);
}

.end h2 {
  max-width: 640px;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.08;
  text-wrap: balance;
}

.end .btn {
  min-height: 52px;
  padding: 0 28px;
  font-size: 16px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding: 20px 0 40px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-2);
}

.footer .brand {
  font-size: 20px;
  color: var(--text);
}

.footer a:hover {
  color: var(--text);
}

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

/* ---------- legal pages (privacy, terms, refunds) ---------- */

.legal {
  max-width: 760px;
  margin: 24px auto 72px;
  padding: clamp(24px, 5vw, 56px);
  background: var(--paper);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.legal h1 {
  font-size: clamp(34px, 4.6vw, 46px);
  line-height: 1.1;
  text-wrap: balance;
}

.legal h2 {
  margin-top: 40px;
  font-size: 26px;
  line-height: 1.2;
}

.legal p,
.legal ul {
  margin-top: 12px;
  line-height: 1.65;
  color: var(--text-prose);
}

.legal .updated + p {
  margin-top: 28px;
  font-size: 17px;
}

.legal ul {
  padding-left: 22px;
}

.legal li + li {
  margin-top: 8px;
}

.legal a {
  color: var(--brand-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal .updated {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 14px;
}

/* ---------- locked scrolling ---------- */
/* On roomy screens each section fills the viewport under the sticky nav and
   scrolling snaps from one to the next. Small or short screens scroll freely. */

@media (min-width: 901px) and (min-height: 640px) {
  html {
    scroll-snap-type: y mandatory;
    scroll-padding-top: 72px;
  }

  .nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
  }

  .hero,
  .row,
  .pricing {
    min-height: calc(100vh - 72px);
    min-height: calc(100svh - 72px);
    scroll-snap-align: start;
  }

  .hero,
  .row,
  .pricing {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .pricing {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* The closing card keeps its natural size; it snaps centred rather than
     stretching to fill the screen. */
  .end {
    margin: 12vh 0;
    scroll-snap-align: center;
  }

  .footer {
    scroll-snap-align: end;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero,
  .row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    padding: 24px 0 64px;
  }

  .row {
    padding: 48px 0;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 0 16px;
  }

  .hide-sm {
    display: none !important;
  }

  .win-body {
    padding: 16px;
  }

  .win-bar {
    padding: 8px 16px;
  }

  .card {
    padding: 16px 18px;
  }

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