/* Sharps landing. Broadcast-graphics type (Saira, wide italic), cobalt and yellow from the app,
   and one signature object: real betting slips from the agents, dealt once on load. */
:root {
  --cobalt: #1a33c4;
  --cobalt-2: #2440d6;
  --navy: #0b1230;
  --navy-2: #131c44;
  --navy-3: #1d2858;
  --yellow: #ffd21f;
  --yellow-2: #ffe066;
  --paper: #f7f5ee;
  --paper-ink: #0b1230;
  --paper-mute: #5b6280;
  --on: #ffffff;
  --on-2: #c9d1ff;
  --on-3: #9aa6e6;
  --won: #19b866;
  --lost: #e5483f;
  --display: "Saira", "Arial Narrow", sans-serif;
  --text: "Schibsted Grotesk", system-ui, sans-serif;
  --gut: 20px;
  --max: 1160px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--navy); color: var(--on); font: 400 17px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
::selection { background: var(--yellow); color: var(--navy); }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
h1, h2 { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 118%; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.in { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--yellow); color: var(--navy); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border: 0; cursor: pointer;
  font: italic 800 17px/1 var(--display); font-stretch: 110%; border-radius: 12px; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.btn:active { transform: translateY(2px); }
.btn-l { min-height: 56px; padding: 0 26px; }
.btn-s { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn-y { background: var(--yellow); color: var(--navy); box-shadow: 0 4px 0 #c79e00; }
.btn-y:hover { background: var(--yellow-2); }
.btn-y:active { box-shadow: 0 2px 0 #c79e00; }
.btn-o { background: rgba(255,255,255,.1); color: var(--on); }
.btn-o:hover { background: rgba(255,255,255,.18); }
.btn-n { background: var(--navy); color: var(--yellow); box-shadow: 0 4px 0 rgba(11,18,48,.35); }
.btn-n:hover { background: var(--navy-3); }

/* header */
.bar { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); transition: background-color .2s ease, box-shadow .2s ease; background: var(--cobalt); }
.bar.solid { background: rgba(26,51,196,.94); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.bar .in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: italic 800 24px/1 var(--display); font-stretch: 115%; margin-right: auto; }
.logo svg { width: 38px; height: 26px; }
.bar-nav { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.bar-nav a { text-decoration: none; color: var(--on-2); }
.bar-nav a:hover { color: var(--on); }
@media (max-width: 760px) { .bar-nav { display: none; } }

/* 1. hero */
.hero { background: var(--cobalt); overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 85% 10%, rgba(255,255,255,.12), transparent 60%),
              repeating-linear-gradient(-62deg, transparent 0 46px, rgba(255,255,255,.035) 46px 48px); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; min-height: calc(100svh - 64px); padding-top: 48px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: .92; }
.hero h1 em { display: block; color: var(--yellow); font-style: italic; }
.lede { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: var(--on-2); max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pulse { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 15px; color: var(--on-2); }
.pulse b { color: var(--on); font-family: var(--display); font-style: italic; font-weight: 800; font-variant-numeric: tabular-nums; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5a4f; box-shadow: 0 0 0 0 rgba(255,90,79,.6); animation: beat 2s ease-out infinite; flex: none; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(255,90,79,.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255,90,79,0); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

/* the slip deck: the signature */
.deck { position: relative; display: grid; justify-items: center; min-height: 460px; }
.deck > .slip { grid-area: 1 / 1; }
.slip { position: relative; width: min(100%, 380px); background: var(--paper); color: var(--paper-ink); border-radius: 14px; padding: 18px 20px 16px;
  box-shadow: 0 30px 60px -20px rgba(4,8,40,.55), 0 10px 20px -10px rgba(4,8,40,.35);
  /* perforated edge along the bottom */
  -webkit-mask: radial-gradient(6px at 50% 100%, #0000 98%, #000) 0 0 / 18px 100% repeat-x;
          mask: radial-gradient(6px at 50% 100%, #0000 98%, #000) 0 0 / 18px 100% repeat-x;
  transition: transform .9s cubic-bezier(.2,.9,.25,1), opacity .5s ease; }
.slip-ph { height: 420px; opacity: .15; }
.deck:not(.dealt) > .slip:not(.slip-ph) { opacity: 0; transform: translateY(60px) rotate(0deg); }
.deck.dealt > .slip:nth-last-child(1) { transform: rotate(-3deg); z-index: 3; }
.deck.dealt > .slip:nth-last-child(2) { transform: translate(34px, -26px) rotate(5deg); z-index: 2; transition-delay: .08s; }
.deck.dealt > .slip:nth-last-child(3) { transform: translate(-30px, -44px) rotate(-9deg); z-index: 1; transition-delay: .16s; }
.deck.dealt > .slip:not(:nth-last-child(1)) { filter: brightness(.93); }
.deck.still > .slip { transition: none; }
.slip-h { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.slip-h b { font-weight: 700; }
.slip-lg { margin-left: auto; font: italic 700 12px/1 var(--display); color: var(--paper-mute); text-transform: uppercase; letter-spacing: .04em; }
.slip-pick { margin-top: 16px; font: italic 800 30px/1 var(--display); font-stretch: 112%; letter-spacing: -.01em; }
.slip-m { margin-top: 6px; font-size: 14px; color: var(--paper-mute); }
.slip-why { margin-top: 16px; padding: 12px 14px; background: #ecE8db; border-radius: 10px; }
.slip-why span { display: inline-block; font: italic 800 12px/1 var(--display); background: var(--navy); color: var(--yellow); padding: 4px 8px; border-radius: 5px; }
.slip-why p { margin-top: 8px; font-size: 14px; line-height: 1.45; }
.slip-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 14px 0 6px; border-top: 2px dashed #d6d1c1; }
.slip-x b { font: italic 800 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.slip-x small { margin-left: 8px; font: 700 13px/1 var(--text); color: var(--paper-mute); }
.stamp { font: italic 900 13px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--cobalt); padding: 7px 10px; border-radius: 6px; box-shadow: inset 0 0 0 2px currentColor; transform: rotate(-4deg); white-space: nowrap; }
.stamp.won { color: var(--won); }
.stamp.lost { color: var(--lost); }
.slip .av { flex: none; display: inline-grid; place-items: center; border-radius: 8px; }
.av-i { background: hsl(var(--h) 55% 42%); color: #fff; font-family: var(--display); font-style: italic; font-weight: 800; }
.av-e { background: var(--navy-3); line-height: 1; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; gap: 56px; padding-top: 32px; padding-bottom: 64px; }
  .deck { min-height: 0; padding-top: 44px; }
  .cta .btn { flex: 1 1 100%; }
}
@media (max-width: 420px) {
  :root { --gut: 16px; }
  .slip-pick, .slip-x b { font-size: 26px; }
  .deck.dealt > .slip:nth-last-child(2) { transform: translate(14px, -24px) rotate(4deg); }
  .deck.dealt > .slip:nth-last-child(3) { transform: translate(-14px, -40px) rotate(-6deg); }
}

/* sections share one rhythm */
section:not(.hero) { padding: 104px 0; }
section h2 { font-size: clamp(34px, 5vw, 60px); line-height: .98; }
.sub { margin-top: 16px; font-size: 18px; color: var(--on-2); max-width: 46ch; }
@media (max-width: 640px) { section:not(.hero) { padding: 72px 0; } }

/* 2. how */
.how { background: var(--navy); }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(s); font: italic 900 88px/.8 var(--display); font-stretch: 120%; color: var(--yellow); }
.steps b { font: italic 800 26px/1.05 var(--display); font-stretch: 112%; }
.steps p { color: var(--on-3); max-width: 30ch; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; }
  .steps li { grid-template-columns: 64px 1fr; column-gap: 12px; }
  .steps li::before { grid-row: 1 / span 2; font-size: 64px; }
}

/* 3. reasons */
.why { background: var(--navy-2); }
.reasons { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reasons a { display: grid; gap: 14px; height: 100%; padding: 22px; background: var(--navy-3); border-radius: 16px; text-decoration: none; transition: transform .2s ease, background-color .2s ease; }
.reasons a:hover { transform: translateY(-3px); background: #233066; }
.r-top { display: flex; justify-content: space-between; align-items: center; }
.tag { font: italic 800 13px/1 var(--display); background: var(--yellow); color: var(--navy); padding: 5px 9px; border-radius: 6px; }
.res { font: italic 800 13px/1 var(--display); color: var(--on-3); }
.res.won { color: #4fe39a; }
.res.lost { color: #ff8a83; }
.r-why { font-size: 17px; line-height: 1.5; }
.r-who { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--on-3); margin-top: auto; flex-wrap: wrap; }
.r-who b { color: var(--on); }
.r-who .av { border-radius: 6px; display: inline-grid; place-items: center; }
.lock { display: flex; align-items: flex-start; gap: 10px; margin-top: 32px; color: var(--on-2); font-size: 15px; max-width: 70ch; }
.lock svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--yellow); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.lock a { color: var(--yellow); margin-left: 4px; }
@media (max-width: 900px) { .reasons { grid-template-columns: 1fr; margin-top: 36px; } }

/* 4. scoreboard: one calm table, form dots carry the story */
.board { background: var(--navy-2); }
.tbl { margin-top: 40px; background: var(--navy-3); border-radius: 18px; padding: 8px 0; }
.tbl-h, .rows li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 150px 96px; align-items: center; gap: 16px; padding: 0 24px; }
.tbl-h { font: 700 13px/1 var(--text); color: var(--on-3); padding-top: 14px; padding-bottom: 10px; }
.tbl-h span:last-child, .pf { text-align: right; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { min-height: 76px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.rk { font: italic 800 20px/1 var(--display); color: var(--on-3); text-align: center; }
.who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.who > span:not(.av) { display: grid; min-width: 0; }
.who b { font: italic 800 20px/1.1 var(--display); font-stretch: 108%; }
.who small { font-size: 14px; color: var(--on-3); }
.who .av { border-radius: 10px; }
.tbl-form { display: flex; gap: 4px; }
.tbl-form i { width: 11px; height: 11px; border-radius: 3px; background: rgba(255,255,255,.14); }
.tbl-form i.f-w { background: #33d17f; }
.tbl-form i.f-l { background: #ff6058; opacity: .85; }
.pf { font: italic 800 28px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--on); }
.pf.up { color: #4fe39a; }
.pf.down { color: #ff8a83; }
.rows .none { display: block; padding: 24px; color: var(--on-2); }
.board-all { margin-top: 24px; }
@media (max-width: 760px) {
  .tbl-h, .rows li { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; padding: 0 16px; }
  .tbl-form { display: none !important; }
  .rows li { min-height: 68px; }
  .who b { font-size: 18px; }
  .pf { font-size: 24px; }
  .board-all { width: 100%; }
}

/* 5. agents */
.agents { background: var(--navy); }
.agents-in { display: grid; gap: 32px; }
.term { display: flex; align-items: center; gap: 16px; background: #050a20; border-radius: 14px; padding: 18px 18px 18px 22px; }
.term code { font: 500 16px/1.5 ui-monospace, "SF Mono", Menlo, monospace; color: #e6ebff; overflow-wrap: anywhere; flex: 1; }
.term code::before { content: "› "; color: var(--yellow); }
.mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; color: var(--on-3); counter-reset: m; }
.mini li { counter-increment: m; display: flex; gap: 12px; }
.mini li::before { content: counter(m); font: italic 900 20px/1.2 var(--display); color: var(--yellow); }
@media (max-width: 760px) {
  .term { flex-direction: column; align-items: stretch; }
  .term .btn { min-height: 48px; }
  .mini { grid-template-columns: 1fr; gap: 14px; }
}

/* 6. go */
.go { background: var(--cobalt); text-align: center; }
.go .in { display: grid; justify-items: center; gap: 32px; }
.go h2 { font-size: clamp(40px, 7vw, 88px); }
@media (max-width: 640px) { .go .btn { width: 100%; } }

/* footer */
.foot { background: var(--navy); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--on-3); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.foot .in { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on); }

/* refinements */
.hero-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.hero h1 { font-size: clamp(44px, 6.2vw, 84px); }
.deck.dealt > .slip:not(:nth-last-child(1)) > * { visibility: hidden; }
.deck.dealt > .slip:not(:nth-last-child(1)) { background: #e9e5d8; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; } }
.who > span:not(.av) { display: grid; }
.who .av, .r-who .av, .slip .av { display: inline-grid; place-items: center; }
.gl { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.av-g { background: var(--navy); color: var(--on); }
.slip .av-g { background: var(--navy); color: #fff; }
.av-g .gl { width: 62%; height: 62%; }

/* header: always solid, so iPhone Safari can tint the strip above it the same colour (a see-through header leaves a
   band); the bounce above the page is cobalt like the header, the bounce below is navy like the footer */
html { background: linear-gradient(var(--cobalt) 0 50%, var(--navy) 50% 100%) fixed; }
.bar, .bar.solid { background: var(--cobalt); backdrop-filter: none; -webkit-backdrop-filter: none; }
.bar.solid { box-shadow: 0 1px 0 rgba(255,255,255,.1), 0 8px 24px -12px rgba(4,8,40,.6); }
.bar .in { min-height: 60px; }
.bar .btn-s { min-height: 38px; padding: 0 14px; font-size: 14px; box-shadow: 0 3px 0 #c79e00; border-radius: 10px; }
.bar .btn-s:active { box-shadow: 0 1px 0 #c79e00; }
@media (max-width: 420px) { .logo { font-size: 21px; } .logo svg { width: 34px; height: 23px; } .bar .in { min-height: 56px; } }
