/* =========================================================================
   Xoolve — landing page styles
   -------------------------------------------------------------------------
   THEMING: every colour the page uses is a CSS variable defined in :root
   below. To re-skin the whole site, change the tokens in :root — or flip the
   <html data-theme="..."> attribute to one of the presets further down
   (indigo / light). The palette mirrors the Workora app (Tailwind "zinc"
   neutrals + a brand accent), so the site and the product stay consistent.
   ========================================================================= */

:root {
  /* ---- BRAND ACCENT (the whole theme lives here) ----------------------------
     To try another colour, copy the four values from any palette in the block
     below over the four ACTIVE lines, then reload. Buttons, links, the phone
     mockups and the xoolve wordmark all retint instantly.
       --brand        the accent (links, buttons, highlights, the wordmark)
       --brand-strong a deeper shade for hover / pressed
       --on-brand     text + icons that sit ON a brand-filled button
       --brand-glow   the soft halo behind the hero and CTA
     Note: the favicon, app icon and social images are pre-rendered PNGs in
     violet, so they stay violet until regenerated (see README). The on-screen
     site retints from these tokens alone.
     --------------------------------------------------------------------------- */
  /* >>> ACTIVE: Violet <<< */
  --brand: #8b7cff;
  --brand-strong: #6d56e6;
  --on-brand: #0b0a16;
  --brand-glow: rgba(139, 124, 255, 0.24);

  /* ---- Other palettes — copy a block's 4 values over the ACTIVE ones above ----
     Cyan
       --brand: #22d3ee;  --brand-strong: #06b6d4;  --on-brand: #07141a;  --brand-glow: rgba(34, 211, 238, 0.22);
     Sky blue
       --brand: #38bdf8;  --brand-strong: #0ea5e9;  --on-brand: #07141f;  --brand-glow: rgba(56, 189, 248, 0.22);
     Teal
       --brand: #2dd4bf;  --brand-strong: #14b8a6;  --on-brand: #04130f;  --brand-glow: rgba(45, 212, 191, 0.22);
     Emerald
       --brand: #34d399;  --brand-strong: #10b981;  --on-brand: #06120d;  --brand-glow: rgba(52, 211, 153, 0.22);
     Amber (the original yellow)
       --brand: #facc15;  --brand-strong: #eab308;  --on-brand: #09090b;  --brand-glow: rgba(250, 204, 21, 0.22);
     Orange
       --brand: #fb923c;  --brand-strong: #f97316;  --on-brand: #160a03;  --brand-glow: rgba(251, 146, 60, 0.22);
     Rose
       --brand: #fb7185;  --brand-strong: #f43f5e;  --on-brand: #1a0a0e;  --brand-glow: rgba(251, 113, 133, 0.22);
     Indigo
       --brand: #818cf8;  --brand-strong: #6366f1;  --on-brand: #0b0a16;  --brand-glow: rgba(129, 140, 248, 0.24);
     --------------------------------------------------------------------------- */

  /* ---- SURFACES (near-black, matches the app splash #09090B) ---- */
  --bg: #09090b;
  --bg-2: #0c0c0f;
  --card: #18181b;
  --card-2: #1f1f23;
  --alt-row: #27272a;
  --border: #272729;
  --border-soft: rgba(255, 255, 255, 0.08);

  /* ---- TEXT ---- */
  --text: #fafafa;
  --muted: #a1a1aa;
  --muted-2: #71717a;

  /* ---- SEMANTIC (from the app palette) ---- */
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;

  /* ---- SHAPE & TYPE ---- */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1140px;
  --nav-h: 68px;
}

/* ---- THEME PRESET: indigo (the app's default theme family) ---- */
[data-theme="indigo"] {
  --brand: #818cf8;
  --brand-strong: #6366f1;
  --on-brand: #09090b;
  --brand-glow: rgba(129, 140, 248, 0.24);
}

/* ---- THEME PRESET: light ---- */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f9fafb;
  --card: #ffffff;
  --card-2: #f4f4f5;
  --alt-row: #f4f4f5;
  --border: #e4e4e7;
  --border-soft: rgba(0, 0, 0, 0.06);
  --text: #09090b;
  --muted: #52525b;
  --muted-2: #71717a;
  --brand: #eab308;
  --brand-strong: #ca8a04;
  --on-brand: #ffffff;
  --brand-glow: rgba(234, 179, 8, 0.16);
}

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

* { margin: 0; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

::selection { background: var(--brand); color: var(--on-brand); }

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

/* ========================================================================= */
/* Layout primitives                                                         */
/* ========================================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

section { position: relative; }

.section-pad { padding-block: clamp(64px, 9vw, 120px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }

h2.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-top: 14px;
}

.section-sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
}

.text-brand { color: var(--brand); }

/* ========================================================================= */
/* Buttons                                                                   */
/* ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-brand {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 8px 30px -10px var(--brand-glow);
}
.btn-brand:hover { background: var(--brand-strong); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--muted-2); background: var(--card); }

/* App-store badge buttons */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px 11px 16px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  transition: transform 0.15s ease, opacity 0.2s ease;
}
.store-badge:hover { transform: translateY(-2px); opacity: 0.92; }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .badge-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge .badge-small { font-size: 11px; font-weight: 500; opacity: 0.7; }
.store-badge .badge-big { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }

/* ========================================================================= */
/* Navigation                                                                */
/* ========================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
}
.brand img { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* mobile menu sheet */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 55;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 18px 24px 26px;
  display: none;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.mobile-menu.open { display: flex; transform: translateY(0); opacity: 1; }
.mobile-menu a {
  padding: 13px 4px;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu .btn { margin-top: 14px; }

/* ========================================================================= */
/* Hero                                                                      */
/* ========================================================================= */
.hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden; }

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(closest-side, var(--brand-glow), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.hero-pill .dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
}

.hero h1 {
  font-size: clamp(38px, 6.2vw, 68px);
  margin-top: 22px;
  letter-spacing: -0.04em;
}
.hero h1 .accent { color: var(--brand); }

.hero-sub {
  margin-top: 22px;
  font-size: clamp(16px, 1.9vw, 20px);
  color: var(--muted);
  max-width: 540px;
  line-height: 1.6;
}

.hero-actions { margin-top: 34px; }
.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note svg { width: 16px; height: 16px; color: var(--success); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
}
.hero-visual .phone { position: relative; z-index: 2; }
.hero-visual .phone.secondary {
  position: absolute;
  right: -6%;
  bottom: 2%;
  z-index: 1;
  transform: scale(0.74) rotate(5deg);
  transform-origin: bottom right;
  opacity: 0.96;
}

/* category chips strip */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 56px;
  justify-content: center;
}
.chip {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 7px 15px;
  border-radius: var(--radius-pill);
}
.chips-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}

/* ========================================================================= */
/* Phone mockup (built from the real Workora UI)                             */
/* ========================================================================= */
.phone {
  width: 290px;
  border-radius: 42px;
  background: #000;
  padding: 11px;
  border: 1px solid #2a2a2e;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.phone-screen {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: #09090b;
  color: #fafafa;
  aspect-ratio: 9 / 19.3;
  font-size: 12px;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 9px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px; border-radius: var(--radius-pill);
  background: #000; z-index: 5;
}
.scr {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px 14px 12px;
  background: #09090b;
}
.scr-head { margin-bottom: 12px; }
.scr-eyebrow { font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #a1a1aa; font-weight: 600; }
.scr-amount { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin-top: 2px; }
.scr-amount .cur { color: #a1a1aa; font-weight: 600; font-size: 17px; }
.scr-subline { font-size: 9.5px; color: #a1a1aa; margin-top: 4px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 8.5px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-pill);
}
.badge.ok { background: rgba(34, 197, 94, 0.16); color: #4ade80; }
.badge.pending { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
.badge.partial { background: rgba(161, 161, 170, 0.16); color: #d4d4d8; }

/* calendar mock */
.cal-top { display: flex; align-items: flex-start; justify-content: space-between; }
.cal-monthrow { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 8px; }
.cal-month { font-size: 13px; font-weight: 700; }
.cal-navs { display: flex; gap: 6px; color: #71717a; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 4px; }
.cal-dow span { text-align: center; font-size: 8px; color: #71717a; font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-cell {
  aspect-ratio: 1 / 1; border-radius: 7px; display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; color: #d4d4d8; background: #18181b; position: relative;
}
.cal-cell.muted { color: #3f3f46; background: transparent; }
.cal-cell.done { background: rgba(34, 197, 94, 0.14); color: #86efac; font-weight: 600; }
.cal-cell.done::after {
  content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: #22c55e;
}
.cal-cell.today { outline: 1.5px solid var(--brand); color: var(--brand); font-weight: 700; }

/* day-entry mock */
.row {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 10px; background: #18181b; margin-bottom: 7px;
}
.row .avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--alt-row); color: #fafafa; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.row .who { flex: 1; min-width: 0; }
.row .who .nm { font-size: 11px; font-weight: 600; }
.row .who .sub { font-size: 8.5px; color: #71717a; }
.stepper {
  display: flex; align-items: center; gap: 6px; background: var(--alt-row);
  border-radius: var(--radius-pill); padding: 3px 4px;
}
.stepper b { font-size: 11px; font-weight: 700; min-width: 26px; text-align: center; }
.stepper .pm {
  width: 18px; height: 18px; border-radius: 50%; background: #3f3f46;
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fafafa; line-height: 1;
}
.pill-debt {
  font-size: 8.5px; font-weight: 700; color: #fbbf24;
  background: rgba(245, 158, 11, 0.14); padding: 3px 7px; border-radius: var(--radius-pill);
}

/* report mock */
.tbl-head, .tbl-row { display: grid; grid-template-columns: 1.4fr 0.7fr 0.7fr 0.9fr; gap: 4px; align-items: center; }
.tbl-head {
  padding: 6px 8px; background: var(--alt-row); border-radius: 6px; margin-bottom: 5px;
}
.tbl-head span { font-size: 7.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #a1a1aa; font-weight: 700; }
.tbl-head span:not(:first-child), .tbl-row span:not(:first-child) { text-align: right; }
.tbl-row { padding: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 10px; }
.tbl-row .nm { font-weight: 600; }
.tbl-row .net { font-weight: 700; }
.tbl-row .dbt { color: #fbbf24; }

.scr-foot {
  margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between;
}
.tabbar {
  display: flex; justify-content: space-around; align-items: center;
  padding: 9px 4px 4px; border-top: 1px solid rgba(255, 255, 255, 0.06);
  /* margin-top:auto pins the bar to the bottom of the screen; negative side/bottom
     margins bleed it past the .scr padding to the screen edges. */
  margin: auto -14px -12px;
}
.tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #52525b; font-size: 7.5px; font-weight: 600; }
.tabbar .tab.active { color: var(--brand); }
.tabbar .tab i { width: 17px; height: 17px; display: block; }
.mini-btn {
  font-size: 9px; font-weight: 700; color: var(--on-brand); background: var(--brand);
  padding: 6px 12px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 4px;
}

/* ========================================================================= */
/* Features grid                                                             */
/* ========================================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--muted-2); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-glow); color: var(--brand);
  margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 18px; }
.feature-card p { margin-top: 9px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ========================================================================= */
/* Steps (how it works)                                                      */
/* ========================================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card), var(--bg-2));
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: var(--on-brand);
  font-weight: 800; font-size: 17px; margin-bottom: 18px;
}
.step h3 { font-size: 19px; }
.step p { margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ========================================================================= */
/* Showcase (alternating rows)                                               */
/* ========================================================================= */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.showcase-row + .showcase-row { margin-top: clamp(56px, 8vw, 110px); }
.showcase-row.reverse .showcase-visual { order: -1; }
.showcase-visual { display: flex; justify-content: center; }
.showcase-text h3 { font-size: clamp(24px, 3vw, 32px); margin-top: 12px; }
.showcase-text p { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.feature-list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: var(--text); }
.feature-list svg { width: 19px; height: 19px; color: var(--brand); flex: none; margin-top: 2px; }

/* ========================================================================= */
/* Locale / reach band                                                       */
/* ========================================================================= */
.band {
  background: var(--card);
  border-block: 1px solid var(--border);
}
.reach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.stat { text-align: center; }
.stat .big { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; color: var(--brand); }
.stat .lbl { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* ========================================================================= */
/* FAQ                                                                       */
/* ========================================================================= */
.faq-wrap { max-width: 780px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 20px 22px;
  font-size: 16.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-q .ico { flex: none; transition: transform 0.25s ease; color: var(--muted); }
.faq-item.open .faq-q .ico { transform: rotate(45deg); color: var(--brand); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p { padding: 0 22px 22px; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ========================================================================= */
/* CTA band                                                                  */
/* ========================================================================= */
.cta {
  position: relative;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  padding: clamp(48px, 7vw, 80px) 24px;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(closest-side, var(--brand-glow), transparent 70%);
  top: -60%;
  height: 120%;
  pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(28px, 4.4vw, 46px); }
.cta p { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 520px; margin-inline: auto; }
.cta .store-badges { justify-content: center; margin-top: 32px; }

/* ========================================================================= */
/* Footer                                                                    */
/* ========================================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 56px 32px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 300px; line-height: 1.6; }
.footer h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-2); margin-bottom: 16px; font-weight: 700;
}
.footer ul { display: flex; flex-direction: column; gap: 11px; }
.footer ul a { color: var(--muted); font-size: 14.5px; transition: color 0.2s ease; }
.footer ul a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted-2);
  font-size: 13px;
}

/* ========================================================================= */
/* Legal pages (privacy / terms)                                             */
/* ========================================================================= */
.legal {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(48px, 7vw, 90px);
}
.legal h1 { font-size: clamp(30px, 5vw, 44px); }
.legal .updated { color: var(--muted-2); font-size: 14px; margin-top: 10px; }
.legal h2 { font-size: 21px; margin-top: 40px; }
.legal p { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal a.back {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--brand); font-weight: 600; font-size: 14.5px; margin-bottom: 30px;
}

/* ========================================================================= */
/* Scroll-reveal                                                             */
/* ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.06s; }
.reveal.d2 { transition-delay: 0.12s; }
.reveal.d3 { transition-delay: 0.18s; }
.reveal.d4 { transition-delay: 0.24s; }
.reveal.d5 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ========================================================================= */
/* Responsive                                                                */
/* ========================================================================= */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions .store-badges { justify-content: center; }
  .hero-note { justify-content: center; }
  .hero-visual { min-height: 0; }
  .hero-visual .phone.secondary { display: none; }
  .hero-pill { margin-inline: auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .reach-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .steps { grid-template-columns: 1fr; }
  .showcase-row { grid-template-columns: 1fr; gap: 36px; }
  .showcase-row.reverse .showcase-visual { order: 0; }
  .showcase-text { text-align: center; }
  .showcase-text .eyebrow { justify-content: center; }
  .feature-list { text-align: left; max-width: 360px; margin-inline: auto; }
}

@media (max-width: 540px) {
  .container { padding-inline: 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .reach-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .store-badge { flex: 1; }
}

/* ========================================================================= */
/* Wordmark (the xoolve logotype, tinted via currentColor through a mask)    */
/* ========================================================================= */
.wordmark {
  display: block;
  background-color: currentColor;
  -webkit-mask: url("assets/wordmark.svg") left center / contain no-repeat;
          mask: url("assets/wordmark.svg") left center / contain no-repeat;
}
.brand { color: var(--text); }
.brand .wordmark { width: 92px; height: 28px; }
.brand:hover .wordmark { background-color: var(--brand); }
.footer-brand .wordmark { width: 106px; height: 33px; margin-bottom: 14px; }

/* hero buttons row (Xoolve company hero) */
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ========================================================================= */
/* Products                                                                  */
/* ========================================================================= */
.products { display: grid; grid-template-columns: 1.65fr 1fr; gap: 18px; }
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}
.product-card.featured { background: linear-gradient(180deg, var(--card), var(--bg-2)); }
.product-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.product-logo {
  width: 54px; height: 54px; border-radius: 14px; flex: none;
  background: #0f0f14; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.product-logo img { width: 34px; height: 34px; }
.product-head h3 { font-size: 22px; }
.product-tag { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.product-status {
  margin-left: auto; align-self: flex-start; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-pill); letter-spacing: 0.04em; text-transform: uppercase;
}
.product-status.live { color: var(--success); background: rgba(34, 197, 94, 0.14); }
.product-status.soon { color: var(--muted); background: var(--alt-row); }
.product-card p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.product-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.product-points span {
  font-size: 12.5px; color: var(--text); border: 1px solid var(--border);
  background: var(--bg-2); padding: 6px 12px; border-radius: var(--radius-pill);
}
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.product-card.soon {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, var(--card), var(--bg-2));
}
.product-card.soon h3 { font-size: 20px; }
.product-card.soon p { font-size: 14.5px; }
.product-card.soon .btn { margin-top: 6px; }

@media (max-width: 860px) {
  .products { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero-buttons { justify-content: center; }
}
