/* Entry page, styled to the approved StrideShift raffle design.
   Gloock headings, Wix Madefor Text body, navy and cream, gold accent. */
:root {
  --navy: #0A0F14;
  --navy-2: #0E151C;
  --navy-card: #131A22;
  --navy-field: #161E27;
  --navy-line: rgba(248, 246, 242, 0.14);
  --navy-muted: #A3AEBA;
  --cream: #F8F6F2;
  --cream-deep: #F2EFE9;
  --paper: #FFFFFF;
  --ink: #10161E;
  --muted: #5A6470;
  --line: #E6E2DB;
  --gold: #E9C163;
  --gold-hi: #F6D88F;
  --gold-lo: #D9A943;
  --ring: #537DA2;
  --danger: #F4A09A;
  --radius: 14px;
  --heading: 'Gloock', ui-serif, Georgia, serif;
  --body: 'Wix Madefor Text', ui-sans-serif, system-ui, sans-serif;
  --script: 'Caveat', cursive;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--cream); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* section label with rules */
.label { display: flex; align-items: center; gap: 16px; font: 600 12px/1 var(--body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.label::before, .label::after { content: ""; height: 1px; width: 44px; background: currentColor; opacity: 0.45; flex: none; }
.label.on-dark { color: var(--navy-muted); }
.label.on-dark::after { display: none; }

h1, h2, h3 { font-family: var(--heading); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
em { font-style: normal; color: var(--gold); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--navy); color: var(--cream); overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -2; background: url("../assets/art/hero-planet.jpg") right 6% center / auto 100% no-repeat, var(--navy); opacity: 0.95; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy) 0%, rgba(10,15,20,0.92) 38%, rgba(10,15,20,0.25) 72%, rgba(10,15,20,0.55) 100%), linear-gradient(180deg, rgba(10,15,20,0.2) 0%, rgba(10,15,20,0) 60%, var(--navy) 100%); }

.nav { display: flex; align-items: center; gap: 28px; padding: 26px 0; }
.nav .brand { display: block; line-height: 0; margin-right: auto; }
.nav .brand img { height: 30px; width: auto; display: block; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font: 600 12px/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--cream); opacity: 0.82; }
.nav-links a:hover { opacity: 1; color: var(--gold); }

.btn-gold {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-hi), var(--gold)); color: var(--navy);
  font: 600 14px/1 var(--body); text-decoration: none; box-shadow: 0 6px 20px rgba(233,193,99,0.25);
  transition: transform .15s;
}
.btn-gold:hover { transform: translateY(-1px); }
.btn-gold svg { width: 16px; height: 16px; stroke-width: 2.2; }

.hero-copy { padding: 64px 0 96px; max-width: 760px; }
.eyebrow { font: 600 12px/1 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--navy-muted); margin-bottom: 26px; }
.hero h1 { font-size: clamp(56px, 8vw, 96px); line-height: 0.98; letter-spacing: -0.025em; }
.hero h1 em { font-style: italic; }
.lede { font: 400 clamp(17px, 2vw, 20px)/1.6 var(--body); color: rgba(248, 246, 242, 0.84); max-width: 520px; margin: 26px 0 36px; }

.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.pills li {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; min-width: 0;
  border-radius: var(--radius); background: rgba(15,22,30,0.72); border: 1px solid var(--navy-line);
  backdrop-filter: blur(6px);
  font: 600 11px/1.5 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream);
}
.pills svg { width: 26px; height: 26px; flex: none; color: var(--gold); stroke-width: 1.5; }

/* ---------- prizes ---------- */
.prizes { padding: 76px 0 84px; }
.prize-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.card { transition: transform .2s, box-shadow .2s; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 30px 30px 34px; box-shadow: 0 1px 2px rgba(16,22,30,0.03), 0 10px 30px rgba(16,22,30,0.04); }
.tile { width: 68px; height: 68px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(150deg, #1A2430 0%, #0A0F14 55%, #3A2D10 100%); margin-bottom: 26px; }
.tile svg { width: 30px; height: 30px; color: var(--gold); stroke-width: 1.5; }
.card .num { position: absolute; top: 34px; right: 30px; font: 600 12px/1 var(--body); letter-spacing: 0.16em; color: var(--muted); }
.card h3 { font-size: 26px; line-height: 1.2; margin-bottom: 12px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(16,22,30,0.08); }

/* ---------- entry ---------- */
.enter { position: relative; background: var(--navy); color: var(--cream); padding: 88px 0 90px; overflow: hidden; isolation: isolate; }
.ridge-art { position: absolute; right: 0; bottom: 0; width: 46%; height: 62%; z-index: -1; background: url("../assets/art/hero-ridge.jpg") right bottom / cover no-repeat; opacity: 0.55; -webkit-mask-image: linear-gradient(to left, #000 55%, transparent), linear-gradient(to top, #000 60%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to left, #000 55%, transparent), linear-gradient(to top, #000 60%, transparent); mask-composite: intersect; }
.enter::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); }
.enter-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 72px; align-items: start; }

.enter-form h2 { font-size: clamp(40px, 4.6vw, 54px); line-height: 1.08; margin: 22px 0 16px; }
.enter-form h2 em { font-style: normal; }
.intro { color: var(--navy-muted); margin: 0 0 32px; max-width: 460px; }

form#entry { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 9px; font: 500 14px/1.2 var(--body); color: var(--cream); }
.lbl { display: block; }
.req { color: var(--gold); }
input, select {
  width: 100%; padding: 15px 16px; border-radius: 12px; border: 1px solid #2A3440;
  background: var(--navy-field); color: var(--cream); font: 400 16px/1.2 var(--body);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #6B7785; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E9C163' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 44px; }
select option { background: var(--navy-card); color: var(--cream); }
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233,193,99,0.18); }
input[aria-invalid="true"] { border-color: var(--danger); }

.check { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start; font: 400 14px/1.55 var(--body); color: var(--navy-muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; padding: 0; accent-color: var(--gold); }
.check strong { color: var(--cream); font-weight: 600; }

.btn-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  padding: 19px 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, var(--gold-hi), var(--gold)); color: var(--navy);
  font: 600 16px/1 var(--body); box-shadow: 0 10px 30px rgba(233,193,99,0.22);
  transition: transform .15s, opacity .15s;
}
.btn-submit:hover { transform: translateY(-1px); }
.btn-submit:disabled { opacity: .55; cursor: default; transform: none; }
.btn-submit svg { width: 18px; height: 18px; stroke-width: 2; }
.msg { min-height: 20px; color: var(--danger); font-size: 14px; }
.msg:empty { display: none; }
.fine { font-size: 13px; color: var(--navy-muted); margin: -4px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.closed { border: 1px solid rgba(233,193,99,0.35); background: linear-gradient(160deg, #161E27 0%, #0E151C 100%); border-radius: 18px; padding: 44px 36px; }
.closed::before { content: ""; display: block; width: 44px; height: 2px; background: var(--gold); margin-bottom: 22px; }
.closed h3 { font-size: 44px; line-height: 1.05; margin-bottom: 12px; }
.closed p { margin: 0; color: var(--navy-muted); }

.done { display: none; border: 1px solid var(--navy-line); background: var(--navy-card); border-radius: 18px; padding: 40px 34px; }
.done h2 { font-size: 48px; line-height: 1.05; margin: 18px 0 14px; }
.done p { margin: 0; color: var(--navy-muted); max-width: 460px; }

/* how it works column */
.how { position: relative; padding-top: 8px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--navy-line); }
.steps li:last-child { border-bottom: 1px solid var(--navy-line); }
.step-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-card); border: 1px solid var(--navy-line); }
.step-icon svg { width: 22px; height: 22px; color: var(--gold); }
.steps h3 { font-size: 22px; line-height: 1.2; color: var(--gold); margin-bottom: 6px; }
.step-no { font: 600 12px/1 var(--body); letter-spacing: 0.16em; color: var(--navy-muted); margin-right: 6px; vertical-align: 4px; }
.steps p { margin: 0; color: var(--navy-muted); font-size: 16px; }
.script { font: 500 48px/1.05 var(--script); color: var(--gold); margin: 60px 0 0; transform: rotate(-3deg); transform-origin: left; }
.vertical { position: absolute; right: -6px; bottom: 0; writing-mode: vertical-rl; transform: rotate(180deg); font: 600 12px/1 var(--body); letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream); opacity: 0.7; }

/* ---------- footer ---------- */
footer { background: var(--navy); color: var(--navy-muted); padding: 30px 0; font-size: 14px; border-top: 1px solid var(--navy-line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(248,246,242,0.3); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .enter-grid { grid-template-columns: 1fr; gap: 56px; }
  .prize-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-art { background-position: 70% center; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .hero-copy { padding: 44px 0 64px; }
  .pills li { min-width: 0; width: 100%; }
  .row { grid-template-columns: 1fr; }
  .prizes { padding: 56px 0 64px; }
  .enter { padding: 64px 0 72px; }
  .nav .brand img { height: 24px; }
  .btn-gold { display: none; }
  .script { font-size: 40px; }
  .done { padding: 30px 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
