/* learning-site/'s OWN copy of marketing/assets/style.css — a separate,
   independently-deployed Render Static Site (see docs/kinlight-learning-
   site.md), so it's a physical copy, not a shared reference, for the same
   reason marketing/ itself isn't a shared reference to frontend/. Diverges
   from marketing/assets/style.css deliberately below (the "learning-site
   additions" block at the end of this file) — the two are forks from a
   common starting point, not required to stay byte-identical, and this
   file is outside the scope of tests/test_no_hardcoded_colors.py /
   tests/test_color_contrast.py (both scoped to frontend/ + marketing/
   only). Still: every color used anywhere below comes from a var(...) in
   tokens.css, never a new hardcoded literal — keep that discipline even
   though no automated check enforces it here. */

/* :root tokens now come from tokens.css (see docs/design-system.md), linked
   from each HTML page before this stylesheet. This file's own former local
   :root declared --sage-text as #6B8564 — the LIGHT sage value, meant for
   icons/fills/borders only (fails AA as text, see the contrast findings in
   docs/design-system.md) — but never actually used it anywhere in this
   file; the shared tokens.css now supplies the correct, AA-passing
   --sage-text (#4F6B4A) instead. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--oatlight);
  color: var(--hearthwood);
  font-family: 'Work Sans', -apple-system, sans-serif;
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; margin-top: 2.2em; }
h3 { font-size: 1.3rem; margin-top: 1.6em; }

p { margin: 0 0 1.1em; }

/* site-polish-1 item 2: text links now use --gold-text (#8A6224), not bare
   --gold (#BD8A3D) — bare --gold against this site's own --oatlight/--card-bg
   page backgrounds measures well under WCAG AA's 4.5:1 floor for body-size
   text (gold is reserved for the app's own AI-content accent anyway, per
   docs/design-system.md — a plain navigational/body link on this marketing
   site was never actually "AI content"). --gold-text is the SAME token this
   site already uses correctly elsewhere (e.g. .compare-row p strong doesn't
   touch it, but tokens.css's own header comment documents --gold-text as
   exactly this "tinted-box pair" text value, already contrast-verified in
   both themes by tests/test_color_contrast.py). bare --gold is left alone
   everywhere else it's used (icons, borders, the .cta-button fill is
   --hearthwood not gold, etc.) — this is a link-color fix only. */
a { color: var(--gold-text); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap.wide { max-width: 980px; }

/* ---------- Header ---------- */
header.site {
  padding: 22px 0;
  border-bottom: 1px solid var(--fog);
}
header.site .wrap.wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand svg { width: 22px; height: auto; }
.brand span {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--hearthwood);
}
/* site-polish-1 item 1: "Parent login" moved out of <nav class="site"> and
   into this wrapper, as a sibling of nav.site rather than its last child —
   this is what makes "keep a 'Log in' link visible in the header at all
   widths" literally true: at the mobile breakpoint below, nav.site itself
   is the thing that collapses into the disclosure menu, so anything that
   must stay visible regardless of menu state has to live outside it. On
   desktop this wrapper is purely structural (flex, inline, gap) and
   produces the identical visual row — brand on the left, nav links then
   the login button on the right — the site already had before this change;
   .nav-toggle (the new hamburger button) is hidden entirely at this width. */
.header-right { display: flex; align-items: center; gap: 28px; }
/* site-visuals phase 2: below 720px, "Parent login" becomes a plain text
   link reading "Log in" instead of a filled button -- two spans swapped via
   display, not a JS text-content change, so this degrades safely with CSS
   disabled (both would show; harmless). */
.header-login-short { display: none; }
nav.site a {
  color: var(--hearthwood);
  margin-left: 28px;
  font-size: 0.95rem;
}
nav.site a:first-child { margin-left: 0; }
nav.site a:hover { color: var(--hearthwood); }
/* menu-home-faq: "Home" and "FAQ" are shortcuts added to the phone
   disclosure menu ONLY -- never the desktop nav.site row, which stays
   exactly "How it works / About / For Schools / For Homeschool" as before.
   Hidden here by default (every width); the existing nav.site a rule inside
   @media (max-width: 720px) below already sets display: flex on every
   anchor in this nav once the menu is open, and that selector's higher
   specificity (nav + .site + a, vs. a bare class here) wins over this
   display: none without needing a second override in that block. */
.nav-mobile-only { display: none; }
/* Hamburger menu button — hidden above the mobile breakpoint (see
   @media (max-width: 720px) below for its shown state and nav.site's own
   disclosure-panel behavior). Square, 44px, matching this task's own tap-
   target floor exactly rather than a smaller icon-only button. Three bars
   drawn from one child span (the middle bar) plus two pseudo-elements
   (top/bottom) — no extra markup needed per page beyond that one span. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--fog);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--hearthwood);
  border-radius: 1px;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle-bars::after { position: absolute; top: 6px; left: 0; }
/* Skip-to-content link — item 1. Off-screen until focused (keyboard Tab from
   the very top of the page, or a screen reader's own link list), then a
   plain, visible, high-contrast block — the standard accessible pattern.
   Every page's <body> now starts with one, immediately before <header>; the
   section it jumps to carries id="main" (see each page's own first content
   section). */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--hearthwood);
  color: var(--oatlight);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }
/* Primary buttons use Hearthwood, not Gold — Gold is reserved for AI content
   only (see docs/design-system.md). color: var(--oatlight), not the old
   var(--hearthwood) dark-on-gold pairing, since the button fill is now dark
   and needs light text — this also keeps the pairing correctly high-contrast
   in dark theme (hearthwood/oatlight invert together — see tokens.css). */
.cta-button {
  display: inline-block;
  background: var(--hearthwood);
  color: var(--oatlight) !important;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none !important;
}
.cta-button:hover { opacity: 0.9; }

/* ---------- Hero ---------- */
.hero {
  /* Bottom padding tightened 70px -> 24px, per direct feedback on the gap to
     the "consultant-note" section directly below it (see that section's own
     CSS rule further down this file). Safe to edit directly, not just a
     targeted override elsewhere: .hero is used exactly once, only on
     index.html, only ever bordering that one section — this can't ripple
     to any other page or section. Top padding (90px, before the hero's own
     content) is untouched. */
  padding: 90px 0 24px;
  text-align: center;
}
.hero .mark { width: 56px; margin-bottom: 26px; }
.hero h1 { max-width: 720px; margin-left: auto; margin-right: auto; }
.hero .tagline {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero-actions { margin-top: 10px; }
.hero-actions a { margin: 0 8px; }
.secondary-link {
  color: var(--hearthwood) !important;
  border: 1px solid var(--fog);
  padding: 10px 22px;
  border-radius: 8px;
  display: inline-block;
}
/* site-polish-1 item 9: a small, clearly-subordinate note beneath the App
   Store badge (hero and footer, index.html's only two badge placements) —
   same register this site already used for the two .hero-login-note lines
   item 5 removed (small, --muted, a plain <p> never competing with a real
   button), repurposed under an accurately-named class now that the old
   one's own specific purpose no longer exists on this page. */
.android-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}
.android-note a {
  color: var(--hearthwood);
  text-decoration: underline;
}
/* App Store badge — Apple's own official "Download on the App Store"
   artwork (assets/app-store-badge.svg, downloaded unmodified from Apple's
   Marketing Resources page at developer.apple.com — never recreated,
   restyled, recolored, or animated, per Apple's own usage guidelines).
   One shared size rule for both placements on this page (hero below,
   footer further down) — height matches Apple's documented onscreen
   minimum (40px); width is left to the SVG's own aspect ratio, never
   stretched. */
.app-store-badge { height: 40px; width: auto; display: inline-block; }
.hero-app-store { margin-top: 20px; }

/* site-visuals (phase 2): real product screenshots, framed with a simple,
   deliberately non-Apple-bezel CSS device frame — a plain rounded rectangle
   with a thin border and a soft shadow, reusing this site's own --card-bg/
   --fog tokens rather than inventing a skeuomorphic chrome/notch look. Two
   variants (phone/laptop) only differ in aspect ratio and max-width; both
   just crop the already-cropped screenshot to a clean rounded rectangle via
   overflow:hidden, no bezel/notch/home-indicator decoration at all. */
.device-frame {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--fog);
  border-radius: 18px;
  box-shadow: 0 24px 60px var(--shadow-elevated);
  overflow: hidden;
  line-height: 0;
}
.device-frame img { display: block; width: 100%; height: auto; }
.device-frame.phone { max-width: 320px; border-radius: 28px; }
.device-frame.laptop { max-width: 560px; }

/* Two-column hero (index.html, homeschool.html): copy left, device-frame
   visual right; stacks to one column (image below copy) at the existing
   720px mobile breakpoint, reusing that breakpoint rather than adding a new
   one. .hero-split overrides .hero's own text-align:center for the copy
   column only -- the stacked mobile state still reads centered, matching
   this site's existing centered-hero convention there. */
.hero-split .wrap { max-width: 1040px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}
.hero-split .hero-copy .mark { margin-left: 0; }
.hero-split .hero-copy h1,
.hero-split .hero-copy .tagline { max-width: none; margin-left: 0; margin-right: 0; }
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 50px; /* room for the overlap card below the phone's bottom edge */
}
/* The "Notable" alert card screenshot overlapping the bottom of the phone
   frame -- a real, legible card crop (badge + quote + the "Why this was
   flagged" line; the dashboard's own "Mark reviewed"/"Talk to Kinlight"
   action row is cropped off below it, since those are app chrome, not
   needed for the marketing message), not the near-illegible thin strip an
   earlier revision used. Sized to ~60% of the PHONE's own rendered width
   (320px max-width * 0.6 ~= 192px), not a percentage of .hero-visual --
   .hero-visual's own rendered width is the grid-column width at desktop
   (wider than the phone, since hero-copy/hero-visual split 1fr/1fr) but
   collapses to roughly the phone's own width once the hero stacks to one
   column on mobile, so a percentage-of-container value would size this
   card very differently at 1440 vs. 390 even though the goal ("~60% of
   the phone's width") is the same fixed ratio at both. A flat px width
   keeps that ratio consistent at any viewport the hero actually renders
   at; max-width is a pure safety net for a theoretical viewport narrower
   than ~213px, where .hero-visual itself would be narrower than 192px. */
.hero-visual .overlap-card {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 192px;
  max-width: 90%;
  border-radius: 14px;
  z-index: 2;
}

@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-split .hero-copy h1,
  .hero-split .hero-copy .tagline { max-width: 620px; margin-left: auto; margin-right: auto; }
  .hero-split .hero-copy .mark { margin-left: auto; margin-right: auto; }
  .hero-visual { margin-top: 10px; }
}

/* Screenshot sitting above a feature card's own heading/body text -- same
   .card box, just with a device-frame image prepended inside it. Negative
   top/side margins pull the image flush with the card's own rounded top
   edge and padding, rather than looking like a separately-inset photo. */
.card .device-frame {
  margin: -26px -26px 18px;
  border-radius: 12px 12px 0 0;
  border-width: 0 0 1px;
  box-shadow: none;
}
.card .device-frame.laptop,
.card .device-frame.phone { max-width: none; }

/* site-visuals revision (item 4, grid consistency) — a real product
   screenshot shown beside its own feature text, one per row, instead of
   living inside a .grid2/.grid3 card next to siblings with a different
   (or no) image. This is what makes "every card in a row has an image of
   the same height, or none does" trivially true for these: a feature-row
   is never shared with another card, so there's no sibling to mismatch
   against. Two real source screenshots differ a lot in aspect (a tall,
   many-section insight card vs. a landscape game/chat capture) — forcing
   them to the same height would mean stretching or harshly cropping one
   of them, which a side-by-side layout avoids entirely by letting each
   image keep its own natural size within a shared max-width. */
.feature-row {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-top: 36px;
}
.feature-row:first-child { margin-top: 0; }
.feature-row .device-frame {
  flex: 0 0 auto;
  width: 40%;
  max-width: 360px;
}
.feature-row .feature-text { flex: 1 1 0; min-width: 0; }
.feature-row .feature-text h3 { margin-top: 0; }
.feature-row .feature-text p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0; }
/* Alternate image left/right for a less monotonous reading rhythm at
   desktop width — purely cosmetic, reversed back to image-first at the
   720px stack breakpoint below so the image always leads on mobile. */
.feature-row.reverse { flex-direction: row-reverse; }

@media (max-width: 720px) {
  .feature-row,
  .feature-row.reverse { flex-direction: column; align-items: stretch; }
  .feature-row .device-frame { width: 100%; max-width: 320px; margin: 0 auto; }
}

/* Founder-photo placeholder -- a plain, labeled empty box, standing in for
   a real photo that hasn't been supplied yet. Deliberately NOT styled to
   look like a finished photo (no image, no person silhouette) so it reads
   honestly as a placeholder slot, not a shipped asset. */
.founder-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px dashed var(--fog);
  background: var(--card-bg);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.3;
  padding: 10px;
  margin: 0 auto 20px;
}

/* ---------- Sections ---------- */
section.block { padding: 50px 0; }
section.block.alt { background: var(--card-bg); }
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}
/* Same grid/card system as .grid3 above, just 2 columns instead of 3 — for the
   "What Kinlight can do" features section (4 items reflows more evenly at 2
   columns than 3). No new visual language: identical gap/margin-top, and
   reuses .card unchanged. */
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--fog);
  border-radius: 12px;
  padding: 26px;
}
.card h3 { margin-top: 0; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.98rem; }

/* Comparison section ("What makes Kinlight different") — deliberately plain
   stacked paragraphs inside a .card-styled row, not a multi-column table. A real
   table with 4 product columns has no clean way to reflow at mobile width without
   either horizontal scrolling or an awkward stacked-table hack; this renders
   correctly at any width for free, with zero extra media-query rules needed. */
.compare-list { margin-top: 30px; display: flex; flex-direction: column; gap: 20px; }
.compare-row {
  background: var(--card-bg);
  border: 1px solid var(--fog);
  border-radius: 12px;
  padding: 26px;
}
.compare-row h3 { margin-top: 0; }
.compare-row p { color: var(--muted); font-size: 0.98rem; margin-bottom: 10px; }
.compare-row p:last-child { margin-bottom: 0; }
.compare-row p strong { color: var(--hearthwood); }

.tier-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}
/* color set on the container, plus explicit h3/p overrides below (both
   previously used var(--hearthwood)/var(--muted), which invert for dark
   mode, while --sage-bg deliberately does not -- a real dark-mode contrast
   bug, now fixed; h3 keeps its own heavier font-weight for hierarchy
   instead of a lighter color). */
.tier {
  border-radius: 12px;
  padding: 22px;
  background: var(--sage-bg);
  color: var(--sage-text);
}
.tier h3 { color: var(--sage-text); margin-top: 0; font-size: 1.1rem; }
.tier p { color: var(--sage-text); font-size: 0.95rem; margin-bottom: 0; }

/* Pull-quote accent — Hearthwood, not Gold, per this rollout's stricter
   "gold = AI only" reading (see docs/design-system.md): a testimonial/
   founder-note quote is real, non-AI editorial content, the same reasoning
   applied to index.html's .scripture-ref accent in the same rollout. Was
   var(--gold) before this change. */
.quote-block {
  border-left: 3px solid var(--hearthwood);
  padding: 4px 0 4px 22px;
  margin: 30px 0;
  font-style: italic;
  color: var(--muted);
}

/* "Read more" beneath a homepage pull-quote, linking to voices.html — small
   and clearly subordinate to the quote/attribution above it, same register
   as .android-note's own small muted-link line elsewhere on this page. */
.quote-readmore { font-size: 0.9rem; }

/* "A note from a mental health consultant" — a targeted override for this
   ONE section, added per direct feedback. section.block.consultant-note
   (tag + 2 classes) deliberately outranks the shared section.block rule's
   own specificity (tag + 1 class) so only padding-top is overridden here —
   padding-bottom stays the shared 50px, untouched, since only the gap to
   the hero ABOVE this section was asked to shrink, not the gap to "What
   Kinlight is" below it. Soft, full-bleed sage tint (this site's existing
   calm/reassuring token, #E4EBE0, already used for the "tier" cards) reads
   as one more section-background variant — the same mechanism
   section.block.alt's own card-colored background already uses elsewhere on
   this page to signal a section boundary — not a floating card or callout:
   no border-radius, no box-shadow, no contained box. The existing
   .quote-block left border (now hearthwood, previously gold — see that
   rule's own comment) already supplies the "thin accent-colored left
   border" this feedback asked for, so it isn't duplicated at the section
   level too. */
/* color set on the section itself so the plain <h2> (no color of its own)
   reads correctly in dark mode -- see the .quote-block override right below
   for why its OWN explicit color still needs a separate, scoped fix. */
section.block.consultant-note {
  background: var(--sage-bg);
  padding-top: 24px;
  color: var(--sage-text);
}
/* .quote-block sets its own explicit border-left-color/color (hearthwood/
   muted, both of which invert), which wins over inheriting this section's
   var(--sage-text) above (an explicit declaration always beats an inherited
   one) -- a real dark-mode contrast bug (border and text both washed out
   against the constant --sage-bg background), now fixed with a scoped
   override. */
section.block.consultant-note .quote-block {
  border-left-color: var(--sage-text);
  color: var(--sage-text);
}

/* voices.html — a repeatable pattern for more than one endorsement without
   restructuring: each .endorsement is a quote-block + attribution pair,
   separated from the next by a top border once a second one exists. Same
   flex-column/gap + border-separator convention already established by
   .compare-list/.compare-row, reused rather than inventing a new layout. */
.endorsements { display: flex; flex-direction: column; margin-top: 10px; }
.endorsement + .endorsement { margin-top: 20px; padding-top: 30px; border-top: 1px solid var(--fog); }

.notice {
  background: var(--ember-bg);
  color: var(--ember-text);
  border-radius: 10px;
  padding: 18px 22px;
  font-size: 0.95rem;
  margin: 28px 0;
}

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--fog);
  padding: 34px 0;
  margin-top: 40px;
}
footer.site .wrap.wide {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
footer.site p { margin: 0; color: var(--muted); font-size: 0.9rem; }
footer.site nav a { margin-left: 20px; margin-right: 0; font-size: 0.9rem; color: var(--muted); }
/* App Store badge — a second .wrap.wide row below the existing copyright/
   nav row, not a 3rd flex child mixed into it (which would have pushed
   the existing nav links away from their current right-aligned position
   under justify-content: space-between). See .app-store-badge above for
   the shared image-size rule. */
.footer-app-store { margin-top: 18px; }

/* ---------- Legal pages ---------- */
.legal h1 { font-size: 2.1rem; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.2em; }
.legal h2 { font-size: 1.35rem; margin-top: 1.9em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }

@media (max-width: 720px) {
  .grid3, .grid2, .tier-row { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }

  /* site-polish-1 item 1 — nav.site becomes a disclosure panel instead of
     being hidden outright. .header-right is the positioning anchor (it's
     already the flex row holding nav.site + the login button + the toggle
     button at this width, so the panel drops from directly beneath it, at
     the header's own right edge, rather than needing a separate wrapper).
     Collapsed by default (display: none); JS (assets/nav-toggle.js) adds/
     removes .nav-open on click, Esc, or an outside click, and keeps
     aria-expanded on the button in sync — this stylesheet only expresses
     the two visual states, never decides between them. */
  .header-right { position: relative; }
  nav.site {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--fog);
    border-radius: 10px;
    padding: 6px 0;
    box-shadow: 0 10px 28px var(--shadow-elevated);
    z-index: 50;
  }
  nav.site.nav-open { display: flex; }
  /* Full-width rows, 44px tall (item 3's tap-target floor), replacing the
     desktop inline-with-left-margin layout — :first-child's margin reset
     above is irrelevant here since margin-left is overridden to 0 for
     every link at this width anyway. */
  nav.site a {
    margin-left: 0;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
  }
  .nav-toggle { display: inline-flex; }

  /* site-visuals phase 2, item 6: "Parent login" becomes a plain "Log in"
     text link below 720px -- no button fill/border/padding, just a link,
     so it reads as secondary to the hamburger menu rather than competing
     with it for attention in the narrow header. */
  .header-login {
    background: none !important;
    color: var(--hearthwood) !important;
    padding: 0 !important;
    font-weight: 500;
    text-decoration: underline !important;
  }
  .header-login-full { display: none; }
  .header-login-short { display: inline; }

  /* Item 3 — footer links and hero text links get an explicit 44px tap
     target on phones. footer.site nav a already has its own horizontal
     margin/color rule above; this only adds the height/centering needed to
     make that visible real estate actually 44px tall, not just 44px of
     invisible line-height around small text. .secondary-link already has
     10px/22px padding (comfortably over 44px in practice), but this makes
     the floor explicit rather than relying on that arithmetic holding. */
  footer.site nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .secondary-link { display: inline-flex; align-items: center; min-height: 44px; }
  .android-note a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* iOS 1.1: terms, privacy and support inside the app's in-app browser sheet
   (?kl_sheet=1, assets/in-app-sheet.js). Nothing here may lead to sign-up or
   pricing: the site nav (with "Parent login") and billing how-tos are hidden,
   and links out are plain text. site-polish-1 extends this to the two new
   header elements (the toggle button, and the login link now living outside
   nav.site) — the sheet must never offer a way into the nav OR the login
   flow, exactly as it never offered a way into nav.site before. */
html.klSheet nav.site,
html.klSheet .nav-toggle,
html.klSheet .header-login,
html.klSheet [data-kl-sheet-hide] { display: none !important; }
html.klSheet a[data-kl-sheet-unlinked] { color: inherit; text-decoration: none; pointer-events: none; cursor: default; }

/* ---------- learning-site additions (kinlightlearning.com only) ---------- */
/* The home-page "chooser" — two large, equal-weight cards sending a reader
   to schools.html or homeschool.html. Reuses .card's own look (border,
   radius, padding) rather than inventing a new container; the parts that
   ARE new are the screenshot-above-content layout (same idea as
   ".card .device-frame" elsewhere in this file, just not scoped to that
   selector since marketing/'s own version of this rule doesn't exist here)
   and the CTA sitting at the bottom of the card rather than inline text. */
.chooser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}
.chooser-card {
  background: var(--card-bg);
  border: 1px solid var(--fog);
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.chooser-card .device-frame {
  margin: -26px -26px 20px;
  border-radius: 12px 12px 0 0;
  border-width: 0 0 1px;
  box-shadow: none;
  /* The two screenshots' SOURCE images have very different native aspect
     ratios (1570x970 vs 2880x1420) -- left to their natural height, they
     render at different heights, pushing the heading/body/button below
     each one to start at a different y-position (CSS Grid's own row-stretch
     already equalizes the two .chooser-card boxes' OVERALL height, but not
     where content starts within them). A shared aspect-ratio forces both
     images to the same rendered height at any card width, not just a fixed
     px value that would look wrong once .chooser-grid collapses to one
     column on mobile. 1.62 matches the schools screenshot's own native
     ratio (1570/970 ~= 1.619) almost exactly, so it needs effectively zero
     crop; the wider homeschool screenshot crops ~10% off each side under
     object-fit: cover below -- confirmed that only trims plain background
     margin, not the "R" avatar or the "Switch" link. */
  aspect-ratio: 1.62;
}
.chooser-card .device-frame.laptop { max-width: none; }
.chooser-card .device-frame img { width: 100%; height: 100%; object-fit: cover; }
.chooser-card h3 { margin-top: 0; font-size: 1.4rem; }
.chooser-card p { color: var(--muted); font-size: 0.98rem; flex: 1 1 auto; }
/* Horizontal padding trimmed from the shared .cta-button's own 22px so the
   longer "See Kinlight for Homeschool →" label fits on one line within
   this card's ~287px content width, same as the shorter "...for Schools"
   label already does -- otherwise the longer label alone wraps to two
   lines, making that one button a taller box than its sibling even though
   both cards are (via Grid's row-stretch + this column's own flex-grow on
   p, above) already the same overall height with both buttons' BOTTOM
   edges already aligned. */
.chooser-card .cta-button { margin-top: 6px; align-self: flex-start; padding-left: 12px; padding-right: 12px; }

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

/* A short, muted single line distinguishing the two Kinlight Learning
   audiences from the main Kinlight at Home product this site is a sibling
   of — same register as .android-note elsewhere in this file (small,
   --muted, never competing with the real CTA above it). */
.sibling-site-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 10px 0 0;
}
.sibling-site-note a { color: var(--hearthwood); text-decoration: underline; }
