/* Phase 1 holding stylesheet. The product's token system and the platform's
   synced design tokens arrive with Phase 2 (roadmap AF-04). */
:root {
  color-scheme: dark;
  --surface: #0f1317;
  --surface-raised: #161b20;
  --text: #e7ebee;
  --text-muted: #92a0aa;
  --action: #4fd6ce;
  --focus-ring: #e9b44c;
  --border-strong: #6b7882;
  --line: #29313a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--text); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--action); }
.holding { max-width: 42rem; margin: 0 auto; padding-inline: 20px; padding-block: 18vh 64px; display: grid; gap: 16px; }
.holding h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; text-wrap: balance; }
.holding p { margin: 0; }
.mark { color: var(--action); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; font-weight: 600; }
.legal h2 { margin: 12px 0 0; font-size: 1.1rem; }
.legal { padding-block: 10vh 64px; }
.register { width: 100%; border-collapse: collapse; font-size: 0.9rem; display: block; overflow-x: auto; }
.register th, .register td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.register th { color: var(--text-muted); font-weight: 600; }
.note { color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid var(--line); padding-top: 12px; }

:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Pricing (D-028) */
.pricing { max-width: 72rem; padding-block: 10vh 64px; }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-block: 8px; }
.plan { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.plan--lead { border-color: var(--action); box-shadow: 0 0 0 1px var(--action), 0 18px 48px -24px rgba(79, 214, 206, 0.45); }
.plan h2 { margin: 0; font-size: 1.25rem; }
.plan-summary { color: var(--text-muted); font-size: 0.95rem; min-height: 3.2em; }
.price { margin: 6px 0 0; }
.price .amount { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.price .per { color: var(--text-muted); }
.price-note { color: var(--text-muted); font-size: 0.85rem; }
.plan ul { margin: 6px 0 8px; padding-left: 1.1em; display: grid; gap: 4px; font-size: 0.93rem; }
.cta { display: inline-block; background: var(--action); color: #06201e; font-weight: 600; text-decoration: none; padding: 10px 16px; border-radius: 10px; justify-self: start; }
.cta--quiet { background: transparent; color: var(--action); border: 1px solid var(--action); }
.pilot { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 8px; }
.pilot h2 { margin: 0; font-size: 1.15rem; }

/* The front page (D-030): cinematic, dark, one idea per band */
body.home { background: #05070a; }
.home .top { position: absolute; inset: 0 0 auto 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(16px, 4vw, 48px); }
.home .brand { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.02em; }
.home .top nav { display: flex; gap: clamp(10px, 2.5vw, 28px); align-items: center; font-size: 0.95rem; }
.home .top nav a { color: var(--text); text-decoration: none; opacity: 0.85; }
.home .top nav a:hover { opacity: 1; }
.cta--small { padding: 7px 12px; font-size: 0.9rem; }
.hero { position: relative; min-height: min(92vh, 900px); display: grid; align-items: end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; filter: saturate(1.1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,10,0.92) 0%, rgba(5,7,10,0.55) 45%, rgba(5,7,10,0.05) 75%), linear-gradient(0deg, #05070a 0%, rgba(5,7,10,0) 35%); }
.hero-copy { position: relative; z-index: 1; max-width: 40rem; padding: 0 clamp(16px, 5vw, 64px) clamp(48px, 10vh, 110px); display: grid; gap: 18px; }
.hero h1 { margin: 0; font-size: clamp(2.1rem, 5.2vw, 3.9rem); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.lede { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c9d3da; max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 0; }
.band { max-width: 72rem; margin: 0 auto; padding: clamp(56px, 10vh, 110px) clamp(16px, 5vw, 48px); border-top: 1px solid var(--line); }
.band h2 { margin: 0 0 20px; font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.1; }
.band p { color: #c3ccd3; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); counter-reset: none; }
.steps li { background: linear-gradient(180deg, #10151a, #0b0f13); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.steps .n { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--action); color: var(--action); font-weight: 700; box-shadow: 0 0 22px -6px var(--action); }
.steps h3, .cards h3 { margin: 4px 0 0; font-size: 1.1rem; }
.steps p, .cards p { margin: 0; font-size: 0.97rem; }
.split { display: grid; gap: clamp(24px, 5vw, 64px); grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); align-items: start; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; color: #dfe6ea; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 8px; border-left: 2px solid var(--action); border-bottom: 2px solid var(--action); transform: rotate(-45deg); }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.cards article { border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 8px; background: radial-gradient(120% 90% at 0% 0%, rgba(79,214,206,0.08), rgba(79,214,206,0) 60%), #0b0f13; }
.closing { display: grid; gap: 12px; align-content: start; }
.big { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 650; color: var(--text) !important; margin: 0; letter-spacing: -0.01em; }
.foot-site { max-width: 72rem; margin: 0 auto; padding: 28px clamp(16px, 5vw, 48px) 48px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 0.9rem; }
/* The live instrument cluster (hero-hud.js): drawn in code, the photograph is its fallback */
.hud { display: none; }
.hud-on .hud { display: block; position: absolute; z-index: 0; top: 44%; right: clamp(16px, 3vw, 56px); width: min(57vw, 1060px); transform: translateY(-50%); perspective: 1700px; }
.hero.hud-on::after { background: linear-gradient(90deg, rgba(5,7,10,0.85) 0%, rgba(5,7,10,0.35) 36%, rgba(5,7,10,0) 52%), linear-gradient(0deg, #05070a 0%, rgba(5,7,10,0) 22%); }
.hud-on .hero-img { display: none; }
.hud-on { background: radial-gradient(60% 55% at 72% 40%, rgba(79,214,206,0.10), rgba(79,214,206,0) 70%), radial-gradient(40% 30% at 70% 88%, rgba(255,178,74,0.05), rgba(0,0,0,0) 70%), #05070a; }
.hud-tilt { position: relative; transform: rotateY(-14deg) rotateX(4deg); transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); padding: 12px; border-radius: 30px;
  background: linear-gradient(150deg, #28323a 0%, #0c1014 38%, #05070a 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.07), inset 0 1px 0 rgba(255,255,255,0.10), 0 70px 120px -50px rgba(0,0,0,0.95), 0 0 120px -30px rgba(79,214,206,0.30); }
.hud-screen canvas { display: block; width: 100%; aspect-ratio: 21 / 9; border-radius: 20px; }
.hud-glass { position: absolute; inset: 12px; border-radius: 20px; pointer-events: none;
  background: linear-gradient(112deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.02) 22%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 78%, rgba(255,255,255,0.04) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), inset 0 -40px 60px -40px rgba(79,214,206,0.12); }
.hud::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -60px; height: 60px; background: radial-gradient(50% 50% at 50% 0%, rgba(79,214,206,0.22), rgba(79,214,206,0) 100%); filter: blur(12px); }
@media (max-width: 900px) {
  /* On a phone or tablet the display gets its own space above the words. */
  .hero.hud-on { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding-top: 76px; }
  .hud-on .hud { position: relative; top: auto; right: auto; width: auto; margin: 8px clamp(12px, 3vw, 32px) 36px; transform: none; perspective: 1200px; }
  .hud-tilt { transform: rotateX(8deg); padding: 7px; border-radius: 18px; }
  .hud-screen canvas, .hud-glass { border-radius: 12px; }
  .hud-glass { inset: 7px; }
  .hero.hud-on::after { display: none; }
}
@media (max-width: 640px) {
  .home .top nav a:not(.cta) { display: none; }
  .hero { min-height: 88vh; }
  .hero::after { background: linear-gradient(0deg, #05070a 12%, rgba(5,7,10,0.72) 55%, rgba(5,7,10,0.25) 100%); }
  .hero-img { object-position: 70% 30%; }
}

/* Every public page shares the front page's header, footer and atmosphere (AF-16) */
body.site { background: radial-gradient(70% 45% at 70% 0%, rgba(79,214,206,0.08), rgba(79,214,206,0) 70%), #05070a; min-height: 100vh; display: flex; flex-direction: column; }
body.site > main { flex: 1; }
.site .top, .home .top { display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(16px, 4vw, 48px); }
.site .top { position: relative; z-index: 2; }
.site .brand { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.02em; }
.site .top nav { display: flex; gap: clamp(10px, 2.5vw, 28px); align-items: center; font-size: 0.95rem; }
.site .top nav a:not(.cta) { color: var(--text); text-decoration: none; opacity: 0.85; }
.site .top nav a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--action); padding-bottom: 4px; }
.site .holding { padding-block: 6vh 56px; }
.pricing h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.06; letter-spacing: -0.025em; max-width: 22ch; margin: 0; text-wrap: balance; }
.pricing .lede { max-width: 46rem; }
.pricing .plans { margin-top: 18px; }
.plan { background: linear-gradient(180deg, #11161b, #0b0f13); }
.plan--lead { background: radial-gradient(120% 60% at 50% 0%, rgba(79,214,206,0.12), rgba(79,214,206,0) 70%), #0e1418; }
/* The package, as a file tree */
.pkg { margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; background: #080b0e; box-shadow: 0 30px 60px -40px rgba(0,0,0,0.9), 0 0 60px -30px rgba(79,214,206,0.25); overflow: hidden; }
.pkg-head { display: flex; align-items: center; gap: 6px; margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #0d1115; }
.pkg-dot { width: 9px; height: 9px; border-radius: 50%; background: #2a333b; }
.pkg-name { margin-left: 8px; font: 600 0.82rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-muted); }
.pkg-tree, .pkg-tree ul { list-style: none; margin: 0; padding: 0; }
.pkg-tree { padding: 12px 16px 14px; font: 0.84rem/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; }
.pkg-tree ul { padding-left: 18px; border-left: 1px dashed #26303a; margin-left: 4px; }
.pkg-tree li { display: flex; flex-wrap: wrap; gap: 0 12px; }
.pkg-tree li.d { display: block; color: var(--action); }
.pkg-tree .k { color: #dfe6ea; }
.pkg-tree .c { color: #6d7c86; }
.pkg-tree .c::before { content: "// "; }
@media (max-width: 640px) { .site .top nav a:not(.cta) { display: none; } }
