/* =========================================================
   Lockscreen for Events (info.lockscreen.ai)
   Direction: an Apple-style product page (white, black, one green)
   that scrolls into a broadcast countdown (black, condensed numerals).
   Tokens and reasons: docs/design/info-lockscreen/DIRECTION.md
   ========================================================= */

:root {
  --ground: #ffffff;
  --mist: #f2f5f3;
  --ink: #000000;
  --ink-2: #4a524d;
  --line: #e3e8e5;
  --green: #067a37;
  --green-deep: #04582a;

  --night: #000000;
  --night-ink: #f4f6f4;
  --night-ink-2: #a9b3ad;
  --night-line: #232a26;
  --signal: #35e06f;

  --font: "Schibsted Grotesk", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --numerals: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --device: -apple-system, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;

  --t-count: clamp(120px, 15vw, 220px);
  --t-display: clamp(52px, 6vw, 84px);
  --t-h2: clamp(36px, 3.9vw, 56px);
  --t-h3: 22px;
  --t-body-lg: 20px;
  --t-body: 18px;
  --t-small: 15px;
  --t-meta: 13px;

  --page: 64px;
  --max: 1200px;
  --panel-radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: calc(var(--max) + var(--page) * 2); margin: 0 auto; padding: 0 var(--page); }
.section { padding: 128px 0; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

h2 { font-size: var(--t-h2); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.body-lg { font-size: var(--t-body-lg); color: var(--ink-2); max-width: 46ch; margin-top: 20px; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; min-height: 54px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none; transition: background-color 160ms ease; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--green-deep); }
.text-link { font-weight: 600; color: var(--green); text-decoration: none; font-size: 17px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--page);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}
.wordmark { font-weight: 700; font-size: 20px; letter-spacing: -0.025em; text-decoration: none; }
.wordmark span { color: var(--green); }
.nav-links { display: flex; gap: 34px; font-size: var(--t-small); color: var(--ink-2); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { justify-self: end; }

/* ---------- Banner (from the first version) ---------- */
.banner { overflow: hidden; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; }
.banner-track { display: flex; width: max-content; animation: banner 40s linear infinite; }
.banner-group { display: flex; }
.banner span { display: inline-flex; align-items: center; gap: 9px; padding: 12px 30px; white-space: nowrap; }
.banner .icon { width: 17px; height: 17px; color: var(--signal); }
@keyframes banner { to { transform: translateX(-50%); } }

/* =========================================================
   1. Hero
   ========================================================= */
.hero { text-align: center; padding: 64px 24px 0; }
.kicker { font-size: 20px; font-weight: 600; color: var(--green); }
.hero h1 { font-size: var(--t-display); line-height: 0.98; font-weight: 700; letter-spacing: -0.045em; margin: 12px auto 0; max-width: 16ch; text-wrap: balance; }
.hero .lede { font-size: var(--t-body-lg); color: var(--ink-2); max-width: 50ch; margin: 22px auto 0; text-wrap: pretty; }
.hero-actions { display: flex; gap: 30px; justify-content: center; align-items: center; margin-top: 30px; }

.scene { position: relative; height: 830px; margin-top: 56px; perspective: 1800px; }
/* Fixed angle, chosen by AR from the first renders. No pointer tilt, sway or scroll. */
.rig { position: absolute; left: 50%; top: 0; width: 640px; margin-left: -330px; height: 100%; transform-style: preserve-3d; transform: rotateX(8.3deg) rotateY(-7.5deg); }
.phone-hero { --w: 380px; position: absolute; left: 20px; top: 0; transform-style: preserve-3d; }
.phone-hero .push-depth { transform: translateZ(28px); }
.phone-hero .la-depth { transform: translateZ(56px); box-shadow: 0 26px 40px -18px rgba(0, 0, 0, 0.5); }
.watch-hero { position: absolute; left: 400px; top: 150px; transform: translateZ(90px); filter: drop-shadow(0 40px 40px rgba(0, 0, 0, 0.26)); }

/* =========================================================
   Device kit: iPhone, notification, Live Activity, Apple Watch, Wallet pass
   ========================================================= */
.phone {
  --w: 340px;
  position: relative;
  width: var(--w);
  height: calc(var(--w) * 2.06);
  padding: calc(var(--w) * 0.035);
  border-radius: calc(var(--w) * 0.175);
  background: linear-gradient(150deg, #3a3d3b 0%, #121413 40%, #050605 100%);
  box-shadow: inset 0 0 0 1.5px #5b605d, inset 0 0 0 4px #0d0f0e, 0 60px 80px -40px rgba(0, 0, 0, 0.45);
  font-family: var(--device);
}
.screen { position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--w) * 0.145); display: flex; flex-direction: column; align-items: center; padding: 0 14px; }
.wall-light { background: linear-gradient(175deg, #eaf6ef 0%, #a6dfbc 44%, #1d8a4b 100%); color: #06301a; }
.wall-dark { background: radial-gradient(120% 70% at 50% 0%, #0f3a22 0%, #06150c 55%, #020604 100%); color: #fff; }
.island { width: 30%; height: 30px; margin-top: 12px; border-radius: 20px; background: #000; flex: none; }
.status { position: absolute; top: 20px; right: 26px; display: flex; gap: 2.5px; align-items: flex-end; }
.status i { display: block; width: 3.5px; border-radius: 1px; background: currentColor; }
.status i:nth-child(1) { height: 5px; } .status i:nth-child(2) { height: 7px; } .status i:nth-child(3) { height: 9px; } .status i:nth-child(4) { height: 11px; }
.status b { width: 25px; height: 12px; border-radius: 4px; border: 1.3px solid currentColor; opacity: .75; position: relative; margin-left: 5px; }
.status b::after { content: ""; position: absolute; inset: 1.6px 6px 1.6px 1.6px; background: currentColor; border-radius: 1.5px; }
.lock-date { margin-top: 22px; font-size: 17px; font-weight: 600; }
.lock-time { font-size: 92px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lock-stack { margin-top: auto; width: 100%; display: grid; gap: 8px; }
.lock-foot { display: flex; justify-content: space-between; width: 100%; padding: 16px 20px 0; }
.lock-foot span { width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, 0.3); }
.home { width: 128px; height: 5px; border-radius: 4px; background: currentColor; opacity: .85; margin: 12px 0 9px; }

.push { display: flex; gap: 11px; width: 100%; padding: 12px 13px; border-radius: 22px; background: rgba(246, 248, 246, 0.86); color: #111; text-align: left; font-family: var(--device); }
.push-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font); font-weight: 800; font-size: 17px; color: #fff; background: var(--green); }
.push-body { flex: 1; min-width: 0; }
.push-head { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; line-height: 1.25; }
.push-head span { color: #5d6660; font-size: 13px; }
.push-text { font-size: 14px; line-height: 1.32; }

.la { display: flex; gap: 13px; align-items: center; width: 100%; padding: 14px; border-radius: 26px; background: rgba(0, 0, 0, 0.92); color: #fff; font-family: var(--device); text-align: left; }
.la-art { flex: none; width: 46px; height: 62px; border-radius: 7px; background: linear-gradient(160deg, #2fdc6e, #0b5d31); display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; padding: 7px 6px; }
.la-art i { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.78); }
.la-art i:first-child { width: 55%; }
.la-art-dark { background: linear-gradient(160deg, #1d1f1e, #0b5d31); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.la-body { flex: 1; min-width: 0; }
.la-title { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-fields { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }
.la-fields p { display: flex; flex-direction: column; }
.la-fields small { font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.la-fields b { font-size: 22px; font-weight: 500; line-height: 1.12; font-variant-numeric: tabular-nums; }
.la-live .la-fields p:first-child b { color: var(--signal); }

.watch { width: 196px; display: flex; flex-direction: column; align-items: center; font-family: var(--device); }
.band { width: 146px; height: 58px; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0 2px, transparent 2px 5px), #e9e2d4; }
.band-top { border-radius: 16px 16px 5px 5px; }
.band-bottom { border-radius: 5px 5px 16px 16px; }
.watch-case { position: relative; width: 196px; height: 232px; padding: 10px; border-radius: 54px; background: linear-gradient(150deg, #ebe6dd, #b3ab9f); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.watch-case::after { content: ""; position: absolute; right: -7px; top: 62px; width: 9px; height: 40px; border-radius: 4px; background: linear-gradient(90deg, #b8b0a3, #ddd6cb); }
.watch-screen { position: relative; height: 100%; border-radius: 45px; background: radial-gradient(90% 70% at 70% 15%, #183843, #020405); color: #fff; padding: 20px 16px 13px; display: flex; flex-direction: column; text-align: left; }
.watch-date { font-size: 17px; line-height: 1.05; font-weight: 500; color: #cfe6ff; }
.watch-time { position: absolute; top: 20px; right: 20px; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.watch-card { margin-top: auto; padding: 9px 10px; border-radius: 18px; background: #0f7a37; }
.watch-card-title { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-card-fields { display: flex; justify-content: space-between; margin-top: 3px; }
.watch-card-fields p { display: flex; flex-direction: column; }
.watch-card-fields small { font-size: 11px; color: #e6fb9a; }
.watch-card-fields b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* =========================================================
   2. The countdown (signature)
   ========================================================= */
.countdown { background: var(--night); color: var(--night-ink); padding: 120px 0 104px; }
.cd-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 80px; align-items: center; }
.cd-readout { min-width: 0; }
.cd-readout h2 { font-size: clamp(32px, 3.2vw, 44px); max-width: 20ch; }
.cd-intro { color: var(--night-ink-2); font-size: var(--t-body); max-width: 46ch; margin-top: 16px; }
.cd-caption { margin-top: 56px; display: inline-flex; align-items: center; gap: 12px; font-size: var(--t-body-lg); font-weight: 600; color: var(--night-ink-2); }
.cd-caption i { width: 11px; height: 11px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 5px rgba(53, 224, 111, 0.18); }
.cd-number { font-family: var(--numerals); font-weight: 900; font-size: var(--t-count); line-height: 0.86; letter-spacing: -0.005em; color: var(--signal); font-variant-numeric: tabular-nums; margin: 18px 0 0 -6px; white-space: nowrap; min-height: 0.86em; }
.cd-number span { display: inline-block; }
.cd-number .colon { color: #1f7a43; }
.cd-number .drop { animation: drop 380ms cubic-bezier(.2, .8, .2, 1); }
@keyframes drop { from { transform: translateY(-12%); opacity: 0.15; } to { transform: none; opacity: 1; } }
.cd-replaces { display: inline-block; margin-top: 28px; padding: 9px 16px; border: 1px solid var(--night-line); border-radius: 999px; color: var(--night-ink-2); font-size: var(--t-small); }

.phone-cd { --w: 340px; }
.phone-cd .push { animation: drop 420ms cubic-bezier(.2, .8, .2, 1); }
.phone-cd .push-earlier { opacity: 0.6; transform: scale(0.96); animation: none; }

.cd-steps { display: grid; grid-template-columns: repeat(8, 1fr); margin-top: 64px; border-top: 1px solid var(--night-line); }
.cd-step { position: relative; display: block; width: 100%; padding: 22px 12px 0 0; background: none; border: 0; text-align: left; cursor: pointer; color: #8b958f; }
.cd-step::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--signal); }
.cd-step b { display: block; font-family: var(--numerals); font-weight: 800; font-size: 30px; line-height: 1; color: #8b958f; transition: color 200ms ease; }
.cd-step span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; }
.cd-step:hover b { color: var(--night-ink); }
.cd-step.is-done b { color: var(--night-ink-2); }
.cd-step.is-active b { color: var(--signal); }
.cd-step.is-active span { color: var(--night-ink); }
.cd-step.is-active::before { width: 100%; }
.countdown.is-playing .cd-step.is-active::before { width: 0; animation: progress var(--step-ms, 4500ms) linear forwards; }
@keyframes progress { to { width: 100%; } }

/* =========================================================
   3. Live Activities
   ========================================================= */
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--green); color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 22px; }
.ticks { display: grid; gap: 14px; margin-top: 34px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.ticks .icon { color: var(--green); }

.live-visual { display: flex; flex-direction: column; align-items: center; }
.crop { width: 100%; max-width: 520px; height: 470px; overflow: hidden; border-radius: var(--panel-radius); background: var(--mist); display: flex; justify-content: center; align-items: flex-end; }
.phone-crop { --w: 440px; flex: none; margin-bottom: 36px; box-shadow: inset 0 0 0 1.5px #5b605d, inset 0 0 0 4px #0d0f0e; }
.la-xl { padding: 16px; border-radius: 28px; }
.la-xl .la-art { width: 52px; height: 70px; }
.la-xl .la-title { font-size: 17px; }
.la-xl .la-fields small { font-size: 13px; }
.la-xl .la-fields b { font-size: 27px; }
.la-solo { max-width: 520px; margin-top: 28px; background: #000; }
.caption { margin-top: 12px; font-size: var(--t-small); color: var(--ink-2); }

/* =========================================================
   4. After the call
   ========================================================= */
.after { background: var(--mist); }
.after-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; align-items: center; }
.after-visual { position: relative; display: flex; flex-direction: column; align-items: center; }

.pass { width: 320px; padding: 16px 18px 18px; border-radius: 18px; background: #000; color: #fff; font-family: var(--device); box-shadow: 0 40px 70px -34px rgba(0, 0, 0, 0.55); }
.pass-header { display: flex; align-items: center; gap: 9px; }
.pass-logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--signal); color: #000; font-family: var(--font); font-weight: 800; font-size: 14px; }
.pass-org { font-size: 15px; font-weight: 600; }
.pass-hf { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.pass-hf small, .pass-fields small { font-size: 11px; font-weight: 600; letter-spacing: 0.03em; color: var(--signal); }
.pass-hf b { font-size: 15px; font-weight: 500; }
.pass-strip { height: 104px; margin: 14px -18px 0; padding: 14px 18px; display: flex; align-items: flex-end; background: radial-gradient(90% 120% at 0% 100%, #1fc25c 0%, rgba(31, 194, 92, 0) 58%), linear-gradient(135deg, #0a5e2f, #000); }
.pass-strip p { font-family: var(--numerals); font-weight: 900; font-size: 30px; line-height: 0.95; }
.pass-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 14px; }
.pass-fields p { display: flex; flex-direction: column; line-height: 1.2; }
.pass-fields b { font-size: 16px; font-weight: 500; }
.pass-primary { grid-column: 1 / -1; }
.pass-primary b { font-size: 40px; font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.pass-cta { display: block; margin-top: 18px; padding: 12px; border-radius: 12px; background: var(--signal); color: #000; text-align: center; font-weight: 600; font-size: 15px; }

.after-pushes { display: grid; gap: 8px; width: 100%; max-width: 380px; margin-top: -6px; position: relative; }
.push-card { background: rgba(255, 255, 255, 0.97); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.05); }
.push-older { transform: scale(0.95); opacity: 0.85; }

.points { display: grid; gap: 26px; margin-top: 40px; }
.points dt { font-size: var(--t-h3); font-weight: 650; letter-spacing: -0.015em; }
.points dd { color: var(--ink-2); margin-top: 4px; max-width: 46ch; }

.results { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 104px; border-radius: var(--panel-radius); background: var(--green); color: #fff; overflow: hidden; }
.results > div { padding: 40px 36px; }
.results > div + div { border-left: 1px solid rgba(255, 255, 255, 0.2); }
.results dt { font-family: var(--numerals); font-weight: 900; font-size: clamp(64px, 6.5vw, 96px); line-height: 0.9; }
.results dd { margin-top: 12px; color: #fff; max-width: 26ch; }

/* =========================================================
   5. Setup
   ========================================================= */
.setup h2 { max-width: 18ch; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 2px solid var(--ink); }
.steps li { padding: 26px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps span { display: block; font-family: var(--numerals); font-weight: 900; font-size: 64px; line-height: 1; color: var(--green); }
.steps h3 { margin-top: 16px; font-size: 20px; line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 16.5px; }

.uses { margin-top: 96px; }
.uses-title { font-size: var(--t-h3); font-weight: 650; letter-spacing: -0.015em; }
.uses ul { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 22px; }
.uses li { display: flex; flex-direction: column; gap: 12px; }
.uses b { font-weight: 600; }
.uses span { align-self: flex-start; padding: 9px 13px; border-radius: 16px 16px 16px 5px; background: var(--ink); color: #fff; font-family: var(--device); font-size: 14px; line-height: 1.3; }

/* =========================================================
   6. Book
   ========================================================= */
.book { background: var(--night); color: var(--night-ink); }
.book .body-lg { color: var(--night-ink-2); }
.book-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.ticks-dark li { color: var(--night-ink); }
.ticks-dark .icon { color: var(--signal); }
.booking { border-radius: var(--panel-radius); overflow: hidden; background: #fff; min-height: 700px; }
.booking iframe { display: block; width: 100%; height: 700px; border: 0; }
.booking iframe:focus, .booking iframe:focus-visible { outline: 3px solid var(--signal); outline-offset: -3px; }
.booking:focus-within { box-shadow: 0 0 0 3px var(--signal); }

/* =========================================================
   7. Questions + footer
   ========================================================= */
.q-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 200ms ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-2); max-width: 62ch; }

.footer { padding: 40px 0 44px; border-top: 1px solid var(--line); }
.footer-mark { font-size: clamp(80px, 15vw, 216px); line-height: 0.9; font-weight: 800; letter-spacing: -0.06em; }
.footer-mark span { color: var(--green); }
.footer-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* =========================================================
   Narrower desktops (phone layout comes later, per AR)
   ========================================================= */
@media (max-width: 1100px) {
  :root { --page: 40px; }
  .live-grid, .after-grid, .book-grid, .q-grid { grid-template-columns: 1fr; gap: 48px; }
  .cd-main { grid-template-columns: 1fr; }
  .cd-steps { grid-template-columns: repeat(4, 1fr); row-gap: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .uses ul { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .banner-track { animation: none; }
  .cd-number .drop, .phone-cd .push { animation: none; }
  .countdown.is-playing .cd-step.is-active::before { animation: none; width: 100%; }
}
