/* TestFromNotes marketing site. Same paper, ink, pens and highlighters as the app. */
@font-face { font-family: "Lexend"; font-weight: 400; font-display: swap; src: url("fonts/lexend-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 500; font-display: swap; src: url("fonts/lexend-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 600; font-display: swap; src: url("fonts/lexend-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 700; font-display: swap; src: url("fonts/lexend-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url("fonts/caveat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url("fonts/caveat-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #EEF2F7;
  --sheet: #FFFFFF;
  --ink: #1B2A4A;
  --ink-2: #4F5C78;
  --ink-3: #7A87A3;
  --rule: #D3DDEE;
  --rule-blue: #B9C9E6;
  --pen: #2350D8;
  --pen-dark: #1A3FB0;
  --pen-soft: #E3EAFC;
  --redpen: #D93A3A;
  --ok: #17895A;
  --hl: #FFE347;
  --font: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --shadow: 0 1px 1px rgba(27, 42, 74, .06), 0 24px 48px -24px rgba(27, 42, 74, .35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pen); }
a:hover { color: var(--pen-dark); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); max-width: 22ch; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sheet); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.wrap.narrow { max-width: 780px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px;
  background: var(--pen); color: #fff; font: 600 1rem/1 var(--font); text-decoration: none; border: 1.5px solid var(--pen); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--pen-dark); border-color: var(--pen-dark); color: #fff; }
.btn.big { min-height: 54px; padding: 0 26px; font-size: 1.08rem; border-radius: 12px; }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: transparent; color: var(--pen); }
.btn.ghost:hover { background: var(--pen-soft); color: var(--pen-dark); }
.fine { font-size: .9rem; color: var(--ink-3); }
.center { text-align: center; }

/* ---------- Top bar ---------- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.12rem; }
.brand .logo { width: 32px; height: 32px; }
.links { display: flex; gap: 22px; margin-left: 18px; }
.links a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.links a:hover { color: var(--ink); }
.top-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.signin { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }


/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.06; letter-spacing: -0.03em; max-width: 13ch; }
.lead { margin-top: 22px; font-size: 1.15rem; color: var(--ink-2); max-width: 44ch; }
.hero-actions { margin-top: 30px; display: grid; gap: 12px; justify-items: start; }
@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
}

/* The notebook page with the phone resting on it: the one bold element on the page. */
.hero-art { position: relative; min-height: 560px; width: 100%; max-width: 580px; justify-self: end; }
.notebook { position: absolute; left: 0; top: 10px; width: 390px; min-height: 470px; padding: 26px 30px 40px 64px; background: var(--sheet);
  border-radius: 6px; box-shadow: var(--shadow); transform: rotate(-3deg);
  background-image: linear-gradient(to right, transparent 46px, #EE8B8B 46px, #EE8B8B 48px, transparent 48px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 35px, var(--rule-blue) 35px, var(--rule-blue) 36px);
  background-position: 0 0, 0 52px; font-family: var(--hand); color: #24366A; }
.notebook::before { content: ""; position: absolute; left: 16px; top: 64px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper);
  box-shadow: 0 150px 0 var(--paper), 0 300px 0 var(--paper); }
.nb-date { display: block; text-align: right; font-size: 1.25rem; color: var(--ink-3); line-height: 26px; }
.nb-title { font-size: 2.3rem; font-weight: 700; line-height: 36px; margin: 0 0 0; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.nb-lines { list-style: none; margin: 0; padding: 0; font-size: 1.42rem; font-weight: 600; line-height: 36px; }
.nb-lines li::before { content: "– "; }
.notebook mark { color: inherit; padding: 0 2px; border-radius: 3px; background: linear-gradient(transparent 18%, rgba(255, 227, 71, .85) 18%, rgba(255, 227, 71, .85) 88%, transparent 88%) no-repeat;
  background-size: 100% 100%; animation: swipe .55s ease-out both; }
.notebook li:nth-child(1) mark { animation-delay: .35s; }
.notebook li:nth-child(3) mark { animation-delay: .9s; }
.notebook li:nth-child(4) mark { animation-delay: 1.35s; }
@keyframes swipe { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
.nb-note { position: absolute; right: 30px; top: 46px; font-size: 1.45rem; font-weight: 700; color: var(--redpen); transform: rotate(-6deg); background: rgba(255,255,255,.85);
  padding: 0 10px; border: 2.5px solid var(--redpen); border-radius: 50% 46% 52% 44%; }

.phone { position: absolute; right: 0; top: 90px; width: 204px; padding: 9px; border: 0; border-radius: 38px; background: #1B2A4A; cursor: pointer;
  box-shadow: 0 2px 0 #0f1a33 inset, 0 30px 60px -20px rgba(27, 42, 74, .55); transform: rotate(4deg);
  animation: rise .7s cubic-bezier(.2, .7, .2, 1) 1.7s both; }
.phone-screen { position: relative; display: block; border-radius: 30px; overflow: hidden; aspect-ratio: 1 / 2; background: var(--paper); perspective: 900px; }
.phone .face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; transition: transform .5s ease; }
.phone .back { transform: rotateY(180deg); }
.phone[aria-pressed="true"] .front { transform: rotateY(-180deg); }
.phone[aria-pressed="true"] .back { transform: rotateY(0); }
@keyframes rise { from { opacity: 0; transform: translateY(26px) rotate(4deg); } to { opacity: 1; transform: translateY(0) rotate(4deg); } }
.tap-hint { position: absolute; right: 214px; top: 500px; font: 700 1.45rem/1 var(--hand); color: var(--redpen); transform: rotate(-8deg);
  animation: rise-hint .5s ease 2.3s both; }
.tap-hint::after { content: ""; position: absolute; right: -40px; top: -8px; width: 34px; height: 22px; border-top: 2.5px solid var(--redpen); border-right: 2.5px solid var(--redpen);
  border-radius: 0 24px 0 0; }
@keyframes rise-hint { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 900px) { .hero-art { justify-self: start; } }
@media (max-width: 560px) {
  .hero-art { min-height: 570px; }
  .notebook { width: 100%; min-height: 0; padding: 20px 18px 30px 52px; background-position: 0 0, 0 44px;
    background-image: linear-gradient(to right, transparent 38px, #EE8B8B 38px, #EE8B8B 40px, transparent 40px),
      repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--rule-blue) 31px, var(--rule-blue) 32px); }
  .notebook::before { left: 12px; }
  .nb-title { font-size: 1.9rem; line-height: 32px; }
  .nb-lines { font-size: 1.3rem; line-height: 32px; }
  .nb-lines li:nth-child(5) { display: none; }
  .nb-note { right: 18px; top: 50px; font-size: 1.35rem; }
  .phone { width: 158px; top: 252px; right: 6px; border-radius: 28px; padding: 7px; }
  .phone-screen { border-radius: 22px; }
  .tap-hint { right: 176px; top: 470px; font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .notebook mark, .phone, .tap-hint { animation: none; }
  .phone .face { transition: none; }
}

/* ---------- How it works (a real sequence, so it's numbered) ---------- */
.how { padding: 72px 0; background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 48px; height: 48px; display: grid; place-items: center;
  font: 700 2rem/1 var(--hand); color: var(--redpen); border: 2.5px solid var(--redpen); border-radius: 52% 46% 50% 44%; transform: rotate(-6deg); }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ink-2); max-width: 36ch; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Feature walkthrough ---------- */
.features { padding: 88px 0 40px; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; margin-top: 64px; }
.feature.flip .f-text { order: 2; }
.feature h3 { font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 14px; max-width: 18ch; }
.feature p { color: var(--ink-2); max-width: 46ch; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; background: var(--sheet); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.shot.pad { padding: 22px 26px 0; }
.shot.pair { display: grid; gap: 14px; background: none; border: 0; box-shadow: none; overflow: visible; }
.shot.pair img { border-radius: 14px; border: 1px solid var(--rule); box-shadow: var(--shadow); }
.shot.pair img:last-child { width: 82%; margin-left: auto; margin-top: -60px; position: relative; }
.shot.phone-shot { width: 250px; justify-self: center; border-radius: 34px; border: 9px solid #1B2A4A; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .feature.flip .f-text { order: 0; }
  .shot.pair img:last-child { margin-top: -30px; }
}

/* ---------- Parents ---------- */
.parents { padding: 72px 0 88px; }
.parents-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.p-text p { color: var(--ink-2); margin-top: 14px; max-width: 46ch; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }
@media (max-width: 860px) { .parents-in { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Pricing ---------- */
.pricing { padding: 80px 0; background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pricing h2 { text-align: center; margin: 0 auto; }
.plan { max-width: 480px; margin: 36px auto 0; padding: 30px; border-radius: 18px; background: var(--paper); border: 1px solid var(--rule); }
.plan-toggle { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--sheet); border: 1px solid var(--rule); }
.plan-toggle button { min-height: 42px; border: 0; border-radius: 9px; background: none; font: 500 .98rem var(--font); color: var(--ink-2); cursor: pointer; }
.plan-toggle button[aria-checked="true"] { background: var(--pen); color: #fff; }
.plan-toggle span { font-size: .82rem; opacity: .85; }
.price { margin-top: 26px; font-size: 1.1rem; color: var(--ink-2); }
.price b { font-size: 3.4rem; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.plan-sub { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }
.plan .ticks { margin: 24px 0 28px; }
.plan .fine { margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq { padding: 80px 0; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); top: 30px; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 62ch; }

/* ---------- Closing and sign-in ---------- */
.closing { padding: 72px 0 88px; background: var(--ink); color: #E6ECF7; }
.closing-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.closing h2 { color: #fff; }
.closing p { margin: 14px 0 26px; color: #B7C2DA; max-width: 40ch; }
.closing .btn { background: #fff; color: var(--ink); border-color: #fff; }
.closing .btn:hover { background: var(--pen-soft); border-color: var(--pen-soft); color: var(--ink); }
.find { background: var(--sheet); color: var(--ink); border-radius: 16px; padding: 26px; }
.find h3 { margin-bottom: 14px; }
.find label { display: block; font-size: .9rem; color: var(--ink-2); margin-bottom: 6px; }
.find-row { display: flex; }
.find-row input { flex: 1; min-width: 0; width: 100%; min-height: 48px; padding: 0 14px; font: 400 1rem var(--font); color: var(--ink); border: 1.5px solid var(--rule-blue); border-right: 0; border-radius: 10px 0 0 10px; background: #fff; }
.find-row input:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 3px var(--pen-soft); }
.find-row span { display: flex; align-items: center; padding: 0 12px; border: 1.5px solid var(--rule-blue); border-radius: 0 10px 10px 0; background: var(--paper); color: var(--ink-2); font-size: .92rem; white-space: nowrap; }
.find-err { min-height: 1.4em; font-size: .88rem; color: var(--redpen); margin: 6px 0 8px; }
.find .btn.ghost { color: var(--pen); background: transparent; border-color: var(--pen); }
.find .btn.ghost:hover { background: var(--pen-soft); }
@media (max-width: 820px) { .closing-in { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.foot { padding: 26px 0 34px; font-size: .9rem; color: var(--ink-3); }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { color: var(--ink-2); }

/* ---------- Legal pages ---------- */
.doc { padding: 48px 0 80px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.doc .updated { color: var(--ink-3); margin: 10px 0 30px; }
.doc h2 { font-size: 1.3rem; margin: 34px 0 10px; max-width: none; }
.doc p, .doc li { color: var(--ink-2); max-width: 68ch; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }

/* Friend's or promo code carried from the link */
.code-note { margin: 0 auto 18px; max-width: 640px; text-align: center; background: #E3EAFC; color: #1B2A4A; border-radius: 12px; padding: 8px 16px; font-size: .95rem; }

.code-note .invite-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.code-note p { margin: 4px 0; }
.code-note .btn.small { padding: 8px 14px; font-size: .95rem; }

/* Step-by-step for people sent by a friend */
.how-steps { list-style: none; margin: 0 auto 26px; padding: 0; max-width: 1080px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.how-steps li { overflow-wrap: anywhere; background: #fff; border: 1px solid #D3DDEE; border-radius: 12px; padding: 14px 14px 14px 52px; position: relative; font-size: .92rem; line-height: 1.4; color: #55617D; }
.how-steps li b { display: block; color: #1B2A4A; font-size: 1rem; margin-bottom: 4px; }
.how-steps .n { position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: #2350D8; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
@media (max-width: 900px) { .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .how-steps { grid-template-columns: minmax(0, 1fr); margin-left: 16px; margin-right: 16px; } }
.how-cta { text-align: center; margin: -8px 0 28px; }

/* Hero nudge toward sharing */
.hero-share { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; color: var(--pen); text-decoration: none; }
.hero-share:hover { text-decoration: underline; }
.hero-share .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(23, 137, 90, .15); }

/* Study with your classmates */
.classmates { padding: 80px 0; background: linear-gradient(180deg, var(--pen-soft) 0%, var(--paper) 100%); border-bottom: 1px solid var(--rule); }
.mates-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.hand-note { font-family: var(--hand); font-size: 1.7rem; font-weight: 700; color: var(--redpen); margin: 0 0 4px; transform: rotate(-2deg); transform-origin: left; }
.classmates h2 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.02em; }
.classmates .lead { margin-top: 14px; color: var(--ink-2); font-size: 1.12rem; max-width: 56ch; }
.mates-steps { list-style: none; counter-reset: ms; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.mates-steps li { counter-increment: ms; position: relative; padding-left: 46px; color: var(--ink-2); max-width: 60ch; }
.mates-steps li b { color: var(--ink); }
.mates-steps li::before { content: counter(ms); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--pen); color: #fff; font-weight: 700; display: grid; place-items: center; }
.small-ticks { font-size: .95rem; color: var(--ink-2); }
.mates-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mates-art { position: relative; min-height: 380px; }
.mate-card { position: absolute; background: var(--sheet); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; border: 1px solid var(--rule); }
.mate-invite { top: 0; left: 0; width: 78%; transform: rotate(-2deg); z-index: 2; }
.mate-friends { bottom: 0; right: 0; width: 82%; transform: rotate(1.5deg); display: grid; gap: 10px; }
.mate-top { display: flex; gap: 12px; align-items: center; }
.mate-top div { display: grid; }
.mate-top span:not(.av) { color: var(--ink-3); font-size: .9rem; }
.av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; }
.av-e { background: var(--pen); } .av-j { background: var(--ok); } .av-m { background: #B26B00; }
.mate-code { margin: 14px 0; padding: 10px; text-align: center; font-family: ui-monospace, Menlo, monospace; font-size: 1.4rem; letter-spacing: .12em; border: 2px dashed var(--rule-blue); border-radius: 10px; color: var(--ink); }
.mate-btn { background: var(--pen); color: #fff; text-align: center; border-radius: 10px; padding: 10px; font-weight: 600; }
.mate-row { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.mate-row .av { width: 28px; height: 28px; font-size: .8rem; }
.mate-pill { margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--pen); background: var(--pen-soft); padding: 4px 10px; border-radius: 999px; }
.mate-note { position: absolute; right: 2%; top: -34px; font-family: var(--hand); font-size: 1.5rem; font-weight: 700; color: var(--redpen); transform: rotate(-4deg); z-index: 3; }
@media (max-width: 900px) {
  .mates-in { grid-template-columns: 1fr; gap: 36px; }
  .mates-art { max-width: 460px; min-height: 0; display: grid; gap: 16px; padding-top: 30px; }
  .mate-card { position: static; width: auto; }
  .mate-invite, .mate-friends { width: auto; }
}
@media (max-width: 420px) { .mate-note { font-size: 1.3rem; } }

/* FAQ link row on the home page */
.faq-more { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Guides and questions pages */
.help-page { padding: 48px 0 80px; }
.help-page h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.lead-sm { color: var(--ink-2); margin: 10px 0 22px; max-width: 62ch; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.help-search { display: block; margin: 0 0 16px; }
.help-q { width: 100%; max-width: 520px; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--rule-blue); background: var(--sheet); font: inherit; color: var(--ink); }
.help-q:focus { outline: 3px solid var(--pen-soft); border-color: var(--pen); }
.help-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.help-topics a { font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--pen); background: var(--pen-soft); padding: 6px 12px; border-radius: 999px; }
.help-group { padding-top: 26px; scroll-margin-top: 80px; }
.help-group h2 { font-size: 1.35rem; margin: 0 0 12px; }
.guide { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 20px 22px; margin: 0 0 14px; scroll-margin-top: 90px; transition: box-shadow .3s, border-color .3s; }
.guide.flash { border-color: var(--pen); box-shadow: 0 0 0 4px var(--pen-soft); }
.guide h3 { font-size: 1.15rem; margin: 0; }
.guide h3 a { color: inherit; text-decoration: none; }
.guide-sum { color: var(--ink-2); margin: 4px 0 10px; }
.guide .who { display: inline-block; margin-left: 6px; font-size: .78rem; font-weight: 600; color: #8A5300; background: #FFF3DC; padding: 2px 8px; border-radius: 999px; vertical-align: 1px; }
.guide-steps { list-style: none; counter-reset: gs; margin: 0; padding: 0; }
.guide-steps li { counter-increment: gs; position: relative; padding: 10px 0 10px 44px; border-top: 1px solid var(--rule); display: grid; gap: 2px; }
.guide-steps li::before { content: counter(gs); position: absolute; left: 0; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--pen); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.guide-steps li span { color: var(--ink-2); }
.guide-tip { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: #FFF8D6; color: var(--ink); font-size: .95rem; }
.help-page details { border-bottom: 1px solid var(--rule); scroll-margin-top: 90px; }
.help-none { color: var(--ink-2); margin-top: 24px; }
.help-cta { margin-top: 48px; padding: 28px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--rule); text-align: center; }
.help-cta h2 { margin: 0 0 6px; }
.help-cta p { color: var(--ink-2); margin: 0 0 16px; }


/* Top menu: spaced links, Sign in as its own button, and a menu button below 1080px */
.top { position: sticky; }
.links { gap: 2px; margin-left: 24px; }
.links a { padding: 8px 12px; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.links a:hover { background: var(--pen-soft); color: var(--pen-dark); }
.links a[aria-current="page"] { color: var(--pen); background: var(--pen-soft); }
.links .menu-only { display: none; }
.top-cta { gap: 10px; }
.signin { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule-blue); border-radius: 10px; background: var(--sheet); white-space: nowrap; }
.signin:hover { border-color: var(--pen); color: var(--pen); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--rule-blue); border-radius: 10px; background: var(--sheet); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 0; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1079px) {
  .menu-btn { display: inline-flex; }
  .links { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 8px 16px 16px; flex-direction: column; gap: 2px;
    background: var(--sheet); border-bottom: 1px solid var(--rule); box-shadow: 0 18px 30px -20px rgba(27, 42, 74, .35); }
  .links.open { display: flex; }
  .links a { padding: 12px; font-size: 1.02rem; }
}
.cta-short { display: none; }
@media (max-width: 560px) {
  .top-in { gap: 12px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .top-cta .signin { display: none; }
  .links .menu-only { display: block; }
  .top-cta .btn { padding: 0 14px; }
}
@media (max-width: 400px) { .brand { font-size: 1rem; gap: 8px; } .top-in, .top-cta { gap: 8px; } }
@media (max-width: 359px) { .brand span { display: none; } }

/* Guides page: tabs per topic, guides open one at a time */
.help-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; padding: 6px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; position: sticky; top: 72px; z-index: 3; }
.help-tabs a { flex: 1 1 auto; text-align: center; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.help-tabs a:hover { background: var(--pen-soft); color: var(--pen-dark); }
.help-tabs a[aria-selected="true"] { background: var(--pen); color: #fff; }
.help-tabs .n { display: inline-block; min-width: 1.6em; margin-left: 4px; padding: 0 6px; border-radius: 999px; font-size: .78rem; background: rgba(0, 0, 0, .06); }
.help-tabs a[aria-selected="true"] .n { background: rgba(255, 255, 255, .22); }
html.searching .help-tabs { opacity: .45; }
.tabs-on .guides-page .panel-title { display: none; }
html.searching .guides-page .panel-title { display: block; }
@media (max-width: 560px) { .help-tabs { top: 64px; flex-wrap: nowrap; overflow-x: auto; } .help-tabs a { flex: 0 0 auto; padding: 9px 12px; } }
.guides-page .help-group { padding-top: 6px; }
details.guide { padding: 0; }
details.guide > summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 20px; display: grid; gap: 3px; position: relative; }
details.guide > summary::-webkit-details-marker { display: none; }
details.guide > summary::after { content: ""; position: absolute; right: 20px; top: 24px; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s; }
details.guide[open] > summary::after { transform: rotate(225deg); top: 28px; }
details.guide > summary:hover .guide-title { color: var(--pen); }
.guide-title { font-weight: 700; font-size: 1.08rem; color: var(--ink); }
details.guide .guide-sum { margin: 0; }
details.guide .guide-steps, details.guide .guide-tip, details.guide .guide-link { margin-left: 20px; margin-right: 20px; }
details.guide .guide-steps { margin-top: 0; }
details.guide .guide-tip { margin-bottom: 4px; }
.guide-link { margin: 10px 20px 16px; font-size: .85rem; }
.guide-link a { color: var(--ink-3); }
details.guide { scroll-margin-top: 150px; }
@media (max-width: 560px) { .help-tabs { position: static; } details.guide { scroll-margin-top: 80px; } }
.help-tabs { scroll-margin-top: 84px; }

/* Founding families bar (top of every page, shown while the offer runs) */
.promo-bar { background: var(--ink); color: #fff; text-align: center; font-size: .92rem; line-height: 1.4; padding: 9px 16px; }
.promo-bar b { color: var(--hl); font-weight: 600; }
.promo-bar a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.founding-note { margin: 10px auto 0; max-width: 46ch; text-align: center; font-size: .92rem; color: var(--ok); font-weight: 500; }

/* Why families pick TestFromNotes */
.different { padding: 80px 0; }
.different h2 { text-align: center; margin: 0 auto; }
.different .lead.center { margin: 18px auto 34px; max-width: 54ch; }
.diff-table { max-width: 960px; margin: 0 auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.diff-row { display: grid; grid-template-columns: 1.1fr 1fr 1.25fr; gap: 0; border-top: 1px solid var(--rule); }
.diff-row:first-child { border-top: 0; }
.diff-row > * { padding: 16px 20px; font-size: .98rem; line-height: 1.45; }
.diff-row > b { font-weight: 600; }
.diff-row > span:nth-child(2) { color: var(--ink-3); }
.diff-row > span:nth-child(3) { background: var(--pen-soft); color: var(--ink); font-weight: 500; }
.diff-head > span { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; padding-top: 14px; padding-bottom: 14px; }
.diff-head > span:nth-child(3) { color: var(--pen); }
@media (max-width: 720px) {
  .diff-row { grid-template-columns: 1fr 1fr; }
  .diff-row > b { grid-column: 1 / -1; padding-bottom: 0; }
  .diff-head > span:first-child { display: none; }
  .diff-row > * { padding: 12px 14px; font-size: .92rem; }
}

/* What parents say (approved testimonials) */
.says { padding: 72px 0; background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.says h2 { text-align: center; margin: 0 auto 30px; }
.says-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 1040px; margin: 0 auto; }
.say { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 22px 24px; display: grid; gap: 14px; align-content: start; }
.say blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.say figcaption { font-size: .92rem; color: var(--ink-2); }
.say figcaption b { color: var(--ink); }
.say-rel { display: block; font-size: .82rem; color: var(--ink-3); margin-top: 2px; }

/* Footer social links */
.foot .social { display: flex; gap: 16px; width: 100%; }
.foot .social a { font-weight: 600; }

/* ---------- Free checklist, Plus waitlist, free study guides ---------- */
.free { padding: 72px 0 8px; }
.free-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.free-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.free-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); max-width: none; }
.free-card p { color: var(--ink-2); }
.free-list { list-style: none; padding: 0; margin: 0 0 18px; }
.free-list li { padding: 9px 0; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.free-list a { font-weight: 600; }
.free-list span { color: var(--ink-3); font-size: .92rem; }
@media (max-width: 820px) { .free-in { grid-template-columns: minmax(0, 1fr); } }
.lead-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.lead-form input[type=email] { flex: 1 1 220px; min-width: 0; min-height: 44px; border: 1px solid var(--rule); border-radius: 10px; padding: 0 14px; font: inherit; background: #fff; color: var(--ink); }
.lead-form input[type=email]:focus { outline: 2px solid var(--pen); outline-offset: 1px; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-msg { flex-basis: 100%; margin: 2px 0 0; font-size: .92rem; min-height: 1.2em; }
.lead-msg.good { color: var(--ok); }
.lead-msg.bad { color: var(--redpen); }
.plus-line { margin-top: 14px; border-top: 1px dashed var(--rule); padding-top: 10px; }
.plus-line .lead-form { justify-content: center; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--pen); text-decoration: underline; cursor: pointer; }

/* Subject pages (made by tools/build_subjects.mjs) */
.subject-page { padding: 40px 0 72px; }
.crumbs-s { font-size: .92rem; color: var(--ink-3); margin: 0 0 8px; }
.subj-cta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; background: var(--pen-soft); border-radius: 14px; padding: 18px 20px; margin: 18px 0 28px; }
.subj-cta p { margin: 0; color: var(--ink-2); font-size: .95rem; flex: 1 1 260px; }
.subj-units { display: grid; gap: 14px; margin: 14px 0 32px; }
.subj-unit { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 18px 20px; }
.subj-unit h3 { margin: 0 0 8px; font-size: 1.1rem; }
.subj-unit ol { margin: 0; padding-left: 20px; }
.subj-unit li { margin: 6px 0; }
.subj-unit li span { display: block; color: var(--ink-3); font-size: .92rem; }
.subj-guide { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 8px 24px 20px; margin: 14px 0 32px; }
.subj-guide h2 { font-size: 1.35rem; margin-top: 22px; }
.subj-guide h3 { font-size: 1.1rem; margin: 18px 0 6px; }
.subj-guide table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 10px 0; display: block; overflow-x: auto; }
.subj-guide th, .subj-guide td { border: 1px solid var(--rule); padding: 7px 10px; text-align: left; vertical-align: top; }
.subj-guide th { background: var(--paper); }
.subj-q { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
.subj-q ol { margin: 8px 0 0; padding-left: 22px; }
.subj-q summary { cursor: pointer; color: var(--pen); margin-top: 10px; font-weight: 600; }
.subj-q .ans { margin: 8px 0 0; color: var(--ink-2); }
.subj-terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 14px 0 32px; }
.subj-terms div { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; }
.subj-terms b { display: block; }
.subj-terms span { color: var(--ink-2); font-size: .95rem; }
.credit { font-size: .88rem; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 32px; }
.lib-grid-s { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 20px 0 32px; }
.lib-grid-s a { display: block; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 18px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.lib-grid-s a:hover { border-color: var(--pen); }
.lib-grid-s b { font-size: 1.15rem; display: block; margin-bottom: 4px; }
.lib-grid-s span { color: var(--ink-2); font-size: .94rem; display: block; }
.lib-grid-s small { color: var(--ink-3); display: block; margin-top: 8px; }
.subject-page h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); max-width: none; margin-top: 36px; }
.subject-page .help-cta h2 { margin-top: 0; }
