/* kevytsome.fi – one stylesheet for every page.
   Brand: paper #FAFAF7, ink #141414, stone #8C8C88, lime #C8F04A.
   Lime rule on light backgrounds: lime is only a fill inside an ink outline
   or a thick highlight behind ink text, never text or a thin line. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #FAFAF7;
  --ink: #141414;
  --stone: #8C8C88;
  --lime: #C8F04A;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #5E5E59;
  --line: #E2E2DA;
  --card: #F1F1EA;
  --band-bg: var(--ink);
  --band-fg: var(--paper);
  --doodle: var(--ink);
  --strike: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6.5Q30 3 55 5.2T98 3.8' fill='none' stroke='%23141414' stroke-width='2.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --underline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6Q28 2 52 5T98 4' fill='none' stroke='%23141414' stroke-width='2.4' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");

  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  --radius: 22px;
  --wrap: 1080px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --fg: var(--paper);
    --muted: #A6A6A0;
    --line: #2C2C29;
    --card: #1D1D1B;
    --band-bg: #1D1D1B;
    --band-fg: var(--paper);
    --doodle: var(--paper);
    --strike: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6.5Q30 3 55 5.2T98 3.8' fill='none' stroke='%23FAFAF7' stroke-width='2.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    --underline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6Q28 2 52 5T98 4' fill='none' stroke='%23C8F04A' stroke-width='2.4' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--stone); }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-weight: 800; line-height: 1.12; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 34ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* Hand-drawn details */
.hl { position: relative; white-space: nowrap; color: var(--ink); padding: 0 .08em; z-index: 0; }
.hl::before {
  content: ""; position: absolute; z-index: -1;
  left: -.06em; right: -.06em; top: .3em; bottom: .02em;
  background: var(--lime);
  border-radius: .4em .2em .5em .25em;
  transform: rotate(-1.2deg);
}
.ul { background: var(--underline) no-repeat left bottom / 100% .32em; padding-bottom: .12em; }
.sun { display: inline-block; width: 1em; height: 1em; vertical-align: -.1em; }
.sun .rays { stroke: var(--doodle); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .brand .logo-light { display: none; }
  .brand .logo-dark { display: block; }
}
.site-nav { display: flex; align-items: center; gap: .3rem; }
.site-nav a { text-decoration: none; font-weight: 700; font-size: .95rem; padding: .45rem .75rem; border-radius: 999px; }
.site-nav a:hover { background: var(--card); }
.site-nav a[aria-current="page"] { background: var(--card); }
@media (max-width: 720px) {
  .site-nav .hide-sm { display: none; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.2;
  padding: .9rem 1.4rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 2px solid var(--fg); background: var(--fg); color: var(--bg);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lime { background: var(--lime); color: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-soon {
  background: transparent; color: var(--muted); border: 2px dashed var(--stone); cursor: default;
}
.btn-soon:hover { transform: none; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* Sections */
section { padding-block: clamp(4rem, 9vw, 7rem); }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(4rem, 8vw, 6rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { margin-bottom: 2rem; }
.hero .facts { margin-top: 1.4rem; font-size: .92rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* Phone mockup (abstract: no third-party UI) */
.phone-stage { position: relative; display: flex; flex-direction: column; align-items: center; padding: 1.5rem 0 0; }
.phone-stage .big-sun { position: absolute; z-index: 2; width: 120px; height: 120px; top: -22px; right: calc(50% - 200px); transform: rotate(8deg); transition: transform .6s cubic-bezier(.3, 1.8, .5, 1); }
.phone {
  position: relative; width: 270px; max-width: 78vw; aspect-ratio: 9 / 19;
  border-radius: 44px; border: 9px solid var(--ink); background: var(--paper);
  box-shadow: 0 30px 60px -30px rgba(20, 20, 20, .35);
  overflow: hidden; display: flex; flex-direction: column; color: var(--ink);
}
@media (prefers-color-scheme: dark) { .phone { border-color: #3A3A37; } }
.hero { overflow-x: clip; }
@media (max-width: 480px) {
  .phone-stage .big-sun { width: 96px; height: 96px; right: 0; }
  .phone { aspect-ratio: 9 / 17; }
}
.phone .notch { width: 82px; height: 22px; border-radius: 0 0 14px 14px; background: var(--ink); margin: 0 auto; flex: none; }
.phone .screen { flex: 1; padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.phone .post { background: #fff; border: 1px solid #E8E8E1; border-radius: 16px; padding: 10px; display: grid; gap: 8px; }
.phone .who { display: flex; align-items: center; gap: 8px; }
.phone .avatar { width: 22px; height: 22px; border-radius: 50%; background: #DADAD2; flex: none; }
.phone .avatar.a2 { background: #C9C9C0; }
.phone .name { height: 8px; width: 46%; border-radius: 4px; background: #D9D9D1; }
.phone .photo { border-radius: 10px; aspect-ratio: 16 / 9; overflow: hidden; }
.phone .photo svg { display: block; width: 100%; height: 100%; }
.phone .caption { height: 7px; width: 70%; border-radius: 4px; background: #E4E4DC; }
.phone .done { display: none; text-align: center; padding: 14px 0 0; }
.phone .done-ring { position: relative; display: inline-block; padding: 14px 22px 18px; }
.phone .done-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.phone .done b { display: block; font-size: 15px; font-weight: 800; position: relative; }
.phone .done span { display: block; font-size: 11px; color: #5E5E59; position: relative; }

/* Stays / goes */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 720px) { .split { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--card); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); }
.panel h3 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.list li { display: flex; gap: .8rem; align-items: flex-start; font-weight: 700; font-size: 1.1rem; }
.list li small { display: block; font-weight: 400; font-size: .92rem; color: var(--muted); }
.check { flex: none; width: 1.6rem; height: 1.6rem; margin-top: .05rem; }
.gone li { color: var(--muted); }
.gone .x { flex: none; width: 1.6rem; height: 1.6rem; margin-top: .05rem; color: var(--stone); }
.strike { background: var(--strike) no-repeat 0 55% / 100% .5em; padding-inline: .1em; color: var(--muted); }
.punch { margin-top: 2rem; font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 800; max-width: 34ch; }

/* Dark band: lime may be a line or text here */
.band { background: var(--band-bg); color: var(--band-fg); border-top: 0 !important; }
.band + section { border-top: 0; }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 820px) { .band .wrap { grid-template-columns: minmax(0, 1fr); } }
.band .eyebrow { color: var(--lime); }
.band p { color: #CFCFC8; font-size: 1.1rem; }
.caught { position: relative; padding: 2.2rem 2rem; text-align: center; }
.caught svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.caught strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.1; position: relative; }
.caught span { display: block; color: #CFCFC8; margin-top: .5rem; position: relative; }
.clock { margin-top: 1.6rem; font-size: .95rem; color: #A6A6A0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.card { background: var(--card); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.card .quote { display: block; margin-top: .9rem; font-weight: 700; color: var(--fg); font-size: .98rem; }
.card .icon { width: 44px; height: 44px; margin-bottom: 1rem; display: block; }
.card .icon .ink { stroke: var(--fg); }

/* Privacy */
.privacy .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 820px) { .privacy .wrap { grid-template-columns: minmax(0, 1fr); } }
.privacy-facts { display: grid; gap: 1rem; }
.fact { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; background: var(--card); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.fact h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.fact p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 760px; }
@media (max-width: 620px) { .prices { grid-template-columns: minmax(0, 1fr); } }
.price { position: relative; border: 2px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.price.best { border-color: var(--fg); }
.price .amount { font-size: 2.6rem; font-weight: 800; line-height: 1; margin: .6rem 0 .3rem; }
.price .amount small { font-size: 1.1rem; font-weight: 700; color: var(--muted); }
.price p { margin: 0; color: var(--muted); font-size: .98rem; }
.badge { position: absolute; top: -14px; right: 18px; background: var(--lime); color: var(--ink); border: 2px solid var(--ink); font-weight: 800; font-size: .85rem; padding: .2rem .7rem; border-radius: 999px; transform: rotate(3deg); }
.price-notes { margin-top: 1.6rem; display: grid; gap: .4rem; color: var(--muted); font-size: .98rem; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; font-weight: 800; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; font-size: 1.5rem; line-height: 1; flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.2rem; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Story */
.story .wrap { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); }
@media (max-width: 720px) { .story .wrap { grid-template-columns: minmax(0, 1fr); } }
.story .portrait { width: 140px; height: 140px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 3.2rem; font-weight: 800; position: relative; }
.story .portrait .sun { position: absolute; width: 54px; height: 54px; top: -8px; right: -10px; }
.story blockquote { margin: 0; font-size: clamp(1.1rem, 2vw, 1.25rem); max-width: 40rem; }
.story blockquote p { margin-bottom: 1.1rem; }
.story .sign { font-weight: 800; }

/* Waitlist */
.waitlist { text-align: center; }
.waitlist .wrap { max-width: 720px; }
.waitlist h2 { margin-bottom: 1rem; }
.waitlist p { color: var(--muted); }
.waitlist .actions { justify-content: center; margin: 2rem 0 1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem calc(3rem + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 1.6rem; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: flex-start; }
.site-footer img { height: 26px; width: auto; display: block; }
.site-footer .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .site-footer .logo-light { display: none; }
  .site-footer .logo-dark { display: block; }
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.site-footer nav a { text-decoration: none; font-weight: 700; }
.site-footer nav a:hover { text-decoration: underline; }
.no-cookies { font-weight: 800; }
.site-footer .fine { color: var(--muted); font-size: .88rem; display: grid; gap: .3rem; }
.site-footer .fine p { margin: 0; }

/* Text pages (privacy, terms, support, media) */
.page { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem); }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.page h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin: 2.8rem 0 .9rem; }
.page h3 { margin: 1.8rem 0 .5rem; }
.page ul, .page ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.page li { margin-bottom: .45rem; }
.page .updated { color: var(--muted); font-size: .95rem; }
.draft {
  border: 2px dashed var(--stone); border-radius: 16px; padding: 1rem 1.2rem; margin: 1.5rem 0 2rem;
  font-size: .98rem; background: var(--card);
}
.draft strong { display: block; }
.summary { background: var(--card); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 1.5rem 0; }
.summary ul { margin: .5rem 0 0; }
.contact-card { border: 2px solid var(--fg); border-radius: var(--radius); padding: 1.5rem 1.6rem; margin: 1.5rem 0; }
.contact-card p { margin: .2rem 0; }
.contact-card .email { font-size: 1.25rem; font-weight: 800; word-break: break-all; }
dl.facts { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0; margin: 0 0 1rem; }
dl.facts dt, dl.facts dd { margin: 0; padding: .7rem 0; border-bottom: 1px solid var(--line); }
dl.facts dt { font-weight: 800; color: var(--muted); }
@media (max-width: 560px) {
  dl.facts { grid-template-columns: minmax(0, 1fr); }
  dl.facts dt { border-bottom: 0; padding-bottom: 0; }
}
.assets { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 1rem 0; }
.asset { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.asset .preview { height: 140px; display: grid; place-items: center; padding: 1.2rem; }
.asset .preview img { max-height: 100%; width: auto; }
.asset .preview.light { background: var(--paper); }
.asset .preview.dark { background: var(--ink); }
.asset .meta { padding: .8rem 1rem; background: var(--card); font-size: .92rem; }
.asset .meta a { font-weight: 800; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1rem 0; }
.swatch { border-radius: 16px; border: 1px solid var(--line); overflow: hidden; font-size: .92rem; }
.swatch .chip { height: 80px; }
.swatch div:last-child { padding: .6rem .9rem; background: var(--card); }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; }

/* 404 */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.lost .sun { width: 90px; height: 90px; margin-bottom: 1.5rem; }
.lost p { color: var(--muted); }

/* ---------- Motion (CSS only: the site still runs no script) ---------- */

/* Hero: three hooks that come off with a tap (checkboxes + labels). */
.hook-box { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.phone .stories { display: flex; gap: 8px; }
.phone .stories i { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); background: radial-gradient(#E4E4DC 55%, transparent 58%); }
.phone .tag { font-size: 10px; font-weight: 800; color: var(--paper); background: var(--ink); border-radius: 999px; padding: 1px 7px; }
.phone .flat { display: block; height: 46px; border-radius: 10px; background: #ECECE4; }
.phone .video { display: grid; place-items: center; height: 74px; border-radius: 14px; background: var(--ink); }
.phone .video svg { width: 26px; height: 26px; }
.phone .tabs { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.phone .tabs > svg, .phone .piece-tab > svg { width: 22px; height: 22px; display: block; }
.phone .tabs .me { width: 20px; height: 20px; border-radius: 50%; background: var(--stone); }
.piece { position: relative; display: block; cursor: pointer; max-height: 140px; -webkit-tap-highlight-color: transparent; }
.piece-tab { max-width: 30px; }
.hook {
  position: absolute; top: -11px; right: -9px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--lime); border: 2px solid var(--ink); display: grid; place-items: center;
  animation: hook-pulse 1.6s ease-in-out infinite alternate;
}
.piece-tab .hook { top: -30px; right: -4px; }
.piece-video .hook { animation-delay: .3s; }
.piece-tab .hook { animation-delay: .6s; }
.hook svg { width: 15px; height: 19px; transform-origin: 50% 0; animation: hook-swing 1.6s ease-in-out infinite alternate; }
.piece:hover .hook { background: #D8F876; }
@keyframes hook-pulse { from { transform: scale(.94); } to { transform: scale(1.08); } }
@keyframes hook-swing { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
@keyframes fall-away {
  0% { transform: none; opacity: 1; max-height: 140px; margin-bottom: 0; }
  55% { transform: translate(14px, 250px) rotate(18deg); opacity: 0; max-height: 140px; margin-bottom: 0; }
  100% { transform: translate(14px, 250px) rotate(18deg); opacity: 0; max-height: 0; margin-bottom: -12px; }
}
@keyframes fall-tab {
  0% { transform: none; opacity: 1; max-width: 30px; }
  60% { transform: translateY(60px) rotate(25deg); opacity: 0; max-width: 30px; }
  100% { transform: translateY(60px) rotate(25deg); opacity: 0; max-width: 0; margin-left: -18px; }
}
#hook-ad:checked ~ .phone .piece-ad,
#hook-video:checked ~ .phone .piece-video { animation: fall-away .85s ease-in forwards; pointer-events: none; }
#hook-tab:checked ~ .phone .piece-tab { animation: fall-tab .8s ease-in forwards; pointer-events: none; }
#hook-ad:checked ~ #hook-video:checked ~ #hook-tab:checked ~ .phone .done { display: block; animation: pop-in .6s .75s cubic-bezier(.3, 1.6, .5, 1) both; }
#hook-ad:checked ~ #hook-video:checked ~ #hook-tab:checked ~ .phone .done path { stroke-dasharray: 1; animation: draw 1s 1.1s ease-out both; }
#hook-ad:checked ~ #hook-video:checked ~ #hook-tab:checked ~ .big-sun { transform: rotate(8deg) scale(1.3); }
#hook-ad:focus-visible ~ .phone .piece-ad .hook,
#hook-video:focus-visible ~ .phone .piece-video .hook,
#hook-tab:focus-visible ~ .phone .piece-tab .hook { outline: 3px solid var(--ink); outline-offset: 2px; }
.hook-hint { margin: 1.1rem 0 0; font-size: .95rem; font-weight: 700; color: var(--muted); text-align: center; min-height: 1.6em; }
.hook-hint .after { display: none; }
#hook-ad:checked ~ #hook-video:checked ~ #hook-tab:checked ~ .hook-hint .before { display: none; }
#hook-ad:checked ~ #hook-video:checked ~ #hook-tab:checked ~ .hook-hint .after { display: inline; }
@keyframes pop-in { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* The sun's rays turn very slowly, as in the app. */
.sun .spin { transform-origin: 0 0; animation: turn 60s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

/* Hero text arrives in steps; the highlight is drawn behind its word. */
.hero .eyebrow, .hero h1, .hero .lead, .hero .actions, .hero .facts { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.hero h1 { animation-delay: .07s; } .hero .lead { animation-delay: .14s; } .hero .actions { animation-delay: .21s; } .hero .facts { animation-delay: .28s; }
.hero .phone-stage { animation: rise .9s .15s cubic-bezier(.2, .8, .2, 1) both; }
.hl::before { transform-origin: 0 50%; animation: swipe .6s .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes swipe { from { transform: rotate(-1.2deg) scaleX(0); } to { transform: rotate(-1.2deg) scaleX(1); } }

/* Sections fade up as they scroll into view, where the browser can do that without script. */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  .caught .ring path { stroke-dasharray: 1; animation: draw linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  .today .bar i { animation: grow linear both; animation-timeline: view(); animation-range: entry 30% cover 40%; }
  .gone .strike { animation: strike linear both; animation-timeline: view(); animation-range: entry 40% cover 40%; }
}
@keyframes grow { from { width: 0; } to { width: var(--w); } }
@keyframes strike { from { background-size: 0 .5em; } to { background-size: 100% .5em; } }

/* Services and the screen-time card */
.hub { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 1.25rem; align-items: start; }
@media (max-width: 820px) { .hub { grid-template-columns: minmax(0, 1fr); } }
.services { display: grid; gap: 1rem; }
.service { background: var(--card); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.service h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.service p { margin: 0; color: var(--muted); font-size: 1rem; }
.today { border: 2px solid var(--fg); border-radius: var(--radius); padding: 1.5rem; }
.today .total { font-size: 2.6rem; font-weight: 800; line-height: 1; margin-bottom: .8rem; }
.today .total small { font-size: 1.05rem; color: var(--muted); font-weight: 700; }
.today .row { display: flex; justify-content: space-between; font-weight: 700; font-size: .98rem; margin-top: .9rem; }
.today .row span:last-child { color: var(--muted); }
.today .bar { height: 7px; border-radius: 999px; background: var(--line); margin-top: .35rem; overflow: hidden; }
.today .bar.big { height: 12px; border: 2px solid var(--fg); background: transparent; margin-top: 0; }
.today .bar i { display: block; height: 100%; width: var(--w); border-radius: 999px; background: var(--fg); }
.today p { margin: 1.2rem 0 0; color: var(--muted); font-size: .95rem; }

/* Night: blocks of flats whose windows light up one after another */
.night-wrap { text-align: center; }
.night { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; }
.night .house { fill: #1D1D1B; stroke: var(--paper); stroke-width: 2.5; }
.night .door, .night .roof, .night .street { fill: none; stroke: var(--paper); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.night .roof { fill: #1D1D1B; }
.night .w { fill: #33332F; }
.night .pane { stroke: #1D1D1B; stroke-width: 2; }
.night .lit, .night .mine { animation: light-up .5s var(--d) cubic-bezier(.3, 1.6, .5, 1) both; transform-box: fill-box; transform-origin: center; }
.night .mine { animation-name: light-up, blink; animation-duration: .5s, 5s; animation-delay: var(--d), 6s; animation-iteration-count: 1, infinite; animation-timing-function: cubic-bezier(.3, 1.6, .5, 1), ease-in-out; }
@keyframes light-up { from { fill: #33332F; transform: scale(.85); } to { fill: var(--lime); fill-opacity: var(--o); transform: none; } }
@keyframes blink { 0%, 88%, 100% { fill-opacity: 1; } 93% { fill-opacity: .35; } }
.night .star, .night .moon { fill: var(--paper); }
.night .star { animation: twinkle 3s ease-in-out infinite alternate; }
.night .star:nth-of-type(2n) { animation-delay: 1.4s; }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
.night .you { animation: rise .6s 3.9s both; }
.night .you path { fill: none; stroke: var(--paper); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.night .you text { fill: var(--paper); font: 800 17px var(--font); }
.night-note { margin: 1rem 0 0; font-size: .95rem; color: #A6A6A0 !important; }
.band + .band { border-top: 1px solid #2C2C29 !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .caught .ring path, .today .bar i, .gone .strike { animation: none !important; }
}
