/* Layout: a quiet harbour-grey page that the app's real navy screen takes over, edge to edge,
   the way it takes over a Mac. Buoy yellow marks only "Example". */
:root {
  --mist: #e8eef2;
  --ink: #121a29;
  --soft: #4a5769;
  --line: #bfccd6;
  --link: #0b4f8a;
  --signal: #b3261e;
  --panel: #f6f9fb;
  /* The app's own screen colours, the same in both themes */
  --screen: #121a29;
  --screen-text: #fff;
  --screen-line: #3b475c;
  --buoy: #ffcc33;
  --button: #0a66d6;

  --display: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --step-1: .875rem;
  --step0: 1.0625rem;
  --step1: 1.25rem;
  --step2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --step3: clamp(2.5rem, 1.5rem + 5vw, 5rem);
  --gap: clamp(4rem, 3rem + 4vw, 7rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --mist: #070b13; --ink: #e9eff5; --soft: #a3b1c2; --line: #2b374a; --link: #8cc4f2;
    --signal: #ff9c92; --panel: #0e1523;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--mist); color: var(--ink); font: var(--step0)/1.55 var(--text); }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: var(--step3); line-height: 1; }
h2 { font-size: var(--step2); line-height: 1.12; }
section[id] { scroll-margin-top: 2rem; }
p { max-width: 62ch; text-wrap: pretty; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 3px; }
.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: max(1.25rem, env(safe-area-inset-left)) max(1.25rem, env(safe-area-inset-right)); }
.note { color: var(--soft); font-size: var(--step-1); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--mist); padding: .5rem 1rem; z-index: 2; }

.bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 2rem; padding-block: 1.25rem; }
.brand { display: inline-flex; gap: .5rem; align-items: center; font: 700 1.125rem var(--display); color: var(--ink); text-decoration: none; }
.bar nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: var(--step-1); }
.bar nav a { color: var(--soft); text-decoration: none; padding-block: .25rem; }
.bar nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }
.bar nav .urgent { color: var(--signal); font-weight: 600; }

/* The landing: scams in a tornado (storm.js), in the app's navy in both themes */
.over { position: absolute; inset: 0 0 auto; z-index: 1; }
.over .brand, .bar.over nav a, .bar.over nav a:hover { color: #fff; }
.bar.over nav .urgent { color: #ffb3ab; }
.over :focus-visible, .storm :focus-visible { outline-color: var(--buoy); }
.storm { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: max(100svh, 32rem); background: var(--screen); color: #fff; }
.storm canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
/* Keeps the links at the top and bottom readable over whatever flies past */
.storm::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(#0b111de6, #0b111d8c 4.5rem, #0b111d00 8rem, #0b111d00 calc(100% - 7rem), #0b111dd9); }
.storm h1 { font-size: clamp(3.5rem, min(11.5vw, 22svh), 11.5rem); font-weight: 800; line-height: .88; letter-spacing: -.045em; text-align: center; }
.storm-foot { position: absolute; inset: auto 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 2rem; padding-bottom: max(1.25rem, env(safe-area-inset-bottom)); font-size: var(--step-1); }
.storm-foot a { font: inherit; color: #fff; background: none; border: 0; padding: .4rem 0; cursor: pointer; text-decoration: none; }
.storm-foot a { font-weight: 600; }
.storm-foot a:hover { text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 40rem) { .storm::before { background: linear-gradient(#0b111df2, #0b111dcc 8rem, #0b111d00 14rem, #0b111d00 calc(100% - 9rem), #0b111de6); } }

.hero { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(4rem, 8vw, 7rem); }
.hero h2 { max-width: 13ch; font-size: var(--step3); line-height: 1; }
.lede { display: grid; gap: 1.25rem; align-content: end; }
.lede p:first-child { font-size: var(--step1); line-height: 1.45; max-width: 38ch; }
.status { color: var(--soft); max-width: 42ch; }
.status strong { color: var(--ink); }
@media (min-width: 56rem) { .hero { grid-template-columns: 1.55fr 1fr; gap: 3rem; } }

/* The block in action: the section is a Mac's screen, and the app takes all of it */
.action-head { padding-bottom: 1.5rem; }
.action-foot { display: flex; flex-direction: column; }
.action-foot .note { order: 3; margin-top: 1.5rem; }
.stage { position: relative; display: grid; min-height: 38rem; overflow: hidden; isolation: isolate; border-block: 1px solid var(--line); background: linear-gradient(160deg, #a9bfd0, #6d8ba4 60%, #4f6d88); }
.stage > * { grid-area: 1 / 1; }
.menubar { align-self: start; display: flex; align-items: center; gap: 1.1rem; padding: .4rem 1.25rem; font-size: .8125rem; color: #101826; background: #ffffff8c; }
.menubar svg { margin-left: auto; }
.menubar .app-terminal, [data-step="4"] .menubar .app-browser { display: none; }
[data-step="4"] .menubar .app-terminal { display: inline; }
.browser, .terminal { place-self: center; width: min(45rem, 100% - 2rem); border-radius: 14px; box-shadow: 0 1.5rem 4rem #0b182a66, 0 0 0 1px #0b182a26; }
.browser { position: relative; }
.browser img { display: block; width: 100%; height: auto; }
.browser .ticked { position: absolute; inset: 0; visibility: hidden; }
.stage:not([data-step="1"]) .ticked { visibility: visible; }
.check { position: absolute; left: 14.2%; top: 42%; }
.terminal { z-index: 1; overflow: hidden; background: #10141c; color: #e6e9ef; visibility: hidden; translate: 0 1rem; opacity: 0; }
[data-step="4"] .terminal { visibility: visible; translate: none; opacity: 1; transition: opacity .25s, translate .25s; }
.terminal > p { max-width: none; padding: .55rem; text-align: center; font-size: .8125rem; color: #b8c0cd; background: #2b313d; }
.terminal pre { margin: 0; min-height: 13rem; padding: 1.1rem 1.25rem; font: .9375rem/1.6 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; }
.prompt { color: #8fb7d9; }
.pasted { display: none; }
.stage.has-pasted .pasted { display: inline; }
.caret { display: inline-block; width: .55em; height: 1.1em; margin-left: .1em; vertical-align: text-bottom; background: #e6e9ef; }
.takeover { z-index: 2; display: grid; align-items: center; padding: 2.25rem max(1.25rem, env(safe-area-inset-left)); background: var(--screen); color: var(--screen-text); visibility: hidden; }
[data-step="3"] .takeover { visibility: visible; } /* at once, as in the app */
.stage :focus-visible { outline-color: var(--buoy); }
.cursor { position: absolute; left: 0; top: 0; z-index: 3; filter: drop-shadow(0 1px 2px #0006); transition: translate 1.1s cubic-bezier(.45, 0, .2, 1); }
.cursor.press { scale: .8; }
.steps { list-style: none; padding: 1.5rem 0 0; display: grid; gap: 1rem 2rem; counter-reset: step; }
.steps button { width: 100%; height: 100%; display: flex; gap: .6rem; align-items: baseline; text-align: left; font: inherit; line-height: 1.4; color: var(--soft); background: none; border: 0; border-top: 3px solid var(--line); padding: .8rem 0 0; cursor: pointer; }
.steps button::before { counter-increment: step; content: counter(step); font: 700 var(--step0) var(--display); }
.steps button:hover { color: var(--ink); }
.steps [aria-current] { color: var(--ink); border-color: var(--ink); font-weight: 600; }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.clip { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; min-height: 3.4rem; margin-top: 1.25rem; padding: .8rem 1rem; max-width: none; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); font-size: var(--step-1); }
.clip > span:first-child { font-weight: 600; }
.clip code { font: inherit; font-family: ui-monospace, Menlo, Consolas, monospace; }
.clip img { width: min(25rem, 100%); height: auto; }
.clip-none { color: var(--soft); }
.clip-none, .clip-bad { display: none; }
[data-clip="none"] .clip-none, [data-clip="bad"] .clip-bad { display: inline-block; }
[data-clip="none"] .clip-note, [data-clip="bad"] .clip-note { display: none; }
@media (prefers-color-scheme: dark) {
  .stage { background: linear-gradient(160deg, #3c5266, #26384a 60%, #1a2938); }
  .clip-bad { filter: brightness(1.9) saturate(.8); }
}
@media (min-width: 56rem) { .terminal { left: 5rem; top: 6rem; position: relative; } }
@media (min-width: 40.01rem) and (max-width: 55.99rem) { .steps { grid-template-columns: 1fr 1fr; } }
/* On a phone the whole scene fits one screen: a small stage, the clipboard, and one caption at a time */
@media (max-width: 40rem) {
  .action-head { padding-bottom: 1rem; }
    .stage { min-height: 27.5rem; }
  .menubar { padding-block: .25rem; }
  .menubar span { display: none; }
  .browser { align-self: end; width: min(23rem, 100% - 2.5rem); margin-bottom: .9rem; border-radius: 12px; }
  .check { left: 15.7%; top: 40.7%; }
  .terminal { align-self: end; width: calc(100% - 1.5rem); margin-bottom: .75rem; border-radius: 12px; }
  .terminal > p { padding: .4rem; }
  .terminal pre { min-height: 8.5rem; padding: .9rem 1rem; font-size: .875rem; }
  .stage .takeover { padding-block: 1rem; }
  .stage .takeover .how { display: none; }
  .stage .takeover .tag { margin-bottom: .5rem; font-size: var(--step-1); }
  .stage .takeover [data-view] { gap: .6rem; }
  .stage .takeover h3 { font-size: 1.375rem; }
  .stage .takeover h4 { font-size: .9375rem; margin-bottom: -.4rem; }
  .stage .takeover p, .stage .takeover li { font-size: .9375rem; line-height: 1.38; text-wrap: wrap; }
  .stage .takeover .acts button, .stage .takeover .btn { min-height: 2.75rem; display: inline-flex; align-items: center; }
  .clip { min-height: 5.4rem; margin-top: .5rem; padding: .7rem .9rem; align-content: start; order: 2; gap: .25rem 1rem; line-height: 1.45; }
  .clip > span:first-child { width: 100%; }
  .clip code { font-size: .8125rem; }
  .clip img { width: 18rem; }
  .steps { position: relative; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 0; padding: .8rem 0 3.1rem; order: 1; }
  .steps button { min-height: 2.75rem; padding-top: .5rem; }
  .steps span { position: absolute; inset: auto 0 0; height: 3.1rem; opacity: 0; pointer-events: none; }
  .steps [aria-current] span { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .stage * { transition: none !important; } }

.screen { width: 100%; max-width: 42.5rem; margin-inline: auto; }
.tag { font-weight: 600; color: #a5b1c4; margin-bottom: 1.4rem; }
.tag span { color: var(--buoy); margin-left: .5rem; }
.screen [data-view] { display: grid; gap: 1.15rem; }
.screen h3 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.25rem); font-weight: 700; line-height: 1.15; text-wrap: balance; }
.screen h4 { font-size: var(--step0); font-weight: 600; margin-bottom: -.7rem; }
.screen p, .screen li { font-size: 1.125rem; line-height: 1.45; }
.screen ul { padding-left: 1.2em; }
.advice { font-weight: 700; }
.acts { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; padding-top: .35rem; }
.acts button, .btn { font: 500 .9375rem var(--text); color: #fff; background: #37435a; border: 0; border-radius: 7px; padding: .55rem 1rem; cursor: pointer; text-decoration: none; }
.acts button:hover, .btn:hover { background: #46546e; }
.acts .primary { background: var(--button); }
.acts .primary:hover { background: #0b5abb; }
.screen h3:focus { outline: none; }

.rules { padding-block: var(--gap); display: grid; gap: 1.25rem; }
.rules h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); line-height: 1.04; max-width: 16ch; }
.rules p { font-size: var(--step1); line-height: 1.5; }

.stops { display: grid; padding-bottom: var(--gap); }
.stops h2 { margin-bottom: 1.75rem; }
.stop { display: grid; gap: .6rem 2.5rem; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.stop h3 { font: 600 var(--step1)/1.3 var(--display); }
.stop p:first-of-type { color: var(--soft); }
@media (min-width: 56rem) { .stop { grid-template-columns: 1fr 1.25fr 1.25fr; } }
.stops .note { border-top: 1px solid var(--line); padding-top: 1.25rem; max-width: none; }

.privacy { display: grid; gap: 1.75rem; padding-bottom: var(--gap); }
.facts { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 46rem) { .facts { grid-template-columns: repeat(3, 1fr); } }

.already { background: var(--panel); border-block: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem); }
.already .wrap { display: grid; gap: 1.75rem; }
.already ol { padding-left: 1.6em; display: grid; gap: 1rem; max-width: 66ch; font-size: 1.125rem; }
.already li { padding-left: .4em; }
.already li::marker { font: 700 1.125rem var(--display); color: var(--signal); }
.already p { font-weight: 600; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 2rem; color: var(--soft); font-size: var(--step-1); }
