/* =========================================================
   ServPatch, refined design system
   Palette: warm ink + cream + coral (bandage) + sage clinical
   Typography: Instrument Serif (display) + Geist (body/UI)
   ========================================================= */

:root {
  /* Surfaces — deep royal blue palette */
  --ink:        #0A2A6E;
  --ink-2:      #082362;
  --ink-3:      #051A4D;
  --surface:    rgba(255, 255, 255, 0.06);
  --surface-2:  rgba(255, 255, 255, 0.10);
  --line:       rgba(255, 255, 255, 0.10);
  --line-2:     rgba(255, 255, 255, 0.18);

  /* Text */
  --text:       #FFFFFF;
  --text-2:     #DCE5F5;
  --muted:      #A2B3D2;
  --dim:        #7E91B6;

  /* Brand accents */
  --coral:      #FF9E6E;
  --coral-2:    #FFB68C;
  --sage:       #9ECDFF;
  --sage-2:     #C7E0FF;
  --gold:       #F4D29C;
  --rose:       #FFB8B8;

  /* Forms / focus */
  --focus:      #F4D29C;

  /* Motion */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-soft:      cubic-bezier(0.4, 0, 0.2, 1);

  /* Radii + shadow */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --shadow-1: 0 10px 30px rgba(0,0,0,.30);
  --shadow-2: 0 24px 70px rgba(0,0,0,.45);

  /* Type, single confident sans, no editorial flourish */
  --display: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --sans:    "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(158, 205, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 90%, rgba(255, 158, 110, 0.08), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle film grain so dark surfaces feel material, not flat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* Type scale */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(42px, 5.4vw, 70px); font-weight: 600; line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 600; line-height: 1.1; letter-spacing: -0.028em; }
h3 { font-size: clamp(20px, 1.7vw, 23px); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
h4 { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: 19px; color: var(--text-2); line-height: 1.55; max-width: 60ch; }
.muted { color: var(--text-2); }
.dim { color: var(--muted); }

::selection { background: var(--coral); color: #0B1418; }

/* Container + layout primitives */
.container { width: min(1200px, 92%); margin-inline: auto; }
section { padding: 96px 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sage-2);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--sage); display: inline-block;
}

/* ================== NAV ================== */
.nav {
  position: sticky; top: 0; z-index: 90;
  padding-top: 18px;
  background: linear-gradient(180deg, rgba(10, 42, 110, 0.95) 0%, rgba(10, 42, 110, 0.80) 60%, rgba(10, 42, 110, 0) 100%);
  backdrop-filter: blur(8px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  width: min(1240px, 94%); margin-inline: auto;
  padding: 12px 18px 12px 22px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 10px 40px rgba(3, 39, 111, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 48px; width: 48px; display: block; filter: drop-shadow(0 4px 14px rgba(232, 112, 76, 0.20)); }
.brand-name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.footer .brand-logo { height: 52px; width: 52px; }
.footer .brand-name { font-size: 23px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14px; font-weight: 500;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--text-2);
  transition: color .18s ease, background .18s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(241,235,224,.06); }
.nav-links a.active { color: var(--text); background: rgba(241,235,224,.08); }
.nav-links .btn { margin-left: 10px; padding: 11px 18px; font-size: 14px; color: #0A2A6E; }

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

/* ================== BUTTONS ================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  letter-spacing: -0.005em;
  background: linear-gradient(180deg, var(--coral) 0%, #E8814E 100%);
  color: #0A2A6E;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  box-shadow:
    0 8px 24px rgba(255, 158, 110, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(255, 158, 110, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn.secondary:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.4); }
.btn.ghost {
  background: transparent; color: var(--text-2); border: 0; padding: 8px 0;
  box-shadow: none;
}
.btn.ghost:hover { color: var(--coral); transform: none; }
.btn.ghost::after { content: "→"; transition: transform .18s ease; }
.btn.ghost:hover::after { transform: translateX(4px); }

/* ================== HERO ================== */
.hero {
  position: relative;
  padding: 64px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(closest-side, rgba(158, 205, 255, 0.28), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -300px; left: -300px;
  width: 700px; height: 700px;
  background: radial-gradient(closest-side, rgba(255, 158, 110, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
}
.hero h1 { max-width: 14ch; }
.hero h1 em {
  font-style: normal;
  color: var(--coral);
  font-weight: 500;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 32px 0 40px; }

.trust-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}
.trust-item {
  padding: 8px 12px 8px 0;
  transition: transform .3s var(--ease-out-quart);
}
.trust-item:hover { transform: translateY(-3px); }
.trust-item .num {
  font-family: var(--sans); font-weight: 600; font-size: 28px; line-height: 1; color: var(--gold);
  letter-spacing: -0.035em;
}
.trust-item .label { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ================== PHONE MOCKUP ================== */
.phone-stage {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  min-height: 640px;
}
.phone-stage::before {
  /* Soft gradient backdrop card behind phone */
  content: "";
  position: absolute;
  width: 110%; height: 92%;
  border-radius: 38px;
  background: linear-gradient(160deg, rgba(127,191,174,.08), rgba(232,112,76,.05));
  border: 1px solid var(--line);
  z-index: 0;
}
.phone {
  position: relative;
  width: 320px; height: 660px;
  border-radius: 48px;
  background: #051A4D;
  border: 10px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -20px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 2;
}
.phone::before {
  /* Dynamic island */
  content: "";
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 28px;
  background: #02112E;
  border-radius: 999px;
  z-index: 10;
}
.phone-screen {
  position: relative;
  height: 100%;
  background: linear-gradient(180deg, #103689 0%, #0A2A6E 50%, #051A4D 100%);
  display: flex; flex-direction: column;
  padding: 54px 0 0;
}

/* Status bar */
.status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 26px 8px;
  font-size: 14px; font-weight: 600; color: var(--text);
  font-feature-settings: "tnum" 1;
}
.status-bar .icons { display: flex; gap: 6px; align-items: center; color: var(--text); }
.status-bar svg { width: 16px; height: 16px; }

/* App content */
.app { flex: 1; overflow: hidden; position: relative; }
.app-screen {
  position: absolute; inset: 0;
  padding: 14px 18px 80px;
  overflow-y: auto;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity .28s ease, transform .28s ease;
  pointer-events: none;
}
.app-screen.is-active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.app-screen::-webkit-scrollbar { display: none; }

.app-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.app-header .greeting { font-weight: 600; font-size: 19px; line-height: 1.2; letter-spacing: -0.02em; }
.app-header .greeting span { display: block; font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.app-bell {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(241,235,224,.06);
  display: grid; place-items: center;
  position: relative;
}
.app-bell svg { width: 16px; height: 16px; color: var(--text-2); }
.app-bell::after {
  content: ""; position: absolute; top: 8px; right: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--coral);
  border: 2px solid #142127;
}

/* Shift card */
.shift-card {
  background: linear-gradient(135deg, rgba(158, 205, 255, 0.22) 0%, rgba(158, 205, 255, 0.10) 100%);
  border: 1px solid rgba(158, 205, 255, 0.30);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
}
.shift-card .row { display: flex; justify-content: space-between; align-items: flex-start; }
.shift-card .tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sage-2);
  padding: 4px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.shift-card .title { font-size: 16px; font-weight: 600; margin: 10px 0 4px; letter-spacing: -0.01em; }
.shift-card .meta { font-size: 12px; color: var(--text-2); display: flex; gap: 10px; }
.shift-card .meta strong { color: var(--text); font-weight: 600; }
.shift-card .progress {
  margin-top: 14px;
  height: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); overflow: hidden;
}
.shift-card .progress > div { height: 100%; width: 64%; background: var(--sage); border-radius: 999px; }
.shift-card .progress-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 8px; }

/* Section label */
.app-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 18px 0 10px;
  display: flex; justify-content: space-between; align-items: center;
}
.app-label a { color: var(--sage-2); text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; }

/* Activity list */
.activity { display: grid; gap: 8px; }
.activity-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.activity-item .ico {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 14px; font-weight: 600;
}
.activity-item .ico.coral { background: rgba(255, 158, 110, 0.18); color: var(--coral); }
.activity-item .ico.sage { background: rgba(158, 205, 255, 0.18); color: var(--sage); }
.activity-item .ico.gold { background: rgba(244, 210, 156, 0.18); color: var(--gold); }
.activity-item .ico.rose { background: rgba(255, 184, 184, 0.18); color: var(--rose); }
.activity-item .body { flex: 1; min-width: 0; }
.activity-item .body .name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.activity-item .body .desc { font-size: 11px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.activity-item .time { font-size: 11px; color: var(--dim); flex-shrink: 0; }

/* Tasks list (alt screen) */
.task { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); margin-bottom: 8px; border: 1px solid rgba(255, 255, 255, 0.08); }
.task .check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid rgba(158, 205, 255, 0.55);
  flex-shrink: 0;
  display: grid; place-items: center;
  color: transparent;
  font-size: 12px;
}
.task.done .check { background: var(--sage); border-color: var(--sage); color: #042F87; }
.task.done .name { text-decoration: line-through; color: var(--muted); }
.task .name { font-size: 13px; font-weight: 500; flex: 1; }
.task .due { font-size: 11px; color: var(--dim); }

/* Notes screen */
.note-card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.note-card .meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.note-card .meta .who { color: var(--text); font-weight: 600; }
.note-card p { font-size: 12.5px; color: var(--text-2); margin: 0; line-height: 1.45; }

/* Voice button (Notes screen) */
.voice-cta {
  position: absolute; left: 50%; bottom: 78px;
  transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--coral);
  display: grid; place-items: center;
  color: #03276F;
  box-shadow: 0 8px 24px rgba(255, 158, 110, 0.45);
  border: 0;
  z-index: 5;
}
.voice-cta::before, .voice-cta::after {
  content: ""; position: absolute; inset: -8px;
  border-radius: 50%; border: 2px solid var(--coral);
  opacity: 0;
  animation: voicePulse 2.2s ease-out infinite;
}
.voice-cta::after { animation-delay: 1.1s; }
@keyframes voicePulse {
  0% { opacity: 0.5; transform: scale(0.85); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* CQC / Compliance screen */
.cqc-ring {
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 0 14px;
}
.cqc-ring svg { width: 130px; height: 130px; }
.cqc-ring .num { font-weight: 600; font-size: 36px; line-height: 1; letter-spacing: -0.03em; }
.cqc-ring .label { font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: 0.08em; text-transform: uppercase; }
.kqi-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 8px;
}
.kqi {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 10px 12px;
}
.kqi .k { font-size: 10px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.kqi .v { font-size: 18px; font-weight: 600; margin-top: 4px; letter-spacing: -0.02em; }
.kqi .v small { font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--sage-2); margin-left: 4px; }

/* Tab bar */
.tab-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(3, 39, 111, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 10px 14px 22px;
  z-index: 6;
}
.tab {
  background: transparent; border: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--muted);
  padding: 6px 4px;
  font-size: 10px; font-weight: 600;
  transition: color .18s ease;
}
.tab svg { width: 20px; height: 20px; stroke-width: 1.8; }
.tab.is-active { color: var(--coral); }

/* Floating dashboard chip (manager view next to phone) */
.dash-chip {
  position: absolute;
  right: -18px; top: 80px;
  width: 280px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow:
    0 16px 40px rgba(3, 39, 111, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  z-index: 3;
}
.dash-chip .ehead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dash-chip .ehead .label { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.dash-chip .ehead .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(127,191,174,.18); }
.dash-chip .stat { font-weight: 600; font-size: 30px; line-height: 1; color: var(--text); letter-spacing: -0.03em; }
.dash-chip .stat-meta { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.dash-chip .spark { display: flex; gap: 3px; align-items: flex-end; margin-top: 14px; height: 32px; }
.dash-chip .spark span { flex: 1; background: rgba(127,191,174,.45); border-radius: 2px; }

.dash-chip.bottom {
  right: auto;
  left: -32px;
  top: auto;
  bottom: 60px;
  width: 240px;
}
.dash-chip.bottom .stat { color: var(--coral-2); }

/* ================== CARDS / SECTIONS ================== */
.card {
  padding: 32px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform .35s var(--ease-out-quart),
    border-color .35s var(--ease-soft),
    background .35s var(--ease-soft),
    box-shadow .35s var(--ease-out-quart);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.10), transparent 50%);
  opacity: 0;
  transition: opacity .4s var(--ease-soft);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.06) 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    0 4px 18px rgba(255, 158, 110, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.card:hover::before { opacity: 1; }
.card .icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255, 158, 110, 0.16);
  color: var(--coral);
  margin-bottom: 22px;
  border: 1px solid rgba(255, 158, 110, 0.24);
}
.card .icon svg { width: 22px; height: 22px; stroke-width: 1.6; }
.card.sage .icon { background: rgba(158, 205, 255, 0.18); color: var(--sage); border-color: rgba(158, 205, 255, 0.28); }
.card.gold .icon { background: rgba(244, 210, 156, 0.18); color: var(--gold); border-color: rgba(244, 210, 156, 0.28); }
.card.rose .icon { background: rgba(255, 184, 184, 0.18); color: var(--rose); border-color: rgba(255, 184, 184, 0.28); }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--text-2); }

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

.big-card {
  padding: 40px;
  border-radius: var(--r-2xl);
  border: 1px solid var(--line-2);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(32px) saturate(140%);
  -webkit-backdrop-filter: blur(32px) saturate(140%);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform .4s var(--ease-out-quart),
    border-color .4s var(--ease-soft),
    background .4s var(--ease-soft),
    box-shadow .4s var(--ease-out-quart);
  position: relative;
  overflow: hidden;
}
.big-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity .4s var(--ease-soft);
  pointer-events: none;
}
.big-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.34);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.big-card:hover::before { opacity: 1; }
.big-card h2 { margin-bottom: 14px; }
.feature-list { display: grid; gap: 12px; margin-top: 22px; }
.tick { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 15.5px; }
.tick::before {
  content: "";
  display: inline-block; flex-shrink: 0;
  width: 18px; height: 18px; margin-top: 4px;
  border-radius: 50%;
  background: rgba(158, 205, 255, 0.20);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><path d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%239ECDFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-position: center; background-repeat: no-repeat;
}

/* Page hero (non-home) */
.page-hero { padding: 80px 0 60px; position: relative; }
.page-hero::before {
  content: "";
  position: absolute;
  top: 0; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(232, 112, 76, 0.10), transparent 70%);
  pointer-events: none;
}
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 18px; }

/* Breadcrumbs */
.crumbs { display: flex; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { color: var(--dim); }

/* ================== PRICING ================== */
.pricing {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  align-items: stretch;
}
.plan {
  position: relative;
  padding: 32px 26px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  display: flex; flex-direction: column;
  transition:
    transform .4s var(--ease-out-quart),
    border-color .4s var(--ease-soft),
    background .4s var(--ease-soft),
    box-shadow .4s var(--ease-out-quart);
  overflow: hidden;
}
.plan::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.10), transparent 50%);
  opacity: 0;
  transition: opacity .4s var(--ease-soft);
  pointer-events: none;
}
.plan:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.42);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.plan:hover::before { opacity: 1; }
.plan.featured {
  background:
    linear-gradient(165deg, rgba(255, 158, 110, 0.24), rgba(158, 205, 255, 0.10)),
    linear-gradient(140deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(255, 158, 110, 0.42);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.plan .badge {
  display: inline-block; padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(232,112,76,.18); color: var(--coral-2);
  margin-bottom: 14px;
  align-self: flex-start;
}
.plan h3 { font-size: 26px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.025em; }
.plan .plan-tagline { color: var(--text-2); font-size: 14px; margin: 0 0 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 14px; }
.plan li::before {
  content: ""; flex-shrink: 0; margin-top: 7px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--sage);
}
.plan .btn { margin-top: auto; width: 100%; }

/* ================== BLOG ================== */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    transform .4s var(--ease-out-quart),
    border-color .4s var(--ease-soft),
    background .4s var(--ease-soft),
    box-shadow .4s var(--ease-out-quart);
  position: relative;
}
.post-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.06) 100%);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.4),
    0 6px 20px rgba(255, 158, 110, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.post-card .post-cover { transition: transform .6s var(--ease-out-quart); }
.post-card:hover .post-cover { transform: scale(1.04); }
.post-card .post-cover svg { transition: transform .6s var(--ease-out-quart), opacity .4s ease; }
.post-card:hover .post-cover svg { transform: scale(1.1) rotate(-3deg); opacity: 0.32; }
/* Blog post covers — jewel-toned and on-brand against royal blue */
.post-cover {
  aspect-ratio: 16/9;
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0A2A6E, #051A4D);
}
.post-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(255, 158, 110, 0.32), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(158, 205, 255, 0.25), transparent 60%);
  pointer-events: none;
}
.post-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
  pointer-events: none;
}
.post-cover.coral {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(255, 158, 110, 0.45), transparent 65%),
    linear-gradient(135deg, #14367C 0%, #0A2A6E 100%);
}
.post-cover.sage {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(158, 205, 255, 0.40), transparent 65%),
    linear-gradient(135deg, #133478 0%, #0A2A6E 100%);
}
.post-cover.gold {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(244, 210, 156, 0.36), transparent 65%),
    linear-gradient(135deg, #14367C 0%, #0A2A6E 100%);
}
.post-cover.rose {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(255, 184, 184, 0.38), transparent 65%),
    linear-gradient(135deg, #14367C 0%, #0A2A6E 100%);
}
.post-cover svg {
  width: 56%; height: 56%;
  opacity: 0.25;
  position: relative; z-index: 1;
}
.post-cover .tag {
  position: absolute; top: 14px; left: 14px;
  z-index: 2;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(10, 42, 110, 0.65); color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 22px; line-height: 1.18; margin-bottom: 10px; }
.post-body p { color: var(--text-2); font-size: 14.5px; margin: 0 0 16px; flex: 1; }
.post-meta { display: flex; gap: 12px; color: var(--muted); font-size: 12.5px; align-items: center; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }

/* Tag pills */
.tag-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tag-pill {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px; color: var(--text-2);
  cursor: pointer;
  background: transparent;
  transition: all .18s ease;
}
.tag-pill:hover { color: var(--text); border-color: var(--text-2); }
.tag-pill.active { background: var(--coral); color: #0B1418; border-color: var(--coral); }

/* Article (single post) */
.article {
  max-width: 720px; margin: 0 auto;
}
.article-head {
  text-align: center;
  padding: 30px 0 50px;
}
.article-head .tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(232,112,76,.16); color: var(--coral-2);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 24px;
}
.article-head h1 { font-size: clamp(38px, 4.4vw, 60px); margin-bottom: 24px; }
.article-head .meta { color: var(--muted); font-size: 14px; display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.article-head .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }

.article-body { font-size: 17.5px; line-height: 1.75; color: var(--text-2); }
.article-body p { margin-bottom: 1.4em; }
.article-body h2 { font-size: clamp(28px, 3vw, 36px); margin: 1.8em 0 0.5em; color: var(--text); }
.article-body h3 { font-size: 21px; margin: 1.4em 0 0.4em; color: var(--text); font-weight: 600; letter-spacing: -0.015em; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.article-body li { margin-bottom: 0.5em; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body blockquote {
  margin: 1.6em 0;
  padding: 24px 26px;
  border-left: 3px solid var(--coral);
  background: rgba(232,112,76,.06);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--sans); font-size: 19px; font-weight: 500; line-height: 1.5; color: var(--text);
  font-style: normal;
}
.article-body a { color: var(--coral-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body a:hover { color: var(--coral); }
.article-body figure { margin: 2em 0; }
.article-body .pull-stat {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  align-items: center;
  margin: 2em 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(127,191,174,.04);
}
.article-body .pull-stat .v { font-weight: 600; font-size: 46px; color: var(--gold); line-height: 1; letter-spacing: -0.035em; }
.article-body .pull-stat .l { font-size: 14px; color: var(--text-2); }

.related-posts { margin-top: 80px; padding-top: 60px; border-top: 1px solid var(--line); }
.related-posts h3 { font-size: 22px; margin-bottom: 24px; color: var(--muted); font-family: var(--sans); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; }

/* ================== FAQ ================== */
.faq { display: grid; gap: 12px; }
.faq details {
  padding: 22px 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition: border-color .25s var(--ease-soft), background .25s var(--ease-soft), transform .25s var(--ease-out-quart);
}
.faq details:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.05) 100%);
  transform: translateY(-2px);
}
.faq details[open] {
  border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 100%);
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 17px; font-weight: 600;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--coral);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-2); margin: 14px 0 0; font-size: 15.5px; line-height: 1.65; }

/* ================== FORMS ================== */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.input, .textarea, select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .18s ease, background .18s ease;
}
.textarea { min-height: 130px; resize: vertical; }
.input:focus, .textarea:focus, select:focus {
  outline: none;
  border-color: var(--coral);
  background: rgba(255, 255, 255, 0.10);
}
::placeholder { color: var(--dim); }

/* ================== CONTACT META ================== */
.contact-meta { display: grid; gap: 16px; margin-top: 20px; }
.contact-meta > a, .contact-meta > div {
  display: flex; gap: 14px; align-items: center;
  padding: 16px; border-radius: var(--r-md);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  transition: border-color .25s var(--ease-soft), background .25s var(--ease-soft), transform .25s var(--ease-out-quart);
}
.contact-meta > a:hover { border-color: var(--coral); background: rgba(232, 112, 76, 0.06); transform: translateY(-2px); }
.contact-meta > a:hover .meta-arrow { opacity: 1; transform: translateX(0); color: var(--coral); }
.contact-meta .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(232,112,76,.12); color: var(--coral-2);
  display: grid; place-items: center; flex-shrink: 0;
  padding: 0;
}
.contact-meta .ico svg { width: 20px; height: 20px; display: block; }
.contact-meta .ico.whatsapp { background: rgba(37, 211, 102, 0.14); color: #4FCB81; }
.contact-meta .ico.whatsapp svg { width: 22px; height: 22px; }
.contact-meta > a > div:not(.ico) { flex: 1; min-width: 0; }
.contact-meta .label { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.contact-meta .val { font-size: 16px; color: var(--text); font-weight: 600; }
.contact-meta .meta-arrow {
  flex-shrink: 0;
  font-size: 20px; color: var(--muted);
  opacity: 0.5; transform: translateX(-6px);
  transition: opacity .25s var(--ease-soft), transform .25s var(--ease-out-quart), color .25s var(--ease-soft);
}

/* ================== CALLOUT ================== */
.callout {
  padding: 60px 50px;
  border-radius: var(--r-2xl);
  background:
    linear-gradient(140deg, rgba(255, 158, 110, 0.22) 0%, rgba(158, 205, 255, 0.14) 100%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 158, 110, 0.32);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  box-shadow:
    0 16px 50px rgba(3, 39, 111, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.callout h2 { margin-bottom: 12px; max-width: 18ch; }
.callout p { color: var(--text-2); max-width: 50ch; margin: 0 0 24px; }
.callout .actions { display: flex; gap: 12px; }

/* ================== LOGO STRIP ================== */
.logo-strip {
  padding: 40px 0;
  border-block: 1px solid var(--line);
  display: flex; gap: 50px; align-items: center; justify-content: center;
  flex-wrap: wrap;
  color: var(--muted);
}
.logo-strip span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.logo-strip .pill {
  font-family: var(--display); font-size: 22px; color: var(--text-2);
  opacity: 0.7;
}

/* ================== FOOTER ================== */
.footer {
  padding: 80px 0 30px;
  border-top: 1px solid var(--line-2);
  background: linear-gradient(180deg, transparent, rgba(3, 39, 111, 0.5));
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 60px;
}
.footer-grid > div h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-family: var(--sans); margin-bottom: 16px; }
.footer-grid > div a { display: block; color: var(--text-2); font-size: 14px; padding: 5px 0; transition: color .18s ease; }
.footer-grid > div a:hover { color: var(--coral); }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--text-2); font-size: 14px; max-width: 30ch; }
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; align-items: center; }
.socials a {
  width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--line-2);
  background: rgba(241, 235, 224, 0.03);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.socials a:hover { color: var(--coral); border-color: var(--coral); background: rgba(232, 112, 76, 0.08); transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; display: block; }

/* ================== REVEAL ANIMATION ================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.05s var(--ease-out-expo), transform 1.05s var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal.show { opacity: 1; transform: translateY(0); }

/* Stagger children of a .reveal-group container */
.reveal-group .reveal:nth-child(1).show { transition-delay: 0ms; }
.reveal-group .reveal:nth-child(2).show { transition-delay: 80ms; }
.reveal-group .reveal:nth-child(3).show { transition-delay: 160ms; }
.reveal-group .reveal:nth-child(4).show { transition-delay: 240ms; }
.reveal-group .reveal:nth-child(5).show { transition-delay: 320ms; }
.reveal-group .reveal:nth-child(6).show { transition-delay: 400ms; }

/* Hero background glows — slow drift */
@keyframes glowDriftA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
  50%      { transform: translate3d(-40px, 30px, 0) scale(1.08); opacity: 0.85; }
}
@keyframes glowDriftB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
  50%      { transform: translate3d(50px, -25px, 0) scale(1.12); opacity: 0.7; }
}
.hero::before { animation: glowDriftA 22s ease-in-out infinite; will-change: transform; }
.hero::after  { animation: glowDriftB 28s ease-in-out infinite; will-change: transform; }

/* Page hero glow drift */
.page-hero::before { animation: glowDriftA 24s ease-in-out infinite; }

/* Phone — subtle continuous float, layered with JS mouse-tilt */
@keyframes phoneFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -10px, 0); }
}
.phone {
  animation: phoneFloat 7.5s ease-in-out infinite;
  transform-style: preserve-3d;
  will-change: transform;
}
/* When user is hovering the stage, JS takes over the tilt; pause the gentle float */
.phone-stage.is-tilting .phone { animation: none; }

/* Dash chips — independent floats */
@keyframes chipFloatA {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(-4px, -8px, 0); }
}
@keyframes chipFloatB {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(6px, -6px, 0); }
}
.dash-chip          { animation: chipFloatA 8s ease-in-out infinite; will-change: transform; }
.dash-chip.bottom   { animation: chipFloatB 9s ease-in-out infinite; animation-delay: -3s; }

/* Spark bars grow when in view */
.dash-chip .spark span {
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1.1s var(--ease-out-expo);
}
.dash-chip.show .spark span                 { transform: scaleY(1); }
.dash-chip.show .spark span:nth-child(1)    { transition-delay: 100ms; }
.dash-chip.show .spark span:nth-child(2)    { transition-delay: 160ms; }
.dash-chip.show .spark span:nth-child(3)    { transition-delay: 220ms; }
.dash-chip.show .spark span:nth-child(4)    { transition-delay: 280ms; }
.dash-chip.show .spark span:nth-child(5)    { transition-delay: 340ms; }
.dash-chip.show .spark span:nth-child(6)    { transition-delay: 400ms; }
.dash-chip.show .spark span:nth-child(7)    { transition-delay: 460ms; }
.dash-chip.show .spark span:nth-child(8)    { transition-delay: 520ms; }
.dash-chip.show .spark span:nth-child(9)    { transition-delay: 580ms; }

/* Premium card hover — lift + slight inner glow */
.card, .big-card, .plan, .post-card {
  transition:
    transform .55s var(--ease-out-quart),
    border-color .35s var(--ease-soft),
    box-shadow .55s var(--ease-out-quart),
    background .35s var(--ease-soft);
}
.card:hover, .plan:hover, .post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 8px 22px rgba(232, 112, 76, 0.06);
}

/* Buttons — magnetic-feel sheen on hover */
.btn {
  position: relative;
  overflow: hidden;
  transition:
    transform .35s var(--ease-out-quart),
    background .25s var(--ease-soft),
    box-shadow .35s var(--ease-out-quart);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .8s var(--ease-out-quart);
  pointer-events: none;
}
.btn:hover::before { transform: translateX(100%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(232, 112, 76, 0.32); }
.btn.secondary:hover { box-shadow: 0 8px 22px rgba(0,0,0,0.25); }

/* Brand logo — subtle hover tilt */
.brand:hover .brand-logo {
  transform: rotate(-4deg) scale(1.05);
  transition: transform .5s var(--ease-spring);
}
.brand-logo { transition: transform .5s var(--ease-out-quart); }

/* Eyebrow line slides on reveal */
.eyebrow::before {
  transform-origin: left;
  transform: scaleX(0.3);
  transition: transform 1.1s var(--ease-out-expo) .15s;
}
.reveal.show .eyebrow::before,
.show > .eyebrow::before,
.eyebrow.show::before { transform: scaleX(1); }

/* Trust-row hairline animates in */
.trust-row {
  position: relative;
}
.trust-row::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 1px;
  width: 100%;
  background: var(--coral);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.4s var(--ease-out-expo) .3s;
  opacity: 0.5;
}
.reveal.show .trust-row::before,
.trust-row.show::before { transform: scaleX(1); }

/* ================== RESPONSIVE ================== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone-stage { min-height: 700px; margin-top: 20px; }
  .dash-chip { right: -8px; }
  .dash-chip.bottom { left: -8px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .callout { grid-template-columns: 1fr; padding: 40px 30px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 70px 0; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 80px; left: 4%; right: 4%;
    background: var(--ink-2); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-2);
  }
  .nav-links.open a { width: 100%; padding: 12px 16px; }
  .nav-links.open .btn { margin: 8px 0 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .phone-stage::before { width: 100%; }
  .dash-chip { display: none; }
  .article-body { font-size: 16.5px; }
  .big-card { padding: 28px 24px; }
  .callout { padding: 32px 24px; }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .phone, .dash-chip, .hero::before, .hero::after { animation: none !important; }
}
