:root {
  --bg: #070b14;
  --bg-elevated: #0d1524;
  --bg-soft: #111c2e;
  --surface: #152238;
  --border: rgba(148, 180, 220, 0.14);
  --text: #eef4ff;
  --text-muted: #93a4c0;
  --text-soft: #6d7f9c;
  --primary: #3b82f6;
  --primary-bright: #60a5fa;
  --primary-deep: #1d4ed8;
  --primary-glow: rgba(59, 130, 246, 0.35);
  --accent: #38bdf8;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --ease-out: cubic-bezier(0.25, 0.4, 0.25, 1);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.lede {
  font-size: 1.08rem;
  max-width: 42rem;
}

.lede.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  color: var(--primary-bright);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.accent {
  color: var(--accent);
}

.center-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s var(--ease-out), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-bright), var(--primary-deep));
  color: #fff;
  box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(59, 130, 246, 0.5);
}

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

.btn-ghost:hover {
  border-color: rgba(148, 180, 220, 0.35);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-lg {
  padding: 0.95rem 1.55rem;
  font-size: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 11, 20, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2.5rem));
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
}

.logo-mark {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-mark.sm {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-size: 0.95rem;
}

.nav {
  display: flex;
  gap: 1.4rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.phone {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 11, 20, 0.98);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav a:not(.btn) {
  display: block;
  padding: 0.9rem 0.25rem;
  color: var(--text);
  font-weight: 500;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:not(.btn):last-of-type {
  border-bottom: 0;
  color: var(--primary-bright);
  font-weight: 600;
}

.mobile-nav .btn {
  margin-top: 0.75rem;
  width: 100%;
}

.mobile-nav[hidden] {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 70% 20%, rgba(59, 130, 246, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(56, 189, 248, 0.16), transparent 55%),
    linear-gradient(180deg, #0a1220 0%, var(--bg) 70%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 180, 220, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 180, 220, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  animation: grid-drift 18s linear infinite;
}

.hero .container,
.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 640px;
}

.brand-hero {
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  margin-bottom: 0.6rem;
  background: linear-gradient(120deg, #fff 20%, var(--primary-bright) 70%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-headline {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-sub {
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.hero-cta {
  margin-bottom: 1.5rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-pills li {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(21, 34, 56, 0.65);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-visual {
  position: absolute;
  right: max(2rem, calc((100% - 1120px) / 2));
  top: 50%;
  transform: translateY(-50%);
  width: min(420px, 38vw);
}

.hero-panel {
  background: linear-gradient(160deg, rgba(21, 34, 56, 0.95), rgba(13, 21, 36, 0.98));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.2rem;
  box-shadow: var(--shadow), 0 0 0 1px rgba(59, 130, 246, 0.08);
  animation: float 5s ease-in-out infinite;
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  animation: ping-soft 2s ease-out infinite;
}

.panel-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.panel-weeks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.panel-weeks span {
  text-align: center;
  padding: 0.4rem 0.2rem;
  border-radius: 8px;
  font-size: 0.72rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
}

.panel-weeks .active {
  color: #fff;
  background: rgba(59, 130, 246, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.panel-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  height: 160px;
  padding: 0.5rem 0.2rem;
}

.panel-chart .bar {
  flex: 1;
  height: 0;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--primary-bright), var(--primary-deep));
  transform-origin: bottom;
  transition: height 1s var(--ease-out);
}

.panel-chart .bar.is-on {
  height: var(--h);
}

/* Logos strip */
.logos-strip {
  padding: 2.5rem 0;
  border-block: 1px solid var(--border);
  background: rgba(13, 21, 36, 0.55);
  overflow: hidden;
}

.logos-label {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.logos-track {
  display: flex;
  width: max-content;
  animation: scroll 28s linear infinite;
}

.logos-row {
  display: flex;
  gap: 2.5rem;
  padding-right: 2.5rem;
}

.logos-row span {
  white-space: nowrap;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.7;
}

/* Stats */
.stats {
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(21, 34, 56, 0.7), rgba(13, 21, 36, 0.4));
}

.stat-num,
.power-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--primary-bright);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Powers */
.powers {
  padding: 4rem 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(59, 130, 246, 0.12), transparent 60%),
    var(--bg-elevated);
}

.powers h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.powers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.powers-grid > div {
  text-align: center;
  padding: 1.5rem 1rem;
}

.powers-grid span:last-child {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Territory */
.territory,
.process,
.compare,
.dashboard,
.calculator,
.team,
.sync,
.faq {
  padding: 5rem 0;
}

.territory-layout,
.dashboard-layout,
.sync-layout,
.faq-layout,
.calc-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
  margin-top: 1.5rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.territory-map {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.map-legend {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.map-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 0.35rem;
}

.map-legend .avail { background: var(--success); }
.map-legend .limited { background: var(--warning); }
.map-legend .claimed { background: var(--danger); }

.map-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.map-grid .cell {
  aspect-ratio: 1;
  border-radius: 10px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.map-grid .cell.is-on {
  opacity: 1;
  transform: scale(1);
}

.map-grid .cell.avail {
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.45), rgba(52, 211, 153, 0.15));
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.map-grid .cell.limited {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.4), rgba(251, 191, 36, 0.12));
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.map-grid .cell.claimed {
  background: linear-gradient(145deg, rgba(248, 113, 113, 0.4), rgba(248, 113, 113, 0.12));
  border: 1px solid rgba(248, 113, 113, 0.3);
}

/* Process */
.process {
  background: var(--bg-elevated);
}

.process h2 {
  text-align: center;
  margin-bottom: 1.25rem;
}

.process-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.process-tags li {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary-bright);
  font-size: 0.82rem;
  font-weight: 600;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.process-steps article {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(13, 21, 36, 0.65);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}

.process-steps article:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.step-num {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--primary-bright);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* Compare */
.compare h2 {
  text-align: center;
}

.compare-table-wrap {
  margin-top: 2rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-soft);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.compare-table th {
  background: rgba(59, 130, 246, 0.08);
  color: var(--text);
  font-weight: 600;
}

.compare-table td {
  color: var(--text-muted);
}

.compare-table .highlight {
  color: var(--primary-bright);
  background: rgba(59, 130, 246, 0.06);
  font-weight: 600;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

/* Dashboard */
.dashboard {
  background:
    radial-gradient(ellipse 50% 60% at 85% 40%, rgba(59, 130, 246, 0.14), transparent 55%),
    var(--bg);
}

.dash-features {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.dash-features li {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.dash-features strong {
  display: block;
  margin-bottom: 0.25rem;
}

.dash-features span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.dash-mock {
  background: linear-gradient(165deg, #152238, #0d1524);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.dash-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.dash-metrics div {
  padding: 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.dash-metrics em {
  display: block;
  font-style: normal;
  font-size: 0.7rem;
  color: var(--text-soft);
  margin-bottom: 0.25rem;
}

.dash-metrics b {
  font-size: 1.05rem;
}

.dash-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.dash-alert strong {
  display: block;
  font-size: 0.88rem;
}

.dash-alert span:not(.pulse) {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-bright);
  flex-shrink: 0;
  animation: ping-soft 1.8s ease-out infinite;
}

/* Calculator */
.calculator {
  background: var(--bg-elevated);
}

.calculator h2 {
  text-align: center;
}

.calc-form {
  display: grid;
  gap: 1rem;
}

.calc-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.calc-form input[type="number"],
.calc-form input[type="range"] {
  width: 100%;
}

.calc-form input[type="number"] {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.calc-results {
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.12), rgba(13, 21, 36, 0.9));
}

.result-hero {
  margin-bottom: 1.25rem;
}

.result-hero span {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.result-hero strong {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--primary-bright);
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.result-grid div {
  padding: 0.85rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

.result-grid em {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}

.result-breakdown h4 {
  margin-bottom: 0.65rem;
}

.result-breakdown p {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}

.calc-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Team */
.team h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.team-grid article {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}

.team-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
}

.avatar,
.quote-avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary), var(--primary-deep));
  font-weight: 700;
  box-shadow: 0 10px 24px var(--primary-glow);
  object-fit: cover;
  object-position: center top;
}

.book-cta {
  text-align: center;
  padding: 2rem;
  border: 1px dashed rgba(59, 130, 246, 0.35);
  border-radius: 18px;
  background: rgba(59, 130, 246, 0.06);
}

.book-panel {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(59, 130, 246, 0.16), transparent 55%),
    linear-gradient(165deg, var(--bg-soft), var(--bg-elevated));
  box-shadow: var(--shadow);
}

.book-panel-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.book-panel-head h3 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.book-panel-head p {
  margin: 0;
  color: var(--text-muted);
}

.book-sync-status {
  display: inline-block;
  margin-top: 0.85rem !important;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.book-sync-status.is-live,
.book-sync-status.is-ready {
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}

.book-sync-status.is-warn {
  color: var(--warning);
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.book-calendar,
.book-slots {
  padding: 1.1rem;
  border-radius: 16px;
  background: rgba(7, 11, 20, 0.45);
  border: 1px solid var(--border);
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.cal-nav h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.cal-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cal-nav-btn:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(59, 130, 246, 0.12);
}

.cal-weekdays,
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.cal-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  padding: 0.25rem 0;
}

.cal-day {
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s var(--ease-out);
}

.cal-day.is-blank {
  pointer-events: none;
}

.cal-day:not(:disabled):hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(96, 165, 250, 0.35);
}

.cal-day.is-today {
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.55);
}

.cal-day.is-selected {
  background: linear-gradient(145deg, var(--primary), var(--primary-deep));
  color: #fff;
  border-color: transparent;
}

.cal-day.is-disabled,
.cal-day:disabled {
  color: var(--text-soft);
  opacity: 0.4;
  cursor: not-allowed;
}

.book-slots h4 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  max-height: 220px;
  overflow: auto;
  margin-bottom: 1rem;
  padding-right: 0.15rem;
}

.slot-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem 0.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.slot-btn {
  padding: 0.65rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s var(--ease-out);
}

.slot-btn:hover {
  border-color: rgba(96, 165, 250, 0.45);
  transform: translateY(-1px);
}

.slot-btn.is-selected {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--primary-bright);
  color: #fff;
}

.book-form {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

.book-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.book-form input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.book-form input:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.book-form .book-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.book-form-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-soft);
  text-align: center;
}

.book-success {
  text-align: center;
  padding: 1rem 0.5rem;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.book-success[hidden],
.book-form[hidden] {
  display: none !important;
}

.book-success h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--success);
}

.book-success p {
  margin: 0;
  color: var(--text-muted);
  max-width: 28rem;
}

@media (max-width: 820px) {
  .book-grid {
    grid-template-columns: 1fr;
  }

  .slot-list {
    max-height: none;
  }
}

/* Sync / testimonial */
.sync {
  background: var(--bg-elevated);
}

.sync-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.sync-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--primary-bright);
  font-weight: 400;
}

.sync-stats span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.quote {
  margin: 0;
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.quote p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.quote footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quote-avatar {
  width: 44px;
  height: 44px;
  margin: 0;
  font-size: 0.9rem;
}

.quote footer strong {
  display: block;
}

.quote footer span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* FAQ */
.faq-layout {
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
  padding: 0.2rem 1rem;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--primary-bright);
  font-size: 1.2rem;
  transition: transform 0.25s var(--ease-out);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  padding-bottom: 1rem;
  margin: 0;
}

/* Final CTA */
.final-cta {
  padding: 5.5rem 0;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(59, 130, 246, 0.28), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #0a1630 100%);
}

.final-cta h2 {
  margin-bottom: 0.75rem;
}

.final-cta p {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border);
  background: #050912;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  margin-top: 0.85rem;
  max-width: 22rem;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.footer-links a,
.footer-contact a:not(.btn) {
  color: var(--text-muted);
}

.footer-links a:hover,
.footer-contact a:not(.btn):hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* Scroll reveal (framer-motion style) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94) translateY(16px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.stagger > .reveal,
.stagger > .reveal-scale {
  transition-delay: calc(var(--i, 0) * 0.1s);
}

.hero-content > .reveal {
  transition-delay: calc(var(--i, 0) * 0.08s);
}

/* Keyframes */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes ping-soft {
  0% {
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(96, 165, 250, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0);
  }
}

@keyframes grid-drift {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(56px);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .panel-chart .bar,
  .map-grid .cell {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .logos-track,
  .hero-panel,
  .hero-bg::after,
  .dot,
  .pulse {
    animation: none !important;
  }

  .panel-chart .bar {
    height: var(--h) !important;
  }

  .map-grid .cell {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive — tablet */
@media (max-width: 980px) {
  :root {
    --header-h: 64px;
  }

  .container {
    width: min(1120px, calc(100% - 2rem));
  }

  .nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    padding: 2.5rem 0 3rem;
    align-items: start;
  }

  .hero-content {
    max-width: none;
  }

  .hero-visual {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: min(420px, 100%);
    margin: 2.25rem auto 0;
  }

  .hero-panel {
    animation: none;
  }

  .stats-grid,
  .powers-grid,
  .process-steps,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .territory-layout,
  .dashboard-layout,
  .sync-layout,
  .faq-layout,
  .calc-layout,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .territory,
  .process,
  .compare,
  .dashboard,
  .calculator,
  .team,
  .sync,
  .faq {
    padding: 3.5rem 0;
  }

  .powers {
    padding: 3.5rem 0;
  }

  .compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .compare-table {
    min-width: 560px;
  }

  .map-legend {
    flex-wrap: wrap;
  }

  .faq-layout h2 {
    margin-bottom: 0.5rem;
  }

  .final-cta {
    padding: 4rem 0;
  }
}

/* Responsive — phone */
@media (max-width: 640px) {
  .container {
    width: calc(100% - 1.5rem);
  }

  .site-header {
    padding-top: env(safe-area-inset-top, 0px);
  }

  .logo-text {
    font-size: 0.88rem;
    max-width: 11.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-hero {
    font-size: clamp(2.35rem, 11vw, 3.1rem);
  }

  .hero-headline {
    font-size: 1.15rem;
  }

  .hero-sub {
    font-size: 0.98rem;
  }

  .hero-cta .btn,
  .center-cta .btn,
  .book-cta .btn,
  .territory-copy .btn {
    width: 100%;
  }

  .hero-pills {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-pills li {
    text-align: center;
  }

  .panel-weeks {
    flex-wrap: wrap;
  }

  h2 {
    font-size: clamp(1.75rem, 7vw, 2.35rem);
  }

  .lede {
    font-size: 1rem;
  }

  .stats {
    padding: 2.25rem 0;
  }

  .stats-grid,
  .powers-grid,
  .process-steps,
  .team-grid,
  .sync-stats,
  .feature-list {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .dash-metrics,
  .result-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat,
  .powers-grid > div {
    padding: 1rem 0.75rem;
  }

  .stat-num,
  .power-num {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .process-tags {
    justify-content: flex-start;
  }

  .process-steps article {
    padding: 1.25rem 1rem;
  }

  .dash-header {
    flex-wrap: wrap;
    font-size: 0.75rem;
  }

  .dash-metrics div {
    padding: 0.65rem;
  }

  .dash-metrics b {
    font-size: 0.95rem;
  }

  .calc-form,
  .calc-results {
    padding: 1.15rem;
  }

  .result-hero strong {
    font-size: 2.1rem;
  }

  .team-grid article {
    padding: 1.25rem 1rem;
  }

  .quote {
    padding: 1.35rem;
  }

  .quote p {
    font-size: 1.1rem;
  }

  .faq-list summary {
    font-size: 0.95rem;
    align-items: flex-start;
  }

  .final-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .final-actions .btn {
    width: 100%;
  }

  .footer-inner {
    gap: 1.75rem;
  }

  .footer-contact .btn {
    width: 100%;
  }

  .map-legend {
    gap: 0.65rem 1rem;
    font-size: 0.75rem;
  }
}

/* Legal pages */
.legal-page {
  padding: calc(var(--header-h) + 3.5rem) 0 4.5rem;
  min-height: 70vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 130, 246, 0.18), transparent 55%),
    var(--bg);
}

.legal-content {
  max-width: 760px;
}

.legal-content h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.legal-updated {
  color: var(--text-soft);
  margin: 0 0 2.5rem;
  font-size: 0.95rem;
}

.legal-content section {
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.legal-content p {
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 0.85rem;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: var(--primary-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--accent);
}

/* Extra-small phones */
@media (max-width: 380px) {
  .logo-text {
    display: none;
  }

  .dash-metrics,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .brand-hero {
    font-size: 2.15rem;
  }
}
