/* ════════════════════════════════════════════════════════════
   ARRIVE — Design System v3
   Editorial calm: serif display, generous whitespace, soft tinted
   surfaces, pill chips. Purple accent retained (#712AE2).
   ════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --purple: #712AE2;
  --purple-dark: #5A1FC0;
  --purple-ink: #2A1260;
  --purple-bg: #F1ECFF;
  --lavender: #F6F3FF;

  /* Ink + paper */
  --ink: #15121F;
  --ink-2: #3D3949;
  --ink-3: #6E6A7A;
  --ink-4: #A3A0AD;
  --paper: #FBFAF8;
  --white: #FFFFFF;
  --line: rgba(21, 18, 31, 0.08);
  --line-2: rgba(21, 18, 31, 0.14);

  /* Soft surfaces (calm tints, purple-led) */
  --t-lilac: #EFEAFD;
  --t-mist: #E9EDF6;
  --t-sage: #E8EEE3;
  --t-butter: #F5F0E4;
  --t-blush: #F5ECF1;

  /* Legacy token bridge (inner pages read these) */
  --black: var(--ink);
  --gray-50: #F8F7FA;
  --gray-100: #F1F0F4;
  --gray-200: #E6E4EC;
  --gray-300: #D3D0DB;
  --gray-400: #A3A0AD;
  --gray-500: #858191;
  --gray-600: #6E6A7A;
  --gray-700: #3D3949;
  --gray-800: #26222F;
  --gray-900: #15121F;
  --max-w: 1200px;
  --px: max(clamp(20px, 4vw, 40px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));

  /* Type */
  --f-display: Georgia, 'Libre Caslon Text', 'Times New Roman', serif;
  --f-serif-i: Georgia, 'Libre Caslon Text', 'Times New Roman', serif;
  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radii + shadow */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --sh-1: 0 1px 2px rgba(21,18,31,.04), 0 4px 14px rgba(21,18,31,.05);
  --sh-2: 0 2px 6px rgba(21,18,31,.05), 0 18px 40px rgba(42,18,96,.10);
  --sh-3: 0 30px 80px rgba(42,18,96,.18), 0 8px 20px rgba(21,18,31,.06);

  /* Motion */
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .7s;
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html body { margin: 0; }
figure, blockquote { margin: 0; }
img { max-width: 100%; }
html body {
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(113, 42, 226, .18); color: var(--ink); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 8px; }

.a-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.a-section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.a-center { text-align: center; }

/* Type scale */
.a-display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(46px, 7.4vw, 96px);
  line-height: .98;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.a-h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.a-h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.a-display em, .a-h2 em, .a-h3 em {
  font-family: var(--f-serif-i);
  font-style: italic;
  color: var(--purple);
  letter-spacing: -0.03em;
}
.a-lede { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: var(--ink-3); max-width: 560px; }
.a-center .a-lede { margin-left: auto; margin-right: auto; }
.a-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple);
}
.a-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.a-muted { color: var(--ink-3); }

/* ── Buttons ──────────────────────────────────────────────── */
.a-btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 600 15px/1 var(--f-sans); letter-spacing: -0.005em;
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .25s;
  isolation: isolate; overflow: hidden;
}
.a-btn::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.a-btn:hover::after { opacity: 1; }
.a-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(42,18,96,.22); }
.a-btn:active { transform: scale(.97); }
.a-btn .a-arrow { transition: transform .35s var(--ease-out); }
.a-btn:hover .a-arrow { transform: translateX(3px); }
.a-btn--purple { --bg: var(--purple); }
.a-btn--purple:hover { background: var(--purple-dark); }
.a-btn--ghost { --bg: rgba(255,255,255,.7); --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(8px); }
.a-btn--ghost:hover { --bg: #fff; box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 24px rgba(42,18,96,.10); }
.a-btn--white { --bg: #fff; --fg: var(--ink); }
.a-btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }

.a-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--purple); text-decoration: none;
}
.a-link svg { transition: transform .3s var(--ease-out); }
.a-link:hover svg { transform: translateX(3px); }

/* Chips */
.a-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.a-center .a-chips { justify-content: center; }
.a-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 15px; border-radius: 999px;
  background: rgba(255,255,255,.75); color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font: 500 13.5px/1 var(--f-sans); cursor: pointer; border: 0;
  transition: background .25s, color .25s, box-shadow .25s, transform .25s var(--ease-out);
  white-space: nowrap; text-decoration: none;
}
.a-chip:hover { box-shadow: inset 0 0 0 1px rgba(113,42,226,.45); color: var(--purple); }
.a-chip:active { transform: scale(.96); }
.a-chip.is-active { background: var(--ink); color: #fff; box-shadow: none; }
.a-chip .a-code {
  font: 600 10px/1 var(--f-sans); letter-spacing: .06em;
  padding: 4px 5px; border-radius: 6px; background: var(--t-lilac); color: var(--purple);
  transition: background .25s, color .25s;
}
.a-chip.is-active .a-code { background: rgba(255,255,255,.16); color: #fff; }

/* Surfaces */
.a-card {
  background: var(--white); border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 .5px var(--line-2), var(--sh-1);
}
.t-lilac { background: var(--t-lilac); }
.t-mist { background: var(--t-mist); }
.t-sage { background: var(--t-sage); }
.t-butter { background: var(--t-butter); }
.t-blush { background: var(--t-blush); }

/* Halo backgrounds — purple version of the v3 glow */
.a-halo { position: relative; isolation: isolate; overflow: hidden; }
.a-halo::before {
  content: ''; position: absolute; z-index: -2; inset: 0;
  background:
    radial-gradient(60% 70% at 12% 0%, rgba(158, 112, 255, .55) 0%, transparent 60%),
    radial-gradient(50% 60% at 92% 8%, rgba(255, 170, 214, .45) 0%, transparent 60%),
    radial-gradient(70% 60% at 50% 110%, rgba(196, 176, 255, .55) 0%, transparent 60%),
    linear-gradient(180deg, #F2ECFF 0%, #FBFAF8 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
.a-halo::after {
  content: ''; position: absolute; z-index: -1;
  left: 50%; top: 52%; width: min(1100px, 120vw); aspect-ratio: 1.35;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, #FBFAF8 62%, rgba(251,250,248,.85) 74%, rgba(251,250,248,0) 100%);
}

/* ════════════════════════════════════════════════════════════
   NAV (shared across every page)
   ════════════════════════════════════════════════════════════ */
html body .nav {
  display: block !important; width: auto !important; max-width: none !important;
  position: sticky; top: 0; z-index: 200;
  background: transparent !important; border: 0 !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  padding: 14px var(--px) 0; height: auto;
  pointer-events: none;
}
html body .nav-inner {
  pointer-events: auto;
  width: 100%; max-width: 1160px; margin: 0 auto; height: 60px; box-sizing: border-box;
  padding: 0 8px 0 20px !important;
  display: flex !important; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(170%) blur(18px); -webkit-backdrop-filter: saturate(170%) blur(18px);
  border-radius: 999px;
  box-shadow: inset 0 0 0 .5px rgba(21,18,31,.10), 0 1px 2px rgba(21,18,31,.03);
  transition: box-shadow .4s var(--ease), background .4s var(--ease), max-width .5s var(--ease-out);
}
html body .nav.is-scrolled .nav-inner {
  background: rgba(255,255,255,.86);
  box-shadow: inset 0 0 0 .5px rgba(21,18,31,.10), 0 10px 30px rgba(42,18,96,.10);
}
html body .nav-logo {
  display: inline-flex; align-items: center; gap: 9px;
  font: 700 19px/1 var(--f-sans); letter-spacing: -0.03em; color: var(--ink); text-decoration: none;
}
html body .nav-logo img { width: 28px; height: 28px; }
html body .nav-logo-icon { display: inline-flex; }
html body .nav-links { display: flex; gap: 4px !important; align-items: center; justify-content: center; }
html body .nav-links a {
  position: relative; padding: 9px 14px; border-radius: 999px;
  font: 500 14px/1 var(--f-sans) !important; color: var(--ink-2) !important; text-decoration: none;
  transition: background .25s, color .25s;
}
html body .nav-links a:hover { background: rgba(21,18,31,.05); color: var(--ink) !important; }
html body .nav-links a.active, html body .nav-links a[aria-current="page"] { color: var(--purple) !important; background: var(--t-lilac); }
html body .nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px !important; border-radius: 999px;
  background: var(--ink) !important; color: #fff !important;
  font: 600 14px/1 var(--f-sans) !important; text-decoration: none;
  transition: transform .3s var(--ease-out), background .25s;
}
html body .nav-cta:hover { background: var(--purple) !important; transform: translateY(-1px); }
html body .nav-cta:active { transform: scale(.97); }

html body .ham-btn {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink) !important; border: 0; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
}
html body .ham-btn span { display: block; width: 16px; height: 1.5px; background: #fff !important; border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; margin: 0 !important; }

@media (max-width: 900px) {
  html body .nav-links, html body .nav-cta { display: none !important; }
  html body .ham-btn { display: inline-flex !important; }
  html body .nav-inner { height: 56px; padding: 0 6px 0 16px !important; }
}

/* Mobile overlay */
html body #ham-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(251,250,248,.96);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  display: flex !important; flex-direction: column;
  opacity: 0; visibility: hidden; transform: none;
  transition: opacity .35s var(--ease), visibility .35s;
  padding: 0;
}
html body #ham-overlay.open { opacity: 1; visibility: visible; }
html body .ham-ov-head {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px; padding: 14px calc(var(--px) + 6px) 0; border: 0 !important;
}
html body .ham-ov-logo { display: inline-flex; align-items: center; gap: 9px; font: 700 19px/1 var(--f-sans); color: var(--ink); text-decoration: none; }
html body .ham-close {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--ink) !important; color: #fff !important; font-size: 16px; cursor: pointer;
}
html body .ham-ov-body { padding: 18px calc(var(--px) + 6px) calc(32px + env(safe-area-inset-bottom)); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 26px; }
html body .ham-ov-body > * { flex-shrink: 0; }
html body .ham-section { display: flex; flex-direction: column; gap: 2px; border: 0 !important; padding: 0 !important; }
html body .ham-sec-label { font: 600 11px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4) !important; margin-bottom: 8px; }
html body .ham-link {
  font-family: var(--f-display) !important; font-weight: 400 !important;
  font-size: 30px !important; line-height: 1.25 !important; letter-spacing: -0.015em;
  color: var(--ink) !important; padding: 2px 0 !important; border: 0 !important; text-decoration: none;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), color .2s;
}
html body .ham-link:hover { color: var(--purple) !important; }
html body #ham-overlay.open .ham-link { opacity: 1; transform: none; }
html body .ham-ov-cta {
  margin-top: auto; display: flex; align-items: center; justify-content: center;
  height: 56px; min-height: 56px; flex-shrink: 0; padding: 0 24px; border-radius: 999px; background: var(--purple) !important; color: #fff !important;
  font: 600 16px/1 var(--f-sans); text-decoration: none; margin-bottom: 8px;
}

/* ════════════════════════════════════════════════════════════
   FOOTER (shared)
   ════════════════════════════════════════════════════════════ */
html body footer, html body footer.a-footer {
  background: var(--ink) !important; color: rgba(255,255,255,.72);
  padding: 0 !important; margin: 0; border: 0 !important;
}
.a-footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 88px var(--px) 36px; }
.a-footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.a-footer-brand .a-footer-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font: 700 20px/1 var(--f-sans); letter-spacing: -0.03em; text-decoration: none; }
.a-footer-brand .a-footer-logo img { width: 30px; height: 30px; object-fit: contain; filter: brightness(0) invert(1); }
img[src$="logo.png"] { object-fit: contain; }
.a-footer-brand p { margin: 18px 0 24px; font-family: var(--f-display); font-size: 26px; line-height: 1.2; color: #fff; max-width: 300px; letter-spacing: -0.01em; }
.a-footer-brand p em { font-family: var(--f-serif-i); color: #C7B2FF; }
.a-footer-stores { display: flex; gap: 10px; flex-wrap: wrap; }
.a-store {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px;
  border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; text-decoration: none;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.18);
  font: 600 13px/1 var(--f-sans); transition: background .25s, transform .3s var(--ease-out);
}
.a-store:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.a-footer-col h4 { font: 600 11px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.42); margin: 6px 0 18px; }
.a-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.a-footer-col a { color: rgba(255,255,255,.78); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.a-footer-col a:hover { color: #fff; }
.a-footer-bottom {
  margin-top: 72px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.10);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.45);
}
.a-footer-bottom nav { display: flex; gap: 22px; }
.a-footer-bottom a { color: rgba(255,255,255,.55); text-decoration: none; }
.a-footer-bottom a:hover { color: #fff; }
.a-footer-word {
  font-family: var(--f-display); font-size: clamp(90px, 19vw, 260px); line-height: .8;
  letter-spacing: -0.05em; color: rgba(255,255,255,.06); text-align: center;
  margin: 56px 0 -10px; user-select: none; white-space: nowrap; overflow: hidden;
}
@media (max-width: 900px) {
  .a-footer-top { grid-template-columns: 1fr 1fr; }
  .a-footer-brand { grid-column: 1 / -1; }
}

/* ════════════════════════════════════════════════════════════
   MOTION
   ════════════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity var(--dur) var(--ease-out), transform calc(var(--dur) + .2s) var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(.96); }
[data-reveal="left"] { transform: translate3d(-28px, 0, 0); }
[data-reveal="right"] { transform: translate3d(28px, 0, 0); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Split headline words */
.a-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .14em .22em; margin: -.06em -.14em -.22em; }
.a-split .w > span {
  display: inline-block; transform: translateY(105%);
  transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 55ms + var(--base, 0ms));
}
.a-split.is-in .w > span { transform: none; }

/* No-JS + reduced motion safety */
.no-js [data-reveal], .no-js .a-split .w > span { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal], .a-split .w > span { opacity: 1 !important; transform: none !important; }
}

@keyframes a-float { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-10px) rotate(var(--rot, 0deg)); } }
@keyframes a-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes a-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes a-spin { to { transform: rotate(360deg); } }
@keyframes a-shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }

/* Cookie notice */
.a-cookie { position: fixed; z-index: 9998; left: 50%; bottom: 18px; width: min(760px, calc(100% - 28px)); transform: translate(-50%, 16px); opacity: 0;
  display: flex; align-items: center; gap: 18px; padding: 14px 16px 14px 22px; border-radius: 18px; background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 .5px var(--line-2), 0 18px 40px rgba(42,18,96,.14);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.a-cookie.is-in { opacity: 1; transform: translate(-50%, 0); }
.a-cookie.is-out { opacity: 0; transform: translate(-50%, 16px); }
.a-cookie p { margin: 0; flex: 1; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.a-cookie p a { color: var(--purple); font-weight: 600; text-decoration: none; }
.a-cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.a-cookie .a-btn { padding: 10px 16px; font-size: 13px; }
@media (max-width: 640px) { .a-cookie { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; } .a-cookie-btns .a-btn { flex: 1; justify-content: center; } }

/* Never allow sideways scrolling (iOS Safari ignores overflow-x on body alone) */
html, body { max-width: 100%; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
@supports not (overflow: clip) { body { overflow-x: hidden; } }

/* iPhone landscape: page runs edge to edge (viewport-fit=cover); paint the canvas like the page top so no white bars */
html {
  background:
    radial-gradient(60% 900px at 12% 0, rgba(158,112,255,.35) 0%, transparent 60%) no-repeat,
    radial-gradient(50% 800px at 92% 70px, rgba(255,170,214,.3) 0%, transparent 60%) no-repeat,
    linear-gradient(180deg, #F2ECFF 0, #FBFAF8 1100px) no-repeat,
    #F3EDFC;
  background-color: #F3EDFC; /* Chrome on iPhone fills the landscape side areas with this colour */
}
