/* ============================================================
   SOMEAA — Design system
   Art direction: Apple-product-page storytelling (full-bleed,
   alternating light/dark, centered display type, sticky moments)
   executed in Someaa's own brand: black / white / star gold.
   Audience: Riyadh business owners, 25–40, mobile-first, AR-RTL.
   ============================================================ */

:root {
  /* --- Global palette -------------------------------------- */
  --c-ink:            #000000;
  --c-paper:          #ffffff;
  --c-surface:        #f5f5f7;   /* light section alt bg */
  --c-surface-dark:   #0a0a0a;   /* dark section bg */
  --c-fg-muted:       #525252;   /* 7.4:1 on paper */
  --c-fg-muted-dark:  #a3a3a3;   /* 7.6:1 on ink */
  --c-border:         #e5e5e5;
  --c-border-dark:    #2a2a2a;
  --c-accent:         #f5a623;   /* FILLS only: stars, badges, gold-on-black */
  --c-on-accent:      #000000;   /* 10.4:1 — never white on accent */
  /* Gold as TEXT is only legible on dark. On light backgrounds #f5a623 is
     2.0:1, so light sections use a darkened amber (5.3:1 on the tint bg). */
  --c-accent-text:    #8a5a00;
  --c-whatsapp:       #25d366;   /* glyph only, never a text bg */

  /* --- Section theming (set per-section, consumed by children) */
  --sec-bg:     var(--c-paper);
  --sec-fg:     var(--c-ink);
  --sec-muted:  var(--c-fg-muted);
  --sec-border: var(--c-border);
  --sec-card:   var(--c-surface);

  /* --- Type ------------------------------------------------- */
  --font-ar:  "Cairo", system-ui, -apple-system, sans-serif;
  --font-en:  "Archivo", system-ui, -apple-system, sans-serif;
  --font-num: "Archivo", ui-monospace, monospace;

  /* Arabic sits taller and denser than Latin at the same px size, so the
     display steps are deliberately smaller than a Latin-derived scale.
     Phone-first: hero lands ~33px at 375px, not 51px. */
  --fs-xs:      0.8125rem;
  --fs-sm:      0.9375rem;
  --fs-base:    1.0625rem;
  --fs-lg:      clamp(1.0625rem, 1.00rem + 0.35vw, 1.1875rem);
  --fs-xl:      clamp(1.1875rem, 1.10rem + 0.6vw,  1.5rem);
  --fs-2xl:     clamp(1.375rem,  1.20rem + 1.0vw,  2rem);
  --fs-3xl:     clamp(1.625rem,  1.35rem + 1.6vw,  2.5rem);
  --fs-display: clamp(1.875rem,  1.45rem + 2.2vw,  3.25rem);
  --fs-hero:    clamp(2.125rem,  1.55rem + 3.0vw,  4.25rem);

  --lh-tight:   1.06;
  --lh-head:    1.2;
  --lh-body:    1.6;
  --lh-body-ar: 1.85;

  /* --- Space ------------------------------------------------ */
  --sp-1:4px;  --sp-2:8px;   --sp-3:12px; --sp-4:16px;
  --sp-5:20px; --sp-6:24px;  --sp-8:32px; --sp-10:40px;
  --sp-12:48px; --sp-16:64px; --sp-20:80px; --sp-24:96px;
  --sp-section: clamp(56px, 9vw, 120px);
  --gutter:     clamp(20px, 5vw, 40px);
  --container:  1180px;
  --container-narrow: 820px;

  /* --- Form ------------------------------------------------- */
  --r-sm:4px; --r-md:8px; --r-lg:18px; --r-xl:28px; --r-pill:999px;
  --shadow-card: 0 1px 3px rgb(0 0 0 / .06), 0 12px 32px -12px rgb(0 0 0 / .12);
  --shadow-pop:  0 2px 6px rgb(0 0 0 / .08), 0 24px 60px -16px rgb(0 0 0 / .22);
  --tap-min: 48px;
  --tap-cta: 58px;

  /* --- Motion ----------------------------------------------- */
  --dur-fast: 150ms;
  --dur-base: 260ms;
  --dur-slow: 520ms;
  --dur-reveal: 800ms;
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-inout:  cubic-bezier(.65, 0, .35, 1);

  /* --- Layers ----------------------------------------------- */
  --z-base:0; --z-sticky:10; --z-nav:20; --z-bar:30; --z-overlay:40; --z-modal:50;
}

/* ============================================================
   Base
   ============================================================ */

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

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: 92px;
}

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-ar);
  font-size: var(--fs-base);
  line-height: var(--lh-body-ar);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html[lang="en"] body {
  font-family: var(--font-en);
  line-height: var(--lh-body);
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: var(--lh-head);
  font-weight: 900;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Archivo wdth axis — real condensed for English, echoing the wordmark */
html[lang="en"] h1, html[lang="en"] h2,
html[lang="en"] h3, html[lang="en"] h4 {
  font-stretch: 80%;
  letter-spacing: -0.025em;
}

p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a  { color: inherit; }

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 800;
  font-stretch: 100%;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  inset-block-start: -100%;
  inset-inline-start: var(--sp-4);
  z-index: var(--z-modal);
  background: var(--c-ink);
  color: var(--c-paper);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-md);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { inset-block-start: var(--sp-4); }

[dir="rtl"] .icon-dir { transform: scaleX(-1); }

/* Sprite icons (<use href="#i-*">) — sized by their context rule where one
   exists, this is the fallback. */
.ico {
  inline-size: 1.25em;
  block-size: 1.25em;
  fill: currentColor;
  flex: none;
}

/* ============================================================
   Layout primitives
   ============================================================ */

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

.section {
  background: var(--sec-bg);
  color: var(--sec-fg);
  padding-block: var(--sp-section);
  position: relative;
}
.section--dark {
  --sec-bg:     var(--c-ink);
  --sec-fg:     var(--c-paper);
  --sec-muted:  var(--c-fg-muted-dark);
  --sec-border: var(--c-border-dark);
  --sec-card:   #141414;
  --c-accent-text: var(--c-accent);
}
.section--tint { --sec-bg: var(--c-surface); }

.section__head {
  text-align: center;
  /* 24ch here resolves against THIS element's own (small, body-size) font,
     not the much larger heading font inside it — so on wide screens the
     52px-bold title gets squeezed into a ~230px box and wraps one word per
     line. Mobile looks fine because the viewport is narrow anyway; widen
     only from tablet up, where the mismatch actually shows. */
  max-inline-size: 24ch;
  margin-inline: auto;
  margin-block-end: clamp(48px, 7vw, 88px);
}
@media (min-width: 700px) {
  .section__head { max-inline-size: var(--container-narrow); }
}
.section__eyebrow {
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent-text);
  margin-block-end: var(--sp-4);
}
.section__title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
}
.section__sub {
  font-size: var(--fs-lg);
  color: var(--sec-muted);
  max-inline-size: 46ch;
  margin-inline: auto;
  margin-block-start: var(--sp-6);
  text-wrap: pretty;
}

/* ============================================================
   Scroll reveal — CSS-driven, JS only adds .is-visible
   ============================================================ */

/* Content is visible by default. Only when JS has confirmed it can observe
   and animate does it add .js-reveal, which arms the hidden start state.
   Without JS, with a JS error, or in a tab that never composites, the page
   still renders in full — a reveal effect must never be able to blank it. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}
.js-reveal [data-reveal="scale"] { transform: scale(.94); }
.js-reveal [data-reveal="scale"].is-visible { transform: none; }

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--c-paper) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  border-block-end: 1px solid var(--c-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-block-size: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--tap-min);
  padding-inline: var(--sp-2);
  margin-inline: calc(var(--sp-2) * -1);
  text-decoration: none;
  touch-action: manipulation;
}
.brand picture { display: inline-flex; }
.brand img { block-size: 20px; inline-size: auto; }

.header__actions { display: flex; align-items: center; gap: var(--sp-2); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: var(--tap-min);
  min-inline-size: var(--tap-min);
  padding-inline: var(--sp-4);
  background: transparent;
  color: var(--c-ink);
  border: 1.5px solid var(--c-ink);
  border-radius: var(--r-pill);
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.lang-toggle:hover { background: var(--c-ink); color: var(--c-paper); }

.header__cta {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  min-block-size: var(--tap-min);
  padding-inline: var(--sp-5);
  background: var(--c-ink);
  color: var(--c-paper);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out);
}
.header__cta:hover { transform: translateY(-1px); }
.header__cta svg { inline-size: 18px; block-size: 18px; fill: var(--c-whatsapp); }
@media (min-width: 700px) { .header__cta { display: inline-flex; } }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-block-size: var(--tap-cta);
  padding-inline: var(--sp-8);
  padding-block: var(--sp-3);
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: var(--fs-lg);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.btn:active { transform: scale(.98); }

.btn--primary {
  background: var(--sec-fg);
  color: var(--sec-bg);
  box-shadow: var(--shadow-card);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.btn--primary:active { transform: translateY(0) scale(.98); }
.btn__wa { inline-size: 26px; block-size: 26px; flex: none; fill: var(--c-whatsapp); }

.btn--ghost {
  min-block-size: var(--tap-min);
  padding-inline: var(--sp-5);
  background: transparent;
  color: var(--sec-fg);
  font-size: var(--fs-base);
  font-weight: 700;
  border-color: color-mix(in srgb, currentColor 25%, transparent);
}
.btn--ghost:hover { border-color: currentColor; }

.btn--link {
  min-block-size: var(--tap-min);
  padding-inline: var(--sp-2);
  background: none;
  color: var(--sec-fg);
  font-size: var(--fs-base);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 112px);
  text-align: center;
  overflow: hidden;
}

.hero__stars {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-block-end: var(--sp-6);
}
.hero__stars svg {
  inline-size: clamp(22px, 3.4vw, 30px);
  /* Explicit ratio: block-size:auto cannot resolve from a <use>'d viewBox,
     so the icon would stretch to the flex line height. */
  aspect-ratio: 1;
  block-size: auto;
  fill: var(--c-accent);
  opacity: 0;
  animation: star-pop var(--dur-slow) var(--ease-out) forwards;
}
.hero__stars svg:nth-child(1) { animation-delay: 120ms; }
.hero__stars svg:nth-child(2) { animation-delay: 200ms; }
.hero__stars svg:nth-child(3) { animation-delay: 280ms; }
.hero__stars svg:nth-child(4) { animation-delay: 360ms; }
.hero__stars svg:nth-child(5) { animation-delay: 440ms; }

@keyframes star-pop {
  from { opacity: 0; transform: scale(.4) translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.hero__title {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  max-inline-size: 15ch;
  margin-inline: auto;
}
.hero__title em {
  font-style: normal;
  display: block;
  color: var(--c-fg-muted);
}

.hero__sub {
  font-size: var(--fs-lg);
  color: var(--c-fg-muted);
  max-inline-size: 40ch;
  margin-inline: auto;
  margin-block-start: var(--sp-6);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-4);
  margin-block-start: var(--sp-10);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3) var(--sp-6);
  margin-block-start: var(--sp-8);
  font-size: var(--fs-sm);
  color: var(--c-fg-muted);
}
.hero__meta li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.hero__meta svg { inline-size: 16px; block-size: 16px; flex: none; fill: currentColor; }

/* Hero product stage — the AirTag "product floats" moment */
.hero__stage {
  position: relative;
  margin-block-start: clamp(48px, 8vw, 96px);
  display: grid;
  place-items: center;
}
.hero__glow {
  position: absolute;
  inline-size: min(620px, 92vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(245 166 35 / .16), transparent 62%);
  filter: blur(8px);
  pointer-events: none;
}
.hero__product {
  position: relative;
  inline-size: min(440px, 78vw);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  aspect-ratio: 1 / 1;
}
.hero__product picture { display: block; inline-size: 100%; block-size: 100%; }
.hero__product img { inline-size: 100%; block-size: 100%; object-fit: cover; }

/* ============================================================
   TAP DEMO — animated vector scene (no video, no image sequence)
   ============================================================ */

.demo {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (min-width: 940px) {
  .demo { grid-template-columns: 1fr 1fr; }
}

.demo__steps { display: grid; gap: var(--sp-8); }

.demo__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-5);
  align-items: start;
  padding-block: var(--sp-2);
}
.demo__num {
  inline-size: 44px;
  block-size: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-family: var(--font-num);
  font-weight: 800;
  font-size: var(--fs-lg);
  flex: none;
}
.demo__step h3 { font-size: var(--fs-lg); margin-block-end: var(--sp-2); }
.demo__step p  { color: var(--sec-muted); }

/* --- Real tap video --- */

.vidwrap {
  margin: 0;
  justify-self: center;
  inline-size: min(300px, 74vw);
}
.vid {
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 720 / 1280;
  border-radius: 28px;
  background: #0d0d0d;
  border: 3px solid #262626;
  box-shadow: var(--shadow-pop);
  object-fit: cover;
  display: block;
}
.vidcap {
  margin-block-start: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--sec-muted);
  text-align: center;
  text-wrap: pretty;
}

/* ============================================================
   IN THE WILD — real installation photos
   ============================================================ */

.inst {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
/* Phones: one swipeable row rather than a tall stack of 7 */
@media (max-width: 640px) {
  .inst {
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-block-end: var(--sp-3);
    /* let the row bleed to the screen edge, then pad it back */
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: thin;
  }
  .inst__item { scroll-snap-align: start; }
}
.inst__item {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--sec-card);
  border: 1px solid var(--sec-border);
  aspect-ratio: 4 / 5;
}
.inst__item picture { display: block; block-size: 100%; }
.inst__item img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.inst__item:hover img { transform: scale(1.03); }

/* ============================================================
   PROBLEM — big stat
   ============================================================ */

.stat {
  text-align: center;
  max-inline-size: 20ch;
  margin-inline: auto;
}
.stat__figure {
  font-family: var(--font-num);
  font-size: clamp(5rem, 3rem + 12vw, 12rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -0.04em;
  color: var(--c-accent);
  display: block;
}
.stat__label {
  font-size: var(--fs-xl);
  color: var(--sec-muted);
  margin-block-start: var(--sp-6);
  text-wrap: pretty;
}

.friction {
  display: grid;
  gap: var(--sp-4);
  max-inline-size: 620px;
  margin-inline: auto;
  margin-block-start: clamp(48px, 7vw, 88px);
}
  /* */
.friction li {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: var(--sec-card);
  border: 1px solid var(--sec-border);
  border-radius: var(--r-lg);
  font-size: var(--fs-base);
}
.friction svg { inline-size: 24px; block-size: 24px; flex: none; stroke: var(--sec-muted); fill: none; stroke-width: 2; }

/* ============================================================
   PRODUCTS
   ============================================================ */

.products {
  display: grid;
  gap: var(--sp-8);
}
@media (min-width: 700px) { .products { grid-template-columns: 1fr 1fr; } }

.product {
  background: var(--sec-card);
  border: 1px solid var(--sec-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.product:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-pop);
  border-color: color-mix(in srgb, var(--c-accent) 40%, var(--sec-border));
}

.product__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgb(245 166 35 / .14), transparent 60%),
    var(--c-paper);
}
.product__media picture { display: block; inline-size: 100%; block-size: 100%; }
.product__media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
  padding: var(--sp-8);
  transition: transform 500ms var(--ease-out);
}
.product:hover .product__media img { transform: scale(1.05); }

.product__tag {
  position: absolute;
  inset-block-start: var(--sp-4);
  inset-inline-start: var(--sp-4);
  z-index: 1;
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: var(--c-paper);
  font-size: var(--fs-xs);
  font-weight: 800;
}

.product__body { padding: var(--sp-8); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.product__name { font-size: var(--fs-2xl); }
.product__desc { color: var(--sec-muted); }

.product__features {
  display: grid;
  gap: var(--sp-2);
  margin-block: var(--sp-2);
}
.product__features li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--sec-fg);
}
.product__features .ico { inline-size: 16px; aspect-ratio: 1; block-size: auto; fill: var(--c-accent-text); flex: none; }

.product__foot {
  margin-block-start: auto;
  padding-block-start: var(--sp-5);
  border-block-start: 1px solid var(--sec-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.product__price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}
.product__price .num { color: var(--sec-fg); font-size: var(--fs-2xl); }
.product__price small { font-size: var(--fs-sm); color: var(--sec-muted); font-weight: 600; }

.product__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-block-size: var(--tap-min);
  padding-inline: var(--sp-5);
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: var(--c-paper);
  font-size: var(--fs-sm);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out);
}
.product__cta:hover { transform: translateY(-1px); }
.product__cta .btn__wa { inline-size: 16px; block-size: 16px; fill: var(--c-whatsapp); flex: none; }

/* ============================================================
   COMPARISON
   ============================================================ */

.compare {
  inline-size: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--sec-border);
  border-radius: var(--r-lg);
}
.compare table {
  inline-size: 100%;
  border-collapse: collapse;
  table-layout: fixed;   /* 4 columns fit 375px without a sideways swipe */
}
.compare th:first-child, .compare td:first-child { inline-size: 40%; }
.compare th:not(:first-child), .compare td:not(:first-child) { inline-size: 20%; text-align: center; }
.compare td svg { margin-inline: auto; }
.compare th, .compare td {
  padding: var(--sp-4) var(--sp-2);
  text-align: start;
  overflow-wrap: anywhere;
  border-block-end: 1px solid var(--sec-border);
  font-size: var(--fs-sm);
}
.compare thead th {
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--sec-muted);
  background: var(--sec-card);
}
.compare tbody th { font-weight: 700; }
.compare .is-someaa { background: color-mix(in srgb, var(--c-accent) 12%, transparent); font-weight: 800; }
.compare thead .is-someaa { color: var(--sec-fg); }
.compare td svg { inline-size: 20px; block-size: 20px; }
.compare .yes svg { fill: #128a3d; }
.compare .no  svg { fill: var(--sec-muted); }
.compare tr:last-child th, .compare tr:last-child td { border-block-end: 0; }

/* ============================================================
   AUDIENCE
   ============================================================ */

.audience {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.audience li {
  display: grid;
  gap: var(--sp-4);
  justify-items: center;
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  background: var(--sec-card);
  border: 1px solid var(--sec-border);
  border-radius: var(--r-lg);
  font-weight: 700;
}
.audience svg {
  inline-size: 34px; block-size: 34px;
  stroke: var(--c-accent-text); fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ============================================================
   FOUNDER
   ============================================================ */

.founder {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  max-inline-size: 900px;
  margin-inline: auto;
}
@media (min-width: 760px) { .founder { grid-template-columns: 260px 1fr; } }

.founder__photo {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sec-card);
  border: 1px solid var(--sec-border);
  justify-self: center;
  inline-size: min(260px, 60vw);
  display: grid;
  place-items: center;
}
.founder__photo img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.founder__ph { color: var(--sec-muted); font-size: var(--fs-xs); text-align: center; padding: var(--sp-4); }
.founder__quote { font-size: var(--fs-lg); line-height: 1.5; text-wrap: pretty; }
.founder__name { margin-block-start: var(--sp-5); font-weight: 800; }
.founder__role { color: var(--sec-muted); font-size: var(--fs-sm); }

/* ============================================================
   PRICING
   ============================================================ */

.pricing {
  display: grid;
  gap: var(--sp-6);
  align-items: stretch;
  max-inline-size: 880px;
  margin-inline: auto;
}
@media (min-width: 700px) { .pricing { grid-template-columns: 1fr 1fr; } }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: clamp(28px, 4vw, 44px);
  background: var(--sec-card);
  border: 1px solid var(--sec-border);
  border-radius: var(--r-xl);
}
.plan--featured {
  border-color: var(--c-accent);
  border-width: 2px;
  box-shadow: var(--shadow-pop);
}
.plan__badge {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  background: var(--c-accent);
  color: var(--c-on-accent);
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 800;
  white-space: nowrap;
}
[dir="rtl"] .plan__badge { transform: translate(50%, -50%); }

.plan__name { font-size: var(--fs-xl); }
.plan__price { display: flex; align-items: baseline; gap: var(--sp-2); }
.plan__price .num { font-size: clamp(2.75rem, 2rem + 3vw, 4rem); line-height: 1; }
.plan__price small { font-size: var(--fs-lg); color: var(--sec-muted); font-weight: 700; }
.plan__list { display: grid; gap: var(--sp-3); flex: 1; }
.plan__list li { display: flex; align-items: flex-start; gap: var(--sp-3); color: var(--sec-muted); }
.plan__list svg { inline-size: 20px; block-size: 20px; flex: none; fill: var(--c-accent-text); margin-block-start: 3px; }
.plan .btn { inline-size: 100%; }

/* ============================================================
   FAQ
   ============================================================ */

.faq { max-inline-size: 760px; margin-inline: auto; display: grid; gap: var(--sp-3); }
.faq details {
  background: var(--sec-card);
  border: 1px solid var(--sec-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-block-size: var(--tap-min);
  padding: var(--sp-5) var(--sp-6);
  font-size: var(--fs-base);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  inline-size: 14px; block-size: 14px;
  flex: none;
  border-inline-end: 2.5px solid currentColor;
  border-block-end: 2.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur-base) var(--ease-out);
  margin-block-start: -6px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-block-start: 4px; }
.faq p { padding: 0 var(--sp-6) var(--sp-6); color: var(--sec-muted); }

/* ============================================================
   FINAL CTA + FOOTER
   ============================================================ */

.final { text-align: center; }
.final__title { font-size: var(--fs-hero); line-height: var(--lh-tight); max-inline-size: 16ch; margin-inline: auto; }
.final__sub { font-size: var(--fs-lg); color: var(--sec-muted); margin-block-start: var(--sp-6); max-inline-size: 42ch; margin-inline: auto; }
.final .btn { margin-block-start: var(--sp-10); }

.site-footer {
  background: var(--c-ink);
  color: var(--c-fg-muted-dark);
  padding-block: var(--sp-12);
  font-size: var(--fs-sm);
  text-align: center;
}
.site-footer picture { display: block; }
.site-footer img { block-size: 18px; inline-size: auto; margin-inline: auto; margin-block-end: var(--sp-5); filter: invert(1); }
.site-footer a {
  color: var(--c-paper);
  display: inline-flex;
  align-items: center;
  min-block-size: var(--tap-min);
  padding-inline: var(--sp-4);
  font-weight: 700;
}

/* Sticky mobile CTA bar — thumb-reachable, appears after the hero */
.cta-bar {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: var(--z-bar);
  padding: var(--sp-3) var(--gutter) calc(var(--sp-3) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--c-paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  border-block-start: 1px solid var(--c-border);
  transform: translateY(110%);
  transition: transform var(--dur-base) var(--ease-out);
}
.cta-bar.is-shown { transform: none; }
.cta-bar .btn { inline-size: 100%; min-block-size: 52px; font-size: var(--fs-base); }
@media (min-width: 700px) { .cta-bar { display: none; } }

/* ============================================================
   Reduced motion — every scene renders its final readable state
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__stars svg { opacity: 1; }

  /* Video keeps its controls and first frame, just never auto-plays
     (JS also strips the autoplay attribute). */
  .vid { animation: none; }
}

/* ============================================================
   SERVICES — Google Business Profile, done for you
   ============================================================ */

.svc {
  display: grid;
  gap: var(--sp-4);
  max-inline-size: 760px;
  margin-inline: auto;
  counter-reset: svc;
}

.svc__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-5);
  align-items: start;
  padding: var(--sp-6);
  background: var(--sec-card);
  border: 1px solid var(--sec-border);
  border-radius: var(--r-lg);
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.svc__step:hover {
  border-color: var(--c-accent);
  transform: translateY(-2px);
}

.svc__num {
  inline-size: 40px;
  block-size: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-size: var(--fs-base);
  flex: none;
}

.svc__name {
  font-size: var(--fs-xl);
  margin-block-end: var(--sp-2);
}
.svc__desc { color: var(--sec-muted); }

.svc__cta {
  text-align: center;
  margin-block-start: clamp(40px, 6vw, 64px);
}
.svc__ctaLine {
  font-size: var(--fs-lg);
  color: var(--sec-muted);
  margin-block-end: var(--sp-6);
  max-inline-size: 42ch;
  margin-inline: auto;
  text-wrap: pretty;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.tm {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tm__card {
  display: flex;
  flex-direction: column;
  background: var(--sec-card);
  border: 1px solid var(--sec-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.tm__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }

.tm__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-surface); }
.tm__media picture { display: block; block-size: 100%; }
.tm__media img { inline-size: 100%; block-size: 100%; object-fit: cover; }

.tm__body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}

.tm__stars { display: flex; gap: 3px; }
.tm__stars svg { inline-size: 18px; aspect-ratio: 1; block-size: auto; fill: var(--c-accent); }

.tm__quote {
  margin: 0;
  font-size: var(--fs-lg);
  line-height: 1.55;
  flex: 1;
  text-wrap: pretty;
}
.tm__name { font-weight: 800; }
.tm__role { color: var(--sec-muted); font-size: var(--fs-sm); }


/* ============================================================
   HEADER NAVIGATION
   Desktop: inline links. Mobile: slide-down panel from a toggle.
   ============================================================ */

.site-header__inner { gap: var(--sp-4); }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--tap-min);
  padding-inline: var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-fg-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.nav__link:hover { color: var(--c-ink); background: var(--c-surface); }

/* Current section, set by the scroll spy */
.nav__link.is-current { color: var(--c-ink); }
.nav__link.is-current::after {
  content: "";
  position: absolute;
  inline-size: 5px;
  block-size: 5px;
  border-radius: 50%;
  background: var(--c-accent);
  transform: translateY(15px);
}

/* Hamburger — hidden on desktop */
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  inline-size: var(--tap-min);
  block-size: var(--tap-min);
  padding: 0;
  background: transparent;
  border: 1.5px solid var(--c-ink);
  border-radius: var(--r-pill);
  cursor: pointer;
  touch-action: manipulation;
}
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block;
  inline-size: 17px;
  block-size: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav__bars::before { inset-block-start: -6px; }
.nav__bars::after  { inset-block-start:  6px; }

[aria-expanded="true"] .nav__bars { background: transparent; }
[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .nav__bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 979px) {
  .nav__toggle { display: inline-flex; }

  .nav {
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    background: var(--c-paper);
    border-block-end: 1px solid var(--c-border);
    box-shadow: var(--shadow-card);
    /* Collapsed: clipped, not display:none, so the open transition can run */
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows var(--dur-base) var(--ease-out),
                visibility 0s linear var(--dur-base);
  }
  .nav.is-open {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows var(--dur-base) var(--ease-out),
                visibility 0s;
  }
  .nav__list {
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-inline: var(--gutter);
  }
  .nav.is-open .nav__list { padding-block: var(--sp-2) var(--sp-4); }
  .nav__link {
    min-block-size: 52px;
    padding-inline: var(--sp-2);
    font-size: var(--fs-base);
    border-block-end: 1px solid var(--c-border);
    border-radius: 0;
  }
  .nav__list li:last-child .nav__link { border-block-end: 0; }
  .nav__link.is-current::after { transform: translateY(0); margin-inline-start: var(--sp-2); position: static; }
}

@media (max-width: 620px) {
  .header__cta { display: none; }
}

/* ============================================================
   PROOF — reviews and installs share one section
   ============================================================ */

.proof__break {
  text-align: center;
  margin-block: clamp(64px, 9vw, 104px) clamp(32px, 5vw, 48px);
}
.proof__subhead {
  font-size: var(--fs-2xl);
  line-height: var(--lh-head);
}
.proof__subline {
  font-size: var(--fs-lg);
  color: var(--sec-muted);
  max-inline-size: 46ch;
  margin-inline: auto;
  margin-block-start: var(--sp-4);
  text-wrap: pretty;
}

/* ============================================================
   CURVED SECTION TRANSITIONS
   The wave belongs to the section BELOW it and is filled with that
   section's own background, so it rises into the section above.
   ============================================================ */

.wave {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  transform: translateY(-99%);
  line-height: 0;
  pointer-events: none;
  z-index: 1;
}
.wave svg {
  inline-size: 100%;
  block-size: clamp(38px, 5.5vw, 88px);
  display: block;
}
.wave path { fill: var(--sec-bg); }


/* ============================================================
   LAUNCH OFFER — struck-through regular price
   ============================================================ */

/* Specificity must beat `.product__price .num` / `.plan__price .num`,
   which otherwise render the old price at full size and full contrast. */
.product__price .price__was,
.plan__price .price__was,
.price__was {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--sec-muted);
  margin-inline-end: var(--sp-2);
}
.price__was s { text-decoration-thickness: 2px; text-decoration-color: currentColor; }

.offer {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-block-start: var(--sp-6);
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-size: var(--fs-sm);
  font-weight: 800;
}
.offer .ico { inline-size: 15px; aspect-ratio: 1; block-size: auto; fill: currentColor; }
.section__head .offer { margin-inline: auto; }

/* ============================================================
   GOOGLE MAPS VISUAL — vector, no screenshot
   ============================================================ */

.gmap {
  max-inline-size: 560px;
  margin-inline: auto;
  margin-block-end: clamp(48px, 7vw, 80px);
}
.gmap__frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--sec-border);
  box-shadow: var(--shadow-pop);
  background: #e8eaed;
}
.gmap__canvas { inline-size: 100%; block-size: auto; display: block; }

/* Pin drops in when the section is revealed */
.gmap__pin { transform-origin: 196px 196px; }
.js-reveal [data-reveal].is-visible .gmap__pin,
.gmap__pin {
  animation: pin-drop 900ms var(--ease-out) both;
}
@keyframes pin-drop {
  0%   { transform: translateY(-40px) scale(.7); opacity: 0; }
  60%  { transform: translateY(4px)  scale(1.04); opacity: 1; }
  100% { transform: none; opacity: 1; }
}

.gmap__card {
  position: absolute;
  inset-block-end: var(--sp-4);
  inset-inline-start: var(--sp-4);
  inset-inline-end: var(--sp-4);
  max-inline-size: 260px;
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-paper);
  color: var(--c-ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  animation: card-rise 700ms var(--ease-out) 500ms both;
}
@keyframes card-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.gmap__name { font-weight: 900; font-size: var(--fs-base); }
.gmap__meta { display: flex; align-items: center; gap: var(--sp-2); margin-block-start: var(--sp-1); }
.gmap__rate { font-size: var(--fs-sm); color: #b06000; }
.gmap__stars { display: inline-flex; gap: 2px; }
.gmap__stars .ico { inline-size: 13px; aspect-ratio: 1; block-size: auto; fill: var(--c-accent); }
.gmap__open { font-size: var(--fs-xs); color: #1a7f37; font-weight: 700; margin-block-start: 2px; }

/* ============================================================
   PRODUCT SECTION — entrance animation
   ============================================================ */

.js-reveal .product[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 40px, 0) scale(.96);
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-reveal .product[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Image settles from a slight zoom as the card arrives */
.product__media img {
  transition: transform 900ms var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0ms) + 120ms);
}
.js-reveal .product[data-reveal] .product__media img { transform: scale(1.12); }
.js-reveal .product[data-reveal].is-visible .product__media img { transform: none; }

/* Price counts in after the card lands */
.product .product__price {
  animation: price-in 500ms var(--ease-out) both;
  animation-play-state: paused;
}
.js-reveal .product[data-reveal].is-visible .product__price { animation-play-state: running; }
.js-reveal .product[data-reveal]:not(.is-visible) .product__price { opacity: 0; }
@keyframes price-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   REVEAL VARIANTS — more range across the page
   ============================================================ */

.js-reveal [data-reveal="left"]  { transform: translate3d(-32px, 0, 0); }
.js-reveal [data-reveal="right"] { transform: translate3d(32px, 0, 0); }
.js-reveal [data-reveal="left"].is-visible,
.js-reveal [data-reveal="right"].is-visible { transform: none; }

/* Direction-aware: "left" means "from the start edge" in both dirs */
[dir="rtl"] .js-reveal [data-reveal="left"]  { transform: translate3d(32px, 0, 0); }
[dir="rtl"] .js-reveal [data-reveal="right"] { transform: translate3d(-32px, 0, 0); }
[dir="rtl"] .js-reveal [data-reveal="left"].is-visible,
[dir="rtl"] .js-reveal [data-reveal="right"].is-visible { transform: none; }

/* Section headings lift a touch further than body content */
.js-reveal .section__title[data-reveal] { transform: translate3d(0, 36px, 0); }
.js-reveal .section__title[data-reveal].is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .gmap__pin, .gmap__card { animation: none !important; opacity: 1 !important; transform: none !important; }
  .product__media img { transform: none !important; }
  .product .product__price { animation: none !important; opacity: 1 !important; }
}
