/* The home page (index.html), on top of pages.css. One page: every link in the header, the phone
   menu and the footer lands on a section of it. Written for a phone first: the app's screens
   swipe, the cards swipe, the steps are a timeline, the sections sit behind a menu button and a
   "Get the app" bar follows the reader down the page. From 900px wide the same page lays out in
   columns with the screens fanned and four sections in the header, the rest under "More". */

:root { --tint: #ecebfd; --glow: #dcdafc; --primary-strong: #4a4ac2; --ok: #067647; --ok-bg: #dcfae6; --no: #c4320a; --no-bg: #fee4e2;
        --ask: #b54708; --ask-bg: #fef0c7; --gutter: max(16px, env(safe-area-inset-left, 0px)); }
@media (prefers-color-scheme: dark) {
  :root { --tint: #22233a; --glow: #2c2b55; --primary-strong: #9c9cf4; --ok: #75e0a7; --ok-bg: #073b24; --no: #fda29b; --no-bg: #3a1d1b;
          --ask: #fec84b; --ask-bg: #3b2a0a; }
}
html { scroll-behavior: smooth; }
.home { -webkit-font-smoothing: antialiased; }
.home h1, .home h2, .home h3 { text-wrap: balance; margin: 0; }
.home p { margin: 0; }
.home a:focus-visible, .home button:focus-visible, .home summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.home .wrap { max-width: 1080px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.home .sub { color: var(--muted); max-width: 40em; }
.home .kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.home .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--primary); flex: none; }
.home .ic svg { width: 22px; height: 22px; }
.home .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 650; }
.home .btn.primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
.home .btn svg { width: 18px; height: 18px; }
.home section, .home .cta { scroll-margin-top: 76px; }

/* Header: sticks, with the band above it (a phone's status bar) painted the page colour. Every
   link lands on this page. On a phone the sections sit behind the menu button; "Get the app"
   joins the row from 600px and four links and "More" replace the button from 900px. */
.home::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.home header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; margin: 0; display: block;
  background: color-mix(in srgb, var(--bg) 85%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.home header.top.scrolled { border-bottom-color: var(--border); }
.home .bar { display: flex; align-items: center; gap: 10px; height: 64px; }
.home header .brand { margin: 0 auto 0 0; font-weight: 700; font-size: 17px; }
.home .mark { width: 34px; height: 34px; border-radius: 10px; }
.home .navlinks { display: none; align-items: center; gap: 2px; font-size: 14px; margin-right: 8px; }
.home .navlinks a { position: relative; color: var(--muted); text-decoration: none; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.home .navlinks a:hover { color: var(--text); background: var(--tint); }
.home .navlinks a.on { color: var(--text); font-weight: 650; }
.home .navlinks a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--primary); }
.home .pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
  text-decoration: none; border: 1px solid var(--border); background: var(--surface); color: var(--text); white-space: nowrap; }
.home .pill.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.home .pill.primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
.home .pill.get { display: none; }
.home .menu-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; padding: 0; }
.home .menu-btn svg { width: 20px; height: 20px; }
.home .menu-btn .x { display: none; }
.home .menu-btn[aria-expanded="true"] .x { display: block; }
.home .menu-btn[aria-expanded="true"] .lines { display: none; }
.home .menu { display: none; border-top: 1px solid var(--border); background: var(--surface); }
.home .menu.open { display: block; }
.home .menu ul { list-style: none; margin: 0; padding: 8px 0 12px; display: grid; }
.home .menu li { margin: 0; }
.home .menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; text-decoration: none; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--border); }
.home .menu a span { color: var(--muted); font-weight: 400; font-size: 13px; text-align: right; }
.home .menu li:last-child a { border-bottom: 0; }
.home .menu .row { display: flex; gap: 10px; padding: 12px 0 4px; }
.home .menu .row .pill { flex: 1; justify-content: center; min-height: 46px; }
.home.menu-open .dock { visibility: hidden; }
/* "More": the sections the header has no room for, in a small panel under it. */
.home .navmore { position: relative; font-size: 14px; }
.home .navmore summary { list-style: none; cursor: pointer; color: var(--muted); font-weight: 500; padding: 8px 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; }
.home .navmore summary::-webkit-details-marker { display: none; }
.home .navmore summary:hover, .home .navmore[open] summary { color: var(--text); background: var(--tint); }
.home .navmore summary svg { width: 14px; height: 14px; transition: transform .15s; }
.home .navmore[open] summary svg { transform: rotate(180deg); }
.home .navmore .pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; display: grid; padding: 6px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 40px -12px rgba(16, 24, 40, .25); }
.home .navmore .pop a { display: grid; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 600; text-decoration: none; }
.home .navmore .pop a span { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.home .navmore .pop a:hover { background: var(--tint); }
/* The phone menu: the four main sections as tiles, the rest as a line of small links. */
.home .menu ul.tiles { grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 0 8px; }
.home .menu .tiles a, .home .menu .tiles li:last-child a { display: grid; gap: 2px; justify-content: stretch; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.home .menu .tiles a span { text-align: left; font-size: 12.5px; }
.home .menu .also-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 6px 2px 4px; font-size: 14px; color: var(--muted); }
.home .menu .also-links a { display: inline; padding: 4px 0; border: 0; font-weight: 600; color: var(--primary); }

/* Hero */
.home .hero { position: relative; overflow: hidden; isolation: isolate; padding-block: 28px 8px; }
.home .hero::before { content: ""; position: absolute; inset: -120px -40% auto; height: 520px; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent); }
.home .hero-grid { display: grid; gap: 28px; }
.home .eyebrow { display: inline-flex; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary); background: var(--tint); padding: 6px 12px; border-radius: 999px; }
.home .hero h1 { font-size: clamp(31px, 7.4vw, 47px); line-height: 1.08; letter-spacing: -.025em; margin-top: 14px; }
.home .hero h1 em { font-style: normal; color: var(--primary); }
.home .lede { font-size: 18px; color: var(--muted); margin-top: 14px; max-width: 32em; }
.home .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.home .actions .btn { flex: 1 1 auto; min-width: 0; }
/* Three tags that sell the habit, each with its own colour. */
.home .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.home .tags li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px 7px 8px; border-radius: 999px; font-size: 14px; font-weight: 650;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 2px 8px -4px rgba(16, 24, 40, .15); }
.home .tags i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--primary); }
.home .tags i svg { width: 15px; height: 15px; }
.home .tags li:nth-child(2) i { background: var(--ok-bg); color: var(--ok); }
.home .tags li:nth-child(3) i { background: var(--ask-bg); color: var(--ask); }
.home .actions { margin-top: 22px; }
.home .stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; max-width: 420px; }
.home .stores:not(:has(:not([hidden]))) { display: none; }
.home .store { gap: 10px; border-radius: 12px; padding: 8px 12px; min-height: 54px; border-color: #000; min-width: 0; }
.home .store svg { width: 24px; height: 24px; }
.home .store span { line-height: 1.15; min-width: 0; }
.home .store small { font-size: 10px; opacity: .8; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home .store b { display: block; white-space: nowrap; }
.home .store.soon { color: var(--text); border-color: var(--border); }
.home .store.soon small { color: var(--muted); opacity: 1; }

/* The app, right under the hero: dark in both themes, so it stands out from the blue band at the
   end. Big store badges, and a big "Coming soon" until both stores are live. */
.home .appzone { padding-block: 36px 8px; }
.home .appcard { position: relative; overflow: hidden; isolation: isolate; display: grid; justify-items: center; text-align: center; padding: 40px 22px;
  border-radius: 28px; color: #fff;
  background: radial-gradient(120% 90% at 0% 0%, #3a2f8f 0%, transparent 60%), radial-gradient(90% 80% at 100% 100%, #0f6d5a 0%, transparent 55%), #141432; }
.home .appcard::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1.4px); background-size: 22px 22px; }
.home .appicon { width: 84px; height: 84px; border-radius: 22px; margin-bottom: 18px; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .15); }
.home .appcard .kicker { color: #c9c6ff; }
.home .appcard h2 { color: #fff; font-size: clamp(30px, 7vw, 44px); line-height: 1.08; letter-spacing: -.025em; margin: 8px 0 12px; }
.home .appcard h2 em { font-style: normal; background: linear-gradient(90deg, #ffd166, #ff9f6e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home .appcard p { color: rgba(255, 255, 255, .82); font-size: 17px; max-width: 30em; }
.home .soonlabel { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 20px 10px 14px; border-radius: 999px;
  background: #ffd166; font-weight: 850; font-size: clamp(20px, 5vw, 26px); letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 10px 30px -8px rgba(255, 209, 102, .55); transform: rotate(-2deg); }
.home .appcard .soonlabel { color: #2b1d00; }
.home .soonlabel[hidden] { display: none; }
.home .soonlabel i { width: 12px; height: 12px; border-radius: 50%; background: #e8590c; animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(232, 89, 12, .6); } 80%, 100% { box-shadow: 0 0 0 12px rgba(232, 89, 12, 0); } }
.home .bigstores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 520px; margin-top: 22px; }
.home .bigstore { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 18px; border-radius: 18px; background: #000; color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .35); text-decoration: none; text-align: left; }
.home .bigstore[hidden] { display: none; }
.home .bigstore svg { width: 44px; height: 44px; flex: none; }
.home .bigstore span { display: grid; line-height: 1.1; min-width: 0; }
.home .bigstore small { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; white-space: nowrap; }
.home .bigstore b { font-size: 24px; letter-spacing: -.01em; white-space: nowrap; }
.home .appcard .fine { font-size: 14px; margin-top: 16px; color: rgba(255, 255, 255, .7); }
.home .appcard .fine a { color: #fff; }
@media (max-width: 420px) {
  .home .bigstore { padding: 12px; gap: 10px; border-radius: 14px; }
  .home .bigstore svg { width: 32px; height: 32px; }
  .home .bigstore small { font-size: 10px; }
  .home .bigstore b { font-size: 18px; }
}

/* The app's screens: swipe on a phone (the next one peeks in), fanned on a wide screen. */
.home .screens { margin-inline: calc(-1 * var(--gutter)); min-width: 0; }
.home .track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 18px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.home .track::-webkit-scrollbar { display: none; }
.home .shot { flex: 0 0 62%; max-width: 240px; scroll-snap-align: center; margin: 0; display: grid; gap: 10px; justify-items: center; }
.home .phone { width: 100%; background: #0e0f14; border-radius: 30px; padding: 7px; box-shadow: 0 18px 40px -12px rgba(16, 24, 40, .35); }
.home .phone img { display: block; width: 100%; height: auto; border-radius: 24px; background: var(--surface); }
.home .shot figcaption { font-size: 13px; font-weight: 600; text-align: center; }
.home .shot figcaption span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary); font-size: 11px; margin-right: 6px; }
.home .dots { display: flex; justify-content: center; gap: 6px; }
.home .dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--border); transition: all .2s; }
.home .dots i.on { width: 20px; background: var(--primary); }

.home .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-block: 28px 8px; }
.home .stats div { background: var(--surface); padding: 14px 16px; }
.home .stats b { display: block; font-size: 24px; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.home .stats span { font-size: 13px; color: var(--muted); }

.home section { padding-block: 48px; }
.home section h2 { font-size: clamp(26px, 6.6vw, 36px); line-height: 1.12; letter-spacing: -.02em; margin: 8px 0 10px; }
.home .band { background: var(--surface); border-block: 1px solid var(--border); }

/* Why paper, why every day */
.home .why { display: grid; gap: 14px; margin-top: 22px; }
.home .why-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.home .why-card h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.home .why-card h3 .ic { width: 36px; height: 36px; border-radius: 11px; }
.home .why-card h3 svg { width: 20px; height: 20px; }
.home .why-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.home .why-card li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15px; margin: 0; }
.home .why-card li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.home .why-card li b { color: var(--text); font-weight: 650; }

/* How a day works: a timeline on a phone, four cards on a wide screen. */
.home .steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; counter-reset: step; }
.home .steps li { counter-increment: step; position: relative; padding: 0 0 22px 52px; }
.home .steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 700; }
.home .steps li::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--border); }
.home .steps li:last-child { padding-bottom: 0; }
.home .steps li:last-child::after { display: none; }
.home .steps b { display: block; font-size: 17px; padding-top: 6px; }
.home .steps span { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }

/* Marking. The sheet as the app's camera sees it: a dark screen, the page inside four green guide
   corners (as on the Scan screen), the camera's hint and its shutter. The corners are eight bars. */
.home .mark-grid { display: grid; gap: 22px; margin-top: 22px; }
.home .sheet-example { margin: 0; display: grid; gap: 10px; }
.home .camera { --guide: #22c55e; --arm: 30px; --line: 4px; position: relative; justify-self: center; width: 100%; max-width: 340px;
  padding: 18px 18px 50px; border-radius: 26px; background: #12141a; box-shadow: 0 18px 40px -14px rgba(16, 24, 40, .4); }
.home .corners { padding: 9px;
  background:
    linear-gradient(var(--guide), var(--guide)) top left / var(--arm) var(--line) no-repeat,
    linear-gradient(var(--guide), var(--guide)) top left / var(--line) var(--arm) no-repeat,
    linear-gradient(var(--guide), var(--guide)) top right / var(--arm) var(--line) no-repeat,
    linear-gradient(var(--guide), var(--guide)) top right / var(--line) var(--arm) no-repeat,
    linear-gradient(var(--guide), var(--guide)) bottom left / var(--arm) var(--line) no-repeat,
    linear-gradient(var(--guide), var(--guide)) bottom left / var(--line) var(--arm) no-repeat,
    linear-gradient(var(--guide), var(--guide)) bottom right / var(--arm) var(--line) no-repeat,
    linear-gradient(var(--guide), var(--guide)) bottom right / var(--line) var(--arm) no-repeat; }
.home .corners img { display: block; width: 100%; height: auto; border-radius: 2px; transform: rotate(-1.2deg); }
.home .camera .hint { position: absolute; inset: auto 0 17px; text-align: center; font-size: 12px; color: #e8eaf0; }
.home .camera .shutter { position: absolute; right: 16px; bottom: 11px; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid #9aa0ad; }
.home .sheet-example figcaption { font-size: 13px; color: var(--muted); text-align: center; max-width: 340px; justify-self: center; }
.home .read-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.home .read-card .q, .home .read-card .note { font-size: 14px; color: var(--muted); }
.home .read-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.home .read-card dl div { background: var(--bg); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.home .read-card dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin: 0; }
.home .read-card dd { margin: 2px 0 0; font-size: 17px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.home .read-card dd.hand { font-family: "Comic Sans MS", "Chalkboard SE", "Bradley Hand", cursive; color: var(--primary); font-weight: 500; }
.home .res { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 800; flex: none; }
.home .res.ok { background: var(--ok-bg); color: var(--ok); }
.home .res.no { background: var(--no-bg); color: var(--no); }
.home .res.ask { background: var(--ask-bg); color: var(--ask); }
.home .marks { display: grid; gap: 10px; margin: 0; }
.home .marks div { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: start; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.home .marks dt { font-weight: 700; grid-column: 2; margin: 0; }
.home .marks .res { grid-row: 1 / 3; margin-top: 2px; width: 28px; height: 28px; }
.home .marks dd { grid-column: 2; margin: 0; color: var(--muted); font-size: 14px; }

/* Progress */
.home .prog-grid { display: grid; gap: 26px; margin-top: 22px; }
.home .prog-phone { width: min(250px, 70%); justify-self: center; }
.home .features { display: grid; gap: 12px; margin: 0; }
.home .features div { border-left: 3px solid var(--primary); padding: 2px 0 2px 14px; }
.home .features dt { font-weight: 700; margin: 0; }
.home .features dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.home .aside { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Cards swipe on a phone and sit three across on a wide screen. */
.home .cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 22px calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter) 10px; }
.home .cards::-webkit-scrollbar { display: none; }
.home .card { flex: 0 0 82%; scroll-snap-align: start; margin: 0; padding: 18px; border-radius: var(--radius); }
.home .band .card { background: var(--bg); }
.home .card .ic { margin-bottom: 12px; }
.home .card h3 { font-size: 17px; margin-bottom: 6px; }
.home .card p { color: var(--muted); font-size: 15px; }
.home .swipe-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.home .also { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.home .also li { font-size: 14px; background: var(--tint); border-radius: 12px; padding: 10px 12px; margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.home .also li::before { content: "✓"; color: var(--ok); font-weight: 800; }

/* A tutor in your pocket */
.home .pocket { display: grid; gap: 16px; margin-top: 26px; background: var(--tint); border-radius: 20px; padding: 22px; }
.home .pocket h3 { font-size: 21px; line-height: 1.2; }
.home .pocket p { color: var(--muted); margin-top: 8px; }
.home .pocket ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.home .pocket li { background: var(--surface); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; margin: 0; min-width: 0; }
.home .pocket li span { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }

/* Sample sheets: the sheets themselves, side by side across the whole width, to swipe or step
   through with the arrows or the year buttons. The panel under them is the sheet in the middle. */
.home #samples { overflow: hidden; }
.home .slider { position: relative; margin: 22px calc(50% - 50vw) 0; }
.home .slides { display: flex; gap: 18px; margin: 0; padding: 12px calc(50% - 150px) 26px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.home .slides::-webkit-scrollbar { display: none; }
.home .slide { flex: 0 0 300px; display: grid; gap: 10px; justify-items: center; margin: 0; scroll-snap-align: center; opacity: .45; transform: scale(.9); transition: transform .25s, opacity .25s; }
.home .slide.on { opacity: 1; transform: none; }
.home .paper { display: block; width: 100%; aspect-ratio: 210 / 297; overflow: hidden; border-radius: 6px; background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 24px 40px -18px rgba(16, 24, 40, .35); }
.home .paper img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home .slide > span { font-size: 14px; font-weight: 650; }
.home .slide small { color: var(--muted); font-weight: 400; font-size: 14px; }
.home .arrow { position: absolute; top: calc(50% - 40px); z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: 0 8px 20px -8px rgba(16, 24, 40, .3); }
.home .arrow svg { width: 22px; height: 22px; }
.home .arrow.prev { left: calc(50% - 230px); }
.home .arrow.next { right: calc(50% - 230px); }
.home .arrow:disabled { opacity: .35; cursor: default; }
.home .yeardots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.home .yeardots button { min-width: 40px; height: 34px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.home .yeardots button[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.home .sheetinfo { display: grid; gap: 16px; max-width: 760px; margin: 20px auto 0; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.home .sheetinfo:not(.on) { display: none; }
.home .sheetinfo h3 { font-size: 20px; }
.home .sheetinfo .age { color: var(--muted); font-size: 14px; margin-top: 2px; }
.home .sheetinfo .sections { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.home .sheetinfo .sections li { display: grid; gap: 2px; margin: 0; padding-left: 12px; border-left: 3px solid var(--primary); font-weight: 650; font-size: 14.5px; }
.home .sheetinfo .sections span { font-weight: 400; color: var(--muted); font-size: 13.5px; }
.home .sheetinfo .side { display: grid; gap: 10px; align-content: start; }
.home .sheetinfo .side .btn { width: 100%; }
.home .sheetinfo details { font-size: 14px; }
.home .sheetinfo details ol { margin-top: 6px; columns: 2; }
.home .sheetinfo .fine { font-size: 12.5px; color: var(--muted); }
.home .aside.centre { text-align: center; }

/* Help: questions parents ask, as an accordion. */
.home .faq { display: grid; gap: 10px; margin-top: 22px; }
.home .faq details { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 0 18px; }
.home .faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 0; font-weight: 650; }
.home .faq summary::-webkit-details-marker { display: none; }
.home .faq summary::after { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--primary); font-weight: 700; }
.home .faq details[open] summary::after { content: "–"; }
.home .faq .a { padding: 0 0 16px; color: var(--muted); font-size: 15px; display: grid; gap: 8px; }
.home .faq .a b { color: var(--text); font-weight: 650; }
.home .faq .a ul { margin: 0; padding-left: 18px; }
.home .faq .a li { margin: 2px 0; }
.home .more { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Start today */
.home .cta { background: linear-gradient(160deg, #4b4bc8, #2a2a7a); color: #fff; border-radius: 24px; padding: 32px 20px; text-align: center;
  position: relative; overflow: hidden; isolation: isolate; margin-top: 8px; }
.home .cta::after { content: ""; position: absolute; z-index: -1; width: 280px; height: 280px; right: -90px; top: -90px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.home .cta h2 { color: #fff; margin-top: 0; }
.home .cta p { color: rgba(255, 255, 255, .85); max-width: 34em; margin: 0 auto; }
.home .cta .stores { margin: 22px auto 0; }
.home .cta .store.soon { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
.home .cta .store.soon small { color: rgba(255, 255, 255, .75); }
.home .cta .fine { font-size: 14px; margin-top: 16px; }
.home .cta a:not(.store) { color: #fff; }

/* Get in touch */
.home .contact { padding-block: 48px 40px; }
.home .contact-grid { display: grid; gap: 14px; margin-top: 22px; }
.home .contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; }
.home .contact-card h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.home .contact-card p { color: var(--muted); font-size: 15px; }
.home .contact-card .btn { justify-self: start; margin-top: 6px; max-width: 100%; overflow-wrap: anywhere; }
.home .contact-card .when { font-size: 13px; color: var(--muted); }

/* The footer (pages.css) is a band here, with room for the "Get the app" bar on a phone. */
.home footer.site { margin-top: 40px; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* "Get the app": a bar at the foot of a phone's screen once the hero's buttons have scrolled away. */
.home .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border); transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
.home .dock.show { transform: none; visibility: visible; }
.home .dock .mark { width: 38px; height: 38px; }
.home .dock .txt { flex: 1; min-width: 0; line-height: 1.2; }
.home .dock .txt b { display: block; font-size: 14px; }
.home .dock .txt span { font-size: 12px; color: var(--muted); }
.home .dock .get { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 14px;
  border-radius: 999px; padding: 0 16px; min-height: 44px; text-decoration: none; white-space: nowrap; }
.home .dock .get svg { width: 16px; height: 16px; }

@media (max-width: 599px) {
  .home .menu .row { flex-direction: column; }
  .home .slides { gap: 12px; padding-inline: calc(50% - 120px); }
  .home .slide { flex-basis: 240px; }
  .home .arrow { display: none; }
}
@media (max-width: 359px) {
  .home .stores, .home .bigstores { grid-template-columns: 1fr; }
}
@media (min-width: 600px) {
  .home .stats { grid-template-columns: repeat(4, 1fr); }
  .home .card { flex-basis: 46%; }
  .home .pill.get { display: inline-flex; }
  .home .actions .btn { flex: 0 1 auto; }
  .home .contact-grid { grid-template-columns: 1fr 1fr; }
  .home .sheetinfo { grid-template-columns: 1.4fr 1fr; padding: 24px; }
}
@media (min-width: 900px) {
  .home .navlinks { display: flex; }
  .home .menu-btn, .home .menu { display: none !important; }
  .home .hero { padding-block: 48px 24px; }
  .home .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
  .home .screens { margin: 0; }
  .home .track { overflow: visible; justify-content: center; padding: 0 0 20px; gap: 0; }
  .home .shot { flex: 0 0 200px; }
  .home .shot:nth-child(1) { transform: translate(26px, 22px) rotate(-5deg); }
  .home .shot:nth-child(2) { z-index: 1; flex-basis: 220px; }
  .home .shot:nth-child(3) { transform: translate(-26px, 22px) rotate(5deg); }
  .home .shot figcaption, .home .dots { display: none; }
  .home section { padding-block: 76px; }
  .home .why { grid-template-columns: 1fr 1fr; gap: 18px; }
  .home .steps { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .home .steps b { font-size: 16px; }
  .home .steps span { font-size: 14px; }
  .home .steps li, .home .steps li:last-child { padding: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
  .home .steps li::before { position: static; margin-bottom: 12px; }
  .home .steps li::after { display: none; }
  .home .mark-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; column-gap: 40px; row-gap: 16px; }
  .home .sheet-example { grid-row: 1 / 3; }
  .home .prog-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  .home .prog-phone { order: 2; }
  .home .cards { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding: 0; }
  .home .swipe-hint { display: none; }
  .home .also { grid-template-columns: repeat(4, 1fr); }
  .home .pocket { grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; padding: 32px; }
  .home .faq { grid-template-columns: 1fr 1fr; align-items: start; }
  .home .cta { padding: 56px 32px; }
  .home .appcard { padding: 64px 48px; }
  .home .bigstores { max-width: 600px; gap: 16px; }
  .home .bigstore { padding: 18px 24px; }
  .home .bigstore svg { width: 52px; height: 52px; }
  .home .bigstore b { font-size: 28px; }
  .home .soonlabel { font-size: 30px; padding: 12px 26px 12px 18px; }
  .home .dock { display: none; }
  .home footer.site { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home *, .home *::before { transition: none !important; }
  .home .soonlabel i { animation: none; }
}
