/* Pocket Professor website styles. Shared by every page (the pages themselves are made by tools\make-pages.mjs). */
/* Warm "paper" look, matching the cream notebook pages inside the apps. Light only, on purpose: the site
   stays warm and bright even when the visitor's computer is set to dark mode. */
:root {
  --bg: #fbf8f1;
  --bg-soft: #f4eee2;
  --bg-tint: #f7f1e5;
  --surface: #fffdf8;
  --ink: #1f1b16;
  --ink-2: #4a4339;
  --muted: #776e62;
  --line: #e8e0d1;
  --line-strong: #d8cdb9;
  --paper-line: rgba(44, 94, 168, .07);
  --card-soft: #fcf1c4;
  --brand: #2c5ea8;          /* the denim pocket */
  --brand-deep: #1f4a8a;
  --card: #fff3b8;           /* the index card */
  --slate: #12181e;          /* the graph-paper slate from the app icons */
  --slate-2: #1b2229;
  --slate-grid: rgba(255,255,255,.045);
  --chem: #e5604a;
  --bio: #2f8f62;
  --phys: #e8912a;
  --park: #1f9d55;
  --anat: #c4456b;
  --cook: #c7721c;
  --focus: #f2b632;
  --shadow-s: 0 1px 2px rgba(60,45,20,.05), 0 1px 3px rgba(60,45,20,.06);
  --shadow-m: 0 4px 10px -2px rgba(60,45,20,.06), 0 14px 30px -8px rgba(60,45,20,.12);
  --shadow-l: 0 30px 60px -20px rgba(40,30,15,.30), 0 18px 36px -18px rgba(40,30,15,.22);
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 26px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0 0 .45em; line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; font-optical-sizing: auto; }
h3, h4 { font-family: var(--body); font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: clamp(42px, 5.8vw, 72px); letter-spacing: -0.025em; line-height: 1.04; }
h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.02em; }
h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); max-width: 36em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 8px; box-shadow: var(--shadow-s); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--park); box-shadow: 0 0 0 4px rgba(31,157,85,.15); margin-left: 4px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.muted { color: var(--muted); }
.note { font-size: 15px; color: var(--muted); }

/* header */
.site-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a { color: var(--ink-2); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav .nav-cta { margin-left: 10px; background: var(--brand); color: #fff; font-weight: 600; padding: 8px 16px; border-radius: 999px; }
.site-nav .nav-cta:hover { background: var(--brand-deep); color: #fff; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .close { display: none; }
.menu-btn[aria-expanded="true"] .open { display: none; }
.menu-btn[aria-expanded="true"] .close { display: block; }
@media (max-width: 880px) {
  .menu-btn { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-m); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav .nav-cta { margin: 16px 0 0; text-align: center; border: 0; border-radius: 12px; padding: 14px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1 var(--body); padding: 15px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -8px rgba(44,94,168,.7); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-color { background: var(--c, var(--brand)); color: #fff; box-shadow: 0 8px 18px -8px var(--c, var(--brand)); }
.btn-color:hover { filter: brightness(1.06); }
.btn-sm { font-size: 15px; padding: 11px 16px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "\2192"; transition: transform .15s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(3px); }

/* phone mockup */
.phone { position: relative; width: 100%; aspect-ratio: 390 / 844; background: #0b0f13; border-radius: 13.5% / 6.3%; padding: 3.2%; box-shadow: var(--shadow-l), inset 0 0 0 1.5px rgba(255,255,255,.08); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 11% / 5.1%; background: #f6f1ea; }

/* home hero: words on the left, the apps fanned out on the right, on notebook paper */
.hero { position: relative; padding: 72px 0 80px; overflow: hidden; isolation: isolate; background-color: var(--bg); background-image: linear-gradient(rgba(44,94,168,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(44,94,168,.055) 1px, transparent 1px); background-size: 28px 28px; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .1; background-image: url(/assets/doodles/chemistry.svg), url(/assets/doodles/physics.svg), url(/assets/doodles/biology.svg); background-size: 600px 600px, 600px 600px, 600px 600px; background-position: 0 0, 300px 220px, 620px -120px;
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.25), rgba(0,0,0,.45) 45%, #000 75%); mask-image: linear-gradient(100deg, rgba(0,0,0,.25), rgba(0,0,0,.45) 45%, #000 75%); }
.hero .grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 40px; align-items: center; }
.hero h1 { max-width: 11em; margin: 20px 0 22px; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .lede { margin: 0 0 32px; max-width: 30em; }
.maker-note { display: inline-flex; align-items: center; gap: 14px; margin-top: 34px; padding: 10px 18px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-s); color: var(--ink-2); font-size: 15px; }
.maker-note:hover { text-decoration: none; border-color: var(--line-strong); box-shadow: var(--shadow-m); }
.maker-note img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.maker-note b { display: block; font-family: var(--hand); font-size: 23px; font-weight: 600; color: var(--ink); line-height: 1; }
.fan { position: relative; height: 470px; width: 100%; max-width: 520px; margin: 0 auto; }
.fan a { position: absolute; top: 50%; left: 50%; width: 190px; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.fan a .phone { box-shadow: var(--shadow-l); }
.fan .f1 { transform: translate(-108%, -46%) rotate(-6deg); z-index: 1; }
.fan .f2 { transform: translate(-50%, -52%); z-index: 3; }
.fan .f3 { transform: translate(8%, -46%) rotate(6deg); z-index: 2; }
.fan .f1:hover { transform: translate(-108%, -50%) rotate(-6deg); }
.fan .f2:hover { transform: translate(-50%, -56%); }
.fan .f3:hover { transform: translate(8%, -50%) rotate(6deg); }
.fan .tag { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 8px; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; box-shadow: var(--shadow-s); display: inline-flex; align-items: center; gap: 6px; }
.fan .tag img { width: 20px; height: 20px; border-radius: 5px; }
@media (prefers-reduced-motion: no-preference) {
  .fan a { animation: fadeup .9s cubic-bezier(.2,.8,.2,1) both; }
  .fan .f2 { animation-delay: .08s; } .fan .f3 { animation-delay: .16s; }
  @keyframes fadeup { from { opacity: 0; translate: 0 50px; } to { opacity: 1; translate: 0 0; } }
}
@media (max-width: 960px) {
  .hero { padding: 40px 0 56px; }
  .hero .grid { grid-template-columns: 1fr; gap: 12px; }
  .fan { height: 380px; margin: 0 auto; }
  .fan a { width: 150px; }
  .fan .f1 { transform: translate(-108%, -46%) rotate(-7deg); }
  .fan .f3 { transform: translate(8%, -46%) rotate(7deg); }
}
@media (max-width: 400px) { .fan a { width: 132px; } .fan { height: 340px; } }

/* trust strip under the hero */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.facts ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.facts li { text-align: center; }
.facts strong { display: block; font-family: var(--display); font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; line-height: 1.1; }
.facts span { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .facts ul { grid-template-columns: 1fr 1fr; gap: 22px 12px; } }

/* sections */
.section { padding: 112px 0; }
.section.tight { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }
.group-label { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 18px; }
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 720px) { .section { padding: 76px 0; } .section.tight { padding: 56px 0; } .section-head { margin-bottom: 32px; } .section-head p { font-size: 17px; } }

/* app cards (home + overview pages) */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .app-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .app-grid { grid-template-columns: 1fr; } }
.app-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-s); transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
.app-card:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); border-color: var(--line-strong); }
.app-card .peek { position: relative; height: 250px; overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 16%, var(--bg)), color-mix(in srgb, var(--c) 6%, var(--bg))); }
.app-card .peek .phone { position: absolute; width: 62%; left: 19%; top: 34px; transition: transform .4s cubic-bezier(.2,.8,.2,1); box-shadow: 0 20px 40px -18px rgba(16,24,40,.45); }
.app-card:hover .peek .phone { transform: translateY(-8px); }
.app-card .body { padding: 26px 26px 24px; display: flex; flex-direction: column; flex: 1; }
.app-card .title { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.app-card .title img { width: 52px; height: 52px; border-radius: 13px; box-shadow: var(--shadow-s); }
.app-card .title h3 { margin: 0; font-size: 22px; }
.app-card .title small { display: block; color: var(--muted); font-size: 14px; font-weight: 500; }
.app-card p { color: var(--ink-2); margin: 0 0 16px; }
.ticks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--c, var(--brand)) 16%, transparent); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: calc(.32em + 4px); width: 6px; height: 4px; border-left: 2px solid var(--c, var(--brand)); border-bottom: 2px solid var(--c, var(--brand)); transform: rotate(-45deg); }
.app-card .actions { margin-top: auto; gap: 10px 18px; }

/* wide feature card (Pocket Parker) */
.wide-card { display: grid; grid-template-columns: 1.1fr .9fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-s); }
.wide-card .body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.wide-card .title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.wide-card .title img { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow-s); }
.wide-card .title h3 { font-size: 28px; margin: 0; }
.wide-card .title small { display: block; color: var(--muted); font-size: 15px; font-weight: 500; }
.wide-card p { color: var(--ink-2); font-size: 18px; }
.wide-card .peek { position: relative; min-height: 420px; overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 18%, var(--bg)), color-mix(in srgb, var(--c) 5%, var(--bg))); }
.wide-card .peek .phone { position: absolute; width: 270px; left: 50%; transform: translateX(-50%); top: 48px; }
@media (max-width: 860px) { .wide-card { grid-template-columns: 1fr; } .wide-card .body { padding: 30px 26px; } .wide-card .peek { min-height: 330px; order: -1; } .wide-card .peek .phone { width: 220px; top: 36px; } }

/* value grid */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 28px 26px; }
.value .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--brand)) 13%, transparent); color: var(--c, var(--brand)); margin-bottom: 18px; }
.value .ic svg { width: 22px; height: 22px; }
.value h3 { font-size: 19px; margin-bottom: 8px; }
.value p { color: var(--muted); margin: 0; font-size: 16px; }

/* index-card band (instructors) */
.band { position: relative; background-color: var(--card-soft); background-image: repeating-linear-gradient(transparent 0 31px, rgba(150,110,20,.10) 31px 32px); border-top: 1px solid #efe0a6; border-bottom: 1px solid #efe0a6; }
.band .kicker { color: #8a6d1d !important; }
.teach { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.teach ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.teach li { counter-increment: s; display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid #efe0a6; border-radius: 14px; padding: 18px 20px; color: var(--ink-2); box-shadow: var(--shadow-s); }
.teach li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }
@media (max-width: 860px) { .teach { grid-template-columns: 1fr; gap: 32px; } }

/* "on the way" row */
.soon-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .soon-row { grid-template-columns: 1fr; } }
.soon { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-m); color: var(--ink); background: var(--bg); }
.soon:hover { text-decoration: none; border-color: var(--c); }
.soon .badge { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); font-size: 17px; letter-spacing: -0.02em; }
.soon h3 { font-size: 18px; margin: 0 0 2px; }
.soon p { margin: 0; color: var(--muted); font-size: 15px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); vertical-align: 2px; margin-left: 6px; }
.pill.live { background: color-mix(in srgb, var(--park) 12%, transparent); color: var(--park); border-color: transparent; }

/* product pages */
.p-hero { position: relative; padding: 64px 0 88px; overflow: hidden; isolation: isolate; }
.p-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 85% 40%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%), linear-gradient(var(--bg), var(--bg-tint)); }
.p-hero .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 8px; opacity: .6; }
.p-id { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.p-id img { width: 76px; height: 76px; border-radius: 18px; box-shadow: var(--shadow-m); }
.p-id .k { font-size: 15px; font-weight: 600; color: var(--muted); line-height: 1.3; }
.p-id .k b { display: block; color: var(--c); font-weight: 700; }
.p-hero h1 { font-size: clamp(40px, 5.4vw, 64px); margin-bottom: 18px; }
.p-hero .lede { margin-bottom: 30px; }
.store-note { margin-top: 22px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.store-note svg { width: 16px; height: 16px; }
.p-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 24px; }
.p-phones .phone { width: 44%; max-width: 220px; }
.p-phones .phone:nth-child(2) { margin-top: 64px; }
@media (max-width: 860px) {
  .p-hero { padding: 36px 0 64px; }
  .p-hero .grid { grid-template-columns: 1fr; gap: 44px; }
  .p-phones .phone { width: 44%; }
  .p-phones .phone:nth-child(2) { margin-top: 40px; }
}
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 26px; }
.feature .num { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--c, var(--brand)); margin-bottom: 14px; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--c, var(--brand)) 12%, transparent); }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .levels { grid-template-columns: 1fr; } }
.level { border: 1px solid var(--line); border-radius: var(--r-m); padding: 28px; background: var(--surface); }
.level.first { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 10%, transparent); }
.level h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.level p { color: var(--muted); margin: 0; font-size: 16px; }
.callout { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 26px; }
.callout .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--brand)) 13%, transparent); color: var(--c, var(--brand)); }
.callout .ic svg { width: 22px; height: 22px; }
.callout h3 { font-size: 19px; margin-bottom: 6px; }
.callout p { color: var(--muted); margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { margin: 0 auto 28px; max-width: 32em; }
.cta-band .actions { justify-content: center; }

/* simple page hero */
.page-hero { padding: 72px 0 56px; background: linear-gradient(var(--bg), var(--bg-tint)); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 14px; }
.page-hero .lede { margin: 0; }

/* prose pages */
.prose h2 { font-size: 26px; margin: 48px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose dl { margin: 0; }
.prose dt { font-weight: 600; margin-top: 22px; color: var(--ink); }
.prose dd { margin: 6px 0 0; color: var(--muted); }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.link-list a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface); font-weight: 500; }
.link-list a:hover { text-decoration: none; border-color: var(--line-strong); box-shadow: var(--shadow-s); }
.link-list img { width: 36px; height: 36px; border-radius: 9px; }
.link-list a::after { content: "\2192"; margin-left: auto; color: var(--muted); }

/* pricing (kept for later; not linked yet) */
.period { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.period button { font: 600 15px var(--body); border: 0; background: none; color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.period button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 28px; display: flex; flex-direction: column; }
.plan.best { border-color: var(--ink); box-shadow: var(--shadow-m); }
.plan .price { font-family: var(--display); font-weight: 700; font-size: 46px; letter-spacing: -0.04em; line-height: 1; margin: 10px 0 4px; }
.plan .per { color: var(--muted); font-size: 15px; min-height: 1.6em; }
.plan ul { padding-left: 20px; margin: 16px 0 22px; color: var(--ink-2); }
.plan .btn { margin-top: auto; }
.flag { align-self: flex-start; background: var(--card); color: var(--slate); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.plan-sep { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.faq dt { font-weight: 600; margin-top: 18px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }

/* account */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr; gap: 32px; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 30px; box-shadow: var(--shadow-s); }
.panel h2 { font-size: 28px; }
.tabs { display: flex; gap: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.tabs button { font: 600 16px var(--body); background: none; border: 0; padding: 10px 4px; margin-right: 16px; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
label { display: block; font-weight: 600; font-size: 15px; margin: 16px 0 6px; }
input[type=email], input[type=password], input[type=text] { width: 100%; font: 16px var(--body); padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink); }
input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.form-msg { margin-top: 14px; font-weight: 600; min-height: 1.6em; }
.form-msg.err { color: #c0392b; }
.form-msg.ok { color: var(--park); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 18px 0; font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.oauth { display: grid; gap: 10px; }
.oauth .btn { width: 100%; background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.full { width: 100%; margin-top: 20px; }
.access-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.access-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.access-list .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: inline-block; margin-right: 10px; }
.plain-list { padding-left: 20px; color: var(--ink-2); }
.plain-list li { margin-bottom: 6px; }

/* footer */
.site-foot { background: var(--bg-soft); color: var(--muted); padding: 72px 0 36px; border-top: 1px solid var(--line); }
.site-foot .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 820px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } .site-foot .about { grid-column: 1 / -1; } }
.site-foot .brand { color: var(--ink); margin-bottom: 14px; }
.site-foot .about p { max-width: 26em; font-size: 15px; }
.site-foot h4 { color: var(--ink); font-family: var(--body); font-size: 14px; font-weight: 650; letter-spacing: 0; margin: 0 0 14px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--ink); text-decoration: none; }
.site-foot .fine { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
/* reveal on scroll (only when JavaScript runs) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* about page and the "who makes it" strip */
.photo { margin: 0; border-radius: var(--r-l); overflow: hidden; background: var(--bg-soft); box-shadow: var(--shadow-m); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.tall { aspect-ratio: 4 / 5; }
.about-hero { position: relative; padding: 56px 0 96px; overflow: hidden; isolation: isolate; }
.about-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 60% at 80% 45%, color-mix(in srgb, var(--bio) 12%, transparent), transparent 70%), linear-gradient(var(--bg), var(--bg-tint)); }
.about-hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.about-hero .photo { max-width: 460px; justify-self: end; width: 100%; }
.about-sign { font-weight: 600; color: var(--ink); margin-top: 8px; }
.duo { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.duo .photo { max-width: 440px; width: 100%; }
.banner { margin: 0; height: clamp(240px, 38vw, 520px); overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.family { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.family .photo { aspect-ratio: 4 / 3; }
.maker { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 40px; box-shadow: var(--shadow-s); }
.maker .lede { margin-bottom: 22px; }
@media (max-width: 860px) {
  .about-hero { padding: 36px 0 64px; }
  .about-hero .grid, .duo { grid-template-columns: 1fr; gap: 36px; }
  .about-hero .photo { justify-self: start; max-width: 380px; }
  .duo .photo { max-width: 380px; }
  .family { grid-template-columns: 1fr; }
  .maker { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
  .maker .photo { max-width: 300px; }
}

/* subject pages: each one gets its own notebook paper and pencil doodles behind the hero */
.subj { position: relative; overflow: hidden; isolation: isolate; }
.subj::after { content: ""; position: absolute; inset: 0; z-index: -1; background-repeat: repeat; background-size: 560px 560px; opacity: .2; pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 40%, #000 70%); mask-image: linear-gradient(100deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 40%, #000 70%); }
.subj-chemistry::after { background-image: url(/assets/doodles/chemistry.svg); }
.subj-biology::after { background-image: url(/assets/doodles/biology.svg); background-position: 120px 40px; }
.subj-physics::after { background-image: url(/assets/doodles/physics.svg); background-position: 60px 80px; }
.subj-parker::after { background-image: url(/assets/doodles/parker.svg); background-position: 200px 0; }
/* chemistry: graph paper, like a lab notebook */
.p-hero.subj-chemistry::before, .cta-band.subj-chemistry::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(50% 70% at 85% 40%, color-mix(in srgb, var(--chem) 14%, transparent), transparent 70%),
  linear-gradient(rgba(44,94,168,.08) 1px, transparent 1px) 0 0 / 24px 24px,
  linear-gradient(90deg, rgba(44,94,168,.08) 1px, transparent 1px) 0 0 / 24px 24px,
  var(--bg); }
/* biology: ruled notebook with a red margin line */
.p-hero.subj-biology::before, .cta-band.subj-biology::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(50% 70% at 85% 40%, color-mix(in srgb, var(--bio) 14%, transparent), transparent 70%),
  linear-gradient(90deg, transparent 0 calc(max(24px, (100% - 1180px) / 2) - 2px), rgba(214,90,90,.35) calc(max(24px, (100% - 1180px) / 2) - 2px) calc(max(24px, (100% - 1180px) / 2)), transparent 0),
  repeating-linear-gradient(transparent 0 31px, rgba(44,94,168,.10) 31px 32px),
  var(--bg); }
/* physics: green engineering paper with a heavier line every 5 squares */
.p-hero.subj-physics::before, .cta-band.subj-physics::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(50% 70% at 85% 40%, color-mix(in srgb, var(--phys) 14%, transparent), transparent 70%),
  linear-gradient(rgba(60,140,90,.16) 1px, transparent 1px) 0 0 / 100px 100px,
  linear-gradient(90deg, rgba(60,140,90,.16) 1px, transparent 1px) 0 0 / 100px 100px,
  linear-gradient(rgba(60,140,90,.07) 1px, transparent 1px) 0 0 / 20px 20px,
  linear-gradient(90deg, rgba(60,140,90,.07) 1px, transparent 1px) 0 0 / 20px 20px,
  var(--bg); }
/* Pocket Parker: plain paper, like a sketched street map */
.p-hero.subj-parker::before, .cta-band.subj-parker::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(50% 70% at 85% 40%, color-mix(in srgb, var(--park) 14%, transparent), transparent 70%), var(--bg-tint); }
.cta-band.subj { border-top: 1px solid var(--line); }
.cta-band.subj::after { -webkit-mask-image: radial-gradient(60% 80% at 50% 50%, rgba(0,0,0,.25), #000 80%); mask-image: radial-gradient(60% 80% at 50% 50%, rgba(0,0,0,.25), #000 80%); }
@media (max-width: 860px) { .subj::after { background-size: 420px 420px; opacity: .16; } }
.savvy { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; margin-top: 22px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-s); max-width: 720px; }
.savvy h3 { font-family: var(--display); font-weight: 600; font-size: 28px; margin-bottom: 8px; }
.savvy .muted { margin: 0; font-size: 17px; }
@media (max-width: 560px) { .savvy { grid-template-columns: 1fr; gap: 20px; } .savvy .photo { max-width: 260px; } }
