/* ═══════════════════════════════════════════════════════════
   iLINDY V3 — SHARED DESIGN SYSTEM ("The Savoy Edition")
   Used by all /v3/ subpages. The home page carries its own copy.
   ═══════════════════════════════════════════════════════════ */
:root {
  --gold:        #F9CA47;
  --indigo:      #322D8F;
  --night:       #0F0D1E;
  --night-2:     #17143a;
  --cream:       #FBF7EE;
  --cream-2:     #F4EDDD;
  --white:       #FFFFFF;
  --ink:         #1A1A2E;
  --ink-muted:   #555566;
  --cta:         #FFCB40;
  --cta-hover:   #E6B728;
  --purple:      #5F57FF;
  --blue:        #3C5CBF;

  --font-display: 'Raleway', sans-serif;
  --font-heading: 'Raleway', sans-serif;
  --font-body:    'Questrial', sans-serif;

  --max: 1200px;
  --max-narrow: 800px;
  --max-wide: 1440px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  /* How far the first thing on a page must start below the fixed nav.
     Defined here rather than only in v3-content.css, because v3.css is the
     one stylesheet every page loads — and a page that does not load the
     content sheet had no way to ask. That gap is why the 404 hard-codes a
     fallback and why /news came within six pixels of putting its kicker
     under the menu. */
  --nav-clearance: clamp(7rem, 12vw, 9rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --phrase: 4.28s;
  --beat: calc(var(--phrase) / 8);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
/*
 * White on night, not ink on night.
 *
 * The old pairing — --ink (#1a1a2e) on --night (#0f0d1e) — is a contrast
 * ratio of about 1.1:1. Not low: invisible. It has never been readable
 * anywhere, and every page that works overrides it, which is exactly what
 * made it dangerous: a default nobody uses is a default nobody notices is
 * wrong, until a new page forgets to override and ships unreadable.
 *
 * That has now happened four times — the checkout, the confirmation, the 404
 * and /news — each found by a person looking at the page, because nothing
 * else can find it. TypeScript cannot, the build cannot, and the tests
 * cannot.
 *
 * White is the pairing every dark section already declares for itself
 * (lp-section--dark is background night, colour white). Making it the default
 * costs those sections nothing and means a page that forgets is merely plain
 * rather than blank. Light sections are unaffected: lp-section--light and
 * v3-content.css both set background and colour together, and the text inside
 * .lp-card declares its own.
 */
body { font-family: var(--font-body); color: var(--white); background: var(--night); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-heading); line-height: 1.08; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--max-narrow); }
.container--wide { max-width: var(--max-wide); }

.display { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.98; }

.kicker { display: inline-flex; align-items: center; gap: 0.75rem; font-family: var(--font-heading); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.22em; text-transform: uppercase; }
.kicker::before { content: ''; width: 2.25rem; height: 2px; background: currentColor; opacity: 0.9; }
.kicker--center::after { content: ''; width: 2.25rem; height: 2px; background: currentColor; opacity: 0.9; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; font-family: var(--font-heading); font-weight: 800; font-size: 1rem; padding: 1rem 2.1rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s; white-space: nowrap; }
.btn-gold { background: var(--cta); color: #000; box-shadow: 0 10px 30px rgba(255, 203, 64, 0.28); }
.btn-gold:hover { background: var(--cta-hover); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255, 203, 64, 0.4); }
.btn-ghost { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-ghost--dark { border-color: rgba(26,26,46,0.35); color: var(--ink); }
.btn-ghost--dark:hover { border-color: var(--indigo); color: var(--indigo); transform: translateY(-2px); }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.grain { position: relative; }
.grain::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0.05; background-image: 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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E"); }

.rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.12s; } .rv-d2 { transition-delay: 0.24s; }
.rv-d3 { transition-delay: 0.36s; } .rv-d4 { transition-delay: 0.48s; }

/* asset placeholders */

/* ── NAV ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease); padding: 1.1rem 0; }
.nav.scrolled { background: rgba(15, 13, 30, 0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(249,202,71,0.18); padding: 0.65rem 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; max-width: var(--max-wide); margin-inline: auto; padding-inline: var(--gutter); }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; list-style: none; gap: 2.2rem; }
.nav-links a { font-family: var(--font-heading); font-weight: 600; font-size: 0.9375rem; color: rgba(255,255,255,0.85); position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav-links a:hover, .nav-links a.on { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.on::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 1.1rem; }
.nav-login { font-family: var(--font-heading); font-weight: 600; font-size: 0.9375rem; color: rgba(255,255,255,0.85); }
.nav-login:hover { color: var(--gold); }
.nav .btn { padding: 0.55rem 1.4rem; font-size: 0.9375rem; }
/* Padding rather than a bigger icon: the three bars stay exactly the size
   they were, and the tappable area reaches the 44px minimum. This is the
   only way to the menu on a phone and it was the smallest control on the
   page at 26x30 — comfortably missable with a thumb. */
.nav-burger { display: none; background: none; border: none; cursor: pointer; z-index: 110;
  padding: 7px; margin: -7px; min-width: 44px; min-height: 44px; }
.nav-burger span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; transition: 0.3s var(--ease); }

/* ── Page hero (subpages) ── */
.page-hero { position: relative; background: var(--night); color: var(--white); padding: clamp(9rem, 16vh, 12rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.page-hero .kicker { color: var(--gold); }
.page-hero h1 { font-size: clamp(2.1rem, 8vw, 5.5rem); margin-top: 1.4rem; overflow-wrap: break-word; }
.page-hero h1 em { font-style: normal; color: var(--gold); }
.page-hero .lede { margin-top: 1.6rem; max-width: 640px; font-size: 1.2rem; color: rgba(255,255,255,0.8); }
.hero-arcs { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.35; }
.hero-arcs path { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 12 2400; animation: arcTravel 7s linear infinite; }
.hero-arcs path:nth-child(2) { animation-delay: -2.3s; opacity: 0.65; }
.hero-arcs path:nth-child(3) { animation-delay: -4.6s; opacity: 0.4; }
@keyframes arcTravel { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -2412; } }
.page-hero > .container { position: relative; z-index: 2; }

/* ── deco divider ── */
.deco-divider { display: flex; justify-content: center; padding: 0; background: var(--cream); position: relative; }
.deco-divider svg { margin-top: -34px; }

/* ── marquee lights ── */
.marquee-lights { display: flex; justify-content: center; gap: 1.15rem; padding: 1.4rem 0; overflow: hidden; }
.marquee-lights i { width: 8px; height: 8px; border-radius: 50%; background: rgba(249,202,71,0.3); animation: bulb 1.8s infinite; }
.marquee-lights i:nth-child(2n) { animation-delay: 0.45s; }
.marquee-lights i:nth-child(3n) { animation-delay: 0.9s; }
@keyframes bulb { 0%, 100% { background: rgba(249,202,71,0.25); box-shadow: none; } 50% { background: var(--gold); box-shadow: 0 0 12px rgba(249,202,71,0.8); } }

/* ── CTA band ── */
.cta-band { position: relative; background: var(--night); color: var(--white); text-align: center; overflow: hidden; }
.cta-band-inner { position: relative; z-index: 2; padding: clamp(5rem, 10vw, 8rem) var(--gutter); }
.cta-band h2 { font-size: clamp(2.2rem, 5.6vw, 4.4rem); color: var(--gold); }
.cta-band p { margin: 1.3rem auto 0; max-width: 560px; font-size: 1.15rem; color: rgba(255,255,255,0.85); }
.cta-band .btn { margin-top: 2.4rem; font-size: 1.05rem; padding: 1.1rem 2.5rem; }
.cta-band .note { margin-top: 1.1rem; font-size: 0.9rem; color: rgba(255,255,255,0.55); }

/* ── FOOTER ── */
.footer { background: #0B0918; color: var(--white); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-logo { height: 32px; width: auto; margin-bottom: 1rem; }
.footer-tag { opacity: 0.7; max-width: 260px; font-size: 0.95rem; }
.footer h4 { color: var(--gold); font-size: 0.9375rem; margin-bottom: 0.9rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.footer ul { list-style: none; }
/* Footer links sat 15px tall in a tight column — legal as inline text, but
   fiddly to hit and easy to hit the wrong one. Padding the anchor gives
   each its own comfortable row without changing the type. */
.footer li { margin-bottom: 0.15rem; }
.footer li a { display: inline-block; padding: 0.35rem 0; opacity: 0.72; font-size: 0.95rem;
  transition: opacity 0.2s, color 0.2s; }
.footer li a:hover { opacity: 1; color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; opacity: 0.55; }

/* ── responsive + motion ── */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-actions .nav-login { display: none; }
  .nav-burger { display: block; }
  .nav-links.open { display: flex; position: fixed; inset: 0; background: rgba(15,13,30,0.97); flex-direction: column; align-items: center; justify-content: center; gap: 2rem; font-size: 1.4rem; z-index: 105; }
  .nav-links.open a { padding: 0.5rem 1rem; display: inline-block; }
  .nav .btn { padding: 0.5rem 1.1rem; font-size: 0.875rem; }
  .page-hero { padding-top: clamp(7rem, 14vh, 9rem); }
  .page-hero .lede { font-size: 1.08rem; }
}
@media (max-width: 480px) {
  .btn { padding: 0.95rem 1.7rem; font-size: 0.95rem; }
  .nav .btn { padding: 0.5rem 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-band h2 { font-size: clamp(1.9rem, 9vw, 3rem); }
  .kicker { font-size: 0.72rem; letter-spacing: 0.16em; }
  .kicker::before, .kicker--center::after { width: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .rv { opacity: 1; transform: none; }
}

/* ── anchor targets clear the sticky nav ── */
:target,
section[id] { scroll-margin-top: 92px; }
@media (max-width: 720px) {
  :target,
  section[id] { scroll-margin-top: 76px; }
}
