/* Design Tokens */
:root {
  --brand-blue:#1EA7E8;
  --brand-red:#F23B2E;
  --brand-yellow:#FFC91A;
  --brand-green:#0DB360;
  --brand-orange:#FF9E2A;
  --ink:#0A0A0A;
  --cream:#FFF0DB;

  --surface:#0F1115;         /* dark */
  --surface-2:#161A20;       /* card */
  --copy:#EDEDED;            /* text */
  --keyline:#111111;         /* lighten strokes in dark */
  --bg-grad-a:#101010;       /* background gradient */
  --bg-grad-b:#2A2A2A;

  --radius-14:14px;
  --radius-24:24px;
  --radius-32:32px;
  --stroke-ui:3px;
  --stroke-display:6px;

  --shadow-sticker:0 6px 0 rgba(0,0,0,0.35);
  --shadow-soft:0 10px 24px rgba(0,0,0,0.25);

  --space-1:8px;  /* 8 */
  --space-2:16px; /* 16 */
  --space-3:24px; /* 24 */
  --space-4:32px; /* 32 */
  --space-5:40px; /* 40 */
  --space-6:56px; /* 56 */
  --space-7:72px; /* 72 */
  --space-8:96px; /* 96 */

  --font-display:'Baloo 2', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body:'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Light theme mapping */
.theme-light {
  --surface:#FFFFFF;
  --surface-2:#FFFFFF;
  --copy:#1A1A1A;
  --keyline:#0A0A0A;
  --bg-grad-a:#FFFFFF;
  --bg-grad-b:#F5F5F5;
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--copy);
  background: radial-gradient(1200px 800px at 20% -10%, rgba(255,255,255,0.04), transparent 60%),
              linear-gradient(180deg, var(--bg-grad-a), var(--bg-grad-b));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

.skip {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip:focus { left: var(--space-2); top: var(--space-2); width: auto; height: auto; background: var(--brand-yellow); color: var(--ink); padding: var(--space-1) var(--space-2); border-radius: var(--radius-14); box-shadow: var(--shadow-sticker); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) 0;
}
.brand { display: flex; align-items: center; gap: var(--space-2); }
.brand-logo { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(0,0,0,0.35)); border-radius: 12px; }
.brand-name { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.2px; font-size: 20px; color: var(--copy); }

.site-nav { display: flex; gap: var(--space-2); align-items: center; }
.nav-link { color: var(--copy); text-decoration: none; padding: 8px 12px; border-radius: 999px; border: var(--stroke-ui) solid transparent; }
.nav-link:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-blue); background: rgba(30,167,232,0.1); }
.nav-link:hover { transform: translateY(-1px); }

/* Hero */
.hero { padding: clamp(var(--space-6), 8vw, var(--space-8)) 0; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); align-items: center; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 0.6fr 1.4fr; }
}
.hero-mark { width: min(360px, 80%); border-radius: var(--radius-32); border: var(--stroke-ui) solid var(--keyline); background: var(--surface-2); padding: var(--space-3); box-shadow: var(--shadow-sticker); }
.sticker { transform: rotate(-2deg); }
.kicker { font-weight: 600; color: #C8C8C8; margin: 0 0 var(--space-2); }
.headline { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 6vw, 64px); line-height: 1.02; margin: 0 0 var(--space-2); text-transform: uppercase; letter-spacing: 0.5px; color: var(--brand-yellow); text-shadow: 0 2px 0 rgba(0,0,0,0.25); }
.subhead { margin: 0 0 8px; font-size: 18px; color: var(--copy); }
.subhead-quiet { opacity: 0.85; }
.hero-ctas { display: flex; gap: var(--space-2); align-items: center; margin-top: var(--space-3); position: relative; }
.seal { width: 56px; height: 56px; object-fit: contain; border-radius: 50%; border: var(--stroke-ui) solid var(--keyline); box-shadow: var(--shadow-sticker); background: var(--cream); transform: rotate(8deg); }

/* Seal as an accessible button */
.seal-btn { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: var(--stroke-ui) solid var(--keyline); background: var(--cream); box-shadow: var(--shadow-sticker); cursor: pointer; transition: transform 160ms ease; padding: 0; }
.seal-btn:hover { transform: scale(1.05) rotate(8deg); }
.seal-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-yellow), var(--shadow-sticker); }
.seal-btn img { width: 36px; height: 36px; }

/* Cry button variant */
.cry-btn { position: relative; overflow: visible; background: #fff; width: 168px; height: 168px; }
.cry-btn img { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; }
.status-actions { margin-top: var(--space-2); display: flex; align-items: center; gap: var(--space-2); }

/* Tear droplets */
.tear-piece { position: fixed; width: 8px; height: 12px; pointer-events: none; border-radius: 6px 6px 8px 8px; background: linear-gradient(180deg, #64C9FF 0%, #1EA7E8 100%); box-shadow: 0 1px 0 rgba(0,0,0,0.25); opacity: 0; transform: translate(-50%, -50%); z-index: 1000; }
@keyframes tear-drop {
  0% { opacity: 1; transform: translate(var(--x, 0), var(--y, 0)) scale(1); }
  100% { opacity: 0; transform: translate(calc(var(--x) + var(--jitter, 0px)), calc(var(--y, 0) + 80px)) scale(0.95); }
}

/* Outline headline style */
/* Fallback: shadow ring for browsers without text-stroke */
.outline {
  text-shadow:
    -2px 0 var(--ink), 2px 0 var(--ink),
    0 -2px var(--ink), 0 2px var(--ink),
    -2px -2px var(--ink), 2px 2px var(--ink),
    -2px 2px var(--ink), 2px -2px var(--ink);
}
/* Preferred: use true stroke when supported; remove shadow to avoid double edges */
@supports (-webkit-text-stroke: 1px black) {
  .outline {
    text-shadow: none;
    -webkit-text-stroke-color: var(--ink);
    -webkit-text-stroke-width: clamp(2px, 0.08em, 6px);
    -webkit-text-fill-color: currentColor; /* keep solid fill */
  }
}

/* Buttons */
.btn { appearance: none; border: var(--stroke-ui) solid var(--ink); border-radius: 999px; padding: 12px 20px; font-weight: 700; text-decoration: none; color: var(--ink); background: #FFFFFF; box-shadow: var(--shadow-sticker); display: inline-flex; align-items: center; gap: 10px; cursor: pointer; transition: transform 160ms ease; }
.btn:hover { transform: scale(1.05); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-blue), var(--shadow-sticker); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand-yellow); }
.btn-secondary { background: var(--brand-blue); color: #001018; }
.btn-ghost { background: #fff; color: var(--ink); }
.btn-sticker { background: var(--brand-orange); }

.btn .btn-label { font-size: 16px; letter-spacing: 0.2px; }

/* Sections */
.section { padding: var(--space-7) 0; }
.section-head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); }
.section-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); color: var(--brand-blue); text-transform: uppercase; margin: 0; }
.puck { width: 18px; height: 18px; border-radius: 50%; border: var(--stroke-ui) solid var(--ink); box-shadow: var(--shadow-sticker); display: inline-block; }
.puck-blue { background: var(--brand-blue); }
.puck-yellow { background: var(--brand-yellow); }
.puck-green { background: var(--brand-green); }
.puck-red { background: var(--brand-red); }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 800px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface-2); border: var(--stroke-ui) solid var(--keyline); border-radius: var(--radius-24); padding: var(--space-3); box-shadow: var(--shadow-soft); }
.card-title { font-family: var(--font-display); font-size: 24px; margin: 0 0 6px; color: var(--brand-orange); text-transform: uppercase; letter-spacing: 0.4px; }
.card-body { margin: 0; color: var(--copy); }

/* How grid */
.grid-12 { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 900px) { .grid-12 { grid-template-columns: repeat(3, 1fr); } }
.how-badge { display: inline-block; background: var(--brand-green); color: #03210F; border: var(--stroke-ui) solid var(--ink); border-radius: 999px; padding: 6px 12px; font-weight: 700; margin-bottom: 10px; box-shadow: var(--shadow-sticker); }
.how-copy { margin: 0; }

/* Proof / Status */
.status { display: grid; gap: 8px; margin-bottom: var(--space-3); }
.status-line { margin: 0; }
.proof-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.link-badge { text-decoration: none; color: var(--ink); background: #fff; border: var(--stroke-ui) solid var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 700; box-shadow: var(--shadow-sticker); transition: transform 160ms ease; }
.link-badge:hover { transform: scale(1.05); }
.link-badge:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-yellow), var(--shadow-sticker); }

/* Contact */
.contact-copy { margin: 0 0 var(--space-2); }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Footer */
.site-footer { padding: var(--space-6) 0 var(--space-6); }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: var(--space-3); align-items: center; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: auto 1fr; } }
.footer-logo { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(0,0,0,0.35)); border-radius: 10px; }
.footer-links { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.footer-links a { color: var(--copy); text-decoration: none; padding: 6px 10px; border-radius: 999px; border: var(--stroke-ui) solid transparent; }
.footer-links a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-blue); background: rgba(30,167,232,0.1); }
.footer-tagline { margin: var(--space-2) 0 0; opacity: 0.85; }
.copyright { opacity: 0.8; margin-top: var(--space-1); }

/* Motion & Preference */
@media (prefers-reduced-motion: reduce) {
  .btn, .link-badge, .nav-link, .seal { transition: none !important; transform: none !important; }
}

/* Confetti */
.confetti-piece { position: fixed; width: 8px; height: 10px; border-radius: 2px; pointer-events: none; transform: translate(-50%, -50%); opacity: 0; z-index: 1000; }
@keyframes confetti-burst {
  0% { opacity: 1; transform: translate(var(--x, 0), var(--y, 0)) scale(0.8) rotate(0deg); }
  100% { opacity: 0; transform: translate(calc(var(--x) * 6), calc(var(--y) * 6)) scale(1.1) rotate(360deg); }
}

/* Utilities */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
