/* Glassdeck site. Tokens mirror DESIGN.md ("Lit Glass Keys"):
   colour is light, not paint; each hue has one owner. System fonts only. */
:root {
  --ground: #0b0e14;
  --ink: #e8ecf2;
  --ink-2: #a3adbd;
  --ink-3: #8d97a8;
  --glass-top: rgba(255, 255, 255, 0.075);
  --glass-bot: rgba(255, 255, 255, 0.018);
  --glass-edge: rgba(255, 255, 255, 0.09);
  --spec: rgba(255, 255, 255, 0.16);
  --claude: #d97757;
  --claude-text: #ffb39b;
  --live: #4ade80;
  --live-text: #86e6a8;
  --lamp: #ffc56b;
  --lamp-text: #ffd79a;
  --select: #8ab4ff;
  --lift-cool: rgba(76, 92, 140, 0.3);
  --lift-deep: rgba(46, 64, 96, 0.28);
  --font: -apple-system, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", sans-serif;
  --gutter: 20px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--select); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--select); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ground); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 72px 0; position: relative; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }
.lead { color: var(--ink-2); font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 60ch; text-wrap: pretty; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.sec-head { margin-bottom: 40px; display: grid; gap: 14px; }

/* header */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -0.01em; font-size: 1.1rem; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--glass-edge); background: linear-gradient(180deg, var(--glass-top), var(--glass-bot)); position: relative; overflow: hidden; }
.brand-mark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 70%, rgba(255, 197, 107, 0.55), transparent 70%); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.nav a:not(.btn):hover { color: var(--ink); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--ground);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { background: #fff; color: var(--ground); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--spec); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }

/* hero */
.hero { padding: 36px 0 88px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 40%; width: min(1100px, 140vw); height: 700px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, var(--lift-cool), transparent 70%), radial-gradient(40% 40% at 70% 60%, var(--lift-deep), transparent 70%);
}
.hero .wrap { position: relative; display: grid; gap: 28px; justify-items: center; text-align: center; }
.hero h1 { max-width: 24ch; }
.hero .lead { max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fine { color: var(--ink-3); font-size: 0.9rem; }

/* iPad frame, drawn in CSS */
.ipad {
  width: 100%; max-width: 860px; margin-top: 12px; padding: clamp(10px, 2.2vw, 20px);
  border-radius: clamp(20px, 4vw, 36px);
  background: linear-gradient(160deg, #2a3040, #12161f 55%, #1a1f2b);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.ipad img { width: 100%; aspect-ratio: 4 / 3; border-radius: clamp(10px, 1.8vw, 16px); background: var(--ground); }
.ipad--sm { max-width: 520px; padding: clamp(8px, 1.4vw, 12px); border-radius: clamp(16px, 2.4vw, 24px); }
.ipad--sm img { border-radius: clamp(8px, 1.2vw, 12px); }
.phone {
  width: 100%; max-width: 230px; padding: 8px; border-radius: 30px;
  background: linear-gradient(160deg, #2a3040, #12161f 55%, #1a1f2b);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.8);
}
.phone img { width: 100%; aspect-ratio: 390 / 844; border-radius: 22px; }

/* glass keys */
.key {
  --lit: transparent; --lit-op: 0;
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--glass-edge);
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bot));
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 var(--spec);
}
.key::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: var(--lit-op);
  background: radial-gradient(60% 55% at 50% 36%, var(--lit), transparent 72%);
}
.lit-claude { --lit: var(--claude); --lit-op: 0.5; border-color: rgba(217, 119, 87, 0.5); }
.lit-live { --lit: var(--live); --lit-op: 0.3; }
.lit-lamp { --lit: var(--lamp); --lit-op: 0.4; }
.lit-claude-dim { --lit: var(--claude); --lit-op: 0.28; }
.key-demo { aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 4px; text-align: center; padding: 12px; width: 100%; max-width: 168px; }
.key-demo svg { width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.key-name { font-size: 0.85rem; font-weight: 700; margin-top: 6px; }
.key-state { font-size: 0.78rem; font-weight: 650; color: var(--ink-3); }
.c-claude { color: var(--claude); }
.c-live { color: var(--live); }
.c-lamp { color: var(--lamp); }
.c-dim { color: var(--ink-3); }
.t-claude { color: var(--claude-text); font-weight: 750; }
.t-live { color: var(--live-text); }
.t-lamp { color: var(--lamp-text); }
.key-soon { border-style: dashed; background: rgba(255, 255, 255, 0.02); box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .ring::after { content: ""; position: absolute; inset: -1px; border-radius: 24px; border: 1px solid var(--claude); animation: ring 2.4s ease-out infinite; pointer-events: none; }
  @keyframes ring { from { box-shadow: 0 0 0 0 rgba(217, 119, 87, 0.5); } to { box-shadow: 0 0 0 14px rgba(217, 119, 87, 0); } }
}

/* features */
.features { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.card {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  padding: 24px; border-radius: 24px; border: 1px solid var(--glass-edge);
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bot));
}
.card .key-demo { width: 112px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 0.98rem; }
.tag { display: inline-block; margin-top: 12px; font-size: 0.78rem; font-weight: 700; color: var(--ink-3); border: 1px solid var(--glass-edge); border-radius: 999px; padding: 2px 10px; }
.soon { margin-top: 36px; }
.soon h3 { margin-bottom: 6px; }
.soon p { color: var(--ink-2); font-size: 0.98rem; margin-bottom: 18px; max-width: 62ch; }
.soon-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.soon-row .key-demo { max-width: none; }
.soon-row .key-demo svg { width: 38px; height: 38px; }

/* split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .copy { display: grid; gap: 18px; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; color: var(--ink-2); }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--glass-edge); background: linear-gradient(180deg, var(--glass-top), var(--glass-bot)); display: grid; place-items: center; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.steps strong { color: var(--ink); }
.devices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); border: 1px solid var(--glass-edge); background: rgba(255, 255, 255, 0.04); border-radius: 999px; padding: 5px 12px; }
.shots { display: flex; gap: 20px; align-items: end; justify-content: center; }
.shots figure { margin: 0; }
.shots figcaption, .cap { color: var(--ink-3); font-size: 0.85rem; margin-top: 10px; text-align: center; }
.edit-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.edit-shots figure { margin: 0; }
.edit-copy { max-width: 62ch; display: grid; gap: 14px; margin-bottom: 36px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); }
.ticks li.no::before { background: var(--dot-off, #2b3342); box-shadow: none; border: 1px solid var(--ink-3); }

/* pricing */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.plan { padding: 28px; border-radius: 24px; border: 1px solid var(--glass-edge); background: linear-gradient(180deg, var(--glass-top), var(--glass-bot)); display: grid; gap: 18px; align-content: start; }
.plan.pro { border-color: rgba(138, 180, 255, 0.45); box-shadow: 0 0 0 1px rgba(138, 180, 255, 0.12), 0 30px 60px -36px rgba(138, 180, 255, 0.4); }
.plan h3 { font-size: 1.25rem; }
.plan .badge { display: inline-block; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #06121f; background: var(--select); border-radius: 999px; padding: 2px 10px; margin-left: 8px; vertical-align: middle; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.price b { font-size: 2.6rem; letter-spacing: -0.03em; line-height: 1; }
.price s { color: var(--ink-3); }
.price span { color: var(--ink-2); font-size: 0.95rem; }
.plan .btn { width: 100%; }
.plan-note { color: var(--ink-3); font-size: 0.88rem; }
.later { margin-top: 20px; color: var(--ink-2); max-width: 70ch; font-size: 0.98rem; }

/* join form */
.join { background: linear-gradient(180deg, transparent, rgba(76, 92, 140, 0.1) 40%, transparent); }
.join-box { max-width: 640px; margin: 0 auto; padding: 32px; border-radius: 28px; border: 1px solid var(--glass-edge); background: linear-gradient(180deg, var(--glass-top), var(--glass-bot)); display: grid; gap: 22px; }
form { display: grid; gap: 22px; }
label, legend { font-weight: 650; font-size: 0.95rem; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
input[type="email"] { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--spec); background: rgba(0, 0, 0, 0.3); color: var(--ink); font: 400 1rem var(--font); margin-top: 8px; }
input[type="email"]::placeholder { color: var(--ink-3); }
input[type="email"]:focus-visible { outline-offset: 2px; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--glass-edge); background: rgba(255, 255, 255, 0.04); color: var(--ink-2); font-weight: 600; font-size: 0.95rem; }
.opt input:checked + span { border-color: var(--select); color: var(--ink); background: rgba(138, 180, 255, 0.12); }
.opt input:focus-visible + span { outline: 2px solid var(--select); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--select); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.5em; font-weight: 600; font-size: 0.97rem; }
.status.ok { color: var(--live-text); }
.status.err { color: var(--lamp-text); }
.status:empty { display: none; }
form[aria-busy="true"] .btn { opacity: 0.6; pointer-events: none; }

/* FAQ */
.faq { max-width: 780px; display: grid; gap: 12px; }
details { border: 1px solid var(--glass-edge); border-radius: 18px; background: linear-gradient(180deg, var(--glass-top), var(--glass-bot)); }
summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--ink-3); line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 22px 20px; color: var(--ink-2); max-width: 66ch; }

/* footer */
footer { border-top: 1px solid var(--glass-edge); padding: 40px 0 56px; color: var(--ink-3); font-size: 0.92rem; }
footer .wrap { display: grid; gap: 14px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--ink-2); }

/* prose pages */
.prose { max-width: 70ch; padding: 40px 0 80px; display: grid; gap: 18px; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.prose h2 { font-size: 1.3rem; margin-top: 18px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

@media (max-width: 900px) {
  section { padding: 56px 0; }
  .features, .plans { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .soon-row { grid-template-columns: repeat(3, 1fr); }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .card { grid-template-columns: 1fr; }
  .card .key-demo { width: 120px; }
  .edit-shots { grid-template-columns: 1fr; }
  .soon-row { grid-template-columns: repeat(2, 1fr); }
  .opts { grid-template-columns: 1fr; }
  .join-box, .plan { padding: 22px; }
  .hero { padding-bottom: 64px; }
  .cta-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
