/* ==========================================================================
   Dalilni: marketing landing page.

   Shared by index.html (English, LTR) and ar.html (Arabic, RTL). Structure,
   spacing and section order are identical; direction, typography and copy
   differ, which is why the type rules below branch on :root[lang].

   Built to DALILNI_LANDING_PAGE.md + LANDING_PAGE_AR.md (2026-08-03).
   Canvas 1440px, 72px horizontal padding. NOT responsive: the handoffs say
   breakpoints have not been designed and to ask before inventing them.
   ========================================================================== */

/* --- fonts ---------------------------------------------------------------
   English: Cormorant Garamond (display) + Jost (UI).
   Arabic:  Amiri (display) + IBM Plex Sans Arabic (UI).
   All subset to woff2 locally; nothing is fetched from Google.             */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fonts/CormorantGaramond.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('assets/fonts/Jost.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Amiri';
  src: url('assets/fonts/Amiri-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Amiri';
  src: url('assets/fonts/Amiri-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('assets/fonts/IBMPlexSansArabic-300.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('assets/fonts/IBMPlexSansArabic-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('assets/fonts/IBMPlexSansArabic-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('assets/fonts/IBMPlexSansArabic-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

/* --- tokens -------------------------------------------------------------- */

:root {
  /* surfaces */
  --ground: #fafafc;
  --card: #ffffff;
  --sunken: #f3f1f7;
  --border: #e7e4ee;
  --faint: #f0eef4;

  /* violet ramp: one hue, five jobs */
  --tint: #f1ecfa;
  --bar: #c9b6e8;
  --violet: #7652b4;
  --violet-press: #5b3c93;
  --violet-dark: #33215c;

  /* text */
  --head: #1c1a22;
  --body: #4a4356;
  --second: #6b6478;
  --muted: #8a8397;
  --faint-text: #b3acbf;

  /* gold: star ratings and discount badges ONLY */
  --gold: #c9942f;
  --gold-tint: #fbf3e2;
  --gold-dark: #e0b45c;

  /* elevation: violet shadows, never warm brown */
  --sh-card: 0 4px 12px -6px rgba(51, 33, 92, 0.12);
  --sh-raised: 0 12px 28px -14px rgba(51, 33, 92, 0.22);
  --sh-float: 0 24px 50px -24px rgba(51, 33, 92, 0.32);

  --pad: clamp(20px, 5vw, 72px);
  --canvas: 1440px;

  /* Type stacks and metrics, swapped wholesale per language below.
     Arabic needs more leading and zero tracking; Latin wants tight tracking
     at display sizes. Nothing here is shared except the ramp names. */
  --display: 'Cormorant Garamond', Georgia, serif;
  --ui: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --h1-size: clamp(2.7rem, 6.9vw, 96px);
  --h1-lh: 0.94;
  --h2-size: clamp(2.05rem, 4.1vw, 56px);
  --h2-lh: 1.02;
  --cta-size: clamp(2.3rem, 5.5vw, 76px);
  --cta-lh: 1;
  --card-title: clamp(21px, 1.9vw, 25px);
  --display-weight: 500;
  --card-weight: 600;
  --track-lg: -0.025em;
  --track-md: -0.02em;
  --body-size: clamp(16px, 1.35vw, 19px);
  --body-lh: 1.6;
  --eb-size: 10px;
  --eb-track: 0.24em;
  --eb-weight: 500;
  --eb-transform: uppercase;
}

:root[lang='ar'] {
  --display: 'Amiri', 'Times New Roman', serif;
  --ui: 'IBM Plex Sans Arabic', -apple-system, 'Segoe UI', Arial, sans-serif;
  --h1-size: clamp(2.5rem, 6.6vw, 92px);
  --h1-lh: 1.14;
  --h2-size: clamp(2rem, 4.2vw, 58px);
  --h2-lh: 1.2;
  --cta-size: clamp(2.2rem, 5.4vw, 74px);
  --cta-lh: 1.22;
  --card-title: clamp(21px, 2vw, 26px);
  --display-weight: 700;
  --card-weight: 700;
  /* Arabic is a cursive joined script: any tracking breaks the joins. */
  --track-lg: 0;
  --track-md: 0;
  --body-lh: 1.9;
  --eb-size: 11px;
  --eb-track: 0;
  --eb-weight: 600;
  --eb-transform: none;
}

/* --- reset --------------------------------------------------------------- */

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--ui);
  font-weight: 300;
  font-size: var(--body-size);
  line-height: var(--body-lh);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-press); }

:where(a, button):focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

p { text-wrap: pretty; }

/* Figures that must not reorder in RTL: prices, ratings, stat numbers, step
   numbers, clock times, and the store brand names. */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.wrap {
  max-width: var(--canvas);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  background: var(--violet);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.skip:focus { width: auto; height: auto; overflow: visible; clip-path: none; }

/* --- shared type --------------------------------------------------------- */

.eyebrow {
  font-family: var(--ui);
  font-size: var(--eb-size);
  font-weight: var(--eb-weight);
  letter-spacing: var(--eb-track);
  text-transform: var(--eb-transform);
  color: var(--muted);
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--head);
  font-weight: var(--display-weight);
}

h1 { font-size: var(--h1-size); line-height: var(--h1-lh); letter-spacing: var(--track-lg); }
h2 { font-size: var(--h2-size); line-height: var(--h2-lh); letter-spacing: var(--track-md); }

/* The English page emphasises a phrase in italic violet. Arabic has no
   italics, so ar.html gets colour only at the same weight. */
.em { color: var(--violet); font-style: italic; }
:root[lang='ar'] .em { font-style: normal; }

.lede {
  color: var(--body);
  max-width: 46ch;
  font-size: var(--body-size);
}

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 15px 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--violet);
  color: #fff;
  transition: background 0.18s ease;
}
.btn:hover { background: var(--violet-press); color: #fff; }

/* The only mirrored icon on the page. */
.btn .arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root[lang='ar'] .btn .arrow { transform: scaleX(-1); }

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--sh-card);
  color: var(--head);
}
.store:hover { color: var(--head); border-color: var(--violet); }
.store svg { width: 22px; height: 22px; fill: var(--head); flex: none; }
.store b { display: block; font-family: var(--ui); font-weight: 500; font-size: 14px; line-height: 1.25; }
.store span { font-size: 11px; color: var(--second); }

/* --- nav ----------------------------------------------------------------- */

.nav { border-bottom: 1px solid var(--border); background: var(--ground); }
.nav-in { display: flex; align-items: center; gap: 34px; height: 84px; }

.wordmark {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  color: var(--head);
  margin-inline-end: auto;
}
:root[lang='ar'] .wordmark { font-weight: 700; font-size: 27px; }

.nav a.navlink { font-size: 15px; font-weight: 400; color: var(--body); }
.nav a.navlink:hover { color: var(--violet); }
.nav .lang { font-size: 14px; color: var(--second); }

/* --- hero ---------------------------------------------------------------- */

.hero { padding-block: 96px 104px; }
.hero-grid { display: grid; grid-template-columns: 1fr 520px; gap: 64px; align-items: center; }
.hero h1 { margin-block: 22px 26px; }
.hero .lede { margin-bottom: 34px; }
.hero-buttons { display: flex; gap: 14px; margin-bottom: 46px; }

.stats { display: flex; align-items: center; gap: 30px; }
.stat-n { font-family: var(--display); font-size: 32px; font-weight: var(--card-weight); color: var(--head); line-height: 1; }
.stat-l { font-size: 13px; color: var(--second); margin-top: 6px; }
.stats .rule { width: 1px; height: 38px; background: var(--border); }

/* Phone mock, with the violet glow behind it. */
/* overflow-x: clip contains the 620px glow below without creating a scroll
   container, which `hidden` would, and which would break sticky positioning.
   Without it the glow pushed the page 59px wider than the viewport at ~1024px:
   invisible, but it made the whole page scroll sideways. */
.phone-wrap { position: relative; display: grid; place-items: center; overflow-x: clip; }
.phone-wrap::before {
  content: '';
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 82, 180, 0.14), transparent 68%);
}
.phone {
  position: relative;
  width: 330px;
  background: var(--card);
  border: 10px solid #1a1720;
  border-radius: 46px;
  box-shadow: var(--sh-float);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
}
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 13px 22px 6px; font-size: 11px; font-weight: 500; color: var(--head); }
.ph-status svg { width: 34px; height: 12px; fill: var(--head); }
.ph-body { padding: 10px 18px 16px; }
.ph-greet { font-family: var(--display); font-size: 22px; font-weight: var(--card-weight); color: var(--head); line-height: 1.25; }
.ph-sub { font-size: 11px; color: var(--second); margin-bottom: 12px; }
.ph-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--sunken); border-radius: 12px; padding: 9px 13px; font-size: 12px; color: var(--faint-text); margin-bottom: 14px; }
.ph-search svg { width: 14px; height: 14px; fill: none; stroke: var(--faint-text); stroke-width: 1.8; }

.ph-hero { border-radius: 18px; padding: 14px; color: #fff; position: relative; overflow: hidden; margin-bottom: 14px;
  background: linear-gradient(145deg, #7652b4, #33215c); }
.ph-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120px 120px at 88% -10%, rgba(201,148,47,0.32), transparent 70%); }
:root[lang='ar'] .ph-hero::after { background: radial-gradient(120px 120px at 12% -10%, rgba(201,148,47,0.32), transparent 70%); }
.ph-hero .eb { font-size: 9px; letter-spacing: var(--eb-track); text-transform: var(--eb-transform); color: var(--gold-dark); font-weight: var(--eb-weight); position: relative; }
.ph-hero .t { font-family: var(--display); font-size: 17px; font-weight: var(--card-weight); margin-top: 4px; position: relative; }
.ph-hero .m { font-size: 11px; color: #d6cbee; margin-top: 2px; position: relative; }
.ph-hero .go { margin-top: 10px; display: inline-block; background: #fff; color: var(--violet-dark); font-size: 11px; font-weight: 600; padding: 7px 14px; border-radius: 999px; position: relative; }

.ph-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.ph-cat { border: 1px solid var(--border); border-radius: 14px; padding: 10px 4px; text-align: center; font-size: 9.5px; color: var(--second); }
.ph-cat svg { width: 17px; height: 17px; margin: 0 auto 5px; fill: none; stroke: var(--violet); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.ph-card { display: flex; gap: 10px; border: 1px solid var(--border); border-radius: 14px; padding: 9px; margin-bottom: 8px; box-shadow: var(--sh-card); }
.ph-thumb { width: 52px; height: 52px; border-radius: 10px; flex: none; }
.ph-name { font-family: var(--display); font-size: 14px; font-weight: var(--card-weight); color: var(--head); }
.ph-meta { font-size: 10px; color: var(--second); margin-top: 2px; }

/* Floating glass bottom nav. */
.ph-nav { margin: 12px 10px 12px; border-radius: 999px; padding: 11px 8px 9px;
  background: rgba(255,255,255,0.55); backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 12px 32px rgba(51,33,92,0.16), inset 0 1px 0 rgba(255,255,255,0.9);
  display: grid; grid-template-columns: repeat(4, 1fr); }
.ph-nav div { display: grid; justify-items: center; gap: 5px; }
.ph-nav svg { width: 19px; height: 19px; fill: none; stroke: var(--faint-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ph-nav .on svg { stroke: var(--violet); stroke-width: 1.9; width: 20px; height: 20px; filter: drop-shadow(0 0 6px rgba(201,148,47,0.45)); }
.ph-nav .hair { width: 22px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* --- region strip -------------------------------------------------------- */

.region { border-block: 1px solid var(--border); padding-block: 30px; }
.region-in { display: flex; align-items: baseline; gap: 24px; }
.region-list { font-family: var(--display); font-style: italic; font-size: 25px; color: var(--muted); }
:root[lang='ar'] .region-list { font-style: normal; font-size: 26px; }

/* --- section scaffolding ------------------------------------------------- */

section { padding-block: 110px; }
.split-head { display: grid; grid-template-columns: 400px 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.split-head .eyebrow { display: block; margin-bottom: 18px; }

/* --- discover ------------------------------------------------------------ */

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.scard { background: var(--card); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; box-shadow: var(--sh-card); }
.scard:hover { box-shadow: var(--sh-raised); }

/* Striped placeholder standing in for real photography. */
.photo {
  height: 250px;
  position: relative;
  background: repeating-linear-gradient(135deg, #ede9f5 0 14px, #f5f2fa 14px 28px);
}
/* Scoped to .lbl, not to every span: an unscoped `.photo span` also matched
   the discount badge (and the LTR span nested inside it), giving the badge
   both a top and a bottom inset so it stretched the height of the photo. */
.photo .lbl {
  position: absolute; inset-block-end: 12px; inset-inline-start: 14px;
  font-size: 11px; color: var(--faint-text); font-weight: 400;
}
.badge {
  position: absolute; inset-block-start: 14px; inset-inline-start: 14px;
  background: var(--gold); color: #fff; font-size: 11px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
}
.scard-b { padding: 20px 22px 22px; }
.scard h3 { font-size: var(--card-title); font-weight: var(--card-weight); line-height: 1.2; letter-spacing: var(--track-md); }
.scard-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.chip { font-size: 11px; font-weight: 500; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.chip.women { color: #b0446a; background: #fcedf2; }
.chip.men { color: #2f6b8f; background: #e8f1f7; }
.chip.unisex { color: #5b3c93; background: #f1ecfa; }
.scard-loc { font-size: 14px; color: var(--second); margin-top: 8px; }
.scard-f { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--faint); margin-top: 18px; padding-top: 16px; font-size: 14px; }
.price { color: var(--head); font-weight: 500; }
.rating { display: inline-flex; align-items: center; gap: 5px; color: var(--head); font-weight: 500; }
.rating svg { width: 14px; height: 14px; fill: var(--gold); }

/* --- how it works -------------------------------------------------------- */

.how { display: grid; grid-template-columns: 1fr 480px; gap: 72px; align-items: start; }
.steps { margin-top: 40px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding-block: 28px; border-top: 1px solid var(--border); }
.step:last-child { border-bottom: 1px solid var(--border); }
.step-n { font-family: var(--display); font-size: 26px; font-weight: var(--card-weight); color: var(--violet); line-height: 1.1; }
.step h3 { font-size: 22px; font-weight: var(--card-weight); margin-bottom: 6px; letter-spacing: var(--track-md); }
.step p { font-size: 16px; }

.how-media { position: relative; }
.how-photo { height: 560px; border-radius: 24px; position: relative;
  background: repeating-linear-gradient(135deg, #ede9f5 0 14px, #f5f2fa 14px 28px); }
.how-photo span { position: absolute; inset-block-end: 16px; inset-inline-start: 18px; font-size: 11px; color: var(--faint-text); }

/* Overlaps the photo's edge on purpose: left in LTR, right in RTL. */
.confirm {
  position: absolute;
  inset-block-end: 46px;
  inset-inline-start: -56px;
  width: 300px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--sh-float);
}
.confirm .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pill-ok { font-size: 11px; font-weight: 600; color: #1f7a5a; background: #e6f4ee; padding: 4px 11px; border-radius: 999px; }
.confirm h4 { font-family: var(--display); font-size: 20px; font-weight: var(--card-weight); color: var(--head); line-height: 1.25; letter-spacing: var(--track-md); }
.confirm .who { font-size: 13px; color: var(--second); margin-top: 5px; }
.confirm .when { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--faint); margin-top: 14px; padding-top: 12px; font-size: 13px; color: var(--head); }

/* --- testimonial --------------------------------------------------------- */

.quote-band {
  border-radius: 30px;
  padding: 72px;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #7652b4, #33215c);
}
.quote-band::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(340px 340px at 88% -20%, rgba(201, 148, 47, 0.28), transparent 70%);
}
:root[lang='ar'] .quote-band::after {
  background: radial-gradient(340px 340px at 12% -20%, rgba(201, 148, 47, 0.28), transparent 70%);
}
.quote-in { position: relative; display: grid; grid-template-columns: 1fr 280px; gap: 72px; align-items: center; }
.quote-band .eyebrow { color: var(--gold-dark); }
.quote-band blockquote { font-family: var(--display); font-size: 42px; line-height: 1.3; font-style: italic; font-weight: var(--display-weight); margin-block: 20px 30px; letter-spacing: var(--track-md); }
:root[lang='ar'] .quote-band blockquote { font-style: normal; line-height: 1.55; }
.byline { display: flex; align-items: center; gap: 14px; }
.avatar { width: 46px; height: 46px; border-radius: 999px; background: linear-gradient(150deg, #8a64c8, #4a2f7d); }
.byline b { font-weight: 500; font-size: 15px; color: #fff; display: block; }
.byline span { font-size: 13px; color: #c6b9e2; }
.qstats { display: grid; gap: 30px; }
.qstat b { font-family: var(--display); font-size: 44px; font-weight: var(--card-weight); color: #fff; line-height: 1; display: block; }
.qstat span { font-size: 14px; color: #c6b9e2; }

/* --- for salon owners ---------------------------------------------------- */

.owners { display: grid; grid-template-columns: 1fr 480px; gap: 72px; align-items: center; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-block: 42px 38px; }
.benefit { border-top: 1px solid var(--border); padding-top: 16px; }
.benefit b { font-family: var(--display); font-size: 20px; font-weight: var(--card-weight); color: var(--head); display: block; margin-bottom: 6px; letter-spacing: var(--track-md); }
.benefit span { font-size: 14px; color: var(--second); }

.dash { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 28px; box-shadow: var(--sh-float); }
.dash-top { display: flex; align-items: baseline; justify-content: space-between; }
.dash-top span { font-size: 13px; color: var(--second); }
.dash-rev { font-family: var(--display); font-size: 46px; font-weight: var(--card-weight); color: var(--head); line-height: 1.05; margin-top: 14px; }
.dash-sub { font-size: 13px; color: var(--second); margin-top: 4px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 116px; margin-top: 26px; }
.week i { background: var(--tint); border-radius: 6px 6px 0 0; display: block; }
.week i.on { background: var(--violet); }
.week-x { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 8px; font-size: 11px; color: var(--faint-text); text-align: center; }
.dash-staff { border-top: 1px solid var(--faint); margin-top: 24px; padding-top: 20px; }
.dash-staff .eyebrow { display: block; margin-bottom: 16px; }
.staff { margin-bottom: 14px; }
.staff-r { display: flex; justify-content: space-between; font-size: 14px; color: var(--head); margin-bottom: 6px; }
.track { height: 7px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.track i { display: block; height: 100%; background: var(--violet); border-radius: 999px; }

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

.cta { text-align: center; }
.cta h2 { font-size: var(--cta-size); line-height: var(--cta-lh); letter-spacing: var(--track-lg); margin-block: 20px 24px; }
.cta p { color: var(--second); margin-bottom: 34px; }
.cta .hero-buttons { justify-content: center; margin-bottom: 0; }

/* --- footer -------------------------------------------------------------- */

.foot { border-top: 1px solid var(--border); padding-block: 66px 34px; }
.foot-top { display: grid; grid-template-columns: 1fr repeat(3, 190px); gap: 48px; }
.foot-desc { font-size: 15px; color: var(--second); margin-top: 10px; max-width: 34ch; }
.foot h4 { font-family: var(--ui); font-size: 13px; font-weight: 500; color: var(--head); margin-bottom: 14px; }
.foot li { margin-bottom: 9px; }
.foot li a { font-size: 14px; color: var(--second); }
.foot li a:hover { color: var(--violet); }
.foot-end { display: flex; justify-content: space-between; border-top: 1px solid var(--border); margin-top: 54px; padding-top: 22px; font-size: 13px; color: var(--faint-text); }
.foot-end a { color: var(--faint-text); }
.foot-end a:hover { color: var(--violet); }

/* --- responsive -----------------------------------------------------------
   NOT from the handoffs. Both say breakpoints "are not yet designed" and to ask
   before inventing them, so everything below is a reconstruction and should be
   reviewed by the designer.

   The desktop rules above are untouched: at >=1180px the page renders exactly
   as specified. These only take effect as the viewport narrows.

   Three stops: tablet landscape, tablet portrait, phone. The side-by-side grids
   collapse first, then the card rows, then the last multi-column pieces.       */

/* --- tablet landscape --------------------------------------------------- */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr 400px; gap: 44px; }
  .how, .owners { grid-template-columns: 1fr 360px; gap: 48px; }
  .split-head { grid-template-columns: 340px 1fr; gap: 44px; }
  .quote-in { grid-template-columns: 1fr 210px; gap: 44px; }
  .quote-band { padding: 52px; }
  .cards3 { gap: 20px; }
  section { padding-block: 84px; }
}

/* --- tablet portrait: every side-by-side pair stacks --------------------- */
@media (max-width: 900px) {
  .hero-grid, .how, .owners, .split-head, .quote-in {
    grid-template-columns: 1fr;
  }
  .split-head { gap: 20px; align-items: start; }
  .hero { padding-block: 56px 64px; }

  /* The phone mock leads on narrow screens: the product before the pitch. */
  .hero-grid .phone-wrap { order: -1; margin-bottom: 8px; }
  .phone-wrap::before { width: 420px; height: 420px; }

  /* The tall photo would otherwise eat a whole screen on its own. */
  .how-photo { height: 340px; }

  /* Stop overlapping the photo edge; there is no room for it to hang into. */
  .confirm {
    position: static;
    width: auto;
    max-width: 420px;
    margin-top: -46px;
    margin-inline: auto 0;
  }

  .cards3 { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .quote-band blockquote { font-size: clamp(1.5rem, 4.6vw, 2.2rem); }
  .qstats { grid-template-columns: repeat(2, 1fr); display: grid; gap: 24px; }
}

/* --- phone --------------------------------------------------------------- */
@media (max-width: 620px) {
  section { padding-block: 60px; }

  /* Nav links would wrap into an unreadable pile; the wordmark, the language
     switch and the one call to action are what matter on a phone. */
  .nav-in { min-height: 66px; gap: 16px; }
  .nav a.navlink { display: none; }
  .btn { padding: 13px 20px; font-size: 14px; }

  .hero-buttons { flex-direction: column; align-items: stretch; }
  .store { justify-content: center; }

  /* Three stats side by side become unreadably narrow; two rows read better. */
  .stats { flex-wrap: wrap; gap: 18px 22px; }
  .stats .rule { display: none; }
  .stats > div { flex: 1 1 40%; }

  .region-in { flex-direction: column; gap: 8px; }
  .cards3, .benefits, .foot-top { grid-template-columns: 1fr; }
  .benefits { margin-block: 30px 28px; }
  .photo { height: 200px; }
  .how-photo { height: 260px; }
  .confirm { margin-top: -36px; padding: 15px 17px; }
  .quote-band { padding: 34px 24px; border-radius: 22px; }
  .qstats { grid-template-columns: 1fr; gap: 18px; }
  .dash { padding: 20px; }
  .week { height: 92px; gap: 6px; }
  .week-x { gap: 6px; font-size: 9.5px; }
  .foot-end { flex-direction: column; gap: 10px; }
  .step { grid-template-columns: 46px 1fr; gap: 14px; }
}

/* The phone mock is a fixed 330px. Below ~380px it would touch the edges, so
   it scales down rather than forcing the page to scroll sideways. */
@media (max-width: 380px) {
  .phone { width: 100%; border-width: 8px; border-radius: 38px; }
  .ph-cats { gap: 6px; }
  .ph-cat { font-size: 9px; }
}
