/* ATM Agents of America — Landing Page V3
   Colours taken from the badge: navy, sunset red/orange, cream.
   The badge is the hero; everything else stays quiet. Mobile first. */

:root {
  --navy: #172a46;
  --navy-2: #1f3557;
  --navy-line: #34496b;
  --red: #d4352b;
  --red-deep: #a92820;
  --orange: #ef6a2b;
  --cream: #f6efe0;
  --paper: #ebe1cc;
  --ink: #1d2533;
  --ink-soft: #505a68;
  --cream-soft: #cfd6e2;

  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Red Hat Text", "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --measure: 34rem;
  --radius: 8px;

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--cream); color: var(--navy); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: .01em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 11.5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 8vw, 3rem); }
h3 { font-size: 1.35rem; margin-bottom: .25em; }

p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.1875rem; font-weight: 500; }
.kicker {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: 1.35rem; line-height: 1.2; margin-top: 1.4em;
}
.fine { font-size: .875rem; color: var(--ink-soft); }

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.section { position: relative; padding: 64px 0; isolation: isolate; }
.section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: .07;
}
.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-red { background: var(--red); color: var(--cream); }
.section-navy .fine, .section-red .fine { color: var(--cream-soft); }
.section-red .fine { color: #fbe1d6; }

.split { display: grid; gap: 36px; }
@media (min-width: 860px) {
  .section { padding: 96px 0; }
  .split { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 64px; }
  .split-reverse { grid-template-columns: .9fr 1.1fr; }
  .split-reverse > :first-child { order: 2; }
}

/* ---------- Top bar ---------- */

.topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px max(var(--gutter), calc((100% - 1080px) / 2 + var(--gutter)));
  background: var(--navy); color: var(--cream);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand span {
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.topbar-cta {
  font-weight: 700; font-size: .9375rem; text-decoration: none;
  padding: 7px 14px; border: 2px solid var(--cream); border-radius: var(--radius);
}
.topbar-cta:hover { background: var(--cream); color: var(--navy); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; max-width: 24rem; min-height: 56px;
  padding: 14px 24px;
  font-family: var(--body); font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  text-align: center; text-decoration: none;
  border-radius: var(--radius);
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 3px 0 var(--red-deep); }
.btn-red:hover { background: var(--red-deep); }
.btn-cream { background: var(--cream); color: var(--navy); box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.btn-cream:hover { background: #fff; }
.btn:active { transform: translateY(2px); box-shadow: none; }

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

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: var(--cream);
  padding: 28px 0 72px;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain); opacity: .09;
}
/* Warm sunset glow behind the badge. */
.hero-sun {
  position: absolute; z-index: -1; left: 50%; top: -40px;
  width: min(520px, 130vw); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239,106,43,.30) 0%, rgba(212,53,43,.12) 38%, transparent 66%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
/* The logo artwork is navy on white, so it sits on its own light panel. */
.hero-logo {
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  width: min(84vw, 320px);
  margin-bottom: 26px;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.hero-logo img { width: 100%; height: auto; }
.hero h1 { margin-bottom: .4em; }
.hero-lede { font-size: 1.25rem; font-weight: 700; max-width: 28rem; }
.hero-sub { color: var(--cream-soft); max-width: 30rem; }
.hero .btn { margin-top: 10px; }
.hero-note { margin-top: 14px; font-size: .9375rem; color: var(--cream-soft); }

.road {
  position: absolute; left: 0; right: 0; bottom: 26px; height: 4px; z-index: -1;
  background: repeating-linear-gradient(90deg, var(--cream) 0 36px, transparent 36px 66px);
  opacity: .28;
}

@media (min-width: 900px) {
  .hero { padding: 48px 0 110px; }
  .hero-logo { width: 440px; padding: 18px 24px; }
  .hero-sun { top: -80px; width: 760px; }
}

/* ---------- Media placeholders ---------- */

.media { margin: 0; }
.media-slot {
  position: relative; width: 100%; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.35)), var(--navy-2);
}
.media-photo { aspect-ratio: 4 / 3; }
.media-portrait { aspect-ratio: 9 / 16; max-width: 250px; margin: 0 auto; }
@media (min-width: 860px) { .media-portrait { max-width: 320px; } }
.play { width: 64px; height: 64px; border-radius: 50%; background: var(--cream); position: relative; }
.play::after {
  content: ""; position: absolute; left: 25px; top: 20px;
  border-left: 21px solid var(--navy); border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}

/* ---------- What ATMAA provides ---------- */

.provides {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; gap: 0;
}
.provides li {
  display: grid; gap: 2px;
  padding: 16px 0 16px 22px;
  border-top: 1px solid var(--navy-line);
  position: relative;
}
.provides li::before {
  content: ""; position: absolute; left: 0; top: 25px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--orange);
}
.provides strong { font-size: 1.0625rem; }
.provides span { color: var(--cream-soft); }
@media (min-width: 760px) {
  .provides { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}
@media (min-width: 1000px) {
  .provides { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- How joining works ---------- */

.steps { list-style: none; counter-reset: s; margin: 12px 0 0; padding: 0; display: grid; gap: 0; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 26px 62px;
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  background: var(--navy); color: var(--cream);
}
/* Dashed road connecting the steps. */
.steps li::after {
  content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px; width: 4px;
  background: repeating-linear-gradient(180deg, var(--red) 0 10px, transparent 10px 18px);
}
.steps li:last-child::after { display: none; }
.steps p { margin: 0; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps li { padding: 64px 0 0; }
  .steps li::before { top: 0; }
  .steps li::after { left: 54px; right: -22px; top: 20px; bottom: auto; width: auto; height: 4px;
    background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 18px); }
}

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

.faq details { border-top: 1px solid rgba(29,37,51,.18); }
.faq details:last-child { border-bottom: 1px solid rgba(29,37,51,.18); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; min-height: 56px;
  font-weight: 700; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1; color: var(--red);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 8px; }

/* ---------- Final CTA ---------- */

.final { text-align: left; }
.taglines {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--navy-line);
  font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.15;
  text-transform: uppercase; max-width: none;
}
.taglines span { display: block; margin-top: 6px; font-size: 1rem; font-weight: 500; letter-spacing: .03em; color: var(--cream-soft); }

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

.footer { background: #111a2b; color: var(--cream-soft); padding: 36px 0 120px; font-size: .9375rem; }
.footer p { max-width: none; }
.footer-social a { margin-right: 14px; font-weight: 700; color: var(--cream); }
.footer-social span { opacity: .7; }
.footer-links a { margin-right: 16px; color: var(--cream); }
.footer .fine { color: #8d97a8; }
@media (min-width: 900px) { .footer { padding-bottom: 40px; } }

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(23,42,70,.97); border-top: 1px solid var(--navy-line);
  display: flex; justify-content: center;
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Draft reviewer notes (remove body.draft before launch) ---------- */

.draft-note { display: none; }
body.draft .draft-note {
  display: inline-block; margin: 6px 0 12px; padding: 6px 10px;
  font: 700 .8125rem/1.35 var(--body); color: #3b2f00; background: #f6d66b; border-radius: 4px;
  text-transform: none; letter-spacing: 0; text-align: left;
}
.media-slot .draft-note { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; }
