/* Footy Fortune — website styles.
   Design system "Sticker Album" (see DESIGN.md): a glossy collectible-sticker
   world — bright white surfaces, a packet-blue accent, holographic foil glints
   on the rare moments, squircle cards and rounded team-colour panels. The
   "horoscope / prophecy" lives in the words, never in cosmic imagery; the
   pictures stay purely football. Tokens mirror Theme.swift (StickerTheme) so the
   site reads as the same product as the app. */

:root {
  --bg:        #EEF2F8;  /* album page */
  --bg2:       #FFFFFF;
  --surface:   #FFFFFF;  /* sticker card */
  --raised:    #F2F4F7;  /* secondary panel */
  --ink:       #0E1116;  /* near-black text */
  --dim:       #5B6573;  /* muted */
  --accent:    #2563EB;  /* packet blue — the hero */
  --accent-2:  #1D4ED8;
  --accent-wash: rgba(37,99,235,0.08);
  --success:   #18A957;  /* prophecy fulfilled */
  --error:     #E5484D;  /* the stars lied */
  --line:      rgba(14,17,22,0.08);
  --line-2:    rgba(14,17,22,0.14);
  --shadow:    0 18px 50px -22px rgba(14,17,22,0.30);
  --shadow-sm: 0 8px 24px -14px rgba(14,17,22,0.28);
  /* Holographic foil — used only on rare / hero accents. */
  --foil: linear-gradient(115deg,#a0e9ff 0%,#ffd1f5 22%,#fff5b8 44%,#c6ffd6 66%,#c2d4ff 86%,#a0e9ff 100%);
  --radius: 20px;
  --radius-sm: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Soft album-light wash from the top. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 560px at 50% -260px, rgba(37,99,235,0.10), transparent 64%),
    radial-gradient(900px 600px at 88% -120px, rgba(24,169,87,0.06), transparent 60%);
}

.wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
  z-index: 1;
}

a { color: var(--accent); text-underline-offset: 3px; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .wordmark, .hero-title {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ---- Shared bits ---- */

.stamp {
  display: inline-block;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.stamp.green { color: var(--success); }
.stamp.red { color: var(--error); }

/* ---- Masthead ---- */

.masthead {
  padding: 18px 0 16px;
  position: sticky; top: 0; z-index: 20;
  background: rgba(238,242,248,0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.wordmark .badge { width: 30px; height: 30px; flex: none; border-radius: 9px; box-shadow: var(--shadow-sm); }
.tagline {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.nav {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
}
.nav a {
  color: var(--ink);
  margin-left: 18px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { text-decoration: none; color: var(--accent); border-bottom-color: var(--accent); }

/* ---- Hero ---- */

.hero { text-align: center; padding: 64px 0 26px; }
.hero-badge {
  display: inline-block;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid var(--line-2);
  background: var(--bg2);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero-title {
  font-size: 74px;
  line-height: 0.96;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
}
.hero-title .hot {
  background: var(--foil);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: saturate(1.25) brightness(0.92);
}
.hero-sub {
  font-size: 18.5px;
  color: var(--dim);
  max-width: 600px;
  margin: 0 auto 30px;
}

/* The sticker hero prop — a foil prediction card */
.predcard {
  max-width: 520px;
  margin: 34px auto 0;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow);
  position: relative;
}
.predcard .foil-frame {
  border-radius: 15px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(37,99,235,0.05), rgba(37,99,235,0.0)) padding-box,
    var(--foil) border-box;
  border: 2px solid transparent;
}
.pc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pc-sign { display: flex; align-items: center; gap: 12px; }
.pc-sign img { width: 54px; height: 54px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.pc-sign b { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 16px; display: block; }
.pc-sign span { font-size: 12.5px; color: var(--dim); }
.pc-teams {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  background: var(--raised); border-radius: 12px; padding: 14px; margin-bottom: 14px;
}
.pc-teams .t { text-align: center; font-weight: 700; font-size: 15px; }
.pc-vs { font-family: 'Archivo', sans-serif; font-weight: 800; color: var(--accent); font-size: 18px; }
.pc-reading {
  font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 16.5px;
  line-height: 1.45; color: var(--ink); background: var(--accent-wash);
  border-radius: 12px; padding: 14px 16px;
}
.pc-reading .by { display: block; font-family: 'Libre Franklin', sans-serif; font-style: normal; font-size: 12px; color: var(--dim); margin-top: 8px; }

/* ---- Buttons ---- */

.cta-row { margin-top: 32px; }
.cta {
  display: inline-block;
  background: linear-gradient(180deg, #3B82F6, var(--accent-2));
  color: #fff;
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 15px 30px;
  border-radius: 14px;
  box-shadow: 0 12px 26px -10px rgba(37,99,235,0.6);
}
.cta:hover { text-decoration: none; filter: brightness(1.05); transform: translateY(-1px); }
.cta.ghost {
  background: var(--bg2);
  color: var(--accent-2);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  margin-left: 10px;
}
.cta.ghost:hover { background: var(--accent-wash); }

/* ---- Cards & layout ---- */

main { padding: 26px 0 12px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.kicker {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h1 { font-size: 46px; line-height: 1.02; margin-bottom: 6px; letter-spacing: -0.025em; }
h2 { font-size: 31px; line-height: 1.06; margin: 4px 0 12px; letter-spacing: -0.02em; }
h3 { font-size: 17px; font-family: 'Libre Franklin', sans-serif; font-weight: 700; margin: 18px 0 6px; }
p { margin-bottom: 14px; }
ul { margin: 0 0 14px 22px; }
li { margin-bottom: 7px; }
strong { font-weight: 700; color: var(--ink); }

.lede { font-size: 19px; color: var(--dim); }
.updated {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--dim); margin-bottom: 18px;
}

/* ---- Numbered steps ---- */

.step { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .num {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(180deg, #3B82F6, var(--accent-2));
  color: #fff; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px -8px rgba(37,99,235,0.6);
}
.step h3 { margin: 6px 0 3px; }
.step p { margin: 0; color: var(--dim); font-size: 15px; }

/* ---- Footy Signs showcase ---- */

.signs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 6px; }
.sign {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.sign:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sign .pic {
  width: 100%; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden;
  background: var(--raised); margin-bottom: 10px;
}
.sign .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sign h3 { margin: 0 0 3px; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 15.5px; }
.sign p { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.4; }
.signs-note { color: var(--dim); font-size: 13.5px; margin-top: 14px; }

/* ---- The three prophecy layers ---- */

.calls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 4px; }
.call { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 18px; text-align: center; }
.call .n { font-family: 'Archivo', sans-serif; font-weight: 800; color: var(--accent); font-size: 18px; }
.call h3 { margin: 8px 0 10px; font-size: 16px; font-family: 'Archivo', sans-serif; font-weight: 800; }
.call .opts { display: flex; flex-direction: column; gap: 6px; }
.call .opt { font-size: 13px; color: var(--dim); background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 8px; }
.call .opt.on { color: #fff; background: var(--accent); border-color: var(--accent); font-weight: 700; }

/* ---- Two-mode / verdict grid ---- */

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; }
.mode .tag { font-family: ui-monospace, Menlo, monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.mode.fulfilled { border-top: 3px solid var(--success); }
.mode.fulfilled .tag { color: var(--success); }
.mode.lied { border-top: 3px solid var(--error); }
.mode.lied .tag { color: var(--error); }
.mode h3 { margin: 8px 0 6px; font-size: 19px; font-family: 'Archivo', sans-serif; font-weight: 800; }
.mode p { margin: 0; color: var(--dim); font-size: 15px; }

/* ---- Scoreboard (scoring) ---- */

.board { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.board .row { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.board .row:last-child { border-bottom: 0; }
.board .row .what { font-size: 15px; }
.board .row .pts {
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 15px; color: var(--accent);
  background: var(--accent-wash); border: 1px solid var(--line); border-radius: 9px; padding: 5px 13px; white-space: nowrap;
}
.board .row.bonus .pts { color: var(--success); background: rgba(24,169,87,0.08); }

/* ---- Feature rows ---- */

.feature { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature .ico { font-size: 22px; flex: none; width: 30px; text-align: center; line-height: 1.4; }
.feature h3 { margin: 0 0 2px; }
.feature p { margin: 0; color: var(--dim); font-size: 15px; }

/* ---- Daily fortune (cream serif voice) ---- */

.programme {
  background: linear-gradient(180deg,#fff, #f7f9fc);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px; box-shadow: var(--shadow-sm);
}
.programme .ptag { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.programme .quote { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 22px; line-height: 1.4; margin: 0 0 10px; }
.programme .by { font-size: 13px; color: var(--dim); margin: 0; }

/* ---- Callout ---- */

.callout { background: var(--accent-wash); border-left: 3px solid var(--accent); border-radius: 12px; padding: 16px 18px; margin: 18px 0; }
.callout p:last-child { margin-bottom: 0; }

.fineprint { font-size: 13px; color: var(--dim); border: 1px dashed var(--line-2); border-radius: 12px; padding: 16px 18px; margin-top: 6px; }
.fineprint p:last-child { margin-bottom: 0; }

/* ---- FAQ ---- */

.faq-q { font-family: 'Libre Franklin', sans-serif; font-weight: 700; color: var(--ink); margin-top: 22px; margin-bottom: 4px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* ---- Footer ---- */

.footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 26px 0 46px; }
.footer p { font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.footer .nav-foot { font-weight: 600; font-size: 13px; }
.footer .nav-foot a { color: var(--ink); margin-right: 16px; }
.footer .copy { font-family: ui-monospace, Menlo, monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }

/* ---- Responsive ---- */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 20px; }
  .hero-title { font-size: 46px; }
  .card { padding: 22px; }
  h1 { font-size: 33px; }
  h2 { font-size: 25px; }
  .modes { grid-template-columns: 1fr; }
  .calls { grid-template-columns: 1fr; }
  .signs { grid-template-columns: 1fr 1fr; }
  .nav { width: 100%; margin-left: 0; margin-top: 6px; }
  .nav a { margin-left: 0; margin-right: 16px; }
  .cta.ghost { margin-left: 0; margin-top: 10px; }
}
