/* Forgotten Routes landing page. Tokens mirror the app (apps/mobile/lib/core/theme). */
:root {
  --ink: #14110D;
  --surface: #1E1A15;
  --elev: #2A241D;
  --page: #3C342C;
  --text: #EDE6D9;
  --text2: #D6CEBF;
  --muted: #A79E8E;
  --gold: #D9A95A;
  --gold-deep: #B48339;
  --gold-soft: rgba(217, 169, 90, 0.16);
  --sage: #9FC29A;
  --blaze: #7FC46E;
  --rival: #78A5CD;
  --hair: rgba(236, 228, 214, 0.12);
  --display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --ui: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  color: var(--text);
  background: var(--ink);
  font: 400 clamp(1rem, 0.95rem + 0.25vw, 1.0625rem)/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.02; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Atmosphere: a hex field that breathes, a gold glow, and grain. */
.atmos {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 78% 12%, rgba(217, 169, 90, 0.18), transparent 70%),
    radial-gradient(50vw 60vh at 0% 100%, rgba(120, 165, 205, 0.08), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16zM28 64v33M0 16v0' fill='none' stroke='%23D9A95A' stroke-opacity='.09' stroke-width='1'/%3E%3C/svg%3E"),
    var(--ink);
  -webkit-mask: radial-gradient(120% 90% at 70% 20%, #000 35%, transparent 100%);
          mask: radial-gradient(120% 90% at 70% 20%, #000 35%, transparent 100%);
  animation: drift 40s linear infinite;
}
.atmos::after {
  content: ""; position: absolute; inset: 0; opacity: 0.08; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift { to { background-position: 0 0, 0 0, 56px 97px, 0 0; } }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem var(--gutter);
  background: linear-gradient(to bottom, rgba(20, 17, 13, 0.92), rgba(20, 17, 13, 0.6));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.brand img { width: clamp(130px, 14vw, 180px); }
.top nav { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.8rem); font-weight: 600; font-size: 0.92rem; }
.top nav a { text-decoration: none; color: var(--text2); transition: color 150ms; }
.top nav a:hover { color: var(--gold); }
.nav-cta { padding: 0.5rem 1rem; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold) !important; }
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; }
@media (max-width: 720px) { .top nav a:not(.nav-cta) { display: none; } }

/* Shared */
main > section { padding: var(--section) var(--gutter) 0; max-width: 1240px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font: 800 0.72rem/1 var(--ui); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.1rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(159, 194, 154, 0.18); }
h2 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.6rem); max-width: 16ch; }
section p { color: var(--text2); max-width: 58ch; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100svh - 70px); padding-top: clamp(2.5rem, 6vw, 5rem) !important;
}
.hero h1 { font-size: clamp(3.2rem, 1.2rem + 6.4vw, 7.4rem); }
.lede { margin-top: 1.6rem; font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem); color: var(--text2); max-width: 46ch; }
.stores { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.store {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1.2rem 0.7rem 1rem; min-height: 58px;
  border: 1px solid var(--hair); border-radius: 16px; background: rgba(30, 26, 21, 0.85);
  color: var(--text); font-weight: 700; font-size: 1.12rem; line-height: 1.05;
  cursor: default; position: relative;
}
.store svg { width: 26px; height: 26px; fill: var(--text); }
.store small { display: block; font: 600 0.68rem/1.3 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.fine { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }

.hero-phone { position: relative; margin: 0; justify-self: center; width: min(100%, 380px); perspective: 1400px; }
.hero-phone img {
  border-radius: 34px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--hair);
  transform: rotateY(-14deg) rotateX(4deg) rotateZ(1.5deg); transform-origin: 60% 50%;
  animation: rise 1.4s var(--ease) both;
}
.glow { position: absolute; inset: 10% -10% -5%; background: radial-gradient(closest-side, rgba(217, 169, 90, 0.35), transparent); filter: blur(30px); z-index: -1; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 0.95rem; border-radius: 14px; font-size: 0.82rem; font-weight: 600;
  background: rgba(30, 26, 21, 0.92); border: 1px solid var(--hair); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}
.chip b { color: var(--gold); font-size: 1rem; }
.chip-a { top: 22%; left: -18%; }
.chip-b { bottom: 18%; right: -14%; animation-delay: -3s; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--blaze); box-shadow: 0 0 0 4px rgba(127, 196, 110, 0.2); }
@keyframes rise { from { opacity: 0; transform: translateY(40px) rotateY(-24deg) rotateX(8deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }

/* How it rolls */
.ways { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1rem; counter-reset: none; }
.way {
  position: relative; padding: 2rem 1.8rem 2.2rem; border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, var(--elev), var(--surface)); border: 1px solid var(--hair);
  transition: transform 300ms var(--ease), border-color 300ms;
}
.way:hover { transform: translateY(-6px); border-color: rgba(217, 169, 90, 0.4); }
.way::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; }
.way-blaze::before { background: var(--blaze); }
.way-journey::before { background: var(--gold); }
.way-journal::before { background: var(--rival); }
.way-blaze { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 22rem;
  background: radial-gradient(80% 60% at 70% 20%, rgba(127, 196, 110, 0.14), transparent), linear-gradient(160deg, var(--elev), var(--surface)); }
.num { font: 600 italic 3.2rem/1 var(--display); color: rgba(217, 169, 90, 0.35); }
.way h3 { font: 600 1.6rem/1.2 var(--ui); margin: 0.8rem 0 0.5rem; }
.way p { font-size: 0.98rem; }

/* Laura */
.laura { display: grid; grid-template-columns: auto 1fr 0.7fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.faces { display: grid; gap: 0.9rem; }
.faces img { width: clamp(84px, 9vw, 128px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 0 0 8px var(--gold-soft); }
.faces img + img { border-color: var(--gold-deep); transform: translateX(40%); }
blockquote { margin: 1.6rem 0 0; font: italic 500 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1.2 var(--display); color: var(--gold); }
.laura-shot, .ground > img { border-radius: 30px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--hair); max-width: 320px; justify-self: end; }

/* Territory */
.ground { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.ground > img { justify-self: start; transform: rotate(-3deg); }
.ground p { margin-top: 1.2rem; }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.8rem; color: var(--text); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 14px; height: 16px; background: var(--gold);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* Off the grid */
.offgrid { text-align: left; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.grid3 article { padding: 1.8rem; border-radius: 22px; border: 1px dashed rgba(159, 194, 154, 0.4); background: rgba(159, 194, 154, 0.05); }
.grid3 h3 { font-size: 1.15rem; margin-bottom: 0.6rem; color: var(--sage); }
.grid3 b { color: var(--text); }

/* Gallery */
.gallery { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
.strip {
  list-style: none; margin: 0; padding: 0 var(--gutter) 1rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 280px); gap: 1.2rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent;
}
.strip li { scroll-snap-align: center; }
.strip img { border-radius: 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--hair); transition: transform 300ms var(--ease); }
.strip img:hover { transform: translateY(-8px); }

/* Car + closing */
.car { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: stretch; padding-bottom: var(--section) !important; }
.car p { margin-top: 1.2rem; }
.cta {
  padding: 2.4rem; border-radius: 28px; display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(90% 80% at 100% 0%, rgba(217, 169, 90, 0.28), transparent 60%), var(--surface);
  border: 1px solid rgba(217, 169, 90, 0.35);
}
.cta h3 { font: 600 italic clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem)/1.1 var(--display); color: var(--text); }
.cta p { margin-top: 0.8rem; }

/* Footer */
.foot { border-top: 1px solid var(--hair); padding: 2.5rem var(--gutter) 3rem; display: grid; gap: 1.2rem; justify-items: center; text-align: center; color: var(--muted); font-size: 0.88rem; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; }
.foot a { color: var(--text2); text-decoration: none; }
.foot a:hover { color: var(--gold); }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; text-align: left; }
  .hero-phone { width: min(78%, 340px); margin-top: 1rem; }
  .chip-a { left: -8%; } .chip-b { right: -6%; }
  .ways { grid-template-columns: 1fr; }
  .way-blaze { grid-row: auto; min-height: 0; }
  .laura { grid-template-columns: 1fr; }
  .faces { grid-auto-flow: column; justify-content: start; }
  .faces img + img { transform: translateX(-18%); }
  .laura-shot, .ground > img { justify-self: center; max-width: 280px; }
  .ground { grid-template-columns: 1fr; }
  .ground > img { order: 2; transform: none; justify-self: center; }
  .grid3 { grid-template-columns: 1fr; }
  .car { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Polish */
.nowrap { white-space: nowrap; }
.laura-copy p { margin-top: 1.2rem; }
.way-blaze {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 200'%3E%3Cg fill='%237FC46E' fill-opacity='.16' stroke='%237FC46E' stroke-opacity='.55' stroke-width='1.2'%3E%3Cpath d='M60 40l18 10v21l-18 10-18-10V50z'/%3E%3Cpath d='M96 61l18 10v21l-18 10-18-10V71z'/%3E%3Cpath d='M132 40l18 10v21l-18 10-18-10V50z'/%3E%3Cpath d='M168 61l18 10v21l-18 10-18-10V71z'/%3E%3Cpath d='M204 82l18 10v21l-18 10-18-10V92z' fill-opacity='.4'/%3E%3C/g%3E%3Cpath d='M30 120C70 110 80 70 120 72s70 40 110 30 50-50 70-60' fill='none' stroke='%239FC29A' stroke-width='5' stroke-linecap='round' stroke-dasharray='1 11'/%3E%3C/svg%3E") top 1.5rem right 1rem / 78% no-repeat,
    radial-gradient(80% 60% at 70% 20%, rgba(127, 196, 110, 0.14), transparent),
    linear-gradient(160deg, var(--elev), var(--surface));
}
