/* ───────────────────────────────────────────────────────────
   Sorteo Mac mini · estilo editorial tipo Apple
   ─────────────────────────────────────────────────────────── */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --black: #000;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --paper: #fff;
  --paper-2: #f5f5f7;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --green: #25d366;
  --amber: #ff9f0a;
  --red: #ff3b30;
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;
  --grad: linear-gradient(90deg, #8ec5ff 0%, #6b8dff 45%, #c37cff 100%);
  --radius: 18px;
  --radius-lg: 28px;
  --nav-h: 48px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --max: 1080px;
  --section-h: calc(100vh - var(--nav-h));
}
@supports (height: 100svh) { :root { --section-h: calc(100svh - var(--nav-h)); } }

/* Cada sección ocupa como mínimo una pantalla y centra su contenido */
.fit { min-height: var(--section-h); display: flex; flex-direction: column; justify-content: center; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.022em;
  color: var(--ink);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
strong { font-weight: 600; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── Tipografía compartida ─── */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.headline {
  font-size: clamp(32px, min(5.2vw, 6.4vh), 56px);
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -.015em;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.lede {
  font-size: clamp(17px, min(2.2vw, 2.7vh), 24px);
  line-height: 1.33;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--ink-2);
  text-align: center;
  max-width: 640px;
  margin: clamp(10px, 1.8vh, 16px) auto 0;
}

/* ─── Botones ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 980px;
  border: 0;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease), opacity .2s;
  text-decoration: none !important;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: rgba(0, 113, 227, .08); }
.btn-block { width: 100%; }
.btn-whatsapp { background: var(--green); color: #fff; }
.btn-whatsapp:hover { background: #1fc15b; }
.btn-whatsapp svg { width: 22px; height: 22px; }
.link-arrow { font-size: 17px; font-weight: 400; }
.link-arrow::after { content: " ›"; }

/* ─── Navegación ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(0, 0, 0, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-dark);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.nav-brand:hover { text-decoration: none; }
.nav-logo { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: rgba(245, 245, 247, .82); font-size: 12px; font-weight: 400; letter-spacing: -.01em; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-cta {
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 980px;
}
.nav-cta:hover { background: var(--blue-hover); text-decoration: none; }
@media (max-width: 760px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* ─── Hero ─── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--on-dark);
  text-align: center;
  padding: clamp(28px, 6vh, 96px) 22px clamp(20px, 3.5vh, 40px);
}
.hero-glow {
  position: absolute;
  inset: auto 0 -10% 0;
  height: 70%;
  background: radial-gradient(60% 50% at 50% 60%, rgba(70, 110, 255, .25), rgba(120, 60, 255, .06) 55%, transparent 75%);
  pointer-events: none;
}
.hero-copy { position: relative; max-width: 780px; margin: 0 auto; }
.hero .eyebrow { color: var(--on-dark-2); }
.hero h1 {
  margin-top: clamp(8px, 1.5vh, 14px);
  font-size: clamp(52px, min(11vw, 13vh), 112px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.03em;
}
.hero-sub {
  margin-top: clamp(6px, 1vh, 10px);
  font-size: clamp(22px, min(3.6vw, 4.4vh), 40px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.02em;
}
.hero-desc {
  margin-top: clamp(10px, 1.8vh, 18px);
  font-size: clamp(16px, min(2vw, 2.4vh), 21px);
  color: var(--on-dark-2);
}
.hero-desc strong { color: var(--on-dark); }
.hero-actions { margin-top: clamp(14px, 2.6vh, 26px); display: flex; gap: 26px; align-items: center; justify-content: center; flex-wrap: wrap; }

.hero-visual { position: relative; display: flex; justify-content: center; margin: clamp(8px, 2vh, 24px) auto 0; }
.macmini { display: block; width: auto; max-width: min(100%, 760px); height: clamp(150px, 37vh, 440px); object-fit: contain; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); }

.hero-progress { position: relative; width: 100%; max-width: 520px; margin: clamp(10px, 2.5vh, 24px) auto 0; }
.bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
  display: flex;
}
.bar-sold, .bar-reserved { display: block; height: 100%; width: 0; transition: width .8s var(--ease); }
.bar-sold { background: #fff; border-radius: 999px 0 0 999px; }
.bar-reserved { background: rgba(255, 255, 255, .45); }
.bar-text { margin-top: 12px; font-size: 14px; color: var(--on-dark-2); letter-spacing: -.01em; }
.bar-text strong { color: var(--on-dark); }

/* ─── Ganador ─── */
.winner {
  background: var(--black);
  color: var(--on-dark);
  text-align: center;
  padding: 40px 22px 80px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.winner h2 { margin-top: 10px; font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -.02em; }
.winner-number { font-size: clamp(96px, 20vw, 200px); line-height: 1; font-weight: 700; letter-spacing: -.05em; margin-top: 8px; }
.winner-note { color: var(--on-dark-2); font-size: 19px; max-width: 560px; margin: 8px auto 0; }

/* ─── Chip ─── */
.chip {
  background: linear-gradient(180deg, #000 0%, #0b0b10 100%);
  color: var(--on-dark);
  text-align: center;
  padding: clamp(36px, 5.5vh, 110px) 22px;
}
.chip-badge { width: clamp(76px, 12vh, 120px); height: clamp(76px, 12vh, 120px); margin: 0 auto clamp(14px, 2.8vh, 28px); filter: drop-shadow(0 20px 40px rgba(110, 120, 255, .25)); }
.chip-badge svg { width: 100%; height: 100%; }
.chip .lede { color: var(--on-dark-2); }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 880px;
  margin: clamp(22px, 5vh, 56px) auto 0;
}
.stats li {
  background: #161617;
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3.4vh, 34px) 20px clamp(14px, 2.8vh, 28px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.stat-v { font-size: clamp(32px, min(5vw, 5.8vh), 56px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat-l { font-size: 15px; color: var(--on-dark-2); letter-spacing: -.01em; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; } .stats li { padding: 26px 14px 22px; } }

/* ─── Especificaciones ─── */
.specs { background: var(--paper-2); padding: clamp(40px, 7vh, 120px) 22px; }
.video-link { text-align: center; margin-top: clamp(8px, 1.4vh, 14px); font-size: clamp(15px, min(1.8vw, 2.2vh), 19px); letter-spacing: -.01em; }
.video-link a { display: inline-flex; align-items: center; gap: 6px; }
.play { width: 1.2em; height: 1.2em; flex: none; }
.tiles {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-areas: "hw sw" "hw vis";
  gap: 16px;
  max-width: 980px;
  margin: clamp(16px, 3.2vh, 44px) auto 0;
}
.tile {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vh, 34px) 32px;
}
.tile:nth-child(1) { grid-area: hw; }
.tile:nth-child(2) { grid-area: sw; }
.tile:nth-child(3) { grid-area: vis; }
.tile h3 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 14px; }
.tile ul li {
  position: relative;
  padding: clamp(6px, 1vh, 11px) 0 clamp(6px, 1vh, 11px) 22px;
  border-top: 1px solid rgba(0, 0, 0, .06);
  font-size: 16px;
  line-height: 1.4;
}
.tile ul li::before { content: ""; position: absolute; left: 2px; top: calc(clamp(6px, 1vh, 11px) + 8px); width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.tile-dark { background: var(--ink); color: var(--on-dark); }
.tile-dark ul li { border-top-color: rgba(255, 255, 255, .1); }
.tile-dark ul li::before { background: #fff; }
.tile-foot { margin-top: 20px; font-size: 14px; color: var(--on-dark-2); }
.tile-visual { display: flex; flex-direction: column; justify-content: center; gap: 26px; background: linear-gradient(160deg, #e9e9ee, #d9d9df); }
.ports { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.port { display: inline-block; background: #17171a; border: 1px solid #3c3c41; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.port-usb, .port-tb { width: 28px; height: 11px; border-radius: 6px; }
.port-jack { width: 13px; height: 13px; border-radius: 50%; }
.port-hdmi { width: 34px; height: 12px; border-radius: 3px 3px 6px 6px; }
.port-eth { width: 22px; height: 18px; border-radius: 3px; }
.port-label { flex-basis: 100%; font-size: 13px; color: var(--ink-2); letter-spacing: -.01em; }
@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr; grid-template-areas: "hw" "sw" "vis"; }
  .tile { padding: 28px 24px; }
}

/* ─── El sorteo ─── */
.sorteo { background: var(--paper); padding: clamp(36px, 6vh, 120px) 22px; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: clamp(20px, 4.5vh, 48px) auto 0;
}
.info { background: var(--paper-2); border-radius: var(--radius-lg); padding: clamp(18px, 2.8vh, 28px) 24px; min-height: clamp(150px, 20vh, 190px); }
.info-k { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.info-v { margin-top: clamp(6px, 1vh, 10px); font-size: clamp(19px, min(2.4vw, 3vh), 24px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.info-v-sm { font-size: 19px; }
.info-unit { font-size: 15px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.info-s { margin-top: 10px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 900px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .info-grid { grid-template-columns: 1fr; } .info { min-height: 0; } }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: 16px auto 0;
  counter-reset: step;
}
.steps li { background: var(--paper-2); border-radius: var(--radius-lg); padding: clamp(18px, 2.8vh, 28px) 24px; }
.step-n {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}
.steps h3 { margin-top: clamp(8px, 1.6vh, 16px); font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.steps p { margin-top: 6px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

.rule {
  max-width: 760px;
  margin: clamp(14px, 3vh, 40px) auto 0;
  padding: clamp(12px, 1.8vh, 18px) 22px;
  border-radius: var(--radius);
  background: #fff8e6;
  border: 1px solid #ffe4a3;
  color: #5c4300;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

/* ─── Números ─── */
.numeros { background: var(--paper-2); padding: clamp(20px, 3.5vh, 70px) 22px clamp(40px, 6vh, 90px); }
.numeros .headline { font-size: clamp(30px, min(5vw, 5.6vh), 52px); }
.closed-banner {
  max-width: 640px;
  margin: 24px auto 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-dark);
  text-align: center;
  font-size: 15px;
}
.legend {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: clamp(12px, 2.4vh, 28px) auto clamp(10px, 1.6vh, 18px);
  font-size: 13px;
  color: var(--ink-2);
}
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); background: #fff; }
.sw-selected { background: var(--blue); border-color: var(--blue); }
.sw-reserved { background: #fff; border-color: var(--line); background-image: repeating-linear-gradient(135deg, transparent 0 3px, rgba(0, 0, 0, .12) 3px 5px); }
.sw-sold { background: var(--ink); border-color: var(--ink); }

.grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: clamp(6px, 1vh, 10px);
  width: 100%;
  max-width: min(820px, max(400px, calc(var(--section-h) - 322px)));
  margin: 0 auto;
}
.num {
  position: relative;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  cursor: pointer;
  transition: transform .18s var(--ease-spring), box-shadow .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), color .18s;
  -webkit-tap-highlight-color: transparent;
}
.num-v { font-size: clamp(15px, 2.2vw, 22px); font-weight: 600; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.num-l {
  font-size: 10px;
  line-height: 1;
  color: var(--ink-3);
  max-width: calc(100% - 8px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
}
.num[data-status="available"]:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); border-color: #b8b8bf; }
.num:focus-visible { outline: 3px solid rgba(0, 113, 227, .45); outline-offset: 2px; }
.num.is-selected { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(0, 113, 227, .35); transform: scale(1.06); }
.num.is-selected .num-l { color: rgba(255, 255, 255, .8); }
.num[data-status="reserved"] {
  cursor: not-allowed;
  color: var(--ink-3);
  background-color: #fff;
  background-image: repeating-linear-gradient(135deg, transparent 0 4px, rgba(0, 0, 0, .05) 4px 7px);
}
.num[data-status="sold"] { cursor: default; background: var(--ink); border-color: var(--ink); color: #fff; }
.num[data-status="sold"] .num-l { color: rgba(255, 255, 255, .6); }
.num[data-status="sold"] .num-v { opacity: .95; }
.num.is-winner { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 30px rgba(120, 100, 255, .45); }
.num.shake { animation: shake .4s var(--ease); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (max-width: 600px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; } .num { border-radius: 12px; } .num-v { font-size: 18px; } .num-l { font-size: 10px; } }
.grid-hint { max-width: 640px; margin: clamp(10px, 1.8vh, 20px) auto 0; text-align: center; font-size: 13px; color: var(--ink-3); }
@media (min-width: 601px) { .grid-hint { display: none; } }
/* Pantallas de portátil o ventana no maximizada: sin subtítulo para que la cuadrícula quepa en una pantalla */
@media (min-width: 601px) and (max-height: 960px) {
  .numeros .lede { display: none; }
  .grid { max-width: min(820px, max(400px, calc(var(--section-h) - 200px))); }
  .num { border-radius: 11px; }
  .num-v { font-size: clamp(15px, 2.4vh, 20px); }
  .num-l { font-size: 9px; }
}

/* ─── Footer ─── */
.footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 26px 22px 120px; text-align: center; font-size: 12px; color: var(--ink-2); }
.footer p + p { margin-top: 8px; }
.footer-small { max-width: 720px; margin-left: auto !important; margin-right: auto !important; color: var(--ink-3); }

/* ─── Barra de selección ─── */
.selbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0, 0, 0, .08);
  animation: rise .35s var(--ease);
}
@keyframes rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
.selbar-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.selbar-info { display: flex; flex-direction: column; min-width: 0; }
.selbar-info strong { font-size: 15px; }
.selbar-info span { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selbar-right { display: flex; align-items: center; gap: 12px; }
.selbar-total { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
@media (max-width: 520px) { .selbar-total { display: none; } .btn-ghost { padding: 0 12px; } }

/* ─── Modal ─── */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 36px 32px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  animation: pop .3s var(--ease-spring);
}
@keyframes pop { from { transform: translateY(16px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 520px) {
  .modal { align-items: flex-end; padding: 0; }
  .modal-card { max-width: none; border-radius: 24px 24px 0 0; padding: 30px 22px calc(22px + env(safe-area-inset-bottom)); max-height: 92vh; }
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: var(--paper-2); color: var(--ink-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover { background: #e8e8ed; }
.modal-card h3 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.modal-nums { margin-top: 8px; font-size: 32px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--blue); }
.modal-total { font-size: 15px; color: var(--ink-2); margin-top: 2px; }
.field { display: block; margin-top: 16px; }
.field span { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field input {
  width: 100%;
  font: inherit;
  font-size: 17px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, .18); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.turnstile { margin-top: 16px; }
.turnstile:empty { display: none; }
.modal-note { margin-top: 16px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.modal-note-sm { font-size: 12px; text-align: center; }
#step-form .btn-block { margin-top: 18px; }
.form-error { margin-top: 12px; font-size: 14px; color: var(--red); }
#step-success { text-align: center; }
.check { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--green); }
.check svg { width: 100%; height: 100%; }
#step-success .btn-block { margin-top: 18px; }
#step-success .btn-ghost { margin-top: 6px; }

/* ─── Toast ─── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  z-index: 70;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 980px;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  animation: pop .3s var(--ease-spring);
  max-width: calc(100vw - 32px);
  text-align: center;
}

/* ─── 404 ─── */
.hero-404 { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.hero-404 h1 { font-size: clamp(40px, 8vw, 80px); }
