/* TyreGo marketing site v2 — premium sectioned layout.
   Palette: ink #10141D · amber #FFB525 · cream #F6F1E7 · teal #3E8478 */
@font-face { font-family: 'Inter'; src: url('/brand/inter-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/brand/inter-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/brand/inter-800.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --ink: #10141D; --amber: #FFB525; --amber-deep: #E08A00; --cream: #F6F1E7;
  --teal: #3E8478; --muted: #5D6470; --line: #E7E0D2; --card: #FFFFFF;
  --green: #2FD57B; --radius: 18px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: var(--cream); color: var(--ink);
       font: 16px/1.65 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
       overflow-x: clip; }
img, svg { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Full-width bands, content constrained inside */
.band-cream { background: var(--cream); }
.band-white { background: #FFFFFF; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-map   { position: relative; background: var(--cream); overflow: hidden; }
.band-map .map-bg { position: absolute; inset: 0; background: url('/brand/map-wide.png') center / cover no-repeat; opacity: 0.16; pointer-events: none; }
.band-map > .wrap { position: relative; }
.band-ink { background: var(--ink); }

/* Nav */
nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
nav img { height: 40px; width: auto; display: block; }
nav .links { display: flex; gap: 26px; align-items: center; }
nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14.5px; }
nav a.cta { background: var(--amber); padding: 11px 20px; border-radius: 12px; }
@media (max-width: 640px) { nav .links a:not(.cta) { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 44px; align-items: center; padding: 40px 0 72px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 16px; } }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -0.6px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--amber-deep); }
.hero p.lede { color: var(--muted); font-size: 17.5px; margin: 18px 0 26px; max-width: 46ch; }
.hero .photo { width: 100%; height: auto; border-radius: 22px; display: block;
               box-shadow: 0 24px 60px rgba(16,20,29,0.18); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
a.btn { display: inline-block; background: var(--amber); color: var(--ink); font-weight: 800; font-size: 16px;
        padding: 15px 28px; border-radius: 13px; text-decoration: none; }
a.btn.ghost { background: transparent; border: 1.5px solid #D9D2C2; }
.trust-line { margin-top: 18px; color: var(--teal); font-weight: 700; font-size: 13.5px; }

/* Sections */
section { padding: 72px 0; }
.eyebrow { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.4px; margin: 10px 0 12px; text-wrap: balance; }
.sub { color: var(--muted); max-width: 60ch; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }
@media (max-width: 820px) { .grid3, .grid2 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
        box-shadow: 0 6px 18px rgba(16,20,29,0.04); }
.band-white .card { background: #FCFAF5; box-shadow: none; }
.card h3 { font-size: 17.5px; font-weight: 800; margin: 14px 0 6px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .big { font-size: 36px; font-weight: 800; letter-spacing: -0.5px; }
.card .num { width: 38px; height: 38px; border-radius: 19px; background: var(--ink); color: var(--amber);
             font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 16px; }

/* Minimal line icons */
.icon { width: 26px; height: 26px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* CTA band */
.cta-band { border-radius: 24px; padding: 48px 44px; color: var(--cream); background: var(--ink);
            display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
            box-shadow: 0 24px 60px rgba(16,20,29,0.22); }
.cta-band img.mascot { width: 150px; height: auto; }
@media (max-width: 820px) { .cta-band img.mascot { margin: 0 auto; } }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; text-align: center; } }
.cta-band h2 { color: #FFF; margin-top: 0; }
.cta-band p { color: #C7CCD9; max-width: 52ch; }
.cta-band a.btn { justify-self: end; }
@media (max-width: 820px) { .cta-band a.btn { justify-self: center; } }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-top: 10px; }
details summary { font-weight: 800; font-size: 15.5px; cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

footer { padding: 40px 0 60px; color: var(--muted); font-size: 13px; }
footer .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
footer a { color: var(--teal); text-decoration: none; font-weight: 700; }

/* Phone mockups */
.phone-stack { position: relative; height: 600px; }
.phone-stack img { position: absolute; width: 62%; height: auto; }
.phone-stack .ps-a { left: 2%; top: 30px; transform: rotate(-5deg); z-index: 2; }
.phone-stack .ps-b { right: 4%; top: 0; transform: rotate(4deg); }
@media (max-width: 860px) {
  .phone-stack { height: auto; display: flex; justify-content: center; padding: 8px 0 16px; }
  .phone-stack img { position: static; width: 70%; max-width: 340px; }
  .phone-stack .ps-b { display: none; }
  .phone-stack .ps-a { transform: none; }
}

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 38px; }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; text-align: center; }
.gallery img { width: 100%; max-width: 280px; height: auto; }
.gallery figcaption { margin-top: 16px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.gallery figcaption strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 3px; }

/* Pre-launch signup form */
form.prelaunch { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
/* 16px minimum is load-bearing: iOS Safari force-zooms the whole page when a
   focused input's text is under 16px, and leaves it zoomed — the "everything's
   huge / boxes outside the band" bug. Never shrink these. */
form.prelaunch input { border: none; border-radius: 12px; padding: 15px 16px; font: 16px 'Inter', sans-serif;
                       background: #FFFFFF; color: var(--ink); min-width: 0; width: 100%; }
form.prelaunch input[name="email"] { flex: 2 1 220px; }
form.prelaunch input[name="postcode"] { flex: 1 1 110px; text-transform: uppercase; }
form.prelaunch button { flex: 1 1 auto; border: none; cursor: pointer; background: var(--amber); color: var(--ink);
                        font: 800 16px 'Inter', sans-serif; padding: 15px 24px; border-radius: 12px; }
.pl-msg { margin-top: 12px; font-weight: 700; color: var(--amber); font-size: 15px; width: 100%; }

/* Small screens: the CTA band breathes less and the form stacks full-width,
   so nothing ever pokes outside the dark card. */
@media (max-width: 640px) {
  .cta-band { padding: 32px 22px; }
  form.prelaunch input, form.prelaunch button { flex: 1 1 100%; }
  section { padding: 56px 0; }
}

/* Phones held landscape are wide but short — use the single-column hero
   rather than the cramped desktop two-up. */
@media (max-width: 1000px) and (max-height: 520px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .phone-stack { height: auto; display: flex; justify-content: center; padding: 8px 0 16px; }
  .phone-stack img { position: static; width: 70%; max-width: 340px; }
  .phone-stack .ps-b { display: none; }
  .phone-stack .ps-a { transform: none; }
}

/* ---- Motion (premium, restrained) ----
   Gated on html.motion (set by inline script only when JS runs and the user
   hasn't asked for reduced motion) so no-JS visitors and crawlers see a
   fully-visible page. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes tg-fade-down { from { opacity: 0; translate: 0 -14px; } to { opacity: 1; translate: 0 0; } }
  @keyframes tg-rise      { from { opacity: 0; translate: 0 26px; }  to { opacity: 1; translate: 0 0; } }
  @keyframes tg-phone     { from { opacity: 0; translate: 0 56px; }  to { opacity: 1; translate: 0 0; } }
  @keyframes tg-bob       { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

  /* Hero load sequence — one orchestrated moment, then the page sits still */
  .motion nav              { animation: tg-fade-down .6s cubic-bezier(.16,1,.3,1) both; }
  .motion .hero h1         { animation: tg-rise .75s cubic-bezier(.16,1,.3,1) .08s both; }
  .motion .hero .lede      { animation: tg-rise .75s cubic-bezier(.16,1,.3,1) .18s both; }
  .motion .hero .cta-row   { animation: tg-rise .75s cubic-bezier(.16,1,.3,1) .28s both; }
  .motion .hero .trust-line{ animation: tg-rise .75s cubic-bezier(.16,1,.3,1) .38s both; }
  .motion .phone-stack .ps-b { animation: tg-phone .9s cubic-bezier(.16,1,.3,1) .2s both; }
  .motion .phone-stack .ps-a { animation: tg-phone .9s cubic-bezier(.16,1,.3,1) .38s both; }

  /* Scroll reveals — motion.js tags targets with .rv and staggers via --rvd */
  .motion .rv { opacity: 0; translate: 0 28px;
                transition: opacity .7s cubic-bezier(.16,1,.3,1) var(--rvd, 0ms),
                            translate .7s cubic-bezier(.16,1,.3,1) var(--rvd, 0ms); }
  .motion .rv.in { opacity: 1; translate: 0 0; }
  .motion .cta-band.rv { scale: .97;
                transition: opacity .8s cubic-bezier(.16,1,.3,1), translate .8s cubic-bezier(.16,1,.3,1),
                            scale .8s cubic-bezier(.16,1,.3,1); }
  .motion .cta-band.rv.in { scale: 1; }

  /* Ambient: the van gently idles in the CTA band */
  .motion .cta-band img.mascot { animation: tg-bob 5.5s ease-in-out 1.5s infinite; }

  /* Hover micro-interactions */
  .card { transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease; }
  .card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(16,20,29,0.10); }
  a.btn, form.prelaunch button, nav a.cta { transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, filter .25s ease; }
  a.btn:hover, form.prelaunch button:hover, nav a.cta:hover { transform: translateY(-2px); filter: brightness(1.03);
                box-shadow: 0 10px 26px rgba(224,138,0,0.28); }
  a.btn.ghost:hover { box-shadow: 0 10px 24px rgba(16,20,29,0.08); filter: none; }
  .gallery img { transition: transform .4s cubic-bezier(.16,1,.3,1); }
  .gallery figure:hover img { transform: translateY(-6px); }
}

/* Founding-50 offer */
.offer-pill { display: inline-block; background: var(--ink); color: var(--cream); font-weight: 800;
              font-size: 13px; letter-spacing: 1.5px; padding: 8px 16px; border-radius: 999px; margin-bottom: 18px; }
.offer-pill s { color: #8A93A5; }
.offer-pill strong { color: var(--amber); }
.card .big s { color: #B3BAC6; font-size: 22px; margin-right: 4px; }

/* Founding Fitter badge in the CTA band */
.cta-band img.badge { width: 170px; height: auto; justify-self: end; align-self: center; }
@media (max-width: 820px) { .cta-band img.badge { margin: 8px auto 0; justify-self: center; } }
.cta-band--badge { grid-template-columns: 1fr auto; }
