/* ATLAS REACH — atlasreach.ai. The calm white room of the Marbella keynote: ink type, one green, Inter, generous air.
   The examples bring the colour and the movement; the page itself stays still. Mobile first. */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-opsz.woff2') format('woff2-variations'), url('/fonts/inter-latin-opsz.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --ink: #0E2D15;          /* headlines */
  --text: #2C4733;         /* body, 10.2:1 on white */
  --muted: #557461;        /* captions, 5.2:1 */
  --green: #21A738;        /* the signal: lines, numerals, accents — never small text */
  --green-text: #1B7F2E;   /* buttons and green text, 5.1:1 */
  --line: #DCE8DE;
  --tint: #F4F8F4;
  --paper: #FFFFFF;
  --shadow: 0 24px 60px rgba(14, 45, 21, .14), 0 4px 14px rgba(14, 45, 21, .06);
  --out: cubic-bezier(.2, .8, .2, 1);
  --gutter: 20px;
  --max: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 17px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-text); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* header */
/* solid, not frosted: a blur over the page is recomputed on every frame of a video scrolling beneath it */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .97); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top[data-scrolled] { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mark { display: inline-flex; gap: .28em; align-items: baseline; font-weight: 750; font-size: 20px; letter-spacing: -.025em; color: var(--ink); text-decoration: none; }
.mark span { color: var(--green-text); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--green-text); color: #fff; font-weight: 650; font-size: 17px; letter-spacing: -.005em; text-decoration: none;
  box-shadow: 0 8px 22px rgba(27, 127, 46, .22); transition: transform .2s var(--out), box-shadow .2s var(--out), background .2s; }
button.btn { border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { background: #166A26; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(27, 127, 46, .28); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; box-shadow: none; }

/* type */
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(42px, 6vw + 18px, 84px); line-height: 1.02; letter-spacing: -.045em; }
h2 { font-size: clamp(32px, 3.4vw + 18px, 58px); line-height: 1.05; letter-spacing: -.04em; }
h3 { font-size: clamp(26px, 2vw + 16px, 40px); line-height: 1.12; letter-spacing: -.03em; }
.lead { font-size: clamp(19px, .6vw + 16px, 23px); line-height: 1.5; color: var(--text); margin: 22px 0 0; max-width: 34em; }
.lead-2 { margin-top: 10px; color: var(--muted); }
.body { font-size: clamp(18px, .4vw + 16px, 21px); margin: 18px 0 0; max-width: 36em; }
.cap { margin-top: 16px; font-size: 14px; line-height: 1.4; color: var(--muted); letter-spacing: .01em; }

/* sections */
.sec { padding: 72px 0; }
.sec-tint { background: var(--tint); }
.sec-head { max-width: 760px; }

/* 1 · the gain and the product: the copy, and one match in one brand in three uses — the site card largest, the
   email block and the display banner beside it. On a phone the three stand under the copy. */
.hero { padding-top: 40px; }
.sub { margin: 14px 0 0; font-size: clamp(22px, 1.4vw + 16px, 32px); line-height: 1.2; letter-spacing: -.02em; font-weight: 600; color: var(--green-text); }
.hero-copy .lead { margin-top: 26px; }
.hero-copy .btn { margin-top: 30px; }
.hero-set { margin: 52px 0 0; }
.set { display: grid; grid-template-columns: 1fr; grid-template-areas: "card" "mail" "ad"; gap: 18px; align-items: start; }
.set-item { position: relative; display: grid; gap: 8px; align-content: start; }
.set-card { grid-area: card; }
.set-mail { grid-area: mail; }
.set-ad { grid-area: ad; justify-self: center; width: min(100%, 220px); }
@media (min-width: 560px) { .set { grid-template-columns: minmax(0, 1fr) 200px; grid-template-areas: "card ad" "mail ad"; align-items: center; } .set-ad { width: 200px; justify-self: end; } }
.set-tag { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.set-item img { width: 100%; height: auto; border-radius: 14px; background: #0b1220; box-shadow: 0 10px 30px rgba(14, 45, 21, .12); }
.set-card img { border-radius: 18px; box-shadow: var(--shadow); }
.set-note { font-size: 13px; line-height: 1.35; color: var(--muted); }
.cap-strong { color: var(--ink); font-weight: 650; font-size: 15px; }

/* 2 · different interests: two examples side by side — the same brand and placement, a different interest and
   product — with one switch between casino and sportsbook */
.interests { margin: 40px 0 0; }
.seg { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.seg button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font: 600 15px/1 'Inter', system-ui, sans-serif; cursor: pointer; transition: background .25s, color .25s; }
.seg button[aria-selected="true"] { background: var(--ink); color: #fff; }
.pair { display: grid; gap: 18px; margin-top: 22px; }
.pair[hidden] { display: none; }
.pair-item { display: grid; gap: 10px; align-content: start; }
.pair-item img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 30px rgba(14, 45, 21, .12); }
.rot-tag { justify-self: start; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--green); color: var(--green-text); font-size: 13px; font-weight: 650; line-height: 1.1; }
.body-2 { margin-top: 12px; color: var(--muted); }

/* 3 · two brands, two languages: a small table with the same match and product in every cell */
.grid4 { margin: 44px 0 0; }
.g4 { display: grid; gap: 12px; }
.g4-head, .g4-row { display: grid; grid-template-columns: 72px 1fr 1fr; gap: 12px; align-items: start; }
.g4-head span { font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; }
.g4-brand { padding-top: 8px; font-size: 13px; font-weight: 650; letter-spacing: .02em; color: var(--ink); line-height: 1.25; }
.g4 img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(14, 45, 21, .12); }
/* the formats: one video in view, the rest on request; the channels named beside it */
.formats { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }
.formats-head h3 { font-size: clamp(24px, 1.6vw + 14px, 34px); }
.body-sm { margin: 10px 0 0; max-width: 34em; font-size: 17px; color: var(--text); }
.formats-lead { display: grid; gap: 32px; margin-top: 28px; }
.fmt { margin: 0; display: grid; gap: 10px; align-content: start; }
.fmt .cap { margin-top: 0; }
.fmt-video { justify-items: center; }
.fmt-video .phone { width: min(70vw, 300px); }
.fmt-video .cap { text-align: center; }
.phone { position: relative; aspect-ratio: 9 / 16; border-radius: 44px; padding: 9px; background: var(--ink); box-shadow: var(--shadow); }
.phone-media { width: 100%; height: 100%; object-fit: cover; border-radius: 35px; background: #0b1220; }
.phone-sm { width: min(64vw, 260px); margin: 0 auto; border-radius: 38px; padding: 8px; }
.phone-sm .phone-media { border-radius: 30px; }
.sound { position: absolute; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(14, 22, 30, .72); color: #fff; cursor: pointer; }
.sound svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound .spk { fill: currentColor; }
.sound .on { display: none; }
.sound[aria-pressed="true"] .on { display: inline; }
.sound[aria-pressed="true"] .off { display: none; }
.ch-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.ch-chips li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; }
.btn-ghost { margin-top: 22px; background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--tint); border-color: var(--green); box-shadow: none; }
.formats-grid { display: grid; gap: 24px; margin-top: 32px; }
.formats-grid[hidden] { display: none; }
.fmt-media { width: 100%; aspect-ratio: 1076 / 747; object-fit: cover; object-position: top; border-radius: 14px; background: #0b1220; box-shadow: 0 10px 30px rgba(14, 45, 21, .12); }
.fmt-media.fmt-tv { aspect-ratio: 16 / 9; }
.fmt-phone { justify-items: center; }
.fmt-phone .cap { text-align: center; }

/* 4 · delivery and contact: three plain points, then the invitation */
.sec-close { padding-bottom: 88px; }
.points { display: grid; gap: 28px; margin-top: 40px; }
.point h3 { font-size: clamp(21px, 1vw + 15px, 26px); }
.point p { margin: 10px 0 0; font-size: 17px; color: var(--text); max-width: 30em; }
.contact { margin: 56px 0 0; padding: 36px 24px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); }
.contact h3 { max-width: 18em; }
.contact-text { margin: 14px 0 0; font-size: 18px; color: var(--text); max-width: 32em; }
.contact-act { margin-top: 24px; }
.contact-act p { margin: 0; }
.mail { margin: 14px 0 0 !important; font-size: 17px; }
.mail a { color: var(--ink); font-weight: 600; text-decoration-color: var(--green); text-decoration-thickness: 2px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; font-size: 14px; color: var(--muted); }
.foot p { margin: 0; max-width: 46em; }
.foot-line { margin-top: 12px !important; }
.foot-line span { color: var(--ink); font-weight: 650; }
.foot a { color: var(--muted); }

/* entrances: rise and fade, once, in reading order (the keynote's easing) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--out), transform .6s var(--out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* wider screens */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .sec { padding: 104px 0; }
  .pair { grid-template-columns: 1fr 1fr; gap: 24px; }
  .g4-head, .g4-row { grid-template-columns: 110px 1fr 1fr; gap: 20px; }
  .g4 { max-width: 760px; }
  .g4-brand { font-size: 15px; }
  .formats-lead { grid-template-columns: 300px minmax(0, 1fr); align-items: center; gap: 56px; }
  .formats-grid { grid-template-columns: 1fr 1fr; }
  .points { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .contact { padding: 48px 48px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: 56px; align-items: center; }
  .contact-act { margin-top: 0; justify-self: start; }
}
@media (min-width: 1000px) {
  :root { --gutter: 40px; }
  .sec { padding: 128px 0; }
  .hero { padding-top: 72px; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
  .hero-set { margin: 0; }
  .set { grid-template-columns: minmax(0, 1fr) 200px; grid-template-areas: "card ad" "mail ad"; gap: 18px; align-items: center; }
  .set-ad { width: 200px; justify-self: end; align-self: center; }
  .formats-grid { grid-template-columns: repeat(3, 1fr); }
  .fmt-phone .phone-sm { width: 220px; }
}

/* calm for those who ask for it: no movement, posters instead of autoplay */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .depth-push { opacity: 1; transform: none; transition: none; }
  .chain-steps li { transition: none; }
}

/* Optional analytics controls */
.analytics-consent[hidden], .analytics-preferences[hidden] { display: none; }
.analytics-consent { position: fixed; left: 20px; bottom: 20px; z-index: 100; display: flex; align-items: center; gap: 18px; width: min(720px, calc(100% - 40px)); margin: 0; padding: 12px 16px; background: #f8faf8; color: #26332b; font-size: 14px; line-height: 1.4; border: 1px solid #cbd3cd; border-radius: 8px; box-shadow: 0 8px 28px #0003; }
.analytics-consent p { flex: 1; margin: 0; }
.analytics-consent a { color: #435c4b; text-decoration: underline; text-underline-offset: 3px; }
.analytics-consent > div { display: flex; flex-shrink: 0; gap: 8px; }
.analytics-consent .btn { padding: 0 16px; font-size: 14px; }
.analytics-consent .btn:hover { transform: none; box-shadow: none; }
.analytics-consent :focus-visible { outline: 2px solid #26332b; outline-offset: 3px; }
.analytics-consent [data-analytics-accept] { background: #dcebf8; color: #244762; }
.analytics-consent [data-analytics-accept]:hover { background: #cadff1; }
.analytics-consent [data-analytics-reject] { background: #eef0ee; color: #344039; }
.analytics-consent [data-analytics-reject]:hover { background: #e1e5e1; box-shadow: none; }
.analytics-preferences { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
@media (max-width: 540px) {
  .analytics-consent { left: 12px; bottom: 12px; width: calc(100% - 24px); flex-wrap: wrap; gap: 10px; }
  .analytics-consent p { flex-basis: 100%; }
}
