/* =========================================
   Capital Fleet Tracker - Global Stylesheet
   Light Mode: White & Silver
   Dark Mode:  Black & Green (matches the app)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@300;400;500;600;700;800&family=Montserrat:wght@600;700;800;900&display=swap');

/* ---------- Theme Tokens ---------- */
:root {
  /* Light Mode (default): White & Silver */
  --bg-primary: #ffffff;
  --bg-secondary: #f4f5f7;
  --bg-tertiary: #e9ebef;
  --bg-elevated: #ffffff;
  --bg-inverse: #0c0d10;

  --text-primary: #0c0d10;
  --text-secondary: #4a4d56;
  --text-tertiary: #7a7e88;
  --text-inverse: #ffffff;

  --accent: #000000;        /* light mode = strict black & white */
  --accent-strong: #000000;
  --accent-soft: #ececec;

  --silver: #c2c5cc;
  --silver-light: #e4e6eb;
  --silver-dark: #8a8d96;

  --border: #dcdee3;
  --border-strong: #b7bac2;
  --shadow-sm: 0 1px 2px rgba(12, 13, 16, 0.04), 0 1px 3px rgba(12, 13, 16, 0.06);
  --shadow-md: 0 4px 12px rgba(12, 13, 16, 0.06), 0 2px 4px rgba(12, 13, 16, 0.04);
  --shadow-lg: 0 20px 50px rgba(12, 13, 16, 0.08), 0 10px 20px rgba(12, 13, 16, 0.04);

  --success: #1f8a4c;
  --warning: #b67611;
  --danger: #b8332a;

  --gradient-hero: linear-gradient(180deg, #ffffff 0%, #f1f2f5 100%);
  --gradient-accent: linear-gradient(135deg, #e9ebef 0%, #c2c5cc 100%);

  --font-display: 'Montserrat', system-ui, sans-serif; /* bold geometric (Spotify-style) */
  --font-body: 'Manrope', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --container: 1240px;
  --header-h: 76px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-theme="dark"] {
  /* Dark Mode: Black & Green — matches the mobile app (Spotify-style) */
  --bg-primary: #121212;
  --bg-secondary: #181818;
  --bg-tertiary: #282828;
  --bg-elevated: #181818;
  --bg-inverse: #ededed;

  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-tertiary: #8e9298;
  --text-inverse: #06140c;

  --accent: #1db954;        /* brand action: buttons, links, icons */
  --accent-strong: #ffffff; /* strong headings/text on dark (NOT a bg in dark) */
  --accent-soft: #282828;

  --silver: #b3b3b3;
  --silver-light: #d8d8d8;
  --silver-dark: #6a6d73;

  --border: #2a2a2a;
  --border-strong: #3a3a3a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.65), 0 10px 20px rgba(0, 0, 0, 0.45);

  --success: #1db954;
  --warning: #ffa726;
  --danger: #f0433b;

  --gradient-hero: radial-gradient(ellipse at top, rgba(29, 185, 84, 0.14) 0%, transparent 60%), linear-gradient(180deg, #121212 0%, #0d0d0d 100%);
  --gradient-accent: linear-gradient(135deg, #1db954 0%, #146c34 100%);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

a {
  color: var(--accent-strong);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-body); letter-spacing: 0.02em; }

p { margin: 0 0 1.1em; color: var(--text-secondary); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 96px 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg-primary) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.nav {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text-primary); }

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--gradient-accent);
  display: grid;
  place-items: center;
  color: var(--text-inverse);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .brand-mark { color: #0c0d10; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.93rem;
  font-weight: 500;
  position: relative;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s var(--ease);
}
.theme-toggle:hover {
  border-color: var(--accent);
  transform: rotate(15deg);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 100px; /* pill (Spotify-style) */
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--accent-strong);
  color: var(--text-inverse);
  border-color: var(--accent-strong);
}
[data-theme="dark"] .btn-primary {
  background: var(--accent);
  color: #0c0d10;
  border-color: var(--accent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text-inverse);
}
[data-theme="dark"] .btn-primary:hover { color: #0c0d10; }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-primary:hover { transform: translateY(-1px) scale(1.03); }

/* ============================================================
   Spotify-style components (dark-first redesign)
   ============================================================ */
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.03; letter-spacing: -0.02em; }
.hero h1 em { color: var(--accent); font-style: normal; }
h1, h2 { letter-spacing: -0.02em; }

/* Section title used above shelves/tile grids */
.shelf-section { margin: 14px 0; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 16px; }
.shelf-head h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.shelf-head a { color: var(--text-tertiary); font-size: 0.85rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.shelf-head a:hover { color: var(--accent); }

/* Browse-by-industry tiles (Spotify "genre" grid) */
.ind-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.ind-tile { position: relative; aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; padding: 15px;
  display: flex; align-items: flex-start; text-decoration: none; color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.ind-tile:hover { transform: translateY(-3px); }
.ind-tile span { position: relative; z-index: 1; max-width: 70%; line-height: 1.15; }
.ind-tile svg { position: absolute; right: -10px; bottom: -14px; width: 70px; height: 70px;
  opacity: .26; transform: rotate(22deg); z-index: 0; }
/* Tiles: monochrome (black/charcoal) in light mode, vibrant in dark (Spotify). */
.t-1{background:#141414;} .t-2{background:#1f1f1f;} .t-3{background:#2a2a2a;} .t-4{background:#353535;}
.t-5{background:#202020;} .t-6{background:#2d2d2d;} .t-7{background:#181818;} .t-8{background:#3a3a3a;}
.t-9{background:#242424;} .t-10{background:#303030;} .t-11{background:#1b1b1b;} .t-12{background:#272727;}
[data-theme="dark"] .t-1{background:#1db954;} [data-theme="dark"] .t-2{background:#1e6b4f;}
[data-theme="dark"] .t-3{background:#2d6cdf;} [data-theme="dark"] .t-4{background:#b8443c;}
[data-theme="dark"] .t-5{background:#b5852a;} [data-theme="dark"] .t-6{background:#6c4cc4;}
[data-theme="dark"] .t-7{background:#2a7d7b;} [data-theme="dark"] .t-8{background:#516170;}
[data-theme="dark"] .t-9{background:#c1564b;} [data-theme="dark"] .t-10{background:#3a7d44;}
[data-theme="dark"] .t-11{background:#4661a8;} [data-theme="dark"] .t-12{background:#8a5a2b;}

/* Cover-art gradients: grayscale in light, colorful in dark. */
.ca-1{background:linear-gradient(135deg,#2b2b2b,#111);} .ca-2{background:linear-gradient(135deg,#333,#161616);}
.ca-3{background:linear-gradient(135deg,#3a3a3a,#1d1d1d);} .ca-4{background:linear-gradient(135deg,#2e2e2e,#121212);}
.ca-5{background:linear-gradient(135deg,#363636,#191919);} .ca-6{background:linear-gradient(135deg,#292929,#0e0e0e);}
.ca-7{background:linear-gradient(135deg,#313131,#151515);}
[data-theme="dark"] .ca-1{background:linear-gradient(135deg,#1db954,#0f7a37);}
[data-theme="dark"] .ca-2{background:linear-gradient(135deg,#b5852a,#7a5916);}
[data-theme="dark"] .ca-3{background:linear-gradient(135deg,#516170,#2f3a44);}
[data-theme="dark"] .ca-4{background:linear-gradient(135deg,#6c4cc4,#42307d);}
[data-theme="dark"] .ca-5{background:linear-gradient(135deg,#2a7d7b,#185453);}
[data-theme="dark"] .ca-6{background:linear-gradient(135deg,#b8443c,#7d2a24);}
[data-theme="dark"] .ca-7{background:linear-gradient(135deg,#2f6f8f,#173543);}

/* Responsive 16:9 video embed (YouTube/Vimeo) */
.video-wrap { position: relative; width: 100%; max-width: 880px; margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Horizontal "shelf" carousel of cover cards */
.shelf { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.shelf::-webkit-scrollbar { height: 8px; }
.shelf::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 8px; }
.cover { flex: 0 0 200px; scroll-snap-align: start; text-decoration: none; color: inherit;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 14px; padding: 12px;
  transition: transform .2s var(--ease), border-color .2s var(--ease); }
.cover:hover { transform: translateY(-3px); border-color: var(--accent); }
.cover-art { height: 150px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #fff; overflow: hidden; }
.cover-art img { width: 100%; height: 100%; object-fit: cover; }
.cover h4 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin: 12px 4px 2px; }
.cover p { color: var(--text-tertiary); font-size: 0.85rem; margin: 0 4px 6px; line-height: 1.4; }

/* Duotone image treatment (green/black) for future hero/section photos */
.duotone { background: var(--accent); border-radius: var(--radius-lg); overflow: hidden; }
.duotone img { width: 100%; display: block; mix-blend-mode: luminosity; opacity: .85;
  filter: grayscale(1) contrast(1.05); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  background: var(--gradient-hero);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
}

.hero h1 {
  font-weight: 400;
  margin-bottom: 0.4em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.18rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--border);
}
.hv-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.hv-stat {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.hv-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.hv-stat-pct {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-strong);
}
[data-theme="dark"] .hv-stat-pct { color: var(--accent); }
.hv-stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.hv-stat-total {
  font-size: 1.1rem;
  color: var(--text-tertiary);
}

.hv-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
}
.hv-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--border);
  animation: fadeSlide 0.6s var(--ease) backwards;
}
.hv-item:last-child { border-bottom: none; }
.hv-item:nth-child(1) { animation-delay: 0.2s; }
.hv-item:nth-child(2) { animation-delay: 0.35s; }
.hv-item:nth-child(3) { animation-delay: 0.5s; }
.hv-item:nth-child(4) { animation-delay: 0.65s; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.hv-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.hv-item-sub {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.hv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6px 4px;
  border-top: 1px solid var(--border);
}
.hv-foot-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.hv-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: block;
}
.hv-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hv-pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
[data-theme="dark"] .hv-pill { color: var(--accent-strong); }

.hv-pill-green {
  background: rgba(31, 138, 76, 0.12);
  color: #1f8a4c;
}
[data-theme="dark"] .hv-pill-green {
  background: rgba(92, 181, 120, 0.16);
  color: #5cb578;
}

.hv-pill-amber {
  background: rgba(182, 118, 17, 0.12);
  color: #b67611;
}
[data-theme="dark"] .hv-pill-amber {
  background: rgba(224, 169, 61, 0.16);
  color: #e0a93d;
}

.hv-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hv-bar {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 100px;
  overflow: hidden;
}
.hv-bar-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 100px;
}

/* ---------- Sections ---------- */
.section-head {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-head.left { margin-left: 0; text-align: left; }

.bg-soft { background: var(--bg-secondary); }

/* ---------- Feature Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
[data-theme="dark"] .feature-icon { color: var(--accent); }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.step {
  position: relative;
  padding-top: 24px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  transition: all 0.3s var(--ease);
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.price-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-strong);
  color: var(--text-inverse);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
}
[data-theme="dark"] .price-card.featured::before {
  background: var(--accent);
  color: #0c0d10;
}
.price-tier { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
}
.price-amount sub { font-size: 0.9rem; color: var(--text-tertiary); font-weight: 400; letter-spacing: 0; }
.price-desc { color: var(--text-secondary); font-size: 0.95rem; margin: 14px 0 24px; }
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.price-list li {
  padding: 9px 0 9px 28px;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-top: 1px dashed var(--border);
}
.price-list li:first-child { border-top: none; }
.price-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 14px; height: 14px;
  background: var(--accent-soft);
  border-radius: 50%;
}
.price-list li::after {
  content: '';
  position: absolute;
  left: 4px; top: 21px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--accent-strong);
  border-bottom: 1.5px solid var(--accent-strong);
  transform: rotate(-45deg);
}
[data-theme="dark"] .price-list li::after { border-color: var(--accent); }

/* ---------- Table ---------- */
.table-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.data-table thead {
  background: var(--bg-secondary);
}
.data-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}
.data-table tr:first-child td { border-top: none; }
.data-table td:first-child { color: var(--text-primary); font-weight: 500; }
.data-table .discount {
  font-weight: 600;
  color: var(--accent-strong);
}
[data-theme="dark"] .data-table .discount { color: var(--accent); }

/* ---------- CTA Strip ---------- */
.cta-strip {
  background: var(--bg-inverse);
  color: var(--text-inverse);
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: var(--gradient-accent);
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(60px);
}
.cta-strip h2 { color: var(--text-inverse); position: relative; }
.cta-strip p { color: rgba(255, 255, 255, 0.7); position: relative; max-width: 560px; margin-left: auto; margin-right: auto; }
[data-theme="dark"] .cta-strip p { color: rgba(6, 20, 12, 0.72); }
.cta-strip .btn-primary {
  background: #ffffff;
  color: #0c0d10;
  border-color: #ffffff;
  position: relative;
}
[data-theme="dark"] .cta-strip .btn-primary {
  background: var(--accent);
  color: #0c0d10;
  border-color: var(--accent);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
}
.faq-item summary {
  cursor: pointer;
  padding: 22px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 24px; max-width: 700px; }

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 18px;
  max-width: 580px;
}
.form-row { display: grid; gap: 6px; }
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.form-row input,
.form-row textarea,
.form-row select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: border-color 0.2s var(--ease);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-help { font-size: 0.82rem; color: var(--text-tertiary); }

/* ---------- Industry / Component cards ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s var(--ease);
}
.tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.tile h3 { font-size: 1.1rem; margin-bottom: 6px; }
.tile p { font-size: 0.93rem; margin: 0; }

/* ---------- Connect / Social ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.social-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.25s var(--ease);
}
.social-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  color: var(--text-primary);
}
.social-left { display: flex; align-items: center; gap: 18px; }
.social-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  flex-shrink: 0;
}
[data-theme="dark"] .social-icon { color: var(--accent); }
.social-name { font-weight: 600; color: var(--text-primary); font-size: 1rem; }
.social-handle { font-size: 0.85rem; color: var(--text-tertiary); }
.social-arrow { color: var(--text-tertiary); transition: transform 0.2s var(--ease); }
.social-card:hover .social-arrow { transform: translateX(4px); color: var(--accent); }

/* ---------- Legal pages ---------- */
.legal-body { max-width: 780px; margin: 0 auto; }
.legal-body h2 { margin-top: 2.2em; font-size: 1.6rem; }
.legal-body h3 { margin-top: 1.8em; font-size: 1.15rem; }
.legal-body p, .legal-body li { color: var(--text-secondary); }
.legal-body ul { padding-left: 1.2em; }
.legal-meta { color: var(--text-tertiary); font-size: 0.9rem; margin-bottom: 2.5em; }

/* ---------- Auth pages ---------- */
.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 60px 24px;
  background: var(--gradient-hero);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 1.9rem; margin-bottom: 8px; }
.auth-card .sub { color: var(--text-secondary); margin-bottom: 26px; }
.auth-card .btn { width: 100%; }
.auth-foot { margin-top: 22px; text-align: center; font-size: 0.92rem; color: var(--text-tertiary); }
.auth-status { min-height: 1.2em; margin: 0; }
.auth-status.error { color: var(--danger); font-weight: 600; }
.auth-status.success { color: var(--success); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand p {
  font-size: 0.92rem;
  margin-top: 14px;
  max-width: 340px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 0.93rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-tertiary);
}
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-secondary);
}
.footer-socials a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.muted { color: var(--text-tertiary); }
.divider { height: 1px; background: var(--border); margin: 48px 0; border: none; }
.note {
  padding: 18px 22px;
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
/* Collapse the header to a hamburger as soon as the full nav stops fitting —
   e.g. a split-screen or otherwise narrow window on a laptop, not just phones.
   The nav (brand + links + CTAs) needs ~1100px, so we collapse below 1024px. */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 24px 28px;
    gap: 18px;
  }
  .mobile-toggle { display: grid; place-items: center; }
  /* Portal/demo pages carry extra header buttons (Sharing, Settings, Sign out)
     that overflow a narrow window. Collapse them into the hamburger menu so the
     header fits (main.js mirrors them into .nav-links). */
  body:has(.app-main) .nav-actions .btn { display: none; }
  .nav-links .mobile-action { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 16px; }
  .nav-links .mobile-action ~ .mobile-action { border-top: 0; margin-top: 0; padding-top: 0; }
  /* Dark mode: lift the open hamburger panel off the near-identical page bg. */
  [data-theme="dark"] .nav-links.open {
    background: #202020;
    border-bottom: 1px solid var(--border-strong);
    box-shadow: var(--shadow-md);
  }
}

/* Dark mode: floating/pop menus (tools dropdown, tools rail) read as the same
   color as the page (#181818 vs #121212). Give them a clearly elevated surface,
   a stronger border, and a shadow so they stand out. */
[data-theme="dark"] .tools-menu,
[data-theme="dark"] .tools-rail {
  background: #202020;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .feature-grid, .pricing-grid, .tile-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .social-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 70px 0; }
  .container { padding: 0 20px; }
  .feature-grid, .pricing-grid, .tile-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-strip { padding: 44px 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .auth-card { padding: 28px; }
  .hero { padding: 70px 0 60px; }
  .hero-visual { padding: 18px; gap: 12px; }
  .hv-stat { padding: 14px 16px; }
  .hv-stat-value { font-size: 2rem; }
  .hv-item { padding: 10px 4px; }
  .hv-item-title { font-size: 0.9rem; }
  .hv-item-sub { font-size: 0.75rem; }
}
