/* ============================================================
   SponsorTheDay — landing page (Outrank-style layout, brand
   palette). Loaded by index.html ONLY; the app pages keep
   app.css. Fonts: Inter (UI) + Caveat (hand annotations).
   ============================================================ */

:root {
  --bg: #FEFCF8;
  --surface: #FFFFFF;
  --surface-warm: #FFF6F0;
  --panel: #FDEFE8;
  --ink: #1D1B26;
  --muted: #777482;
  --muted-strong: #66626F;
  --muted-2: #A5A1AD;
  --accent: #F4552E;
  --accent-hover: #DD4419;
  --accent-text: #BC3B17;
  --accent-deep: #C93E1B;
  --border: #E4DED5;
  --border-accent: #F0906B;
  --green: #1FA971;
  --yellow: #FFC531;
  --shadow-sm: 0 1px 2px rgba(29, 27, 38, 0.05), 0 6px 18px rgba(29, 27, 38, 0.06);
  --shadow-md: 0 2px 6px rgba(29, 27, 38, 0.05), 0 18px 44px rgba(29, 27, 38, 0.10);
  --shadow-float: 0 2px 4px rgba(29, 27, 38, 0.06), 0 14px 30px rgba(29, 27, 38, 0.10);
  --ring: 0 0 0 4px #FDDDCB;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.hand {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-text);
  line-height: 1.1;
}

/* ---------- floating pill nav ---------- */

.nav-shell {
  position: sticky;
  top: 14px;
  z-index: 50;
  padding: 0 16px;
}

.nav-pill {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(228, 222, 213, 0.7);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.logo img { width: 28px; height: 28px; }
.logo-word { white-space: nowrap; }
.logo em { font-style: normal; color: #F4552E; }

.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 600; color: var(--muted-strong); }
.nav-links a:hover { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.btn .arr { transition: transform 160ms ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(180deg, #FF7346 0%, #F4552E 60%, #EA4C22 100%);
  color: #FFF;
  box-shadow: var(--ring), 0 8px 20px rgba(244, 85, 46, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--accent-hover); }

.btn-ghost {
  background: #FFF;
  color: var(--ink);
  border-color: var(--border-accent);
  box-shadow: var(--ring);
}
.btn-ghost:hover { transform: translateY(-1px); border-color: var(--accent); }

.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

.btn-inverse {
  background: #FFF;
  color: var(--accent-text);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28), 0 10px 26px rgba(29, 27, 38, 0.18);
}
.btn-inverse:hover { transform: translateY(-1px); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 92px 0 40px;
  text-align: center;
  background:
    linear-gradient(var(--bg) 0%, rgba(254, 252, 248, 0) 30%),
    repeating-linear-gradient(0deg, rgba(228, 222, 213, 0.28) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(228, 222, 213, 0.28) 0 1px, transparent 1px 72px),
    var(--bg);
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--surface-warm);
  border: 1px solid var(--border-accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.hero h1 {
  margin: 26px auto 0;
  max-width: 900px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-wrap: balance;
}

.hero h1 .hl { color: var(--accent); }

.hero .sub {
  margin: 24px auto 0;
  max-width: 640px;
  font-size: 18.5px;
  color: var(--muted-strong);
  text-wrap: balance;
}

.hero .cta-row {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-proof {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-strong);
}

.hero-proof img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #FFF;
  box-shadow: var(--shadow-sm);
}

.hero-proof a { color: var(--accent-text); font-weight: 700; }

/* floating product mini-cards around the hero */
.float-card {
  position: absolute;
  z-index: 1;
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-float);
  padding: 14px 16px;
  text-align: left;
  pointer-events: none;
}

.float-card .fc-title { font-size: 13px; font-weight: 700; }
.float-card .fc-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.float-card .fc-price { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; }
.float-card .fc-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
}
.float-card .fc-ok { color: var(--green); font-weight: 800; }
.float-card .fc-day { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted-2); text-transform: uppercase; }
.float-card .fc-date { font-size: 22px; font-weight: 800; margin-top: 2px; }

.fc-1 { top: 130px; left: max(24px, calc(50% - 640px)); transform: rotate(-7deg); }
.fc-2 { top: 110px; right: max(24px, calc(50% - 660px)); transform: rotate(6deg); }
.fc-3 { top: 400px; left: max(10px, calc(50% - 700px)); transform: rotate(5deg); }
.fc-4 { top: 420px; right: max(14px, calc(50% - 690px)); transform: rotate(-5deg); }

/* hero product visual */
.hero-shot {
  position: relative;
  z-index: 2;
  max-width: 1020px;
  margin: 56px auto 0;
  padding: 0 24px;
}

.hero-shot img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.6),
    0 24px 70px rgba(29, 27, 38, 0.16),
    0 60px 130px rgba(244, 85, 46, 0.10);
  background: var(--bg);
}

/* ---------- stats band ---------- */

.stats-band {
  margin-top: 84px;
  background: linear-gradient(160deg, #FF6A3D 0%, #F4552E 55%, #E14A20 100%);
  padding: 64px 0 58px;
  color: #FFF;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat strong .plus { color: var(--yellow); }

.stat span {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- sections ---------- */

.section { padding: 96px 0 0; }

.sec-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-strong);
  text-align: center;
}

.sec-title {
  margin: 14px auto 0;
  max-width: 820px;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-align: center;
  text-wrap: balance;
}

.sec-title .hl { color: var(--accent); }

.sec-sub {
  margin: 16px auto 0;
  max-width: 560px;
  font-size: 16.5px;
  color: var(--muted-strong);
  text-align: center;
}

/* ---------- problem / solution ---------- */

.ps-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.ps-grid > * { min-width: 0; }

.pain { display: flex; flex-direction: column; gap: 16px; }

.pain-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pain-item .pi-dot {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
}

.pain-item .pi-body {
  flex: 1;
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  border-top-left-radius: 4px;
  padding: 16px 18px;
  font-size: 15px;
  color: var(--muted-strong);
  box-shadow: var(--shadow-sm);
}

.pain-item .pi-body strong { color: var(--ink); }
.pain-item .pi-body .bad { color: var(--accent-deep); font-weight: 700; }

.solution {
  background: linear-gradient(160deg, #FF6A3D 0%, #F4552E 60%, #E14A20 100%);
  border-radius: 24px;
  padding: 26px 26px 26px;
  color: #FFF;
  box-shadow: 0 24px 60px rgba(244, 85, 46, 0.30);
}

.solution .sol-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  padding: 2px 4px 18px;
}

.solution .sol-head img { width: 26px; height: 26px; }

.sol-card {
  background: #FFF;
  border-radius: 16px;
  padding: 22px 24px;
  color: var(--ink);
}

.sol-card p { font-size: 14.5px; font-weight: 700; margin-bottom: 12px; }

.sol-card ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }

.sol-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--muted-strong);
  font-weight: 600;
}

.sol-card li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-warm);
  border: 1.5px solid var(--accent);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 800;
}

/* ---------- how it works (giant rounded panel) ---------- */

.panel-section {
  margin-top: 96px;
  padding: 0 16px;
}

.giant-panel {
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 48px;
  background:
    repeating-linear-gradient(0deg, rgba(240, 144, 107, 0.10) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(240, 144, 107, 0.10) 0 1px, transparent 1px 64px),
    var(--panel);
  padding: 76px 0 84px;
}

.hiw-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hiw-head .sec-eyebrow, .hiw-head .sec-title { text-align: left; margin-left: 0; }

.hiw-side p { font-size: 16px; color: var(--muted-strong); margin-bottom: 20px; }

.hiw-cards {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hiw-card {
  background: #FFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.hiw-card .hc-shot {
  padding: 18px;
  height: 200px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(150deg, #FFF9F5 0%, #FDEFE8 100%);
  border-bottom: 1px solid #F5E4D8;
}

.hiw-card .hc-shot img {
  border-radius: 10px;
  border: 1px solid var(--border);
  width: 100%;
  height: auto;
}

.hiw-card h3 { font-size: 18px; letter-spacing: -0.015em; padding: 18px 22px 0; }
.hiw-card p { font-size: 14.5px; color: var(--muted-strong); padding: 8px 22px 24px; }

/* ---------- alternating feature blocks ---------- */

.feature {
  margin-top: 88px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature > * { min-width: 0; }

.feature.flip .f-copy { order: 2; }
.feature.flip .f-visual { order: 1; }

.f-copy {
  background: linear-gradient(150deg, #FFF9F5 0%, #FDEFE8 100%);
  border: 1px solid #F5E4D8;
  border-radius: 24px;
  padding: 44px 42px;
}

.f-copy h3 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.f-copy p { margin-top: 14px; font-size: 15.5px; color: var(--muted-strong); }

.f-copy .btn { margin-top: 24px; }

.f-visual { position: relative; }

.f-visual > img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.f-note {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.f-note svg { width: 46px; height: 30px; stroke: var(--accent-text); fill: none; stroke-width: 2.4; stroke-linecap: round; }

/* ---------- never again grid ---------- */

.nomore {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.nomore .item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.nomore .tick {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-warm);
  border: 1.5px solid var(--accent);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 800;
}

.nomore strong { display: block; font-size: 15px; letter-spacing: -0.01em; }
.nomore span { font-size: 13.5px; color: var(--muted-strong); }

/* ---------- final CTA panel ---------- */

.cta-panel-wrap { margin: 96px 16px 0; }

.cta-panel {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 48px;
  overflow: hidden;
  background: linear-gradient(160deg, #FF6A3D 0%, #F4552E 55%, #DD4419 100%);
  padding: 92px 24px;
  text-align: center;
  color: #FFF;
}

.cta-panel::before, .cta-panel::after {
  content: '✦';
  position: absolute;
  font-size: 40px;
  color: rgba(255, 255, 255, 0.25);
}
.cta-panel::before { top: 46px; left: 12%; }
.cta-panel::after { bottom: 52px; right: 12%; font-size: 56px; }

.cta-panel h2 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 800;
  text-wrap: balance;
}

.cta-panel p {
  margin: 18px auto 0;
  max-width: 520px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.92);
}

.cta-panel .btn { margin-top: 32px; }

.cta-panel .cta-note { margin-top: 16px; font-size: 13.5px; color: rgba(255, 255, 255, 0.8); }

/* ---------- footer ---------- */

.footer {
  padding: 44px 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.footer a { color: var(--muted-strong); font-weight: 600; }
.footer a:hover { color: var(--ink); }

/* ---------- decorative sparkles ---------- */

.spark {
  position: absolute;
  color: #F6B79E;
  font-size: 22px;
  pointer-events: none;
  user-select: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .float-card { display: none; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding-top: 64px; }
  .ps-grid { grid-template-columns: 1fr; }
  .hiw-head { grid-template-columns: 1fr; gap: 20px; }
  .hiw-cards { grid-template-columns: 1fr; }
  .hiw-card .hc-shot { height: auto; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .f-copy { order: 1; }
  .feature.flip .f-visual { order: 2; }
  .stats-grid { grid-template-columns: 1fr; gap: 40px; }
  .nomore { grid-template-columns: 1fr; }
  .giant-panel { border-radius: 32px; padding: 52px 0 60px; }
  .cta-panel { border-radius: 32px; padding: 68px 20px; }
  .section { padding-top: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
