/* The home page. The hero is a honey jar: its level is screen time left. It drains when the
   limit hits, and the block screen beside the headline is a 20-second demo that pours it back. */

:root { --good: #1C905B; --good-bg: #EAF7EF; --miss: #B93F0A; --miss-bg: #FFF1E8;
        --ease-out: cubic-bezier(0.19, 1, 0.22, 1); }

/* Header, sitting on the hero */
.home .site-head { position: absolute; inset: 0 0 auto 0; z-index: 3; padding: 18px 0; }
.home .site-head nav { align-items: center; }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 999px;
        font: 600 15px/1 system-ui, -apple-system, sans-serif; text-decoration: none; transition: transform 150ms ease-out, background-color 150ms ease; }
.pill:active { transform: scale(0.96); }
.pill-ink { background: var(--ink); color: #FFFDF8; box-shadow: 0 1px 2px rgb(42 39 37 / 0.18), 0 8px 18px -10px rgb(42 39 37 / 0.6); }
.site-head nav a.pill { height: 40px; min-height: 40px; padding: 0 18px; font-size: 14px; color: #FFFDF8; margin-left: 4px; }
.text-link.arrow::after { content: "→"; margin-left: 6px; transition: transform 150ms ease-out; }
.text-link.arrow:hover { text-decoration: none; }
html:not(.js) .needs-js { display: none; }
@media (hover: hover) and (pointer: fine) { /* touch screens fire hover on tap */
  .pill-ink:hover { background: #45403C; }
  .text-link.arrow:hover::after { transform: translateX(3px); }
  .btn:hover { background: #075FDC; }
  .btn-text:hover { background: rgb(11 107 242 / 0.06); }
  .choice:not(.right):not(.wrong):hover { background: #F2EBE5; }
}

/* Hero: a cream sky over honey, with grain over both */
.hero { position: relative; isolation: isolate; overflow: clip; border-radius: 0 0 40px 40px;
        background:
          radial-gradient(55% 60% at 80% 30%, #FFF0C7 0%, rgb(255 240 199 / 0) 70%),
          radial-gradient(40% 45% at 8% 4%, #FFFFFF 0%, rgb(255 255 255 / 0) 70%),
          linear-gradient(180deg, #FFFCF5 0%, #FFF7E6 60%, #FFEDC4 100%); }
.hero canvas.honey { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 300ms ease-out; }
.hero canvas.honey.on { opacity: 1; }
html:not(.js) .hero::before { /* without the script, a still jar: almost empty */
  content: ""; position: absolute; inset: auto 0 0 0; height: 7%; z-index: 0;
  background: linear-gradient(180deg, #FFC21A, #E86A00); box-shadow: 0 -2px 0 rgb(255 255 255 / 0.5) inset; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.16; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.15 0 0 0 0 0.14 0 0 0 0.85 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px; }
.hero > .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 72px;
                align-items: center; min-height: clamp(700px, 100svh, 980px); padding: 96px 0 clamp(110px, 17svh, 180px); }
.hero h1 { font-size: clamp(42px, 5.2vw, 62px); font-weight: 500; line-height: 1.02; letter-spacing: -0.035em; margin: 22px 0 0;
           font-family: system-ui, -apple-system, sans-serif; }
.hero h1 .h1-line { display: block; }
.hero h1 .h1-sub { display: block; margin-top: 14px; font-size: clamp(21px, 2.3vw, 28px); font-weight: 500; line-height: 1.25; letter-spacing: -0.025em; color: var(--ink-2); }
.hero .lede { margin-top: 20px; max-width: 30rem; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--ink-2); }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 40px; }
.hero .fine { margin-top: 22px; font-size: 13px; color: var(--ink-3); }

/* The live line above the headline. It holds the width of its longest message, so nothing moves */
.status { display: flex; align-items: center; gap: 9px; margin: 0; font: 600 14px/1.2 ui-rounded, "SF Pro Rounded", system-ui, sans-serif; color: var(--ink-2); }
.status .jar { width: 15px; height: 17px; flex: none; color: var(--ink); }
.status .msgs { display: grid; }
.status .msgs > span { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transition: opacity 200ms ease-out; }
.status[data-show="left"] [data-msg="left"], .status[data-show="up"] [data-msg="up"], .status[data-show="earned"] [data-msg="earned"] { opacity: 1; }
html:not(.js) .status [data-msg="left"] { opacity: 0; }
html:not(.js) .status [data-msg="up"] { opacity: 1; }
.status b { color: var(--ink); font-weight: 700; }
.status[data-show="earned"] { color: var(--orange-deep); }

/* The block screen, as the app draws it, and the demo inside it */
.demo { justify-self: end; width: 100%; max-width: 380px; }
.shield-note { margin: 0 0 14px; text-align: center; font-size: 13px; color: var(--ink-3); text-wrap: balance; }
.shield { padding: 12px; border-radius: 44px; background: rgb(255 253 248 / 0.88);
          box-shadow: 0 0 0 1px rgb(42 39 37 / 0.07), 0 2px 6px rgb(42 39 37 / 0.05), 0 32px 70px -30px rgb(120 70 0 / 0.4);
          -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.shield-inner { position: relative; height: 460px; border-radius: 32px; background: #FFFFFF; box-shadow: 0 0 0 1px rgb(42 39 37 / 0.06); overflow: hidden; }
.step { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 26px 24px 20px;
        transition: opacity 220ms ease-out 70ms, transform 260ms var(--ease-out) 70ms, visibility 0s; }
.step[hidden] { display: flex; visibility: hidden; opacity: 0; transform: translateY(6px); pointer-events: none;
                transition: opacity 140ms ease-out, transform 0s 140ms, visibility 0s 140ms; }
.step .step-title:focus { outline: none; }
.step .step-title:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.step .bea { width: 136px; height: 136px; object-fit: contain; margin: 0 auto 12px; }
.step .step-title { margin: 0; font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; text-wrap: balance; font-size: 23px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; text-align: center; }
.step .say { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); text-align: center; text-wrap: balance; }
.step .grow { flex: 1; }
.step.blocked::before, .step.earned::before { content: ""; flex: 0.6; } /* the message sits a little above centre, buttons at the foot */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; border: 0; border-radius: 16px;
       background: var(--blue); color: #fff; font: 700 16px/1 ui-rounded, "SF Pro Rounded", system-ui, sans-serif; cursor: pointer;
       text-decoration: none; box-shadow: 0 1px 2px rgb(11 107 242 / 0.25), 0 8px 18px -10px rgb(11 107 242 / 0.7);
       transition: transform 150ms ease-out, background-color 150ms ease; }
.btn:active { transform: scale(0.96); }
.btn-text { display: block; width: 100%; min-height: 44px; margin-top: 6px; border: 0; border-radius: 12px; background: none; color: var(--blue);
            font: 600 15px/44px ui-rounded, "SF Pro Rounded", system-ui, sans-serif; cursor: pointer; text-align: center;
            transition: transform 150ms ease-out, background-color 150ms ease; }
.btn-text:active { transform: scale(0.96); }
.kicker { font: 700 12px/1 ui-rounded, system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-deep); }
.step.story .step-title, .step.quiz .step-title { text-align: left; margin-top: 10px; }
.step.story .text { margin-top: 12px; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.step.story .text + .text { margin-top: 10px; }
.choices { display: grid; gap: 10px; margin-top: 20px; }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 14px; border: 0; border-radius: 16px;
          background: var(--card); box-shadow: inset 0 0 0 1.5px rgb(42 39 37 / 0.07); color: var(--ink); text-align: left;
          font: 600 15.5px/1.3 system-ui, -apple-system, sans-serif; cursor: pointer;
          transition: box-shadow 150ms ease, background-color 150ms ease, transform 150ms ease-out; }
.choice:active { transform: scale(0.98); }
.choice .key { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: #fff;
               box-shadow: 0 0 0 1px rgb(42 39 37 / 0.1); font: 700 13px/1 ui-rounded, system-ui; color: var(--ink-2); }
.choice.right { background: var(--good-bg); box-shadow: inset 0 0 0 2px var(--good); }
.choice.right .key { background: var(--good); color: #fff; box-shadow: none; }
.choice.wrong { background: var(--miss-bg); box-shadow: inset 0 0 0 2px var(--miss); }
.choice.wrong .key { background: var(--miss); color: #fff; box-shadow: none; }
.hint { min-height: 22px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--miss); }
.step.earned .plus { font-size: 30px; letter-spacing: -0.03em; color: var(--orange-deep); }

/* Sections, separated by space alone */
.band { padding: 128px 0 0; }
.band:last-of-type { padding-bottom: 120px; }
.label { display: inline-block; margin-bottom: 16px; }
.title { font-size: clamp(30px, 3.4vw, 40px); font-weight: 500; line-height: 1.1; letter-spacing: -0.04em; text-wrap: balance;
         font-family: system-ui, -apple-system, sans-serif; }
.center { text-align: center; }
.lead { margin: 18px auto 0; max-width: 34rem; font-size: 18px; line-height: 1.55; color: var(--ink-2); text-wrap: balance; }

/* Phones: a white bezel around the screenshot, radii concentric (46 = 38 + 8) */
.device { padding: 8px; border-radius: 46px; background: #fff;
          box-shadow: 0 0 0 1px rgb(42 39 37 / 0.07), 0 2px 6px rgb(42 39 37 / 0.05), 0 30px 60px -30px rgb(42 39 37 / 0.35); }
.phone { width: 100%; height: auto; aspect-ratio: 560 / 1216; object-fit: cover; object-position: top; border-radius: 38px; background: var(--card); }
.phone.cut { aspect-ratio: 560 / 668; }

.steps3 { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps3 .device { width: min(272px, 100%); margin: 0 auto; }
.steps3 .cap { max-width: 300px; margin: 28px auto 0; text-align: center; }
.steps3 .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--honey);
             font: 700 14px/1 ui-rounded, system-ui; color: var(--ink); font-variant-numeric: tabular-nums; }
.steps3 h3 { margin-top: 14px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.steps3 p { margin-top: 6px; font-size: 16px; color: var(--ink-2); }

.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; max-width: 30rem; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 7px;
                    background: var(--honey-soft); box-shadow: inset 0 0 0 5.5px var(--honey); }
.ticks b { color: var(--ink); font-weight: 600; }
.stack { position: relative; height: 600px; }
.stack .a { position: absolute; left: 6%; top: 0; width: 264px; }
.stack .b { position: absolute; right: 2%; bottom: 0; width: 248px; }

/* Why reading: the day's split as two bars, then what research links to each side */
.bars { max-width: 900px; margin: 52px auto 0; padding: 30px 32px 26px; border-radius: 28px; background: #fff;
        box-shadow: 0 0 0 1px rgb(42 39 37 / 0.07), 0 1px 2px rgb(42 39 37 / 0.04), 0 18px 40px -26px rgb(42 39 37 / 0.25); }
.bar { display: grid; grid-template-columns: 1fr auto; align-items: baseline; row-gap: 10px; }
.bar + .bar { margin-top: 22px; }
.bar .what { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.bar .val { font: 500 clamp(24px, 3vw, 32px)/1 system-ui, -apple-system, sans-serif; letter-spacing: -0.035em; color: var(--ink); }
.bar .track { grid-column: 1 / -1; display: block; height: 14px; border-radius: 7px; background: var(--card); }
.bar .fill { display: block; width: var(--w); height: 100%; border-radius: 7px; clip-path: inset(0 0 0 0 round 7px);
             transition: clip-path 900ms var(--ease-out); }
.bar.screens .fill { background: var(--ink); }
.bar.reading .fill { background: var(--honey); transition-delay: 150ms; }
.bars.wait .fill { clip-path: inset(0 100% 0 0 round 7px); }
.bars figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 22px; font-size: 13px; color: var(--ink-3); }
.src { font-size: 13px; color: var(--ink-3); text-decoration: none; }
.src:hover { color: var(--ink); text-decoration: underline; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; max-width: 900px; margin: 20px auto 0; }
.col-head { display: flex; align-items: center; gap: 10px; margin: 26px 0 2px 4px; font: 600 15px/1 system-ui, -apple-system, sans-serif; letter-spacing: 0; color: var(--ink-2); }
.dot { width: 10px; height: 10px; border-radius: 3px; }
.dot.screens { background: var(--ink); } .dot.reading { background: var(--honey); }
.fact { margin: 0; padding: 30px 30px 26px; border-radius: 28px; background: #fff;
        box-shadow: 0 0 0 1px rgb(42 39 37 / 0.07), 0 1px 2px rgb(42 39 37 / 0.04), 0 18px 40px -26px rgb(42 39 37 / 0.25); }
.fact.warm { background: #FFF8E3; box-shadow: 0 0 0 1px rgb(200 120 0 / 0.14), 0 1px 2px rgb(120 70 0 / 0.05), 0 18px 40px -26px rgb(160 90 0 / 0.3); }
.fact .big, .strip .big { font: 500 clamp(40px, 4.4vw, 52px)/1 system-ui, -apple-system, sans-serif; letter-spacing: -0.05em; color: var(--ink); text-wrap: balance; }
.fact p { margin-top: 14px; font-size: 16px; color: var(--ink-2); }
.fact { display: flex; flex-direction: column; }
.fact .src { margin-top: auto; padding-top: 16px; }
.strip { display: flex; align-items: center; gap: 12px 28px; max-width: 900px; margin: 20px auto 0; padding: 24px 30px; border-radius: 24px; background: #fff;
         box-shadow: 0 0 0 1px rgb(42 39 37 / 0.07), 0 1px 2px rgb(42 39 37 / 0.04); }
.strip .big { flex: none; font-size: clamp(32px, 3.4vw, 40px); }
.strip p { font-size: 16px; color: var(--ink-2); }
.strip .src { margin-left: 6px; white-space: nowrap; }
.note { margin-top: 18px; text-align: center; font-size: 13px; color: var(--ink-3); text-wrap: balance; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.trio .ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 12px;
            background: var(--honey-soft); color: var(--orange-deep); box-shadow: inset 0 0 0 1px rgb(226 86 0 / 0.08); }
.trio .ic svg { width: 20px; height: 20px; }
.trio h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; font-family: system-ui, -apple-system, sans-serif; }
.trio p { margin-top: 6px; font-size: 16px; color: var(--ink-2); }

/* The offer: a honey plate around a white card, radii concentric (38 = 28 + 10) */
.offer { max-width: 520px; margin: 48px auto 0; padding: 10px; border-radius: 38px;
         background: radial-gradient(120% 130% at 15% 0%, #FFE48F 0%, #FFC21A 45%, #FF9A1F 100%);
         box-shadow: 0 0 0 1px rgb(180 90 0 / 0.12), 0 28px 60px -30px rgb(180 90 0 / 0.6); }
.offer-in { padding: 40px 32px 30px; border-radius: 28px; background: #fff; text-align: center; box-shadow: 0 1px 2px rgb(120 60 0 / 0.08); }
.offer .big { font: 500 46px/1 system-ui, -apple-system, sans-serif; letter-spacing: -0.045em; }
.offer .then { margin-top: 12px; font-size: 17px; color: var(--ink-2); }
.offer ul { list-style: none; padding: 0; margin: 28px auto 0; max-width: 330px; display: grid; gap: 10px; text-align: left; }
.offer li { position: relative; padding-left: 30px; font-size: 15.5px; }
.offer li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px;
                    background: var(--honey-soft); box-shadow: inset 0 0 0 5px var(--honey); }
.offer .badge { margin-top: 30px; }
.offer .fineprint { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

.faq { max-width: 720px; margin: 40px auto 0; display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 20px; padding: 0 22px; box-shadow: 0 0 0 1px var(--edge); }
.faq summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px;
               font: 600 17px/1.35 ui-rounded, "SF Pro Rounded", system-ui, sans-serif; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-weight: 400; font-size: 20px; color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--ink-2); }
.faq summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 8px; }
.more { margin-top: 24px; text-align: center; font-size: 15px; color: var(--ink-2); }

@media (max-width: 960px) {
  .hero { border-radius: 0 0 28px 28px; }
  .hero > .wrap { grid-template-columns: 1fr; gap: 48px; min-height: 0; padding: 112px 0 150px; }
  .demo { justify-self: center; }
  .steps3, .trio { grid-template-columns: 1fr; gap: 56px; }
  .trio { max-width: 26rem; margin-inline: auto; text-align: center; }
  .trio .ic { margin-inline: auto; }
  .split2 { grid-template-columns: 1fr; gap: 48px; }
  .stack { width: min(440px, 100%); height: 560px; margin: 0 auto; }
  .stack .a { left: 0; width: 240px; } .stack .b { right: 0; width: 210px; }
  .cols { grid-template-columns: 1fr; max-width: 560px; }
  .cols .h-s { order: 1; } .cols .s1 { order: 2; } .cols .s2 { order: 3; } .cols .h-r { order: 4; } .cols .r1 { order: 5; } .cols .r2 { order: 6; }
  .bars, .strip { max-width: 560px; }
  .band { padding-top: 104px; }
}
@media (max-width: 520px) {
  .home .site-head nav a:not(.pill) { display: none; }
  .shield-inner { height: 476px; }
  .step { padding: 26px 20px 20px; }
  .stack { height: 470px; }
  .stack .a { width: 205px; } .stack .b { width: 178px; }
  .offer-in { padding: 34px 22px 26px; }
  .bars { padding: 24px 22px 22px; } .fact { padding: 26px 22px 22px; }
  .strip { flex-direction: column; align-items: flex-start; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .step, .step[hidden] { transform: none; transition: opacity 150ms linear, visibility 0s 150ms; }
  .step:not([hidden]) { transition: opacity 150ms linear, visibility 0s; }
  .pill, .btn, .btn-text, .choice, .badge, .text-link.arrow::after { transition: none; transform: none !important; }
  .bar .fill, .bar.reading .fill { clip-path: none; transition: opacity 200ms linear; }
  .bars.wait .fill { clip-path: none; opacity: 0; }
}
