/* =====================================================================
   AcademyX AI Build Challenge — stylesheet
   AcademyX dark + gold brand, with a "live build" terminal accent.
   ===================================================================== */

:root {
  --bg:        #0a0b10;
  --bg-2:      #0d0f17;
  --bg-3:      #12141d;
  --card:      rgba(255, 255, 255, 0.028);
  --card-2:    rgba(255, 255, 255, 0.05);

  --ink:       #f3efe4;
  --ink-soft:  #d8d3c6;
  --muted:     #9c9789;
  --muted-2:   #6f6b60;

  --gold-1:    #f7e7ad;
  --gold-2:    #e6c765;
  --gold:      #d4af37;
  --gold-3:    #b0862b;
  --gold-grad: linear-gradient(120deg, #f7e7ad 0%, #e6c765 40%, #d4af37 70%, #b0862b 100%);
  --gold-glow: rgba(212, 175, 55, 0.35);

  --blue:      #6ea8dc;
  --green:     #7ed69b;
  --red:       #ef8a7a;

  --line:      rgba(212, 175, 55, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);

  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 1140px;
  --radius:    18px;
  --radius-sm: 12px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --shadow:    0 30px 70px -25px rgba(0, 0, 0, 0.8);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: #14100a; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

/* Background: faint grid + gold glow */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(212,175,55,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}
body::after {
  content: ""; position: fixed; inset: -20% -10% auto; height: 70vh; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.16), transparent 60%);
}

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.center { text-align: center; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p  { color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--ink-soft); max-width: 720px; margin-inline: auto; }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 18px;
}
.tag::before { content: "//"; color: var(--gold-3); }
.tag--plain::before { content: none; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head p { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.01em;
  text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-gold { background: var(--gold-grad); color: #17120a; box-shadow: 0 12px 34px -12px var(--gold-glow); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px var(--gold-glow); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-block { width: 100%; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 16, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.topbar .logo { display: inline-flex; flex-shrink: 0; }
.topbar .logo img { height: 44px; width: auto; aspect-ratio: 460 / 120; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.mini-cd { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.mini-cd b { color: var(--gold-2); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 { max-width: 960px; margin: 0 auto 22px; }
.hero .lead { margin-bottom: 30px; }
.event-line {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.06em; color: var(--ink-soft);
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  margin-bottom: 34px;
}
.event-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(126,214,155,.15); align-self: center; }
.event-line span.sep { color: var(--muted-2); }

.countdown { display: flex; justify-content: center; align-items: flex-start; gap: 10px; margin: 0 auto 30px; }
.cd-unit {
  min-width: 84px; padding: 14px 10px 10px; border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  border: 1px solid var(--line);
}
.cd-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.cd-label { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: .16em; color: var(--muted); }
.cd-colon { font-family: var(--font-display); font-size: 2rem; color: var(--gold-3); padding-top: 12px; }
.cd-live { font-family: var(--font-display); font-weight: 700; color: var(--green); font-size: 1.4rem; }

.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-cta .note { font-size: .88rem; color: var(--muted); }

/* ---------- Preview window (video slot / app mock) ---------- */
.preview { margin: 56px auto 0; max-width: 980px; }
.window {
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0,0,0,.4) inset; overflow: hidden; text-align: left;
}
.window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,.02); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3b44; }
.window-bar .title { margin-left: 10px; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); letter-spacing: .06em; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.mock { display: grid; grid-template-columns: 170px 1fr; min-height: 380px; }
.mock-side { border-right: 1px solid var(--line-soft); padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.mock-side .brand { font-family: var(--font-display); font-weight: 700; font-size: .92rem; margin-bottom: 12px; color: var(--ink); }
.mock-side span { font-size: .8rem; color: var(--muted); padding: 7px 10px; border-radius: 8px; }
.mock-side span.on { background: rgba(212,175,55,.12); color: var(--gold-1); }
.mock-main { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mock-hello { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--card-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; }
.kpi small { display: block; font-size: .68rem; color: var(--muted); }
.kpi b { font-family: var(--font-display); font-size: 1.12rem; }
.kpi b.up { color: var(--green); }
.mock-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; min-width: 0; }
.panel { background: var(--card); border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px; min-width: 0; }
.panel h5 { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.pipe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pipe div { background: rgba(255,255,255,.03); border-radius: 8px; padding: 8px; font-size: .7rem; color: var(--ink-soft); min-width: 0; }
.pipe div em { display: block; font-style: normal; color: var(--muted); font-size: .62rem; margin-bottom: 6px; }
.pipe div p { background: rgba(255,255,255,.05); border-radius: 6px; padding: 5px 6px; margin-top: 4px; font-size: .66rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-msg { font-size: .74rem; line-height: 1.5; color: var(--ink-soft); }
.agent-msg .who { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 600; color: var(--gold-1); font-size: .72rem; }
.agent-msg .who i { width: 18px; height: 18px; border-radius: 50%; background: var(--gold-grad); display: inline-block; }
.agent-msg li { list-style: none; padding-left: 14px; position: relative; margin-top: 3px; }
.agent-msg li::before { content: "›"; position: absolute; left: 2px; color: var(--gold); }
.preview-caption { margin-top: 14px; font-family: var(--font-mono); font-size: .76rem; color: var(--muted); letter-spacing: .05em; text-align: center; }

/* ---------- Strip ---------- */
.strip { border-block: 1px solid var(--line-soft); background: rgba(255,255,255,.015); }
.strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 42px; padding: 22px 0; }
.strip span { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.strip span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- Blueprint (2 days) ---------- */
.days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.day {
  position: relative; border-radius: var(--radius); border: 1px solid var(--line); padding: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
}
.day-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.day-id { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; color: var(--gold-2); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
}
.badge-free { background: rgba(126,214,155,.12); color: var(--green); border: 1px solid rgba(126,214,155,.25); }
.badge-pass { background: rgba(212,175,55,.12); color: var(--gold-1); border: 1px solid var(--line); }
.day h3 { font-size: 1.6rem; margin-bottom: 10px; }
.day > p { margin-bottom: 18px; }
.checks { list-style: none; display: grid; gap: 12px; margin-bottom: 22px; }
.checks li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(212,175,55,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23e6c765' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.checks li b { color: var(--ink); font-weight: 600; }
.day-time { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 16px; }
.day--pass { border-color: rgba(212,175,55,.42); box-shadow: 0 0 0 1px rgba(212,175,55,.12) inset, 0 30px 70px -40px var(--gold-glow); }

.notice {
  margin-top: 26px; display: flex; gap: 14px; align-items: flex-start; justify-content: center;
  padding: 16px 22px; border-radius: var(--radius-sm); border: 1px dashed var(--line); background: rgba(212,175,55,.05);
  color: var(--ink-soft); font-size: .95rem; text-align: left;
}
.notice svg { flex-shrink: 0; margin-top: 2px; }
.notice b { color: var(--gold-1); }

/* ---------- Builds grid ---------- */
.builds { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.build { grid-column: span 2; border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--card); padding: 26px; transition: border-color .3s, transform .3s var(--ease); }
.build:nth-child(4), .build:nth-child(5) { grid-column: span 3; }
.build:hover { border-color: var(--line); transform: translateY(-3px); }
.build-num { font-family: var(--font-mono); font-size: .78rem; color: var(--gold-2); letter-spacing: .1em; display: flex; justify-content: space-between; margin-bottom: 16px; }
.build-num em { font-style: normal; color: var(--muted); }
.build h3 { margin-bottom: 8px; }
.build p { font-size: .95rem; }
.build .examples { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.build .examples span { font-size: .74rem; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--ink-soft); border: 1px solid var(--line-soft); }

/* ---------- Two-column lists ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.box { border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--card); padding: 30px; }
.box h3 { margin-bottom: 18px; }
.xlist { list-style: none; display: grid; gap: 12px; }
.xlist li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.xlist li::before { content: "✕"; position: absolute; left: 4px; top: 0; color: var(--red); font-size: .9rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.step { position: relative; border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--card); padding: 28px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: inline-block; font-family: var(--font-mono); font-size: .8rem; color: #17120a; background: var(--gold-grad);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 16px; font-weight: 600;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--card); transition: border-color .25s; }
.faq details[open] { border-color: var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold-2); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; }

/* ---------- Registration ---------- */
.register-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.register-copy h2 { margin-bottom: 16px; }
.register-copy .checks { margin-top: 26px; }
.form-card {
  border-radius: 22px; border: 1px solid var(--line); padding: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  box-shadow: var(--shadow);
}
.form-card .tag { margin-bottom: 8px; }
.form-card h3 { font-size: 1.55rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field label .opt { text-transform: none; letter-spacing: 0; font-family: var(--font-body); color: var(--muted-2); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 12px;
  background: rgba(0,0,0,.35); border: 1px solid var(--line-soft); color: var(--ink);
  font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.18); }
.field.has-error input { border-color: var(--red); }
.field .error { display: none; color: var(--red); font-size: .84rem; margin-top: 6px; }
.field.has-error .error { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
.form-legal { margin-top: 14px; font-size: .74rem; color: var(--muted-2); line-height: 1.55; }
.form-legal a { color: var(--muted); }
.form-error { display: none; margin-top: 12px; color: var(--red); font-size: .9rem; }
.form-error.show { display: block; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Final CTA ---------- */
.final { text-align: center; }
.final .countdown { margin-top: 30px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 42px 0 54px; margin-top: 40px; }
.footer .container { display: grid; gap: 18px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-top img { height: 50px; width: auto; aspect-ratio: 460 / 120; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: .88rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold-2); }
.disclosure { font-size: .78rem; color: var(--muted-2); line-height: 1.6; max-width: 900px; }

/* ---------- Upsell page ---------- */
.status {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: rgba(126,214,155,.1); border: 1px solid rgba(126,214,155,.25);
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; color: var(--green); text-transform: uppercase; margin-bottom: 26px;
}
.progress { display: flex; justify-content: center; gap: 10px; margin: 0 auto 30px; max-width: 520px; }
.progress div { flex: 1; }
.progress i { display: block; height: 6px; border-radius: 999px; background: var(--line-soft); }
.progress .done i { background: var(--green); }
.progress .now i { background: var(--gold-grad); }
.progress small { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; color: var(--muted); }
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.perk { border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--card); padding: 26px; }
.perk .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(212,175,55,.12); border: 1px solid var(--line); margin-bottom: 16px; }
.perk h3 { margin-bottom: 8px; }
.perk p { font-size: .95rem; }
.perk .instant { display: inline-block; margin-top: 12px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; color: var(--green); text-transform: uppercase; }

.stack { max-width: 720px; margin: 0 auto; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.stack-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line-soft); }
.stack-row span { color: var(--ink-soft); }
.stack-row span small { display: block; color: var(--muted); font-size: .8rem; }
.stack-row b { font-family: var(--font-display); white-space: nowrap; }
.stack-row.total { background: rgba(255,255,255,.03); }
.stack-row.total b { text-decoration: line-through; color: var(--muted); }
.stack-row.today { background: rgba(212,175,55,.1); border-bottom: 0; }
.stack-row.today span { color: var(--gold-1); font-weight: 600; }
.stack-row.today b { font-size: 1.5rem; }

.price-box { max-width: 560px; margin: 0 auto; text-align: center; }
.price { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 8vw, 4.5rem); line-height: 1; margin: 10px 0 6px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.no-thanks { display: inline-block; margin-top: 16px; color: var(--muted); font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; }
.no-thanks:hover { color: var(--ink-soft); }
.without { max-width: 760px; margin: 0 auto; }
.ps { max-width: 760px; margin: 0 auto; font-size: .98rem; }
.ps p + p { margin-top: 14px; }
.ps b { color: var(--ink); }

/* ---------- Thank-you page ---------- */
.ty-steps { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.ty-step { min-width: 0; border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--card); padding: 30px; }
.ty-step.key { border-color: rgba(212,175,55,.45); background: linear-gradient(180deg, rgba(212,175,55,.07), rgba(255,255,255,.01)); }
.ty-step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.ty-step-head .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #17120a; font-family: var(--font-display); font-weight: 700; flex-shrink: 0; }
.ty-step-head h3 { font-size: 1.35rem; }
.ty-step > p { margin-bottom: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.copy-link {
  display: flex; align-items: stretch; gap: 0; margin: 16px 0; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: rgba(0,0,0,.4);
}
.copy-link code { flex: 1; min-width: 0; padding: 14px 16px; font-family: var(--font-mono); font-size: .9rem; color: var(--gold-1); overflow-x: auto; white-space: nowrap; user-select: all; }
.copy-link button { padding: 0 20px; background: var(--gold-grad); color: #17120a; font-weight: 700; font-family: var(--font-display); white-space: nowrap; }
.browser-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.browser-tabs div { border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px; background: rgba(255,255,255,.02); font-size: .9rem; color: var(--ink-soft); }
.browser-tabs b { display: block; color: var(--ink); font-family: var(--font-display); margin-bottom: 4px; font-size: .92rem; }
.ol { padding-left: 22px; display: grid; gap: 8px; color: var(--ink-soft); }
.ol b { color: var(--ink); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.plan { border: 1px solid var(--line-soft); border-radius: 12px; padding: 16px; background: rgba(255,255,255,.02); }
.plan b { font-family: var(--font-display); display: block; margin-bottom: 4px; }
.plan p { font-size: .9rem; }
.prompt-box { position: relative; margin-top: 12px; }
.prompt-box pre {
  white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); font-size: .82rem; line-height: 1.6;
  color: var(--ink-soft); background: rgba(0,0,0,.42); border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 18px; max-height: 280px; overflow: auto;
}
.prompt-box .btn { margin-top: 12px; }
.check-done { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-size: .95rem; color: var(--ink-soft); cursor: pointer; }
.check-done input { width: 18px; height: 18px; accent-color: var(--gold); }
.pass-banner { display: none; max-width: 860px; margin: 0 auto 22px; padding: 16px 22px; border-radius: var(--radius-sm); background: rgba(126,214,155,.1); border: 1px solid rgba(126,214,155,.28); color: var(--ink-soft); }
.pass-banner.show { display: block; }
.pass-banner b { color: var(--green); }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--ink); padding: 12px 20px; border-radius: 999px;
  font-size: .92rem; transition: opacity .25s, transform .25s var(--ease); z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; margin: 0 auto; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.legal .template-note { border: 1px dashed var(--line); border-radius: 12px; padding: 14px 18px; margin: 20px 0; font-size: .9rem; color: var(--gold-1); background: rgba(212,175,55,.05); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .build { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .register-wrap { grid-template-columns: 1fr; gap: 36px; }
  .builds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .build, .build:nth-child(4), .build:nth-child(5) { grid-column: span 1; }
  .build:nth-child(5) { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .mock { grid-template-columns: 1fr; }
  .mock-side { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .hero { padding-top: 48px; }
  .days, .split, .perks, .plans { grid-template-columns: 1fr; }
  .builds { grid-template-columns: 1fr; }
  .build:nth-child(5) { grid-column: span 1; }
  .browser-tabs { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-row { grid-template-columns: 1fr; }
  .cd-unit { min-width: 64px; padding: 12px 6px 8px; }
  .cd-num { font-size: 1.7rem; }
  .cd-colon { font-size: 1.5rem; padding-top: 10px; }
  .countdown { gap: 6px; }
  .mini-cd { display: none; }
  .topbar .logo img { height: 36px; }
  .topbar .btn-sm { white-space: nowrap; font-size: .84rem; padding: 0 14px; min-height: 40px; }
  .event-line { flex-direction: column; gap: 4px; border-radius: 16px; padding: 12px 18px; }
  .event-line span.sep { display: none; }
  .event-line .dot { display: none; }
  .day, .box, .form-card, .ty-step { padding: 24px; }
  .copy-link { flex-direction: column; }
  .copy-link button { min-height: 48px; }
  .stack-row { padding: 14px 16px; }
}
@media (max-width: 380px) {
  .topbar .btn-sm { padding: 0 14px; }
  .cd-unit { min-width: 56px; }
}
