/* Apex Hunt landing page. The app's own palette (ios/Apex/Theme.swift, paper theme) and type
   (Frank Ruhl Libre / Inter Tight / JetBrains Mono), so the screenshots and the page read as
   one product. Tokens on :root; dark mode mirrors the app's dark theme. */

:root {
  --paper: #F5EFE3; --paper2: #EBE2CF; --card: #FBF7EC;
  --ink: #1F1A12; --ink2: #3B3326; --ink3: #6E5A3A; --ink4: #8C7450;
  --moss: #3B4A3A; --rust: #C0492E; --line: rgba(31,26,18,.12);
  /* Field Armor's own green and gold, sampled from fieldarmorusa.com's header. */
  --fa-green: #1B301F; --fa-green-2: #243D29; --fa-gold: #DAAB5D;
  --shadow: 0 30px 60px -20px rgba(31,26,18,.35), 0 8px 18px -8px rgba(31,26,18,.25);
  --serif: "Frank Ruhl Libre", Georgia, serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14110A; --paper2: #1C1810; --card: #1C1810;
    --ink: #F5EFE3; --ink2: #D9CDB6; --ink3: #9A8A6E; --ink4: #736451;
    --moss: #5E7A5C; --line: rgba(245,239,227,.12);
    --shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 8px 18px -8px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }
/* The `hidden` attribute is only `display:none` in the UA stylesheet, so ANY author rule that
   sets display (.step is flex) silently overrides it and every step of the sign-up flow shows
   at once. This restores it everywhere. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 640px; }
.center { text-align: center; }

/* ── header ── */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent);
       backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.mark { font: 900 1.25rem/1 var(--serif); letter-spacing: .04em; white-space: nowrap; }
.mark span { font: 600 .7rem/1 var(--mono); letter-spacing: .2em; color: var(--ink3); margin-left: .35rem; }
.brand-by { font: 500 .78rem/1 var(--serif); font-style: italic; color: var(--ink3); }
/* Field Armor's lockup: green on the paper, gold on the dark theme — the same artwork either way. */
.fa-lock { height: 15px; width: auto; display: block; }
.fa-lock-gold { display: none; }
@media (prefers-color-scheme: dark) { .fa-lock-ink { display: none; } .fa-lock-gold { display: block; } }
.fa-mark { height: 20px; width: auto; display: none; }
/* On a phone the full lockup is too wide for the bar; the FA monogram carries the brand instead. */
@media (max-width: 520px) {
  .fa-lock { display: none !important; }
  .fa-mark.fa-lock-ink { display: block; }
}
@media (max-width: 520px) and (prefers-color-scheme: dark) {
  .fa-mark.fa-lock-ink { display: none; } .fa-mark.fa-lock-gold { display: block !important; }
}
.top nav { display: flex; gap: 22px; align-items: center; font-size: .92rem; }
.top nav a { text-decoration: none; color: var(--ink2); }
.top nav a:hover { color: var(--ink); }
.nav-cta { background: var(--ink); color: var(--paper) !important; padding: 8px 14px; border-radius: 10px; font-weight: 600; }
@media (max-width: 720px) { .top nav a:not(.nav-cta) { display: none; } }

/* ── type ── */
.eyebrow, .kicker { font: 600 .72rem/1 var(--mono); letter-spacing: .18em; color: var(--rust); margin: 0 0 14px; }
h1 { font: 700 clamp(2.1rem, 4.8vw, 3.6rem)/1.08 var(--serif); margin: 0 0 20px; letter-spacing: -.01em; }
h2 { font: 700 clamp(1.8rem, 3.6vw, 2.6rem)/1.12 var(--serif); margin: 0 0 14px; }
h3 { font: 700 1.6rem/1.2 var(--serif); margin: 0 0 12px; }
.lede { font-size: 1.12rem; color: var(--ink2); margin: 0 0 28px; max-width: 34rem; }
.sub { color: var(--ink2); margin: 0 auto 36px; max-width: 36rem; }
.sub.left { margin: 0 0 24px; }
.fine { font-size: .84rem; color: var(--ink3); margin: 14px 0 0; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
       border-radius: 12px; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
       border: 1px solid transparent; transition: transform .12s ease, opacity .12s ease; }
.btn:active { transform: scale(.98); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--moss); color: #F5EFE3; }
.btn-primary:hover { opacity: .92; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper2); }
.btn.block { display: flex; width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── phone frame ── */
.phone { margin: 0; border-radius: 42px; overflow: hidden; background: #0d0d0d; padding: 10px;
         outline: 1px solid rgba(255,255,255,.06); outline-offset: -2px;
         box-shadow: var(--shadow); max-width: 320px; }
.phone img { border-radius: 32px; }
.phone.small { max-width: 280px; }

/* ── hero ── */
/* Faint contour lines behind the hero — the one piece of decoration on the page, and it is a map. */
.hero { position: relative; padding: 76px 0 40px; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 78% 40%, color-mix(in srgb, var(--fa-gold) 14%, transparent), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480' viewBox='0 0 480 480'%3E%3Cg fill='none' stroke='%236E5A3A' stroke-opacity='.10' stroke-width='1.1'%3E%3Cpath d='M-20 90c60-30 120-30 180 0s120 40 180 5 110-35 160-10'/%3E%3Cpath d='M-20 140c70-35 130-25 190 5s115 35 175 0 105-30 155-5'/%3E%3Cpath d='M-20 190c65-25 125-20 185 10s120 30 180-5 100-25 155-5'/%3E%3Cpath d='M-20 250c55-40 120-45 185-10s125 45 185 5 100-30 150-10'/%3E%3Cpath d='M-20 310c70-30 135-30 195 0s115 35 170 0 110-30 155-10'/%3E%3Cpath d='M-20 370c60-25 125-30 190 0s120 40 180 10 105-25 150-10'/%3E%3Cpath d='M-20 430c65-35 130-35 190-5s115 30 175 0 110-25 155-5'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 3.9vw, 3.2rem); }
/* The app's own icon — the grouse — leads the hero, set as the icon it is on a home screen. */
.hero-brand { display: flex; align-items: center; gap: 16px; margin: 0 0 26px; }
.app-icon { width: 76px; height: 76px; flex: none; border-radius: 22.5%;
  box-shadow: 0 12px 26px -10px rgba(27,48,31,.6), 0 2px 6px rgba(27,48,31,.18); }
.hero-name { font: 900 1.55rem/1 var(--serif); letter-spacing: .06em; margin: 0 0 8px; }
.hero-brand .eyebrow { margin: 0; }
@media (max-width: 520px) { .app-icon { width: 64px; height: 64px; } .hero-name { font-size: 1.35rem; } }
.hero h1 span { color: var(--moss); }
.hero-stage { position: relative; height: 600px; }
.fan { position: absolute; top: 50%; left: 50%; width: 250px; max-width: none; transform-origin: 50% 100%; }
.fan-c { z-index: 3; width: 270px; transform: translate(-50%, -50%); }
.fan-l { z-index: 1; transform: translate(-112%, -46%) rotate(-7deg) scale(.88); }
.fan-r { z-index: 2; transform: translate(12%, -46%) rotate(7deg) scale(.88); }
.fan-l, .fan-r { filter: saturate(.92); }
@media (max-width: 1080px) { .hero-stage { height: 540px; } .fan { width: 220px; } .fan-c { width: 240px; } }
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stage { height: 520px; max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 520px) {
  .hero-stage { height: 470px; }
  .fan { width: 190px; } .fan-c { width: 210px; }
  .fan-l { transform: translate(-98%, -44%) rotate(-8deg) scale(.82); }
  .fan-r { transform: translate(-2%, -44%) rotate(8deg) scale(.82); }
}

/* The four things a hunter asks before anything else, under the fold line. */
.proof { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 40px;
  padding-top: 0; padding-bottom: 0; }
.proof li { display: flex; flex-direction: column; gap: 3px; padding: 18px 18px 4px 0; border-top: 1px solid var(--line); }
.proof li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.proof strong { font: 600 .95rem/1.3 var(--sans); }
.proof span { font-size: .85rem; color: var(--ink3); }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr 1fr; } .proof li:nth-child(3) { padding-left: 0; border-left: 0; } }

/* ── the numbers, on Field Armor green ── */
.band { background: var(--fa-green); color: #F2EAD8; padding: 72px 0; }
.band-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.band h2 { color: #F5EFE3; }
.band-copy p:not(.eyebrow) { color: #CFC5AF; margin: 0; max-width: 32rem; }
.eyebrow.gold { color: var(--fa-gold); }
.band-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0;
  background: color-mix(in srgb, var(--fa-gold) 26%, transparent); border-radius: 18px; overflow: hidden; }
.band-facts div { background: var(--fa-green-2); padding: 24px 22px; }
.band-facts dt { font: 700 2.3rem/1 var(--serif); color: var(--fa-gold); margin: 0 0 8px; }
.band-facts dd { margin: 0; font-size: .9rem; line-height: 1.45; color: #CFC5AF; }
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 420px) { .band-facts dt { font-size: 1.9rem; } .band-facts div { padding: 20px 16px; } }

/* ── features ── */
.features { padding: 64px 0; border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center;
           max-width: 900px; margin: 64px auto 0; }
.feature.flip { grid-template-columns: 1fr 300px; }
.feature.flip figure { order: 2; }
.feature p:not(.kicker) { color: var(--ink2); margin: 0; }
@media (max-width: 760px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
  .feature.flip figure { order: 0; }
  .feature figure { margin: 0 auto; max-width: 240px; }
}

/* ── paired screens: the copy, then two phones that belong together ──
   (the hunt map and the stand it opens; scout mode and the day's conditions). On a wide screen
   the copy sits beside the pair; on a phone the pair stacks under it and the two screens sit
   side by side at a size where the numbers are still readable. */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) 260px 260px; gap: 40px 28px; align-items: center;
        max-width: 1040px; margin: 88px auto 0; }
.pair.flip { grid-template-columns: 260px 260px minmax(0, 1fr); }
.pair.flip .pair-copy { order: 3; }
.pair .phone { max-width: 260px; }
.pair-copy p:not(.kicker) { color: var(--ink2); margin: 0 0 14px; }
.pair-copy p:last-child { margin-bottom: 0; }
@media (max-width: 960px) {
  .pair, .pair.flip { grid-template-columns: 1fr 1fr; margin-top: 64px; }
  .pair-copy, .pair.flip .pair-copy { grid-column: 1 / -1; order: 0; }
  .pair .phone { max-width: 100%; margin: 0 auto; }
}
@media (max-width: 480px) {
  .pair, .pair.flip { gap: 24px 12px; }
  .pair .phone { border-radius: 28px; padding: 6px; }
  .pair .phone img { border-radius: 22px; }
}

/* ── the strip: three small screens and a list, for what didn't need a section ── */
.strip { display: grid; grid-template-columns: 180px 180px 180px minmax(0, 1fr); gap: 32px 20px; align-items: center;
         max-width: 1040px; margin: 88px auto 0; }
.phone.tiny { max-width: 180px; border-radius: 30px; padding: 7px; }
.phone.tiny img { border-radius: 23px; }
.strip-copy ul { margin: 0; padding-left: 1.1rem; color: var(--ink2); }
.strip-copy li { margin: 0 0 12px; }
@media (max-width: 960px) {
  .strip { grid-template-columns: 1fr 1fr 1fr; margin-top: 64px; }
  .strip-copy { grid-column: 1 / -1; }
  .phone.tiny { max-width: 100%; margin: 0 auto; }
}

/* ── closing ── */
.closing { padding: 80px 0; border-top: 1px solid var(--line); background: var(--paper2); }
.closing-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: center; max-width: 820px; margin: 0 auto; }
.closing .phone { max-width: 220px; }
@media (max-width: 640px) { .closing-grid { grid-template-columns: 1fr; text-align: center; } .closing .phone { margin: 0 auto; } .closing .cta-row { justify-content: center; } }

/* ── pricing ── */
.pricing { padding: 72px 0; background: var(--paper2); }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto; }
@media (max-width: 720px) { .doors { grid-template-columns: 1fr; } }
.door { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; }
.price { margin: 0 0 16px; display: flex; flex-direction: column; gap: 2px; }
.price strong { font: 700 2rem/1.1 var(--serif); }
.price span { color: var(--ink3); }
.door ul { margin: 0 0 24px; padding-left: 1.1rem; color: var(--ink2); font-size: .95rem; flex: 1; }
.door li { margin: 6px 0; }

/* ── start flow ── */
.start { padding: 80px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.step { display: flex; flex-direction: column; gap: 12px; }
label { font: 600 .72rem/1 var(--mono); letter-spacing: .14em; color: var(--ink3); text-transform: uppercase; }
input { font: 400 1.05rem/1 var(--sans); padding: 0 14px; height: 52px; border-radius: 12px; border: 1px solid var(--line);
        background: var(--paper); color: var(--ink); width: 100%; }
input:focus { outline: 2px solid var(--moss); outline-offset: 1px; }
#code { font: 600 1.6rem/1 var(--mono); letter-spacing: .4em; text-align: center; }
.sent, .ok { margin: 0; color: var(--ink2); }
.ok { font-size: 1.05rem; }
.row-links { display: flex; justify-content: space-between; gap: 12px; }
.link { background: none; border: 0; padding: 4px 0; color: var(--ink2); font: 600 .9rem var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link:disabled { color: var(--ink4); text-decoration: none; cursor: default; }
.callout { border-left: 3px solid var(--rust); padding: 4px 0 4px 14px; }
.callout p { margin: 0 0 6px; color: var(--ink2); }
.error { color: #D43B2A; margin: 14px 0 0; font-size: .95rem; }

/* ── faq ── */
.faq { padding: 72px 0; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink3); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink2); margin: 10px 0 0; }

/* ── footer ── */
/* The footer is Field Armor's: its green, its gold lockup, a link home to fieldarmorusa.com. */
.foot { background: var(--fa-green); color: #CFC5AF; padding: 48px 0 28px; font-size: .88rem; }
.foot a { color: #F2EAD8; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.foot-brand img { height: 26px; width: auto; margin: 0 0 16px; }
.foot-brand p { margin: 0; max-width: 30rem; line-height: 1.55; }
.foot-brand p a { color: var(--fa-gold); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-end; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { color: var(--fa-gold); }
.foot-legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(218,171,93,.22); }
.foot-legal p { margin: 0; font: 500 .74rem/1.4 var(--mono); letter-spacing: .08em; color: #9DA692; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } .foot-nav { justify-content: flex-start; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
