/* Brand colors sampled from the SC26 booth graphics.
   Replace them with the official hex codes when they arrive. */
:root {
  --purple: #5b4294;
  --purple-deep: #322044;
  --purple-mid: #493089;
  --plum: #61275a;
  --magenta: #8a2e6f;
  --red: #e30239;
  --red-deep: #a71c2d;
  --cyan: #009fe3;
  --white: #ffffff;
  /* NetApp brand guidelines (2023 addendum) */
  --black: #101820;      /* Primary Black: page background */
  --surface: #1a2430;    /* raised panels on black */
  --deep-gray: #323c49;  /* Deep gray */
  --ink: #1b1530;
  --card: rgba(26, 36, 48, 0.96);
  --card-border: rgba(255, 255, 255, 0.16);
  --muted: rgba(255, 255, 255, 0.78);

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 16px;
  --maxw: 760px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Faceted polygon art along the bottom edge, like the booth walls. */
.facets {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 38vh;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--gutter) 48px;
  flex: 1;
}

/* ---------- Header / logo ---------- */
.brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; }
.logo svg { width: 30px; height: 26px; display: block; }
.logo span { font-family: var(--font-body); font-weight: 700; font-size: 26px; letter-spacing: -0.5px; }
.tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.2;
  color: var(--muted);
}

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.02;
  margin: 0 0 12px;
  letter-spacing: 0.2px;
}
h1 { font-size: clamp(38px, 9vw, 64px); }
h2 { font-size: clamp(26px, 5.5vw, 34px); margin-top: 36px; }
h3 { font-size: 22px; }
.accent { color: var(--cyan); }
.lede { font-size: 20px; color: var(--muted); margin: 0 0 24px; }
p { margin: 0 0 16px; }
a { color: var(--white); }

.station-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--white);
  white-space: normal;
}

/* ---------- Steps (brief view) ---------- */
.steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: step; display: grid; gap: 12px; }
.steps li {
  counter-increment: step;
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px 16px 16px 64px;
  min-height: 64px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px; top: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  display: grid;
  place-items: center;
}
.steps li.is-optional::before { background: transparent; border: 2px solid var(--cyan); color: var(--cyan); }
.step-title { font-weight: 600; font-size: 19px; line-height: 1.3; }
.step-title .station-name { font-size: 22px; display: block; margin-top: 2px; }
.step-sub { font-size: 15px; color: var(--muted); margin-top: 4px; }
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
  vertical-align: 2px;
}

/* ---------- Prize ---------- */
.prize {
  margin-top: 24px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 18px 18px 18px 18px;
  border-left: 8px solid var(--red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.prize strong {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
  color: var(--purple);
}
.prize p { margin: 0; font-size: 17px; }

/* ---------- Full view ---------- */
.rec {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.rec .kicker {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  color: var(--cyan);
  margin-bottom: 6px;
}
.rec p:last-child { margin-bottom: 0; }

.stations { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .stations { grid-template-columns: 1fr 1fr; } }
.station-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  border-top: 4px solid var(--red);
}
.station-card.is-partner { border-top-color: var(--cyan); }
.station-card .partner {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.station-card .station-name { font-size: 24px; line-height: 1.05; display: block; margin-bottom: 8px; }
.station-card p { margin: 0; font-size: 16px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 0;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover, .btn:active { background: var(--white); color: var(--black); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; }
.btn-small { min-height: 40px; font-size: 16px; padding: 0 16px; }

.link-inline { color: var(--cyan); font-weight: 600; }

/* ---------- Landing / form ---------- */
.form-shell {
  background: var(--black);
  height: 600px;
  min-height: 420px;
}
.form-shell iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--black); }
.form-placeholder { color: var(--ink); background: var(--white); padding: 28px; }
/* Form screen: tighten the page so the form gets the space, and hide the
   polygon art behind it. */
body.is-form .page { padding-bottom: 0; }
body.is-form .brandbar { margin-bottom: 12px; }
body.is-form .facets { display: none; }
.form-placeholder h3 { color: var(--purple); }

/* ---------- Kiosk ---------- */
.kiosk-only { display: none; }
html.is-kiosk .kiosk-only { display: inline-flex; }
html.is-kiosk .hide-in-kiosk { display: none; }

.idle-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(16, 24, 32, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  text-align: center;
}
.idle-overlay.is-open { display: flex; }
.idle-overlay .box { max-width: 420px; }
.idle-overlay .count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 96px;
  line-height: 1;
  color: var(--cyan);
  margin: 8px 0 20px;
}

.footer-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: 13px; color: var(--muted); margin-top: 40px; }

@media print {
  body { background: #fff; color: #000; }
  .facets, .kiosk-only, .idle-overlay { display: none !important; }
}

/* ---------- Preview page ---------- */
.preview-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.preview-table th, .preview-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--card-border); vertical-align: top; }
.preview-table th { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; font-size: 13px; color: var(--muted); }
.preview-table a { color: var(--cyan); font-weight: 600; white-space: nowrap; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }

/* ---------- AI designation badge ----------
   Colors run cold → hot, so reps can read lead temperature at a glance. */
:root {
  --d-explorer: #0b84d8;
  --d-builder: #13a35b;
  --d-accelerator: #f07c12;
  --d-leader: #e30239;
}
.designation {
  --d: var(--d-explorer);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  background: var(--d);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}
.designation::after {
  /* subtle facet sheen */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.18) 0 30%, transparent 30% 62%, rgba(0,0,0,.12) 62%);
  pointer-events: none;
}
.designation--explorer { --d: var(--d-explorer); }
.designation--builder { --d: var(--d-builder); }
.designation--accelerator { --d: var(--d-accelerator); }
.designation--leader {
  --d: var(--d-leader);
  background: linear-gradient(135deg, #ff7a1a 0%, var(--d-leader) 55%, #b0002c 100%);
  box-shadow: 0 0 0 3px #ffd34d, 0 12px 34px rgba(227, 2, 57, 0.5);
}
.designation-icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--white);
  color: var(--d);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}
.designation-icon svg {
  width: 40px; height: 40px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.designation-text { position: relative; z-index: 1; min-width: 0; }
.designation-prefix {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 14px;
  opacity: 0.92;
}
.designation-label {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(32px, 8.5vw, 46px);
  line-height: 0.95;
  margin: 2px 0 6px;
}
.designation-blurb { font-size: 15px; line-height: 1.35; opacity: 0.95; }
.designation-pips {
  display: flex; flex-direction: column-reverse; gap: 5px;
  position: relative; z-index: 1;
}
.designation-pips i {
  display: block; width: 10px; height: 18px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
}
.designation-pips i.on { background: var(--white); }
@media (max-width: 380px) {
  .designation { grid-template-columns: auto 1fr; }
  .designation-pips { display: none; }
  .designation-icon { width: 52px; height: 52px; }
}

/* ---------- Welcome (landing) ---------- */
.welcome { padding: 4vh 0 24px; }
.welcome-kicker {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; font-size: 15px; color: var(--cyan); margin-bottom: 10px;
}
.welcome-heading { font-size: clamp(48px, 12vw, 88px); margin-bottom: 20px; }
.welcome-lead { font-size: clamp(20px, 3.4vw, 26px); font-weight: 600; margin-bottom: 10px; }
.welcome-body { font-size: clamp(17px, 2.6vw, 21px); color: var(--muted); max-width: 40em; margin-bottom: 32px; }
.btn-begin { min-height: 68px; padding: 0 44px; font-size: 28px; border-width: 3px; }
.welcome-note { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* Form loads offscreen behind the welcome screen. */
.form-shell.is-preloading {
  position: absolute; left: -10000px; top: 0; width: 100%; max-width: var(--maxw);
  visibility: hidden;
}
.welcome-heading .accent, h1 .accent { white-space: nowrap; }

/* ---------- iPad and larger: scale up for arm's-length reading ---------- */
@media (min-width: 700px) {
  :root { --maxw: 860px; }
  body { font-size: 20px; }
  .page { padding-left: 32px; padding-right: 32px; }
  .logo span { font-size: 30px; }
  .lede { font-size: 23px; }
  .steps { gap: 16px; }
  .steps li { padding: 22px 22px 22px 84px; }
  .steps li::before { width: 46px; height: 46px; font-size: 28px; left: 20px; top: 20px; }
  .step-title { font-size: 23px; }
  .step-title .station-name { font-size: 28px; }
  .step-sub { font-size: 18px; }
  .badge { font-size: 14px; }
  .prize { padding: 24px 26px; }
  .prize strong { font-size: 28px; }
  .prize p { font-size: 20px; }
  .rec { padding: 26px; }
  .rec .kicker { font-size: 16px; }
  .station-card .station-name { font-size: 28px; }
  .station-card p { font-size: 18px; }
  .designation { padding: 22px; gap: 20px; }
  .designation-icon { width: 84px; height: 84px; }
  .designation-icon svg { width: 52px; height: 52px; }
  .designation-prefix { font-size: 17px; }
  .designation-label { font-size: 56px; }
  .designation-blurb { font-size: 19px; }
  .designation-pips i { width: 12px; height: 22px; }
  .btn { min-height: 60px; font-size: 23px; padding: 0 32px; }
}
