/*
 * getchp.com: C.H.P coming-soon page. Built on the DanaSites kit (dana-ui.css); this file holds the brand tokens
 * and the page's own pieces. Brushed Silver Noir: black stage, silver ink, no colour. The one bright silver
 * "accent" means one thing: the newest clip, the thing that is live.
 */
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #000; --band: #0a0a0a; --ink: #e6e4df; --accent: #f2f2f2; --on-accent: #0a0a0a;
  --silver-hi: #f2f2f2; --silver: #dcdcdc; --silver-mid: #c2c2c2; --silver-lo: #808080; --charcoal: #464646;
  --panel: #0b0b0b; --panel-2: #111; --edge: #1e1e1e;
  --display: "Inter Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --body: "Inter Display", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --h1: clamp(3.1rem, 1.2rem + 6vw, 6.6rem);
  --radius: 18px;
  --metal: linear-gradient(100deg, #d4d4d4 0%, #ffffff 26%, #cfcfcf 48%, #ffffff 70%, #d0d0d0 100%);
}
html { color-scheme: dark; scroll-padding-top: 96px; }
body { background: var(--bg); }
::selection { background: #e6e4df; color: #000; }

/* ---------- type: light, large, metal ---------- */
.h1, .h2 { color: #9e9e9e; font-weight: 400; }
.h1 { letter-spacing: -0.035em; line-height: 0.94; }
.h1 em, .h2 em { font-style: normal; color: var(--silver-hi);
  background: var(--metal); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: sheen 11s 1.6s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.label { color: var(--silver-lo); }
.label .dot { color: var(--silver-hi); }
.lede { color: color-mix(in srgb, var(--ink) 70%, transparent); }

/* ---------- nav ---------- */
.nav__brand { gap: 10px; font: 500 0.95rem/1 var(--mono); letter-spacing: 0.14em; }
.nav__brand img { width: 28px; height: auto; }
.btn--solid { background: linear-gradient(180deg, #f6f6f6, #b9b9b9); color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7), inset 0 -2px 0 rgb(0 0 0 / 0.18), 0 18px 40px -20px rgb(220 220 220 / 0.45); }
.btn--solid:hover { background: linear-gradient(180deg, #ffffff, #c9c9c9); }

/* ---------- stage: carbon weave and one slow light ---------- */
.hero { position: relative; min-height: max(100svh, 720px); display: grid; align-items: center; overflow: hidden; isolation: isolate;
  padding: calc(var(--nav-h) + 64px) 0 clamp(48px, 8vh, 88px); background: var(--bg); }
.carbon { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 60% at 74% 48%, rgb(220 220 220 / 0.085), transparent 70%),
    repeating-linear-gradient(45deg, rgb(255 255 255 / 0.02) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.013) 0 2px, transparent 2px 6px); }
.carbon::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 95% 85% at 55% 50%, transparent 45%, #000 100%), linear-gradient(180deg, transparent 70%, #000); }
.sweep { position: absolute; inset: -20% -40%; z-index: -1; pointer-events: none; opacity: 0.55;
  background: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / 0.05) 49%, rgb(255 255 255 / 0.09) 50%, rgb(255 255 255 / 0.05) 51%, transparent 58%);
  animation: sweep 26s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes sweep { 0% { transform: translateX(-38%); } 100% { transform: translateX(38%); } }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero .h1 { margin-top: 24px; }
.hero .lede { margin-top: 28px; max-width: 40ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__copy .cue { margin-top: clamp(40px, 7vh, 72px); }
.hero__picture { position: relative; display: grid; gap: 18px; justify-items: end; }
.readout { text-align: right; line-height: 1.75; }
.readout b { color: var(--silver); }

/* ---------- the C.H.P panel (shared by the hero, the Ask chapter and the try-it tool) ---------- */
.app { position: relative; width: 100%; border: 1px solid var(--edge); border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #121212, #090909 40%);
  box-shadow: 0 50px 90px -40px #000, inset 0 1px 0 rgb(255 255 255 / 0.05), 0 0 140px -50px rgb(220 220 220 / 0.25); }
.app__bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--edge);
  font: 500 0.72rem/1 var(--mono); letter-spacing: 0.16em; color: var(--silver); }
.app__bar img { width: 20px; height: auto; }
.app__status { display: inline-flex; align-items: center; gap: 7px; margin-left: 6px; padding: 5px 9px; border: 1px solid var(--edge); border-radius: 999px;
  font-size: 0.7rem; letter-spacing: 0.1em; color: var(--silver-lo); }
.app__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--silver-hi); box-shadow: 0 0 8px rgb(242 242 242 / 0.8);
  animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.app__win { margin-left: auto; display: flex; gap: 16px; color: var(--silver-lo); letter-spacing: 0; }
.app__search { display: flex; align-items: center; gap: 10px; margin: 14px 14px 0; height: 44px; padding: 0 14px; border: 1px solid var(--edge);
  border-radius: 12px; background: #070707; font: 400 0.82rem/1 var(--mono); color: var(--ink); }
.app__search svg { flex: none; width: 15px; height: 15px; stroke: var(--silver-lo); fill: none; stroke-width: 1.6; }
.app__search .ph { color: var(--charcoal); }
.app__search .caret { width: 1px; height: 16px; background: var(--silver-hi); margin-left: -8px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.app__tabs { display: flex; align-items: center; gap: 6px; margin: 12px 14px 10px; font-size: 0.78rem; color: var(--silver-lo); }
.app__tabs span { padding: 7px 13px; border-radius: 999px; }
.app__tabs .on { color: var(--ink); background: #1a1a1a; box-shadow: inset 0 0 0 1px #262626; }
.app__tabs .end { margin-left: auto; border: 1px solid var(--edge); }
.app__ask { display: flex; align-items: center; gap: 10px; margin: 0 14px 14px; height: 42px; padding: 0 14px; border-radius: 12px;
  border: 1px solid #262626; background: linear-gradient(180deg, #141414, #0c0c0c); font-size: 0.8rem; color: var(--silver-lo); }
.app__ask svg { width: 15px; height: 15px; fill: var(--silver); }

/* a clip row */
.clips { display: grid; gap: 8px; }
.clip { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 13px; border: 1px solid #191919;
  border-radius: 12px; background: rgb(255 255 255 / 0.018);
  transition: opacity 500ms var(--ease), border-color 900ms var(--ease), box-shadow 900ms var(--ease), background 900ms var(--ease); }
.clip__ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #151515; box-shadow: inset 0 0 0 1px #222; overflow: hidden; }
.clip__ico svg { width: 16px; height: 16px; fill: none; stroke: var(--silver); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.clip__ico.swatch { background: #c2c2c2; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.3); }
.clip__ico.thumb { background: linear-gradient(160deg, #4a4a4a, #1a1a1a 55%, #2c2c2c); }
.clip__ico.thumb::before { content: ""; width: 22px; height: 13px; margin-top: 10px; background: linear-gradient(135deg, transparent 45%, #9a9a9a 46%, #6a6a6a 70%, transparent 71%); }
.clip__txt { min-width: 0; }
.clip__txt p { font: 400 0.8rem/1.35 var(--mono); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip__txt p[dir="rtl"] { font-family: var(--body); font-size: 0.88rem; text-align: right; }
.clip__txt small { display: block; margin-top: 3px; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--silver-lo); }
.clip mark { background: rgb(255 255 255 / 0.16); color: #fff; border-radius: 3px; padding: 0 1px; }
.clip.is-new { border-color: rgb(242 242 242 / 0.42); background: rgb(255 255 255 / 0.05);
  box-shadow: 0 0 0 1px rgb(242 242 242 / 0.08), 0 0 32px -6px rgb(242 242 242 / 0.25); }
.clip.is-dim { opacity: 0.26; }

/* hero list: a fixed window; rows slide down as a new copy lands on top */
.hero .clips { height: 334px; overflow: hidden; padding: 0 14px; margin-bottom: 14px; align-content: start;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
.clip.enter { opacity: 0; transform: translateY(-14px) scale(0.98); }
.keys { position: relative; z-index: 2; display: flex; gap: 6px; justify-self: start; margin-bottom: -4px; }
.keys kbd { min-width: 44px; height: 40px; padding: 0 11px; display: grid; place-items: center; border-radius: 9px;
  font: 500 0.75rem/1 var(--mono); color: var(--silver); background: linear-gradient(180deg, #1c1c1c, #0f0f0f);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 3px 0 #050505, 0 10px 24px -8px #000; border: 1px solid #262626;
  transition: transform 140ms ease, box-shadow 140ms ease, color 300ms, border-color 300ms; }
.keys.press kbd { transform: translateY(3px); color: #fff; border-color: #4a4a4a;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1), 0 0 0 #050505, 0 0 22px -4px rgb(242 242 242 / 0.35); }

/* ---------- 01 statement ---------- */
.statement { font: 400 clamp(1.75rem, 1.05rem + 2.3vw, 3.1rem)/1.18 var(--display); letter-spacing: -0.02em; color: var(--silver); max-width: 26ch; }
.statement span { transition: opacity 200ms linear; }

/* ---------- 02 Ask: pinned chapter ---------- */
/* scripts off: the chapter is a plain stacked section; the pin, the stacked steps and the pips need html.js */
.track { position: relative; }
.pin { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; padding-block: var(--section); }
.js .track { height: calc(3 * 85vh + 100vh); }
.js .pin { position: sticky; top: 0; height: 100svh; overflow: hidden; padding-block: 0; }
.ask { padding-bottom: 14px; }
.ask__head { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--edge);
  font: 500 0.72rem/1 var(--mono); letter-spacing: 0.16em; color: var(--silver); }
.ask__head span:last-child { font-size: 0.7rem; color: var(--silver-lo); border: 1px solid var(--edge); padding: 5px 9px; border-radius: 999px; }
.ask .clips { padding: 14px 14px 4px; gap: 6px; }
.ask .clip { padding: 8px 12px; grid-template-columns: 26px minmax(0, 1fr); }
.ask .clip__ico { width: 26px; height: 26px; border-radius: 7px; }
.ask .clip__ico svg { width: 13px; height: 13px; }
.ask .clip.is-read { opacity: 0.32; }
.ask .clip.is-scan { border-color: rgb(242 242 242 / 0.3); background: rgb(255 255 255 / 0.05); }
.ask .clip.is-hit { border-color: rgb(242 242 242 / 0.45); background: rgb(255 255 255 / 0.06); box-shadow: 0 0 28px -8px rgb(242 242 242 / 0.3); opacity: 1; }
.chat { display: grid; gap: 10px; padding: 12px 14px 0; min-height: 168px; align-content: start; }
.bubble { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; }
.bubble.q { justify-self: end; background: #1b1b1b; border: 1px solid #262626; color: var(--ink); border-bottom-right-radius: 4px; min-height: 45px; }
.bubble.a { justify-self: start; background: rgb(255 255 255 / 0.035); border: 1px solid var(--edge); color: var(--silver); border-bottom-left-radius: 4px; }
.bubble.a span { transition: opacity 260ms linear; }
.js .bubble.a.is-empty { opacity: 0; }
.bubble.a { transition: opacity 400ms var(--ease); }
.illus { margin-top: 14px; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver-lo); }
.step { margin-block: 0 48px; }
.js .steps { display: grid; }
.js .step { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(16px); visibility: hidden;
  transition: opacity 500ms var(--ease), transform 700ms var(--ease), visibility 0s 500ms; }
.js .step.on { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.step .h2 { margin-top: 18px; max-width: 12ch; } .step p:last-child { margin-top: 22px; color: var(--muted); max-width: 40ch; }
.pips { display: none; gap: 8px; margin-top: 40px; }
.js .pips { display: flex; }
.pips button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; padding: 0; }
.pips button::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: #2a2a2a; transition: background 500ms var(--ease); }
.pips button[aria-current="step"]::before { background: var(--silver-hi); }

/* ---------- 03 try it ---------- */
.try { display: grid; gap: 18px; }
.try__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.try__bar .field { flex: 1 1 360px; max-width: none; border-radius: 14px; }
.try__bar .field svg { flex: none; align-self: center; width: 17px; height: 17px; margin-left: 14px; stroke: var(--silver-lo); fill: none; stroke-width: 1.6; }
.try__bar .field input { font-family: var(--mono); font-size: 0.95rem; padding-left: 10px; }
.kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.kinds button { min-height: 44px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: none; cursor: pointer;
  font: 500 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--silver-lo); transition: color 300ms, border-color 300ms, background 300ms; }
.kinds button:hover { color: var(--ink); border-color: var(--dim); }
.kinds button[aria-pressed="true"] { color: var(--on-accent); background: var(--silver); border-color: var(--silver); }
.try__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.try__list .clip[hidden] { display: none; }
.try__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--silver-lo); font: 500 0.72rem/1.5 var(--mono); letter-spacing: 0.08em; }
.try__empty { padding: 28px; border: 1px dashed #262626; border-radius: 12px; color: var(--silver-lo); text-align: center; }

/* ---------- 04 numbers ---------- */
.stats { grid-template-columns: repeat(4, 1fr); }
.stat b { color: var(--silver-hi); font-weight: 400; }
.stat b small { color: var(--silver-lo); }

/* ---------- close ---------- */
.close { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding-block: clamp(120px, 18vw, 230px); border-top: 1px solid var(--line); }
.close .carbon { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent); }
.close .carbon { background:
    radial-gradient(ellipse 40% 50% at 50% 50%, rgb(220 220 220 / 0.09), transparent 70%),
    repeating-linear-gradient(45deg, rgb(255 255 255 / 0.02) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.013) 0 2px, transparent 2px 6px); }
.close img { width: 92px; height: auto; margin: 0 auto 30px; filter: drop-shadow(0 18px 30px #000); }
.close .h1 { margin: 20px auto 0; max-width: 12ch; }
.close .lede { margin: 26px auto 0; }
.close .actions { justify-content: center; }
.close .note { margin-top: 18px; color: var(--silver-lo); font-size: 0.9rem; }

.foot__grid { grid-template-columns: 1.6fr 1fr 1fr; }
.foot__brand { display: flex; align-items: center; gap: 12px; color: var(--silver); font: 500 0.85rem/1 var(--mono); letter-spacing: 0.14em; }
.foot__brand img { width: 28px; height: auto; }
.foot h3 { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver-lo); margin-bottom: 8px; }
.foot__legal { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--charcoal); font-size: 0.82rem; }

/* ---------- phone ---------- */
@media (max-width: 960px) {
  .hero { align-items: start; min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__picture { justify-items: stretch; max-width: 470px; }
  .readout { text-align: left; }
  .hero__copy .cue { display: none; }

  .pin { grid-template-columns: 1fr; }
  .js .track { height: auto; } .js .pin { position: static; height: auto; padding-block: var(--section); }
  .js .steps { display: block; } .js .step { opacity: 1; transform: none; visibility: visible; margin-block: 0 48px; }
  .js .pips { display: none; }
  .try__list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .hero .clips { height: 262px; }
  .app__win, .app__tabs .end { display: none; }
  .keys kbd { min-width: 38px; height: 34px; }
  .stat b { font-size: 2.4rem; }
  .foot__grid { grid-template-columns: 1fr; }
}

/* ---------- reduced motion: the composed still ---------- */
@media (prefers-reduced-motion: reduce) {
  .sweep, .h1 em, .h2 em, .app__status i, .app__search .caret { animation: none; }
  .js .track { height: auto; } .js .pin { position: static; height: auto; padding-block: var(--section); }
  .js .steps { display: block; } .js .step { opacity: 1; transform: none; visibility: visible; margin-block: 0 48px; transition: none; }
  .js .pips { display: none; }
  .statement span { opacity: 1 !important; }
}
.foot__grid a { min-width: 44px; }
code, kbd, .clip__txt p, .app__search, .try__bar .field input, .readout, .label { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.hero .h1 em, .close .h1 em { filter: drop-shadow(0 0 24px rgb(242 242 242 / 0.12)); }
@media (max-width: 960px) { .keys { justify-self: end; } .hero__picture { margin-top: 40px; } }
@media (max-width: 520px) { .hero .label { letter-spacing: 0.1em; font-size: 0.72rem; } }
