/* =========================================================
   Snagga — Construction snagging app marketing site
   Design system: "Concrete green + Stone"
   No frameworks. Pure CSS. Dark + light theming.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — Snagga navy + lime green
     (var names kept as --green-* so existing rules keep working;
      values are now the navy primary scale) */
  --green-500: #16233f;  /* primary navy */
  --green-600: #0f1830;  /* navy strong */
  --green-700: #0b1226;  /* navy deepest (CTA gradient end) */
  --green-300: #9ad04f;  /* bright lime (used as accent in dark theme) */
  --green-soft: #eaf4d8; /* pale lime tint */

  /* Lime accent — the brand pop */
  --lime: #8cc63f;
  --lime-ink: #5c8a1e;   /* accessible lime for text on light surfaces */

  /* Neutrals (light theme defaults) */
  --bg: #f4f5f7;
  --bg-2: #e9ecf1;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --ink: #16233f;
  --ink-soft: #46506a;
  --ink-faint: #7b8599;
  --border: #e1e4ea;
  --border-strong: #ccd2dc;

  --accent: var(--green-500);
  --accent-strong: var(--green-600);
  --accent-contrast: #ffffff;
  --accent-tint: var(--green-soft);

  --amber: #e0922b; /* warning accent — used sparingly for status/stars */

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20, 24, 21, .06), 0 1px 3px rgba(20, 24, 21, .08);
  --shadow-md: 0 4px 12px rgba(20, 24, 21, .08), 0 2px 6px rgba(20, 24, 21, .06);
  --shadow-lg: 0 18px 40px rgba(20, 24, 21, .14), 0 6px 14px rgba(20, 24, 21, .08);

  /* Geometry */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --t-fast: .18s ease;
  --t: .28s cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --bg: #0e1626;
  --bg-2: #121d33;
  --surface: #16233f;
  --surface-2: #1d2c4c;
  --ink: #eef1f6;
  --ink-soft: #aeb7c8;
  --ink-faint: #7e889c;
  --border: #26365a;
  --border-strong: #34466b;

  --lime: #9ad04f;
  --lime-ink: #b6e07f;

  --accent: var(--green-300);       /* lime pops on navy */
  --accent-strong: #aad95f;
  --accent-contrast: #0e1626;       /* dark text on lime buttons */
  --accent-tint: #1c2c1b;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, .45);
  --shadow-lg: 0 22px 48px rgba(0, 0, 0, .55);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Fluid base font — everything sized in rem scales with the viewport,
     so the whole site adapts from small phones up to large monitors.
     ~16px on laptops, never below 16px, up to ~20px on big screens. */
  font-size: clamp(16px, 0.35vw + 14px, 20px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--t), color var(--t);
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; height: auto; }

a { color: var(--accent-strong); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 800;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1rem; color: var(--ink-soft); }

ul, ol { color: var(--ink-soft); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: var(--accent-contrast); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--bg-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime-ink);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
}

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { font-size: 1.1rem; }

.lead { font-size: 1.15rem; color: var(--ink-soft); }
.muted { color: var(--ink-faint); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--accent-strong);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }

/* App store buttons */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}
/* Official App Store / Google Play badge links */
.store-btn {
  display: inline-flex;
  align-items: center;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.store-btn:hover { transform: translateY(-2px); opacity: .88; }
.store-btn img { height: 46px; width: auto; display: block; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 88px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -.02em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 60px; height: 60px; flex: none; border-radius: 14px; box-shadow: var(--shadow-sm); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .96rem;
  padding: .55rem .8rem;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--accent-strong); }
.nav-cta-mobile { display: none; } /* shown only inside the mobile menu */

.nav-actions { display: flex; align-items: center; gap: .6rem; }

.theme-toggle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(-18deg); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink);
  padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  margin-inline: auto;
  transition: transform var(--t), opacity var(--t-fast);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    position: fixed;
    inset: 88px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem var(--gutter) 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%);
    transition: transform var(--t);
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .85rem .8rem; font-size: 1.05rem; }
  .nav-cta-mobile { display: block; margin-top: .6rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 85% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(50% 50% at 5% 90%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1rem; }
.hero .lead { max-width: 38ch; margin-bottom: 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.4rem; }
.hero__note { font-size: .9rem; color: var(--ink-faint); display: flex; align-items: center; gap: .5rem; }
.hero__note svg { width: 18px; height: 18px; color: var(--lime-ink); }

/* keep the floating cards anchored to the phone column */
.hero__visual { position: relative; }

/* hero review badges */
.hero-reviews { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.hero-review {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform var(--t-fast), box-shadow var(--t), border-color var(--t-fast);
}
.hero-review:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); color: var(--ink); }
.hero-review svg { width: 20px; height: 20px; flex: none; }
.hero-review b { font-size: .82rem; font-weight: 700; line-height: 1.1; display: block; }
.hero-review small { font-size: .68rem; color: var(--ink-faint); line-height: 1.1; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent-tint);
  color: var(--accent-strong);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: .4rem .85rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
}
.badge-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 30%, transparent); }

/* Phone mock */
.phone {
  position: relative;
  width: min(300px, 80%);
  margin-inline: auto;
  aspect-ratio: 300 / 610;
  background: linear-gradient(160deg, #20271f, #11150f);
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.04);
  border: 1px solid var(--border-strong);
}
.phone::after {
  content: "";
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 22px;
  background: #0c0f0a;
  border-radius: 0 0 14px 14px;
}
.phone__screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.phone__shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.phone--shot::after { display: none; } /* screenshot already has its own status bar/camera */
.hero-float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .7rem .9rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
}
.hero-float .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--accent-contrast); background: var(--accent); flex: none; }
.hero-float .ico svg { width: 17px; height: 17px; }
.hero-float--1 { top: 12%; left: -6%; animation: float 6s ease-in-out infinite; }
.hero-float--2 { bottom: 14%; right: -8%; animation: float 7s ease-in-out infinite .8s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; margin-bottom: 1rem; }
  .hero-float--1 { left: 2%; }
  .hero-float--2 { right: 2%; }
}

/* In-phone faux app UI */
.app-ui { display: flex; flex-direction: column; height: 100%; font-size: 12px; }
.app-ui__top { background: var(--accent); color: var(--accent-contrast); padding: 26px 16px 14px; }
.app-ui__top h4 { color: var(--accent-contrast); font-size: 15px; margin: 0 0 2px; }
.app-ui__top p { color: color-mix(in srgb, var(--accent-contrast) 80%, transparent); margin: 0; font-size: 11px; }
.app-ui__body { padding: 14px; display: grid; gap: 10px; background: var(--surface-2); flex: 1; }
.app-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.app-row .swatch { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.app-row .swatch.red { background: #d9534f; }
.app-row .swatch.amber { background: var(--amber); }
.app-row .swatch.green { background: var(--lime); }
.app-row .t { font-weight: 700; color: var(--ink); font-size: 12px; }
.app-row .s { color: var(--ink-faint); font-size: 10.5px; }
.app-tag { margin-left: auto; font-size: 9px; font-weight: 700; padding: 3px 7px; border-radius: 999px; }
.app-tag.open { background: #fde8e7; color: #b3322d; }
.app-tag.prog { background: #fdf0db; color: #9a6212; }
.app-tag.done { background: var(--green-soft); color: var(--lime-ink); }

/* ---------- Logo cloud / trust ---------- */
.trust { border-block: 1px solid var(--border); }
.trust__inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.5rem); }
.trust__label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.trust__logo { font-weight: 800; font-size: 1.05rem; color: var(--ink-faint); opacity: .8; letter-spacing: -.01em; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--accent-strong); letter-spacing: -.03em; }
.stat__label { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 620px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; } }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card__icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-tint);
  color: var(--lime-ink);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .45rem; }
.card p { margin: 0; font-size: .96rem; }

/* feature row (alternating) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(3rem, 6vw, 5rem); }
.feature-row:nth-child(even) .feature-row__media { order: -1; }
.feature-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .7rem; }
.feature-list li { display: flex; gap: .65rem; align-items: flex-start; color: var(--ink-soft); }
.feature-list svg { width: 22px; height: 22px; color: var(--lime-ink); flex: none; margin-top: 1px; }
@media (max-width: 820px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-row__media { order: 0; }
}

/* media placeholder / screenshots */
.shot {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
.shot--tall { aspect-ratio: 9 / 16; }
.shot__ph {
  text-align: center;
  color: var(--ink-faint);
  padding: 1.5rem;
}
.shot__ph svg { width: 46px; height: 46px; margin-bottom: .6rem; color: var(--accent); opacity: .7; }
.shot__ph span { display: block; font-weight: 700; color: var(--ink-soft); }
.shot__ph small { font-size: .8rem; }
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .25;
  pointer-events: none;
}
/* real screenshot tiles: no placeholder grid, image fills the frame */
.shot--filled::after { display: none; }
.shot--filled img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.shots-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  align-items: start;
  max-width: 920px;
  margin-inline: auto;
}
@media (max-width: 820px) { .shots-strip { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; max-width: 460px; } }
@media (max-width: 420px) { .shots-strip { grid-template-columns: 1fr; max-width: 240px; } }

/* phone mockups in the screenshots strip */
.shot-phone { margin: 0; text-align: center; }
.shot-phone figcaption { margin-top: .8rem; font-weight: 700; color: var(--ink); font-size: .95rem; }
.shot-phone figcaption small { display: block; font-weight: 500; color: var(--ink-faint); font-size: .78rem; margin-top: .1rem; }
.phone--strip {
  width: 100%;
  margin: 0;
  padding: 7px;
  border-radius: 26px;
  aspect-ratio: 300 / 620;
}
.phone--strip::after { width: 64px; height: 15px; top: 9px; border-radius: 0 0 10px 10px; }
.phone--strip .phone__screen { border-radius: 20px; }
.phone__ph {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .4rem;
  background: var(--surface-2);
  color: var(--ink-faint);
  text-align: center;
  padding: 1rem;
}
.phone__ph svg { width: 30px; height: 30px; color: var(--accent); opacity: .55; }
.phone__ph span { font-size: .78rem; font-weight: 600; }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.quote__stars { color: var(--amber); letter-spacing: 2px; margin-bottom: .8rem; font-size: 1rem; }
.quote p { color: var(--ink); font-size: 1.02rem; }
.quote__by { display: flex; align-items: center; gap: .75rem; margin-top: auto; padding-top: 1rem; }
.quote__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: var(--accent-contrast);
  display: grid; place-items: center; font-weight: 800; flex: none;
}
.quote__name { font-weight: 700; color: var(--ink); font-size: .95rem; line-height: 1.2; }
.quote__role { color: var(--ink-faint); font-size: .85rem; }

/* ---------- Reviews ---------- */
.reviews-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
  max-width: 800px;
  margin-inline: auto;
}
.review-card {
  flex: 1 1 200px;
  max-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  transition: transform var(--t-fast), box-shadow var(--t);
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.review-card__head { display: flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--ink); font-size: .92rem; }
.review-card__head svg { width: 17px; height: 17px; flex: none; }
.review-stars { display: inline-flex; gap: 1px; color: var(--amber); font-size: .9rem; letter-spacing: .5px; }
.review-stars.empty { color: var(--border-strong); }
.review-card__meta { font-size: .74rem; color: var(--ink-faint); margin: 0; }
.review-card .btn { margin-top: .35rem; padding: .45rem .9rem; font-size: .82rem; }
.feedback-cta { text-align: center; margin-top: 2rem; }
.feedback-cta h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.feedback-cta p { max-width: 46ch; margin-inline: auto; font-size: .95rem; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  max-width: 1080px;
  margin-inline: auto;
  align-items: stretch;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; } }

.plan {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-md);
}
.plan__flag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--lime);
  color: var(--green-600);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 999px;
}
.plan__name { font-size: 1.25rem; font-weight: 800; color: var(--ink); margin-bottom: .3rem; }
.plan__desc { font-size: .92rem; color: var(--ink-soft); min-height: 2.6em; margin-bottom: 1rem; }
.plan__price { display: flex; align-items: baseline; gap: .3rem; margin-bottom: .2rem; }
.plan__price .amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.plan__price .per { color: var(--ink-faint); font-weight: 600; }
.plan__sub { font-size: .85rem; color: var(--ink-faint); margin-bottom: 1.3rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .65rem; }
.plan ul li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-soft); font-size: .95rem; }
.plan ul li svg { width: 20px; height: 20px; color: var(--lime-ink); flex: none; margin-top: 2px; }
.plan ul li.off { color: var(--ink-faint); }
.plan ul li.off svg { color: var(--ink-faint); opacity: .5; }
.plan .btn { margin-top: auto; }

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem;
  margin-bottom: 2.5rem;
}
.billing-toggle button {
  border: 0; background: transparent; font: inherit; font-weight: 700;
  color: var(--ink-soft); padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.billing-toggle button.active { background: var(--accent); color: var(--accent-contrast); }
.save-pill { font-size: .72rem; background: var(--accent-tint); color: var(--accent-strong); padding: .15rem .5rem; border-radius: 999px; font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  padding: 1.3rem 2.5rem 1.3rem 0;
  cursor: pointer;
  position: relative;
  display: block;
}
.faq-q::after {
  content: "";
  position: absolute;
  right: .3rem; top: 50%;
  width: 11px; height: 11px;
  border-right: 2.5px solid var(--lime-ink);
  border-bottom: 2.5px solid var(--lime-ink);
  transform: translateY(-60%) rotate(45deg);
  transition: transform var(--t);
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--t);
}
.faq-a > div { padding: 0 2.5rem 1.4rem 0; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 18px, transparent 18px 36px);
  pointer-events: none;
}
.cta-band h2, .cta-band p { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 50ch; margin-inline: auto; }
.cta-band .store-buttons { justify-content: center; position: relative; margin-top: 1.5rem; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .4rem; color: var(--ink); }
.field .req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface-2);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field .error-msg { color: #c0392b; font-size: .82rem; margin-top: .35rem; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.field.invalid .error-msg { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-status {
  display: none;
  margin-top: 1rem;
  padding: .9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  color: var(--accent-strong);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  font-weight: 600;
}
.form-status.show { display: block; }
.form-status--error { background: #fdecea; color: #a3241f; border-color: #f0b4ae; }
[data-theme="dark"] .form-status--error { background: #3a1b18; color: #f2b8b2; border-color: #5e2a24; }

.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-method { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.4rem; }
.contact-method .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent-strong); display: grid; place-items: center; flex: none; }
.contact-method .ico svg { width: 22px; height: 22px; }
.contact-method h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.contact-method p { margin: 0; font-size: .95rem; }

/* ---------- Article / legal ---------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { margin-top: 2.5rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6rem; font-size: 1.15rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: .4rem; margin-bottom: 1.2rem; }
.prose a { text-decoration: underline; }
.toc {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 2rem;
}
.toc strong { display: block; margin-bottom: .5rem; color: var(--ink); }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .25rem; }
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); text-align: center; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.page-hero .lead { max-width: 60ch; margin-inline: auto; }
.page-hero .updated { font-size: .85rem; color: var(--ink-faint); margin-top: .5rem; }

/* about */
.value-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
@media (max-width: 820px){ .value-row { grid-template-columns: 1fr; } }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
@media (max-width: 820px){ .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .team-grid { grid-template-columns: 1fr; } }
.team-card { text-align: center; }
.team-card .avatar {
  width: 90px; height: 90px; border-radius: 50%;
  margin: 0 auto .8rem; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-contrast);
  font-weight: 800; font-size: 1.6rem;
}
.timeline { position: relative; max-width: 720px; margin-inline: auto; padding-left: 2rem; }
.timeline::before { content:""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
.timeline-item { position: relative; padding-bottom: 1.8rem; }
.timeline-item::before { content:""; position: absolute; left: -2rem; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); }
.timeline-item .yr { font-weight: 800; color: var(--accent-strong); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { font-size: .92rem; max-width: 32ch; margin-top: .8rem; }
.footer-col h4 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-col a { color: var(--ink-soft); font-size: .95rem; }
.footer-col a:hover { color: var(--accent-strong); }
.social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.social a {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--ink-soft);
  transition: transform var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.social a:hover { color: var(--accent-strong); border-color: var(--accent); transform: translateY(-3px); }
.social svg { width: 19px; height: 19px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .88rem;
  color: var(--ink-faint);
}
.footer-bottom a { color: var(--ink-faint); }
.footer-bottom a:hover { color: var(--accent-strong); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; } .gap { gap: 1rem; } .wrap { flex-wrap: wrap; }
.center-x { justify-content: center; } .center-y { align-items: center; }
.hidden { display: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (max-width: 880px) { .hide-mobile { display: none; } }
.divider { height: 1px; background: var(--border); border: 0; margin-block: 2rem; }

/* ---------- Large-screen adaptivity ---------- */
/* Widen the content column on big monitors so the layout fills the screen
   instead of sitting in a narrow band with large empty margins. */
@media (min-width: 1500px) { :root { --maxw: 1320px; } }
@media (min-width: 1800px) { :root { --maxw: 1460px; } }
@media (min-width: 2200px) { :root { --maxw: 1600px; } }
