/* Cutline guides. One stylesheet for every guide and the /guides hub.
   Change something here and every guide changes with it.
   Colours come from BRAND.md only: Ink, Teal, Butter, Chalk, Charcoal, Black.

   The idea: the top of the page is the SCREEN (black, the video, a caption
   timeline). Below it is the PAGE (light, for reading). Readers with their
   device in dark mode get a dark page. */

:root{
  --ink:#062E4A; --teal:#3AECE6; --butter:#FFE260; --chalk:#E3E3E3;
  --charcoal:#18191D; --black:#000;
  --line-d:rgba(255,255,255,.1);

  --paper:#F4F4F2;            /* Chalk, lifted */
  --card:#FFFFFF;
  --fg:var(--ink);
  --fg2:rgba(6,46,74,.82);
  --fg3:rgba(6,46,74,.6);
  --rule:rgba(6,46,74,.14);
  --link:var(--ink);
  --note:rgba(255,226,96,.42);
  --tint:rgba(58,236,230,.2);
  --w:73.75rem;
}
@media (prefers-color-scheme:dark){
  :root{
    --paper:#000; --card:var(--charcoal);
    --fg:#F4F5F7; --fg2:rgba(227,227,227,.84); --fg3:rgba(227,227,227,.58);
    --rule:rgba(255,255,255,.12); --link:var(--teal);
    --note:rgba(255,226,96,.13); --tint:rgba(58,236,230,.1);
  }
}

*{box-sizing:border-box;margin:0;padding:0}
html{font-size:100%;scroll-behavior:smooth;scroll-padding-top:5rem;-webkit-text-size-adjust:100%}
body{background:var(--black);color:var(--chalk);
  font-family:"Sora",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:1.0625rem;line-height:1.65;-webkit-font-smoothing:antialiased}
@media(min-width:48rem){body{font-size:1.125rem}}
img{max-width:100%;height:auto}
a{color:inherit}
:focus-visible{outline:3px solid var(--teal);outline-offset:3px;border-radius:4px}
.page :focus-visible{outline-color:var(--fg)}
.in{max-width:var(--w);margin:0 auto;padding-inline:1.5rem}

/* ---------- top bar (not sticky: the timeline is) ---------- */
.bar{border-bottom:1px solid var(--line-d)}
.bar .in{height:3.75rem;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:.6rem;font-weight:800;font-size:1.15rem;
  letter-spacing:-.01em;color:#F4F5F7;text-decoration:none}
.brand img{width:30px;height:30px;border-radius:7px}
.bar nav a{color:#9AA1AD;font-size:.875rem;font-weight:600;margin-left:1.4rem;text-decoration:none}
.bar nav a:hover{color:#fff}
@media(max-width:34rem){.bar nav a.opt{display:none}}

/* ---------- the screen ---------- */
.stage .in{padding-block:2.25rem 2.5rem;display:grid;gap:2rem}
.crumbs{font-size:.8125rem;color:#9AA1AD;margin-bottom:1.1rem}
.crumbs a{text-decoration:none}
.crumbs a:hover{color:#fff;text-decoration:underline}
h1{font-size:clamp(2rem,1.2rem + 3.1vw,3.4rem);font-weight:800;letter-spacing:-.03em;
  line-height:1.1;color:#F4F5F7;text-wrap:balance}
.deck{font-size:1.15em;line-height:1.5;color:#B4BAC4;margin-top:1.1rem;max-width:34rem}
.byline{font-size:.8125rem;color:#8a919c;margin-top:1.4rem}
.byline b{color:var(--chalk);font-weight:600}
@media(min-width:62rem){
  .stage .in{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:3.5rem;align-items:center;
    padding-block:3rem 3.25rem}
  .stage.tall .in{grid-template-columns:minmax(0,1fr) 19rem}
}

/* The headline plays once like a caption: the highlight walks word to word. */
h1 .w{border-radius:.18em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
@media(prefers-reduced-motion:no-preference){
  h1.play .w{animation:word .2s steps(1,end) forwards;animation-delay:calc(var(--i) * .2s + .4s)}
}
@keyframes word{
  0%{background:var(--butter);color:var(--ink);box-shadow:0 0 0 .08em var(--butter)}
  100%{background:transparent;color:inherit;box-shadow:none}
}

/* ---------- video ---------- */
.video-slot{aspect-ratio:16/9;position:relative}
.stage.tall .video-slot{aspect-ratio:9/16;max-width:19rem;margin-inline:auto;width:100%}
.video{position:absolute;inset:0;border-radius:14px;overflow:hidden;
  background:var(--charcoal);border:1px solid var(--line-d)}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.video .todo{position:absolute;inset:0;display:grid;place-content:center;text-align:center;
  color:#8a919c;font-size:.9rem;padding:1rem}
.video .close{display:none}
/* Docked: the same player, pinned to the corner while you follow the steps. */
.video.docked{position:fixed;inset:auto 1rem 1rem auto;width:min(24rem,62vw);aspect-ratio:16/9;
  height:auto;z-index:60;box-shadow:0 18px 50px rgba(0,0,0,.55);border-color:rgba(255,255,255,.22)}
.stage.tall .video.docked{width:min(11.5rem,40vw);aspect-ratio:9/16}
.video.docked .close{display:grid;place-items:center;position:absolute;top:.4rem;right:.4rem;
  width:2rem;height:2rem;border-radius:8px;border:0;background:rgba(0,0,0,.72);color:#fff;
  font:600 1rem/1 inherit;cursor:pointer;z-index:2}

/* ---------- the timeline: contents, progress and video chapters in one ---------- */
.timeline{position:sticky;top:0;z-index:40;background:var(--charcoal);
  border-block:1px solid var(--line-d)}
.timeline ol{list-style:none;display:flex;gap:.4rem;max-width:var(--w);margin:0 auto;
  padding:.6rem 1.5rem;overflow-x:auto;scrollbar-width:none}
.timeline ol::-webkit-scrollbar{display:none}
.timeline li{flex:1 0 auto}
.timeline a{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;
  min-height:2.5rem;padding:.5rem .85rem;border-radius:8px;white-space:nowrap;
  background:rgba(255,255,255,.06);border:1px solid var(--line-d);
  color:var(--chalk);font-size:.84rem;font-weight:600;text-decoration:none}
.timeline a:hover{background:rgba(255,255,255,.11)}
.timeline a[aria-current]{background:var(--teal);border-color:var(--teal);color:var(--ink)}
.timeline time{font-weight:400;font-size:.78rem;opacity:.72;font-variant-numeric:tabular-nums}
.timeline time:empty{display:none}
.timeline::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;
  background:var(--teal);transform-origin:0 50%;transform:scaleX(0)}
@supports(animation-timeline:scroll()){
  .timeline::after{animation:playhead linear both;animation-timeline:scroll(root)}
}
@keyframes playhead{to{transform:scaleX(1)}}

/* ---------- the page ---------- */
.page{background:var(--paper);color:var(--fg2)}
.page .in{padding-block:3rem 4rem;display:grid;gap:3rem}
@media(min-width:62rem){
  .page .in{grid-template-columns:minmax(0,40rem) minmax(0,1fr);gap:5rem;padding-block:4rem 5rem}
}
article{min-width:0}
article > * + *{margin-top:1.35em}
article p strong,article li strong{color:var(--fg);font-weight:600}
article a{color:var(--link);text-decoration:underline;text-decoration-color:var(--teal);
  text-decoration-thickness:.12em;text-underline-offset:.2em}
article a:hover{text-decoration-thickness:.2em}
.answer{font-size:1.2em;line-height:1.5;color:var(--fg)}
article h2{font-size:clamp(1.55rem,1.2rem + 1.3vw,2rem);font-weight:800;letter-spacing:-.025em;
  line-height:1.18;color:var(--fg);margin-top:2.6em;text-wrap:balance}
article h3{font-size:1.1em;font-weight:600;color:var(--fg);line-height:1.35}
article ul{padding-left:1.25em}
article li + li{margin-top:.55em}
article li::marker{color:var(--fg3)}
kbd{font:inherit;font-size:.86em;font-weight:600;white-space:nowrap;padding:.1em .45em;
  border-radius:6px;background:var(--card);border:1px solid var(--rule);
  border-bottom-width:2px;color:var(--fg)}
.fine{font-size:.82rem;color:var(--fg3)}

/* checklist */
.need{background:var(--card);border:1px solid var(--rule);border-radius:13px;padding:1.35rem 1.5rem}
.need h2{font-size:1rem;letter-spacing:0;margin:0 0 .8rem}
.need ul{list-style:none;padding:0}
.need li{position:relative;padding-left:1.9em;font-size:.95em}
.need li::before{content:"";position:absolute;left:0;top:.28em;width:1.1em;height:1.1em;
  border-radius:5px;background:var(--teal)}
.need li::after{content:"";position:absolute;left:.34em;top:.42em;width:.36em;height:.6em;
  border:solid var(--ink);border-width:0 .15em .15em 0;transform:rotate(42deg)}

/* steps: a real sequence, so real numbers */
ol.steps{list-style:none;padding:0;counter-reset:step}
ol.steps li{counter-increment:step;position:relative;padding:0 0 1.5rem 3.4rem;margin:0}
ol.steps li::before{content:counter(step);position:absolute;left:0;top:-.1rem;
  width:2.25rem;height:2.25rem;border-radius:8px;background:var(--teal);color:var(--ink);
  font-weight:800;font-size:1.05rem;display:grid;place-items:center}
ol.steps li::after{content:"";position:absolute;left:1.1rem;top:2.5rem;bottom:.35rem;
  width:2px;background:var(--rule)}
ol.steps li:last-child{padding-bottom:0}
ol.steps li:last-child::after{display:none}
.tc{display:flex;width:max-content;align-items:center;gap:.4em;margin:.6rem 0 0;padding:.3rem .7rem;
  min-height:2rem;border-radius:8px;border:1px solid var(--rule);background:var(--card);
  color:var(--fg);font:600 .8rem/1 inherit;font-variant-numeric:tabular-nums;cursor:pointer}
.tc::before{content:"";border-left:.55em solid currentColor;border-block:.36em solid transparent}
.tc:hover{border-color:var(--fg)}

.note{background:var(--note);border-radius:13px;padding:1.2rem 1.4rem;color:var(--fg);font-size:.96em}

details.more{border-block:1px solid var(--rule)}
details.more summary{cursor:pointer;padding:.9rem 0;font-weight:600;color:var(--fg);font-size:.96em}
details.more p{padding-bottom:1.1rem;font-size:.92em}

figure img{display:block;width:100%;border-radius:13px;border:1px solid var(--rule)}
figcaption{font-size:.82rem;color:var(--fg3);margin-top:.6rem}
/* iPhone screens, three across (added 13 Oct 2026 for the add-captions guide) */
figure.phones{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem;max-width:40rem}
figure.phones img{border-radius:22px}
figure.phones figcaption{grid-column:1/-1;margin-top:0}

/* comparison */
.compare{overflow-x:auto;background:var(--card);border:1px solid var(--rule);border-radius:13px}
table{width:100%;min-width:35rem;border-collapse:collapse;font-size:.86em;line-height:1.5}
th,td{text-align:left;vertical-align:top;padding:.9rem 1rem;border-bottom:1px solid var(--rule)}
tr:last-child td{border-bottom:0}
thead th{font-size:.95em;font-weight:800;color:var(--fg)}
tbody th{font-weight:600;color:var(--fg);width:22%}
.us{background:var(--tint);color:var(--fg)}

/* call to action */
.cta{background:var(--ink);color:#fff;border-radius:18px;padding:2rem 1.75rem;margin-top:3rem}
.cta h2{color:#fff;margin:0;font-size:1.6rem}
.cta p{color:rgba(255,255,255,.8);margin-top:.6rem;max-width:30rem}
.btn{display:inline-block;margin-top:1.25rem;background:var(--teal);color:var(--ink) !important;
  font-weight:800;font-size:.95rem;padding:.85rem 1.4rem;border-radius:12px;text-decoration:none !important}
.btn:hover{filter:brightness(1.07)}
.cta small{display:block;margin-top:.9rem;font-size:.8rem;color:rgba(255,255,255,.65)}
@media(prefers-color-scheme:dark){.cta{border:1px solid rgba(58,236,230,.3)}}

.faq h3{padding-top:1.3rem;border-top:1px solid var(--rule);margin-top:1.5rem}
.faq h3 + p{margin-top:.45em}

/* side card (desktop) */
.side{display:none}
@media(min-width:62rem){
  .side{display:block}
  .side .card{position:sticky;top:5.25rem;background:var(--card);border:1px solid var(--rule);
    border-radius:18px;padding:1.5rem;max-width:20rem;margin-left:auto}
  .side img{width:3.25rem;height:3.25rem;border-radius:12px;display:block}
  .side b{display:block;color:var(--fg);font-size:1.15rem;font-weight:800;margin-top:.9rem;letter-spacing:-.01em}
  .side p{font-size:.88rem;line-height:1.5;margin-top:.35rem}
  .side .btn{font-size:.88rem;margin-top:1rem}
}

/* next links + footer */
.next{border-top:1px solid var(--rule);margin-top:3rem !important;padding-top:1.75rem}
.next h2{font-size:1.1rem;margin:0 0 .5rem;letter-spacing:0}
.next ul{list-style:none;padding:0}
.next li{margin:0;border-bottom:1px solid var(--rule)}
.next a{display:block;padding:.85rem 0;font-weight:600;color:var(--fg);text-decoration:none}
.next a:hover{text-decoration:underline;text-decoration-color:var(--teal);text-decoration-thickness:.15em}
.next span{display:block;font-weight:400;font-size:.86rem;color:var(--fg3)}

footer .in{padding-block:1.75rem;display:flex;flex-wrap:wrap;gap:.75rem;justify-content:space-between;
  font-size:.85rem;color:#8a919c}
footer a{color:#9AA1AD;margin-right:1.1rem;text-decoration:none}
footer a:hover{color:#fff}

/* ---------- /guides hub ---------- */
.hub .in{padding-block:3.5rem 3rem;display:block}
.guides{list-style:none;padding:0;display:grid;gap:.9rem;max-width:46rem}
.guides a{display:block;background:var(--card);border:1px solid var(--rule);border-radius:13px;
  padding:1.3rem 1.5rem;text-decoration:none;color:var(--fg);font-weight:800;font-size:1.1rem;
  letter-spacing:-.01em;line-height:1.3}
.guides a:hover{border-color:var(--fg)}
.guides span{display:block;font-weight:400;font-size:.9rem;color:var(--fg2);margin-top:.4rem;letter-spacing:0}
.guides small{display:block;font-weight:600;font-size:.78rem;color:var(--fg3);margin-bottom:.45rem;letter-spacing:0}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none !important;transition:none !important}
}
