/* security.css: /security only (Launch Security Check).

   The same shell as every other page (tokens.css, home.css: menu, type, glass, form, questions,
   footer). What changes is scoped to body.sc-page and lives only in this file, so no other page can
   pick it up (decision 7, checked by tools/vaulo_check.mjs):

   - Racing Red #EF233C is the action colour here and nowhere else: the buttons (black text on red,
     5.0:1), the "someone else's order" state in the demo, small label ticks and the focus ring.
   - The surfaces go to Obsidian #111217 with the silver from tokens.css's platinum set.
   - Never red: the padlocks (Ice Grey #DFE5EB), body text, big backgrounds, the wordmark's dot.
   - Form errors keep the site's own muted colour with words, so an error never looks like a button. */
body.sc-page{
  --accent:#EF233C; --on-accent:#000000; --accent-dim:rgba(239,35,60,.14);
  --orb-glow:239,35,60;
  --bg:#111217; --bg-2:#16171D; --bg-3:#1C1D24;
  --silver:#D6DEE8; --ice:#DFE5EB;
  background:var(--bg);
}
body.sc-page .wordmark i{color:#5683DA}
body.sc-page .btn-solid{color:#000}
body.sc-page :focus-visible{outline-color:var(--accent)}

/* the opening: words left, the made-up shop right; stacked on a phone */
.sc-hero{position:relative; overflow-x:clip; padding-top:calc(var(--s10) + 64px); padding-bottom:var(--s9)}
.sc-hero::before{content:''; position:absolute; inset:-10% -20% auto 45%; height:110%; pointer-events:none;
  background:radial-gradient(closest-side, rgba(239,35,60,.12), transparent 70%)}
.sc-hero-grid{position:relative; display:grid; grid-template-columns:minmax(0, 1.1fr) minmax(0, .9fr); gap:clamp(32px, 5vw, 80px); align-items:center}
.sc-hero-copy{display:grid; gap:var(--s5)}
.sc-hero .display{font-size:clamp(40px, 5.6vw, 84px)}
.sc-hero .display em{font-style:normal; font-weight:500; display:block}
.sc-hero .actions{flex-wrap:wrap}

/* ── the night-tour torch (security-torch.js) ──
   Without the script (or with reduced motion or high contrast) none of this shows: the wall is
   empty and the dark layer is transparent, so the opening is fully lit.
   Stacking inside the opening: code wall (0) < the shop (auto) < the dark layer (2) < the words
   column: label, headline, paragraph and both buttons (3), which are never dark. */
.sc-hero{isolation:isolate}
.sc-wall{position:absolute; inset:0; z-index:0; overflow:hidden; pointer-events:none; user-select:none;
  padding:84px 0 0 clamp(12px, 3vw, 48px); display:grid; align-content:start;
  font:12px/23px var(--font-mono); letter-spacing:.02em; white-space:pre; color:rgba(226,230,236,.5)}
/* the code only exists where the torch is: brightest in the middle of the beam */
/* The code shows only where the torch is AND outside the words column. security-torch.js sets three
   soft bands around that column (to its right, above it, below it); their union is the open space,
   so code never sits under the headline, paragraph or buttons. */
.sc-wall{--x:70%; --y:45%; --r:clamp(250px, 30vw, 440px);
  --cut-r:linear-gradient(#000, #000); --cut-a:linear-gradient(transparent, transparent); --cut-b:linear-gradient(transparent, transparent);
  -webkit-mask-image:radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0,0,0,.75) 38%, rgba(0,0,0,.25) 62%, transparent 82%), var(--cut-r), var(--cut-a), var(--cut-b);
  mask-image:radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0,0,0,.75) 38%, rgba(0,0,0,.25) 62%, transparent 82%), var(--cut-r), var(--cut-a), var(--cut-b);
  -webkit-mask-composite:source-in, source-over, source-over, source-over; mask-composite:intersect, add, add, add}
.sc-wall-line{display:block}
.sc-wall b{font-weight:500; color:#EF233C; background:rgba(239,35,60,.12); border-radius:3px; padding:1px 6px}
.sc-wall b::before{content:'\25CF  '; font-size:8px; vertical-align:2px}
.sc-night{position:absolute; inset:0; z-index:2; pointer-events:none; opacity:0;
  --x:70%; --y:45%; --r:clamp(250px, 30vw, 440px);
  /* the beam: a fully CLEAR core (nothing laid over what it finds, so text is at full contrast),
     a soft edge, then near-total dark. The warm glow sits UNDER the content (.sc-hero::after),
     never over it, because a tint on top is what made the lit text look milky (founder, 2026-12-04). */
  background:radial-gradient(circle var(--r) at var(--x) var(--y),
    transparent 0%, transparent 48%, rgba(5,5,8,.55) 70%, rgba(5,5,8,.95) 92%, rgba(5,5,8,.96) 100%);
  /* no solid colour layer here: a background colour paints UNDER the gradient, so it darkened the
     beam's clear core too. Past the circle the last stop carries on, so outside the beam is still dark. */
  /* the dark eases in at the top (the scroll opening sits above it now) and out at the bottom,
     instead of starting or stopping at a hard line. Only the mask changes; the beam above is untouched. */
  -webkit-mask-image:linear-gradient(transparent, #000 140px, #000 calc(100% - 140px), transparent);
  mask-image:linear-gradient(transparent, #000 140px, #000 calc(100% - 140px), transparent);
  transition:opacity 1.1s var(--ease-out)}
.sc-torch .sc-night{opacity:1}
/* the torch's warm glow, painted BEHIND everything in the opening (z -1 inside the isolated hero) */
.sc-hero::after{content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:0;
  background:radial-gradient(circle clamp(220px, 26vw, 400px) at var(--tx, 70%) var(--ty, 45%), rgba(255,226,190,.10), rgba(255,226,190,.035) 45%, transparent 75%);
  transition:opacity 1.1s var(--ease-out)}
.sc-torch .sc-hero::after{opacity:1}
/* what the beam finds reads at full strength: solid card, full-ink text */
.sc-torch .sc-demo{color:var(--ink)}
.sc-torch .sc-demo .sc-row span{color:rgba(236,239,244,.78)}
/* the whole words column (label, headline, paragraph, both buttons) is always lit; the torch finds
   the shop card and the code around it */
.sc-torch .sc-hero-copy > *{position:relative; z-index:3}
.sc-torch .sc-demo{background:rgba(17,18,23,.9)}
@media (max-width:700px){ .sc-wall{font-size:11px; padding-top:72px} }

.sc-demo{display:grid; gap:var(--s4); padding:clamp(20px, 2.6vw, 32px)}
.sc-url{font-family:var(--font-mono); font-size:14px; color:var(--dim); padding:12px 14px; border-radius:10px;
  background:var(--bg-3); border:1px solid var(--line-strong); overflow-wrap:anywhere}
.sc-url b{color:var(--ink); font-weight:600}
.sc-demo[data-state="theirs"] .sc-url b{color:#000; background:var(--accent); border-radius:4px; padding:0 3px}
.sc-order{position:relative; border-radius:12px; border:1px solid var(--line-strong); background:var(--bg-2); padding:18px}
.sc-who{font-weight:600; font-size:17px; margin-bottom:8px}
.sc-row{display:flex; justify-content:space-between; gap:16px; padding:10px 0; border-top:1px solid var(--line); font-size:15px}
.sc-row span{color:var(--dim)}
.sc-row b{font-weight:500; text-align:right; overflow-wrap:anywhere}
.sc-theirs{display:none}
.sc-demo[data-state="theirs"] .sc-mine{display:none}
.sc-demo[data-state="theirs"] .sc-theirs{display:block; animation:sc-wipe .5s var(--ease-out) both}
.sc-demo[data-state="theirs"] .sc-order{border-color:var(--accent); box-shadow:0 0 0 3px rgba(239,35,60,.16)}
.sc-demo[data-state="theirs"] .sc-theirs .sc-who{color:var(--accent)}
@keyframes sc-wipe{from{clip-path:inset(0 0 100% 0)} to{clip-path:inset(0 0 0 0)}}
.sc-verdict{color:var(--ink); font-size:16px; line-height:1.5; min-height:3em}
.sc-demo .btn{justify-self:start}
.sc-demo small{color:var(--faint); font-size:13px}

.sc-head{display:grid; gap:var(--s4); max-width:760px; margin-bottom:var(--s7)}

/* what we check: one glass plate, six rows with mono indices (the house style, no bullets) */
.sc-plate{list-style:none; counter-reset:sc; padding:clamp(20px, 3vw, 44px) clamp(20px, 3vw, 44px)}
.sc-plate li{display:grid; grid-template-columns:76px minmax(0, .8fr) minmax(0, 1.4fr); gap:var(--s4); align-items:baseline;
  padding:var(--s5) 0; border-top:1px solid var(--line-strong)}
.sc-plate li:first-child{border-top:0}
.sc-plate li::before{counter-increment:sc; content:'( 0' counter(sc) ' )'; font-family:var(--font-mono); font-size:12px;
  letter-spacing:.14em; color:var(--accent)}
.sc-plate h3{font-size:clamp(18px, 1.6vw, 22px); font-weight:500}
.sc-plate p{color:var(--dim); line-height:1.55}

/* prices */
.sc-tiers{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:var(--s4); align-items:stretch}
.sc-tier{position:relative; display:flex; flex-direction:column; gap:var(--s4); padding:clamp(24px, 2.6vw, 36px)}
.sc-lead{border-color:rgba(239,35,60,.5)}
.sc-badge{position:absolute; top:16px; right:16px; font-family:var(--font-mono); font-size:11px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--ink); border:1px solid rgba(239,35,60,.6); border-radius:999px; padding:5px 10px}
.sc-lead .sc-name{padding-right:150px}
.sc-amount{font-size:clamp(34px, 3.4vw, 48px); font-weight:300; letter-spacing:-.02em; color:var(--ink)}
.sc-amount small{font-size:15px; color:var(--dim); letter-spacing:0}
.sc-for{color:var(--dim)}
.sc-rows{list-style:none; display:grid; gap:10px; margin-bottom:auto}
.sc-rows li{padding-left:18px; position:relative; line-height:1.45}
.sc-rows li::before{content:''; position:absolute; left:0; top:.6em; width:6px; height:6px; border-radius:50%; background:var(--silver)}
.sc-tier .btn{align-self:flex-start}
.sc-price-note{margin-top:var(--s4); color:var(--faint); font-size:14px}

/* how it goes */
.sc-split{display:grid; grid-template-columns:minmax(0, 1.2fr) minmax(0, .8fr); gap:clamp(32px, 5vw, 80px); align-items:start}
.sc-split .h2{margin:var(--s4) 0 var(--s6)}
.sc-steps{list-style:none; counter-reset:st; display:grid; gap:0}
.sc-steps li{display:grid; grid-template-columns:56px 1fr; column-gap:var(--s4); padding:var(--s4) 0; border-top:1px solid var(--line-strong)}
.sc-steps li::before{counter-increment:st; content:'0' counter(st); grid-row:1 / 3; font-family:var(--font-mono); font-size:13px; color:var(--accent); padding-top:3px}
.sc-steps b{font-weight:500}
.sc-steps span{color:var(--dim); line-height:1.5}
.sc-permission{padding:clamp(24px, 2.6vw, 36px); display:grid; gap:var(--s3); position:sticky; top:96px}
.sc-permission b{font-size:20px; font-weight:500; line-height:1.35}
.sc-permission p{color:var(--dim); line-height:1.55}

/* what it isn't */
.sc-not{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:var(--s5)}
.sc-not div{border-top:1px solid var(--line-strong); padding-top:var(--s4); display:grid; gap:var(--s2)}
.sc-not b{font-weight:500; font-size:18px}
.sc-not p{color:var(--dim); line-height:1.55}

/* locked: shown, never sold. Ice Grey padlocks, no red */
.sc-locked-grid{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:var(--s4)}
.sc-locked{display:grid; gap:var(--s3); align-content:start; padding:clamp(24px, 2.6vw, 36px); opacity:.92}
.sc-pad{width:54px; height:63px}
.sc-state{font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--ice)}
.sc-locked h3{font-size:22px; font-weight:500}
.sc-locked p{color:var(--dim)}
.sc-notify{display:flex; flex-wrap:wrap; gap:var(--s3); margin-top:var(--s2)}
.sc-notify input[type="email"]{flex:1 1 220px; min-width:0; padding:12px 14px; border-radius:var(--r-input); border:1px solid var(--line-strong);
  background:var(--bg); color:var(--ink); font:inherit}
.sc-notify input[type="email"]:focus{outline:2px solid var(--ice); outline-offset:1px}
.sc-notify .btn-ghost:hover, .sc-notify .btn-ghost:focus-visible{border-color:var(--ice)}
.sc-notify-msg{min-height:1.4em; color:var(--dim); font-size:14px}
.sc-notify-msg.no{color:var(--warn)}
.sc-fine{color:var(--faint); font-size:14px}
.sc-sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}

/* booking form: the home form's layout, plus the permission box */
.sc-book{display:grid; grid-template-columns:minmax(0, .8fr) minmax(0, 1.2fr); gap:clamp(32px, 5vw, 80px); align-items:start}
.sc-check-row{display:grid !important; grid-template-columns:22px 1fr; gap:12px; align-items:start; text-transform:none !important;
  letter-spacing:0 !important; font-size:16px !important; color:var(--ink) !important; cursor:pointer; line-height:1.45}
.sc-check-row input{width:20px; height:20px; margin-top:2px; accent-color:var(--accent); padding:0}
.quote-note{color:var(--faint)}

@media (max-width:980px){
  .sc-hero-grid, .sc-split, .sc-book{grid-template-columns:1fr}
  .sc-tiers, .sc-not{grid-template-columns:1fr}
  .sc-permission{position:static}
}
@media (max-width:700px){
  .sc-hero{padding-top:calc(var(--s8) + 64px); padding-bottom:var(--s7)}
  .sc-plate li{grid-template-columns:1fr; gap:var(--s2)}
  .sc-locked-grid{grid-template-columns:1fr}
  .sc-lead .sc-name{padding-right:0; margin-top:28px}
}
@media (prefers-reduced-motion: reduce){
  .sc-demo[data-state="theirs"] .sc-theirs{animation:none}
  .sc-night, .sc-wall{display:none}
}
@media (prefers-contrast: more){ .sc-night, .sc-wall{display:none} }
