:root {
  /* Locked palette comes from assets/fom-colours.css */
  --orange: var(--fom-orange);
  --cobalt: var(--fom-cobalt);
  --paper: var(--fom-paper);
  --ink: var(--fom-ink);
  --paper-2: #F2E0C6;
  --radius: 22px;
  --gutter: 20px;
  --max: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: clip; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.05; margin: 0 0 .4em; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 8vw, 3.6rem); font-weight: 800; }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0 0 1em; }
.small { font-size: .9rem; opacity: .8; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mini-logo { display: flex; align-items: center; text-decoration: none; }
.mini-logo img { height: 40px; width: auto; display: block; }
.pill { text-decoration: none; font-weight: 700; font-size: .9rem; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); }

/* Sections */
.section { padding: 64px var(--gutter); max-width: var(--max); margin: 0 auto; }
.section-cobalt, .section-ink, .section-orange { max-width: none; }
.section-cobalt > *, .section-ink > *, .section-orange > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-cobalt { background: var(--cobalt); color: var(--paper); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-orange { background: var(--orange); color: var(--ink); }
.kicker { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; opacity: .75; margin-bottom: .6em; }
.intro { font-size: 1.15rem; max-width: 36em; }

/* Hero */
.hero { position: relative; overflow: clip; padding: 24px var(--gutter) 72px; isolation: isolate; }
.hero > :not(.blob) { max-width: var(--max); margin-left: auto; margin-right: auto; }
.hero > .lockup { max-width: 560px; }
.blob { position: absolute; z-index: -1; }
.blob circle { fill: currentColor; }
.blob-cobalt { color: var(--cobalt); width: 220px; right: -110px; top: -60px; }
.blob-orange { color: var(--orange); width: 300px; left: -230px; bottom: -200px; }
.lockup { width: 100%; height: auto; max-width: 560px; display: block; margin-top: 8px; margin-bottom: 12px; overflow: visible; }
.hero .line { margin-bottom: .4em; }
.line { font-size: clamp(2.4rem, 11vw, 4.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin: 0 0 .4em; }
.lede { font-size: 1.2rem; max-width: 30em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 14px 22px; border-radius: 999px; border: 3px solid var(--ink); transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-big { font-size: clamp(1.05rem, 5vw, 1.5rem); padding: 18px 26px; word-break: break-all; }

/* Cards */
.cards { display: grid; gap: 16px; margin-top: 24px; }
.card { position: relative; background: #fff8ee; border: 3px solid var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.card p { margin: 0; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.badge { font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge-orange { background: var(--orange); }
.badge-cobalt { background: var(--cobalt); color: var(--paper); }
.badge-ink { background: var(--ink); color: var(--paper); }
.platform { font-size: .85rem; opacity: .65; font-weight: 500; }
.card-shed { background: var(--paper-2); border-style: dashed; padding-bottom: 80px; }
.card-mate { position: absolute; width: 96px; height: auto; right: 14px; bottom: -14px; transform: rotate(-6deg); }

/* Rules */
.rules { list-style: none; counter-reset: r; padding: 0; margin: 24px auto 0; display: grid; gap: 14px; }
.rules li { counter-increment: r; position: relative; padding: 16px 16px 16px 60px; border-radius: var(--radius); background: rgba(248,236,218,.08); }
.rules li::before { content: counter(r); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: var(--ink); font-weight: 800; display: grid; place-items: center; }
.rules strong { display: block; font-size: 1.15rem; }

/* Who */
.who { display: grid; gap: 16px; margin-top: 24px; }
.who-card { background: #fff8ee; border-radius: var(--radius); padding: 22px; border: 3px solid var(--ink); }
.who-card p { margin: 0; }
.who-mate { width: 120px; height: auto; display: block; margin-bottom: 10px; }
.hello { font-weight: 800; font-size: 1.4rem; margin-top: 24px; }

/* AI */
.ai-list { list-style: none; padding: 0; margin: 24px auto 0; display: grid; gap: 14px; }
.ai-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 2px solid rgba(248,236,218,.25); border-radius: var(--radius); }
.ai-list span { font-size: 1.6rem; line-height: 1; }
.ai-list strong { display: block; color: var(--orange); font-size: 1.15rem; }

/* Orders */
.orders { text-align: left; padding-bottom: 80px; }

/* Footer */
.foot { background: var(--ink); color: var(--paper); padding: 40px var(--gutter); text-align: center; }
.foot-logo { width: 180px; height: auto; display: block; margin: 0 auto 16px; }
.foot p { margin: 0 0 .3em; }

/* Bigger screens */
@media (min-width: 720px) {
  body { font-size: 19px; }
  .section { padding: 96px 32px; }
  .hero { padding: 48px 32px 110px; }
  .blob-cobalt { width: 380px; right: -140px; top: -120px; }
  .blob-orange { width: 520px; left: -260px; bottom: -280px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .rules { grid-template-columns: 1fr 1fr; }
  .who { grid-template-columns: 1fr 1fr; }
  .ai-list { grid-template-columns: 1fr 1fr; }
  .top { padding: 14px 32px; }
}

/* Support and privacy pages */
.page { max-width: 760px; }
.page-title { font-size: clamp(2.4rem, 9vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
.page-h2 { font-size: clamp(1.5rem, 5vw, 2rem); margin-top: 1.6em; }
.page h3 { font-size: 1.25rem; margin-top: 1em; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .4em; }
.foot a { color: var(--paper); }
