/* ==========================================================================
   BarberGo marketing site — shared stylesheet
   Tokens mirror lib/app/tokens.dart + lib/app/theme.dart.
   Rule from the design system: "Teal decides, amber delights."

   Written with logical properties (inline-start/end) throughout so the
   Arabic RTL locale shares this file; ar/ layers assets/rtl.css on top.
   ========================================================================== */

:root {
  /* Teal family */
  --teal: #0F5C5C;
  --teal-deep: #083A3A;
  --teal-mid: #1E7A6A;
  --teal-dark: #103A3A;
  --teal-pale: #7BC7C0;

  /* Ink */
  --ink: #1C2626;
  --ink-deep: #0B1414;
  --ink-alt: #1E2B2B;

  /* Amber family */
  --amber: #E8A94F;
  --amber-dark: #C98F35;
  --amber-deeper: #D18F2E;
  --amber-light: #F5C878;
  --on-amber: #3A2A08;

  /* Surfaces */
  --cream: #FAF7F1;
  --surface: #FFFFFF;
  --sand: #F1ECE1;
  --line: #EFEAE0;
  --outline: #C8C0AF;

  /* Text */
  --text-2: #4A544F;
  --text-3: #5A6B6A;
  --muted: #8A8375;
  --footer-text: #9AB0AD;

  /* Status */
  --success: #1F7A50;

  /* Radii */
  --r-ctl: 10px;
  --r-card: 20px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Widths */
  --wrap: 1180px;
  --wrap-narrow: 900px;
  --wrap-prose: 760px;

  /* Shadows — ink-tinted, per tokens.dart */
  --e1: 0 1px 3px rgba(30, 43, 43, 0.08);
  --e2: 0 4px 14px rgba(30, 43, 43, 0.12);
  --e3: 0 10px 28px rgba(30, 43, 43, 0.18);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* One page serves all three locales, with the English copy inline in the HTML.
   When a visitor's language is French or Arabic, the boot script in <head>
   sets this attribute before first paint and the inline translation script at
   the end of <body> clears it — so non-English readers never see a flash of
   English. English readers never get the attribute at all, and a DOMContentLoaded
   fallback clears it even if that script fails. */
[data-i18n-pending] body { visibility: hidden; }

body {
  margin: 0;
  background: var(--cream);
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: 24px; }
.wrap-prose { max-width: var(--wrap-prose); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 100;
  background: var(--teal);
  color: #FFF;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-ctl) 0;
  font-weight: 600;
}
.skip-link:focus { inset-inline-start: 0; color: #FFF; }

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */

.logo { display: flex; align-items: center; gap: 10px; }
.logo:hover { color: inherit; }

/* The brand mark: map pin merged with scissors, amber on deep teal. */
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
}
.logo-mark--sm { width: 32px; height: 32px; border-radius: 10px; }

.logo-text { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--wrap); margin-inline: auto;
  min-height: 72px;
  display: flex; align-items: center; gap: 28px;
  padding: 0 24px;
}

.nav-links {
  display: flex; gap: 22px;
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  margin-inline-start: 12px;
  white-space: nowrap;
}
.nav-links a[aria-current='page'] { color: var(--teal); font-weight: 600; }

.nav-actions {
  margin-inline-start: auto;
  display: flex; align-items: center; gap: 14px;
  white-space: nowrap;
}

.nav-login { font-size: 14px; font-weight: 600; color: var(--teal); padding: 10px 6px; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--outline);
  border-radius: var(--r-ctl);
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink);
  font-size: 18px; line-height: 1;
}

/* Language pill */
.lang {
  display: flex; background: var(--sand);
  border-radius: var(--r-pill); padding: 3px;
  font-size: 12px; font-weight: 600;
}
.lang a, .lang span { padding: 5px 11px; border-radius: var(--r-pill); color: var(--muted); }
.lang a:hover { color: var(--teal); }
.lang [aria-current='true'] {
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 3px rgba(30, 43, 43, 0.12);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px;
  border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600;
  border: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }

.btn-sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn-lg { height: 58px; padding: 0 26px; font-size: 16px; }

.btn-primary { background: var(--teal); color: #FFF; }
.btn-primary:hover { color: #FFF; background: #0d5252; }

.btn-amber {
  background: var(--amber); color: var(--on-amber); font-weight: 700;
  box-shadow: 0 10px 30px rgba(232, 169, 79, 0.4);
}
.btn-amber:hover { color: var(--on-amber); }

.btn-ink { background: var(--ink-alt); color: #FFF; }
.btn-ink:hover { color: #FFF; }

.btn-ghost { border: 1.5px solid var(--outline); background: transparent; color: inherit; }
.btn-ghost:hover { color: var(--teal); border-color: var(--teal); }

.btn-ghost-light {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: transparent; color: #FFF;
}
.btn-ghost-light:hover { color: #FFF; border-color: #FFF; }

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

.kicker {
  font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--amber-dark);
}
.kicker-light { color: var(--amber); }

h1, h2, h3 { margin: 0; }

.h-display { font-size: 58px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.06; }
.h-page { font-size: 46px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.1; }
.h-section { font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; }
.h-sub { font-size: 36px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; }
.h-card { font-size: 18px; font-weight: 700; }
.h-step { font-size: 21px; font-weight: 700; }

.lede { font-size: 17px; line-height: 1.65; color: var(--text-2); }
.lede-light { font-size: 17px; line-height: 1.65; opacity: 0.85; }

.section-head {
  text-align: center;
  display: flex; flex-direction: column; gap: 12px;
  align-items: center;
}

.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-20 { gap: 20px; } .gap-28 { gap: 28px; } .gap-40 { gap: 40px; }

.section { padding-block: 70px; }
.section-tight { padding-block: 50px; }

/* --------------------------------------------------------------------------
   Cards / grids
   -------------------------------------------------------------------------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.card-icon { font-size: 28px; line-height: 1; }
.card-body { font-size: 14px; color: var(--text-3); line-height: 1.6; }

/* --------------------------------------------------------------------------
   Illustrations (flat two-tone, teal + amber, transparent background)
   -------------------------------------------------------------------------- */

/* Spot icon inside a feature card */
.card-illus {
  height: 56px; width: auto;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 2px;
}
[dir="rtl"] .card-illus { object-position: right center; }

/* Full-width scene illustration */
.illus-wide {
  display: block;
  width: 100%; max-width: 620px;
  height: auto;
  margin-inline: auto;
}

/* Illustration beside a numbered step */
.illus-step {
  width: 100%; max-width: 220px;
  height: auto;
  align-self: center;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .card-illus { height: 46px; }
  .illus-step { max-width: 160px; margin-inline: auto; }
}

.note-box {
  background: var(--sand);
  border-radius: 18px;
  padding: 22px 26px;
  font-size: 15px; line-height: 1.7;
  color: var(--ink);
}

/* Numbered step rows (guides) */
.step-row {
  display: flex; gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--teal); color: #FFF;
  font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-num--amber { background: var(--amber); color: var(--on-amber); }
.step-body { font-size: 15px; color: var(--text-2); line-height: 1.7; }

/* --------------------------------------------------------------------------
   Photo drop zones
   The <img> covers the slot when the file exists and removes itself when it
   doesn't (onerror), leaving the on-brand gradient underneath. Drop a file at
   the documented path and it takes over with no code change.
   -------------------------------------------------------------------------- */

.photo-slot {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 22%, rgba(232, 169, 79, 0.55), transparent 58%),
    linear-gradient(140deg, var(--teal-deep) 0%, var(--teal) 45%, var(--teal-mid) 72%, var(--amber-dark) 125%);
}
.photo-slot::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
}
.photo-slot img {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.photo-slot--craft { aspect-ratio: 3 / 2; }
.photo-slot--hero { aspect-ratio: 4 / 3; border-radius: var(--r-lg); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); }

/* --------------------------------------------------------------------------
   Hero (landing)
   -------------------------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--teal-deep) 0%, var(--teal) 42%, var(--teal-mid) 68%, var(--amber-dark) 115%);
  color: #FFF;
}
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; }
.hero::before {
  top: -180px; inset-inline-end: -120px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(232, 169, 79, 0.5), transparent 65%);
}
.hero::after {
  bottom: -220px; inset-inline-start: -160px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(123, 199, 192, 0.35), transparent 65%);
}
.hero-inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: 84px 24px 110px;
  display: flex; align-items: center; gap: 48px;
  position: relative; z-index: 1;
}
.hero-copy { flex: 1; display: flex; flex-direction: column; gap: 26px; max-width: 560px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: 13px; font-weight: 600;
  width: fit-content;
}
.hero-grad {
  background: linear-gradient(90deg, var(--amber-light), var(--amber));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-lede { font-size: 18px; line-height: 1.6; opacity: 0.88; max-width: 460px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-points { display: flex; gap: 32px; padding-top: 8px; flex-wrap: wrap; }
.hero-point-k { font-size: 20px; font-weight: 800; }
.hero-point-v { font-size: 13px; opacity: 0.75; }

/* Phone mockups */
.hero-art { position: relative; width: 520px; height: 560px; flex-shrink: 0; }

.phone {
  position: absolute;
  border-radius: 36px;
  background: var(--ink-deep);
  padding: 10px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.phone-screen { width: 100%; height: 100%; border-radius: 28px; overflow: hidden; position: relative; }

.phone-1 { inset-inline-start: 20px; top: 20px; width: 250px; height: 510px; animation: floaty 6s ease-in-out infinite; }
.phone-2 {
  inset-inline-end: 0; top: 90px; width: 230px; height: 470px;
  border-radius: 34px; transform: rotate(6deg);
  animation: floaty2 7s ease-in-out infinite;
}
.phone-2 .phone-screen { border-radius: 26px; }

.map-bg { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, #E7EEE9, #E7EEE9 12px, #EDF2EE 12px, #EDF2EE 24px); }
.map-road { position: absolute; top: 120px; inset-inline: -20px; height: 14px; background: #DDE7E0; transform: rotate(-8deg); }
.map-search {
  position: absolute; top: 16px; inset-inline: 12px; height: 38px;
  border-radius: var(--r-pill); background: var(--surface);
  box-shadow: 0 3px 10px rgba(30, 43, 43, 0.12);
  display: flex; align-items: center; padding: 0 14px;
  font-size: 11px; color: var(--muted);
}
.pin {
  position: absolute; width: 26px; height: 26px;
  border-radius: 50% 50% 50% 5px;
  transform: rotate(-45deg);
  border: 3px solid var(--surface);
  box-shadow: 0 3px 8px rgba(30, 43, 43, 0.3);
}
.pin-teal { background: var(--teal); top: 150px; inset-inline-start: 56px; }
.pin-amber { background: var(--amber); top: 210px; inset-inline-start: 150px; }
.pin-me {
  position: absolute; top: 260px; inset-inline-start: 80px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal); border: 3px solid var(--surface);
  box-shadow: 0 0 0 6px rgba(15, 92, 92, 0.15);
}
.map-card {
  position: absolute; inset-inline: 10px; bottom: 10px;
  background: var(--surface); border-radius: 18px; padding: 12px;
  box-shadow: 0 -4px 16px rgba(30, 43, 43, 0.1);
}

.confirm-screen {
  background: var(--cream); height: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 22px 14px; gap: 10px;
}
.confirm-tick {
  width: 54px; height: 54px; border-radius: 50%;
  background: #DFF0E6; color: var(--success);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.timeline { display: flex; align-items: center; }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; }
.tl-line { flex: 1; height: 2px; }

.chip-float {
  position: absolute;
  background: var(--surface); border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  color: var(--ink);
}
.chip-1 { inset-inline-start: -14px; top: 280px; animation: floaty 5s ease-in-out infinite; }
.chip-2 { inset-inline-end: 30px; top: 30px; animation: floaty 8s ease-in-out infinite; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floaty2 { 0%, 100% { transform: translateY(0) rotate(6deg); } 50% { transform: translateY(-10px) rotate(6deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Page heroes (inner pages)
   -------------------------------------------------------------------------- */

.hero-dark { background: var(--teal-dark); color: #FFF; }
.hero-teal { background: linear-gradient(140deg, var(--teal-deep) 0%, var(--teal) 55%, var(--amber-dark) 130%); color: #FFF; }
.hero-amber { background: linear-gradient(140deg, var(--amber-deeper) 0%, var(--amber) 45%, var(--teal) 140%); color: var(--on-amber); }

.hero-split { display: flex; align-items: center; gap: 48px; padding-block: 72px; }
.hero-split-copy { flex: 1; display: flex; flex-direction: column; gap: 18px; }
.hero-split-art { width: 380px; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Mode cards ("two ways to book")
   -------------------------------------------------------------------------- */

.mode-card {
  border-radius: var(--r-lg);
  padding: 36px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
}
.mode-card::after {
  content: '';
  position: absolute; inset-inline-end: -40px; bottom: -40px;
  width: 200px; height: 200px; border-radius: 50%;
}
.mode-shop { background: linear-gradient(150deg, var(--teal), #0B4747); color: #FFF; }
.mode-shop::after { background: rgba(255, 255, 255, 0.07); }
.mode-home { background: linear-gradient(150deg, var(--amber), var(--amber-deeper)); color: var(--on-amber); }
.mode-home::after { background: rgba(255, 255, 255, 0.18); }

.mode-icon {
  width: 56px; height: 56px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  position: relative; z-index: 1;
}
.mode-shop .mode-icon { background: rgba(255, 255, 255, 0.14); }
.mode-home .mode-icon { background: rgba(255, 255, 255, 0.3); }
/* Element children sit above the decorative ::after blob. */
.mode-card > * { position: relative; z-index: 1; }
.mode-title { font-size: 26px; font-weight: 700; }
.mode-body { font-size: 15px; line-height: 1.65; opacity: 0.88; }
.mode-link { font-weight: 700; font-size: 14px; }
.mode-shop .mode-link { color: var(--amber-light); }
.mode-shop .mode-link:hover { color: #FFF; }
.mode-home .mode-link { color: #0B4747; }

/* --------------------------------------------------------------------------
   Steps band (dark, landing)
   -------------------------------------------------------------------------- */

.band-dark { background: var(--teal-dark); color: #FFF; }
.band-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.band-link { color: var(--teal-pale); font-weight: 600; font-size: 15px; }
.band-link:hover { color: #FFF; }
.step-big { display: flex; flex-direction: column; gap: 12px; }
.step-big-n { font-size: 44px; font-weight: 800; color: var(--amber); line-height: 1; }
.step-big-t { font-size: 20px; font-weight: 700; }
.step-big-b { font-size: 14px; line-height: 1.65; opacity: 0.8; }

/* Owner stats panel */
.stat-panel {
  background: var(--teal-dark); color: #FFF;
  border-radius: var(--r-lg); padding: 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.stat-k { font-size: 26px; font-weight: 800; color: var(--amber); }
.stat-v { font-size: 14px; opacity: 0.85; margin-top: 6px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Download CTA
   -------------------------------------------------------------------------- */

.cta-panel {
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--teal) 20%, var(--teal-mid) 60%, var(--amber-dark) 120%);
  color: #FFF;
  padding: 64px 56px;
  display: flex; align-items: center; gap: 40px;
  position: relative; overflow: hidden;
}
.cta-panel::before {
  content: '';
  position: absolute; top: -100px; inset-inline-end: 120px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 169, 79, 0.45), transparent 65%);
}
.cta-copy { flex: 1; display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }

.store-row { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.store-badge {
  height: 54px; padding: 0 22px;
  border-radius: 14px;
  background: var(--ink-deep); color: #FFF;
  display: inline-flex; align-items: center; gap: 10px;
}
a.store-badge:hover { color: #FFF; }
.store-badge-top { font-size: 10px; opacity: 0.7; }
.store-badge-name { font-size: 15px; font-weight: 700; }
.store-badge--soon { opacity: 0.5; cursor: default; }

.apple-glyph {
  width: 20px; height: 24px;
  border-radius: 6px 6px 7px 7px;
  border: 2px solid #FFF;
  display: flex; align-items: flex-start; justify-content: center;
}
.apple-glyph::after { content: ''; width: 6px; height: 2px; background: #FFF; border-radius: 0 0 3px 3px; }

.qr-card {
  width: 150px; height: 150px;
  border-radius: var(--r-lg);
  background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; flex-shrink: 0; position: relative; z-index: 1;
}
.qr-art {
  width: 96px; height: 96px;
  background: repeating-conic-gradient(var(--ink) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px;
  border-radius: 8px;
}
.qr-label { font-size: 10px; color: var(--text-3); font-weight: 600; }

/* --------------------------------------------------------------------------
   Prose (legal pages)
   -------------------------------------------------------------------------- */

.prose { display: flex; flex-direction: column; gap: 28px; padding-block: 72px 80px; }
.prose h2 { font-size: 22px; font-weight: 700; }
.prose p { font-size: 15px; color: var(--text-2); line-height: 1.75; margin: 0; }
.prose section { display: flex; flex-direction: column; gap: 8px; }
.prose a { color: var(--teal); font-weight: 600; }
.prose ul { margin: 0; padding-inline-start: 20px; font-size: 15px; color: var(--text-2); line-height: 1.75; }
.prose li { margin-bottom: 6px; }
.meta { font-size: 14px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Footers
   -------------------------------------------------------------------------- */

.footer { background: var(--ink-deep); color: var(--footer-text); }
.footer a { color: var(--footer-text); }
.footer a:hover { color: #FFF; }

.footer-full { padding: 56px 24px 40px; display: flex; flex-direction: column; gap: 36px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 280px; }
.footer-brand-name { font-size: 17px; font-weight: 700; color: #FFF; }
.footer-tag { font-size: 13px; line-height: 1.6; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col-h { font-weight: 700; color: #FFF; font-size: 13px; letter-spacing: 1px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px; font-size: 12px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-slim {
  padding: 32px 24px; font-size: 13px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-slim-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Responsive — authored here, not present in the desktop-only prototypes.
   -------------------------------------------------------------------------- */

@media (max-width: 1040px) {
  .hero-inner { gap: 24px; }
  .hero-art { width: 420px; }
  .h-display { font-size: 46px; letter-spacing: -1px; }
  .cta-panel { padding: 48px 36px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-inner { flex-wrap: wrap; gap: 12px; padding-block: 12px; }
  .nav-links {
    display: none;
    order: 3; width: 100%;
    flex-direction: column; gap: 4px;
    margin-inline-start: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .nav-links a { padding: 12px 4px; font-size: 15px; }
  .nav-inner.open .nav-links { display: flex; }
  .nav-actions { margin-inline-start: auto; gap: 10px; }

  .hero-inner { flex-direction: column; align-items: flex-start; padding: 56px 24px 72px; }
  .hero-copy { max-width: none; }
  .hero-art {
    width: 100%; max-width: 460px; height: 500px;
    margin-inline: auto; transform: scale(0.92); transform-origin: top center;
  }
  .chip-1 { inset-inline-start: 0; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stat-panel { grid-template-columns: 1fr; gap: 20px; padding: 32px; }

  .hero-split { flex-direction: column; align-items: stretch; padding-block: 48px; }
  .hero-split-art { width: 100%; }

  .cta-panel { flex-direction: column; align-items: flex-start; }
  .qr-card { display: none; }

  .h-section, .h-page { font-size: 32px; letter-spacing: -0.6px; }
  .h-sub { font-size: 28px; }
  .section { padding-block: 48px; }
}

@media (max-width: 560px) {
  .wrap, .wrap-narrow, .wrap-prose { padding-inline: 18px; }
  .h-display { font-size: 34px; letter-spacing: -0.6px; }
  .h-section, .h-page { font-size: 27px; }
  .hero-lede, .lede, .lede-light { font-size: 16px; }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  .hero-art { display: none; }   /* mockups are decorative; drop them on small screens */

  .hero-points { gap: 18px; }
  .step-row { flex-direction: column; gap: 16px; padding: 24px; }
  .card { padding: 22px; }
  .mode-card { padding: 26px; }
  .cta-panel { padding: 32px 24px; }
  .note-box { padding: 18px 20px; }
  .prose { padding-block: 44px 56px; }

  .footer-cols { gap: 32px; }
  .footer-full { padding: 40px 18px 32px; }
  .footer-bottom, .footer-slim { flex-direction: column; gap: 10px; }

  .lang { display: none; }   /* language switch lives in the nav menu on mobile */
  .nav-links .lang-inline { display: flex; gap: 8px; padding-top: 8px; }
}

.lang-inline { display: none; }

@media print {
  .nav, .footer-slim, .footer-full { display: none; }
  body { background: #FFF; }
}
