/* ============================================================
   NEXLYMATE — Design tokens
   ============================================================ */
:root {
  /* Color: "Space Indigo" palette */
  --ink: #2b2d42;        /* Space Indigo — primary text, dark chrome */
  --ink-soft: #5b5f78;   /* deeper tint of Lavender Grey for readable body copy */
  --navy-950: #21222f;   /* near-black indigo — deepest panels */
  --navy-900: #2b2d42;   /* Space Indigo — header/footer/dark panels */
  --navy-800: #363853;   /* lighter indigo for dark secondary surfaces */
  --navy-700: #8d99ae;   /* Lavender Grey — muted accents on dark surfaces */
  --blue-500: #ef233c;   /* Strawberry Red used where "blue-500" var is referenced */
  --teal-500: #ef233c;   /* Strawberry Red — reserved for primary CTA buttons + small highlights */
  --teal-400: #f4526a;   /* lighter strawberry red for CTA hovers */
  --mint-500: #d90429;   /* Flag Red — CTA hover/active state */
  --accent: #2b2d42;      /* Space Indigo — links, icons, borders: the everyday accent */
  --accent-hover: #4a4d6e; /* lighter indigo for link/icon hover */
  --paper: #edf2f4;      /* Platinum — page background */
  --paper-dim: #dfe6e9;  /* deeper platinum-grey for alternating sections */
  --surface: #FFFFFF;
  --line: #ccd3da;
  --line-soft: #e2e8eb;

  /* Hero background: soft platinum-lavender tint */
  --hero-bg: #ffe4de;
  --hero-bg-line: #ccd3da;

  /* Type — leads with Apple's system font (San Francisco) and Microsoft's
     (Segoe UI Variable / Segoe UI) so the site inherits each OS's native,
     polished type before falling back to the loaded web fonts. */
  --font-display: -apple-system, 'SF Pro Display', 'Segoe UI Variable Display', 'Segoe UI', 'Space Grotesk', Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', 'Inter', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Segoe UI Mono', 'JetBrains Mono', Consolas, 'Courier New', monospace;

  /* Scale */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(43, 45, 66, 0.10);
  --shadow-md: 0 2px 6px rgba(43, 45, 66, 0.12);
  --shadow-lg: 0 4px 12px rgba(43, 45, 66, 0.16);
  --container: 1560px;
  --container-wide: 1920px;
  --container-narrow: 1420px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* Wider wrap for header and footer — these should hug the browser
   edges on large monitors, matching how full-scale sites (e.g. the
   Microsoft Developer portal) anchor their chrome to the viewport
   instead of floating in a narrow centered column. */
.wrap-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 48px;
}

/* Narrower wrap for text/content-dense sections (hero, trust bar,
   product suite, feature grid) so paragraphs, cards and the hero
   photo sit in a more centered, reading-comfortable column instead
   of stretching to the same width as the header/footer chrome. */
.wrap-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
}

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

/* ============================================================
   Utility
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-500);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.btn:hover svg { transform: translateX(2px); }

.btn-primary {
  background: linear-gradient(180deg, var(--teal-400) 0%, var(--teal-500) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
  border-color: var(--mint-500);
}
.btn-primary:hover { background: linear-gradient(180deg, #f97188 0%, var(--teal-400) 100%); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn-teal {
  background: var(--teal-500);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-teal:hover { background: var(--teal-400); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy-700); background: var(--paper-dim); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand { display: flex; align-items: center; }
.brand img { height: 26px; width: auto; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-main a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
  position: relative;
  padding: 6px 0;
}
.nav-main a:hover,
.nav-main a.active { color: var(--navy-900); }
.nav-main a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--teal-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-main a:hover::after,
.nav-main a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { padding: 10px 20px; font-size: 14px; }

.link-signin {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 10px 8px;
}
.link-signin:hover { color: var(--navy-900); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: var(--hero-bg);
  padding: 88px 0 0;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 64px;
}

.hero-copy .eyebrow { margin-bottom: 22px; }

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-copy p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-cta { display: flex; align-items: center; gap: 18px; margin-bottom: 40px; flex-wrap: wrap; }

.hero-microtrust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}
.hero-microtrust svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy-700);
  font-family: var(--font-mono);
}
.badge-chip svg { width: 14px; height: 14px; color: var(--teal-500); }

/* --- Hero visual: product photo, right-hand column (signature element) --- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.hero-visual-glow {
  position: absolute;
  inset: -6% -4%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.9), rgba(255,255,255,0) 72%);
  z-index: 0;
  pointer-events: none;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
}

.hero-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft);
  animation: floatUpDown 4.5s ease-in-out infinite;
}

.hero-float-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(43,45,66,0.08);
  color: var(--accent);
}
.hero-float-icon svg { width: 17px; height: 17px; }

.hero-float div { display: flex; flex-direction: column; }
.hero-float b { font-family: var(--font-display); font-size: 15px; color: var(--navy-900); line-height: 1.3; }
.hero-float span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); white-space: nowrap; }

.hero-float-orders { top: 6%; right: 2%; animation-delay: 0s; }
.hero-float-status { bottom: 10%; left: 0%; animation-delay: -2.2s; }
.hero-float-status .hero-float-icon { background: rgba(43,45,66,0.08); color: var(--accent); }

/* --- Gentle up/down float animation shared by hero cards --- */
@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* --- Extra colourful mini stat cards around the hero photo --- */
.hero-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border-radius: 12px;
  padding: 9px 13px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft);
  animation: floatUpDown 5s ease-in-out infinite;
}

.hero-chip-icon {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.hero-chip-icon svg { width: 16px; height: 16px; }

.hero-chip div { display: flex; flex-direction: column; }
.hero-chip b { font-family: var(--font-display); font-size: 13px; color: var(--navy-900); line-height: 1.25; white-space: nowrap; }
.hero-chip span { font-family: var(--font-mono); font-size: 10px; color: var(--ink-soft); white-space: nowrap; }

.hero-chip-packed { top: 42%; left: -6%; animation-delay: -1s; }
.hero-chip-packed .hero-chip-icon { background: rgba(255,159,28,0.14); color: #d97f06; }

.hero-chip-delivered { top: -4%; left: 24%; animation-delay: -3.4s; }
.hero-chip-delivered .hero-chip-icon { background: rgba(34,197,150,0.14); color: #1a9c73; }

.hero-chip-neworders { bottom: -4%; right: 18%; animation-delay: -0.6s; }
.hero-chip-neworders .hero-chip-icon { background: rgba(99,102,241,0.14); color: #5457e5; }

@media (prefers-reduced-motion: reduce) {
  .hero-float, .hero-chip { animation: none; }
}

/* ============================================================
   Trust bar
   ============================================================ */
.trust-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  padding: 30px 0;
}

.trust-bar .wrap-narrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 40px;
}

.trust-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
  white-space: nowrap;
}

.trust-marks { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.trust-mark {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--navy-800);
  opacity: 0.85;
}
.trust-mark svg { width: 17px; height: 17px; color: var(--navy-700); }

/* ============================================================
   Section shared
   ============================================================ */
.section { padding: 96px 0; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.015em;
  color: var(--navy-900);
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.15;
}
.section-head p { font-size: 16.5px; color: var(--ink-soft); line-height: 1.6; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============================================================
   Product grid (featured apps)
   ============================================================ */
.suite-panel {
  background: var(--navy-950);
  border-radius: var(--radius-lg);
  padding: 4px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.suite-feature {
  border-radius: calc(var(--radius-lg) - 4px);
  background: var(--navy-900);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  position: relative;
}

.suite-feature .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.suite-feature h3 {
  font-family: var(--font-display);
  font-size: 26px;
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
}
.suite-feature p { color: rgba(255,255,255,0.6); font-size: 14.5px; line-height: 1.55; max-width: 320px; }

.suite-list { padding: 28px; display: flex; flex-direction: column; }
.suite-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  transition: background 0.15s ease;
}
.suite-item:hover { background: rgba(255,255,255,0.04); }
.suite-item + .suite-item { border-top: 1px solid rgba(255,255,255,0.07); }

.suite-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(141,153,174,0.22);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.suite-icon svg { width: 20px; height: 20px; }

.suite-item h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.suite-item p { color: rgba(255,255,255,0.5); font-size: 13.5px; line-height: 1.5; }

.suite-more { text-align: center; margin-top: 28px; }
.suite-more .fc-link { font-family: var(--font-body); font-weight: 600; font-size: 14.5px; color: var(--accent); }
.suite-more .fc-link:hover { color: var(--teal-500); }

/* ============================================================
   Feature grid (why trusted)
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 34px 28px;
  transition: background 0.2s ease;
}
.feature-card:hover { background: var(--paper-dim); }

.feature-icon {
  width: 46px; height: 46px;
  border-radius: 8px;
  background: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 20px;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 { font-size: 17px; font-weight: 600; color: var(--navy-900); margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* ============================================================
   Stats band
   ============================================================ */
.stats-band {
  background: var(--navy-950);
  color: #fff;
  padding: 88px 0;
  text-align: center;
  position: relative;
}

.stats-band .inner { position: relative; }

.stats-band h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.stats-band .lead { color: rgba(255,255,255,0.55); font-size: 16px; margin-bottom: 52px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 880px;
  margin: 0 auto 48px;
}

.stat-item { padding: 0 12px; border-left: 1px solid rgba(255,255,255,0.12); }
.stat-item:first-child { border-left: none; }

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 6px; }

/* ============================================================
   Testimonial
   ============================================================ */
.testimonial-section .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.quote-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.quote-mark svg { width: 20px; height: 20px; }

.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.5;
  color: var(--navy-900);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.testimonial-person { display: flex; align-items: center; gap: 12px; }
.person-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 15px;
}
.person-name { font-weight: 600; font-size: 14.5px; color: var(--navy-900); }
.person-role { font-size: 13px; color: var(--ink-soft); }

.testimonial-aside .eyebrow { margin-bottom: 18px; }
.testimonial-aside h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  color: var(--navy-900);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.015em;
}
.testimonial-aside p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; margin-bottom: 24px; }

.mini-metric-row { display: flex; gap: 32px; }
.mini-metric b { display: block; font-family: var(--font-mono); font-size: 22px; color: var(--navy-900); }
.mini-metric span { font-size: 12.5px; color: var(--ink-soft); }

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta {
  background: var(--paper-dim);
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta-panel {
  background: var(--navy-950);
  border-radius: var(--radius-md);
  padding: 72px 40px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.cta-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.cta-panel p { color: rgba(255,255,255,0.6); font-size: 16.5px; margin-bottom: 36px; }

.cta-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }

.cta-fineprint { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.4); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-900);
  border-top: 1px solid var(--navy-800);
  padding: 72px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, 0.7fr);
  gap: 32px;
  padding-bottom: 56px;
}

.footer-logo-lockup { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-lockup img { display: block; }
.footer-logo-lockup .footer-brand-icon { height: 28px; width: 28px; }
.footer-logo-lockup .footer-brand-wordmark { height: 24px; }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,0.72); line-height: 1.6; max-width: 260px; margin-bottom: 10px; }
.footer-credit { font-size: 12px !important; opacity: 0.8; margin-bottom: 22px !important; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.78);
  transition: all 0.15s ease;
}
.footer-social a:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.footer-social svg { width: 15px; height: 15px; }

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.82); }
.footer-col a:hover { color: var(--teal-500); }

.footer-bottom {
  border-top: 1px solid var(--navy-800);
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-legal a:hover { color: #fff; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Mobile nav toggle
   ============================================================ */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--navy-900); }
.nav-toggle svg { width: 24px; height: 24px; }

/* ============================================================
   Page hero — inner pages (API, Guides, Pricing, About, Contact,
   Features, legal). Same visual family as the home .hero band,
   sized down for a single-line title instead of the two-column
   product-photo layout.
   ============================================================ */
.page-hero {
  position: relative;
  background: var(--hero-bg);
  padding: 72px 0 56px;
  text-align: center;
}
.page-hero-legal { padding: 56px 0 40px; }

.page-hero-inner { max-width: 720px; margin: 0 auto; }
.page-hero-inner .eyebrow { justify-content: center; margin-bottom: 20px; }
.page-hero-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  font-weight: 600;
  margin-bottom: 16px;
}
.page-hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto;
}

.feature-jumplist {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.feature-jumplist a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy-800);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  transition: all 0.15s ease;
}
.feature-jumplist a:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* ============================================================
   Feature block — alternating copy/visual sections (features.html)
   ============================================================ */
.feature-block { padding: 88px 0; }
.feature-block.section-tinted { background: var(--paper-dim); }
.feature-block-inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-block-rev .feature-block-inner { direction: rtl; }
.feature-block-rev .feature-block-inner > * { direction: ltr; }

.feature-block-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  color: var(--navy-900);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 12px 0 16px;
}
.feature-block-copy > p { font-size: 16px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 22px; }

.feature-block-visual { position: relative; }
.feature-block-visual .cmp-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft);
}

.courier-logo-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.courier-logo-row img { height: 28px; width: auto; opacity: 0.75; }

.mock-devices {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  justify-content: center;
  padding: 30px;
}
.mock-device {
  background: var(--navy-950);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.mock-device-desktop { width: 320px; height: 200px; }
.mock-device-mobile { width: 90px; height: 180px; border-radius: 14px; }

/* ============================================================
   Coming soon card (API / Guides)
   ============================================================ */
.coming-soon-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 56px 40px;
  text-align: center;
}
.coming-soon-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  background: rgba(141,153,174,0.22);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
}
.coming-soon-card h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--navy-900);
  font-weight: 600;
  margin-bottom: 14px;
}
.coming-soon-card p {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 460px;
  margin: 0 auto 32px;
}
.coming-soon-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.narrow-col { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--navy-900); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43,45,66,0.10);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-note {
  font-size: 13.5px;
  color: var(--navy-800);
  background: rgba(43,45,66,0.06);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 22px;
}
.contact-card h3 { font-family: var(--font-display); font-size: 15.5px; font-weight: 600; color: var(--navy-900); margin-bottom: 6px; }
.contact-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 8px; }
.contact-card a { font-size: 13.5px; font-weight: 600; color: var(--accent); }
.contact-card a:hover { color: var(--teal-500); }
.contact-card-muted { background: var(--paper-dim); border-color: transparent; }

/* ============================================================
   Pricing page
   ============================================================ */
.billing-toggle {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 4px;
  background: var(--paper-dim);
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto 48px;
}
.bt-option {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}
.bt-option.active { background: var(--surface); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.bt-save {
  font-size: 11px;
  font-weight: 700;
  color: var(--mint-500);
  background: rgba(217,4,41,0.12);
  border-radius: 999px;
  padding: 2px 8px;
}

.pricing-grid {
  max-width: var(--container-narrow);
  margin: 0 auto 32px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.price-card-featured {
  border-color: var(--teal-500);
  box-shadow: var(--shadow-lg);
}
.price-badge {
  position: absolute;
  top: -13px; left: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, var(--teal-400) 0%, var(--teal-500) 100%);
  border-radius: 999px;
  padding: 5px 14px;
}
.price-card-head h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--navy-900); margin: 8px 0 6px; }
.price-card-head p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.price-amount { display: flex; align-items: baseline; gap: 4px; }
.price-currency { font-size: 16px; font-weight: 600; color: var(--navy-800); }
.price-figure { font-family: var(--font-mono); font-size: 36px; font-weight: 600; color: var(--navy-900); letter-spacing: -0.02em; }
.price-period { font-size: 13.5px; color: var(--ink-soft); }
.price-features { display: flex; flex-direction: column; gap: 11px; list-style: none; }
.price-features li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--navy-800);
}
.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}
.price-disclaimer { font-size: 12.5px; color: var(--ink-soft); text-align: center; max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}
.faq-item summary {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-top: 14px; }

/* ============================================================
   About page — value grid & belief grid
   ============================================================ */
.value-grid {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value-track {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 14px;
}
.value-item h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--navy-900); margin-bottom: 10px; line-height: 1.3; }
.value-item p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

.belief-grid {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.belief-item {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 26px;
}
.belief-item h3 { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; color: var(--navy-900); margin-bottom: 8px; }
.belief-item p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

.lead-para { font-size: 18px; line-height: 1.65; color: var(--navy-800); margin-bottom: 18px; }

/* ============================================================
   Legal pages
   ============================================================ */
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy-900);
  margin: 36px 0 12px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  font-size: 15px;
  color: var(--navy-800);
  line-height: 1.7;
  margin-bottom: 4px;
}
.legal-content a { color: var(--accent); font-weight: 600; }
.legal-content a:hover { color: var(--teal-500); }

/* Generic section-tinted background used by inner pages */
.section-tinted { background: var(--paper-dim); }
.section-tight { padding: 64px 0; }
.section-sub { font-size: 16.5px; color: var(--ink-soft); line-height: 1.6; margin-top: 8px; }

/* Extra button variants used on inner pages */
.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.btn-block { width: 100%; justify-content: center; }
.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--navy-700); background: var(--paper-dim); }

/* Feature list used inside feature-block-copy on features.html */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 22px 0; }
.feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--navy-800);
  line-height: 1.55;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--paper-dim);
  border: 1.5px solid var(--accent);
}

/* "Learn More ›" link under a feature-block's feature-list */
.feature-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--accent);
  text-decoration: none;
  margin-top: 4px;
  transition: gap 0.15s ease, color 0.15s ease;
}
.feature-learn-more .arrow { font-size: 16px; transition: transform 0.15s ease; }
.feature-learn-more:hover { gap: 10px; color: var(--teal-500); }
.feature-learn-more:hover .arrow { transform: translateX(2px); }

/* ============================================================
   Extended feature catalog (category sections + compact cards)
   ============================================================ */
.catalog-intro {
  padding: 72px 0 8px;
  text-align: center;
}
.catalog-intro h2 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; color: var(--navy-900); margin-bottom: 14px; }
.catalog-intro p { font-size: 16px; color: var(--ink-soft); max-width: 620px; margin: 0 auto; line-height: 1.6; }

.category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 32px 0 8px;
}
.category-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--navy-800);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.category-nav a:hover { border-color: var(--accent); background: var(--paper-dim); color: var(--navy-900); }

.feature-category { padding: 56px 0; }
.feature-category.section-tinted { background: var(--paper-dim); }

.category-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.category-head h3 { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; color: var(--navy-900); margin-bottom: 10px; }
.category-head p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .catalog-grid { grid-template-columns: 1fr; } }

.catalog-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.catalog-card:hover { border-color: var(--line); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.catalog-card h4 { font-family: var(--font-body); font-size: 16px; font-weight: 700; color: var(--navy-900); line-height: 1.35; }
.catalog-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; flex-grow: 1; }

.catalog-card-foot { display: flex; align-items: center; margin-top: 4px; }

.tag-soon {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(141,153,174,0.22);
  border-radius: 999px;
  padding: 5px 12px;
}

/* CTA band used on about/pricing/features pages — condensed final-cta variant */
.cta-band { background: var(--navy-950); padding: 56px 0; }
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band-inner h2 { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); color: #fff; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.cta-band-inner p { color: rgba(255,255,255,0.6); font-size: 15px; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Pricing monthly/yearly toggle helper — hidden state controlled by script.js */
.price-monthly, .price-yearly { }
[hidden] { display: none !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 760px) {
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band-actions { justify-content: center; }
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy p { max-width: none; }
  .suite-panel { grid-template-columns: 1fr; }
  .suite-feature { min-height: 220px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .stat-item:nth-child(3) { border-left: none; }
  .testimonial-section .wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-main, .header-actions .link-signin { display: none; }
  .nav-toggle { display: flex; }
  .site-header .wrap-wide { height: 68px; }
  .hero { padding-top: 60px; }
  .section { padding: 64px 0; }
  .trust-bar .wrap-narrow { justify-content: flex-start; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-panel { padding: 56px 24px; }
  .wrap, .wrap-wide, .wrap-narrow { padding: 0 20px; }
  .hero-photo { max-width: 320px; }
  .hero-float { padding: 9px 12px; gap: 9px; }
  .hero-float-icon { width: 28px; height: 28px; }
  .hero-float b { font-size: 13px; }
  .hero-float span { font-size: 10px; }
  .hero-float-orders { top: 2%; right: -2%; }
  .hero-float-status { bottom: 4%; left: -4%; }
  .hero-chip { display: none; }

  /* Mobile nav dropdown, toggled via body.nav-open */
  .mobile-nav-panel {
    display: block;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--shadow-md);
    padding: 12px 20px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 99;
  }
  body.nav-open .mobile-nav-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .mobile-nav-panel ul { list-style: none; display: flex; flex-direction: column; }
  .mobile-nav-panel a {
    display: block;
    padding: 14px 4px;
    font-size: 16px;
    font-weight: 500;
    color: var(--navy-900);
    border-bottom: 1px solid var(--line-soft);
  }
  .mobile-nav-panel .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
  }
  .mobile-nav-panel .btn { width: 100%; justify-content: center; }
}

@media (min-width: 761px) {
  .mobile-nav-panel { display: none; }
}

/* ============================================================
   EXTENDED UI: API DOCS, GUIDES, COMPARISON TABLE & CONTACT
   ============================================================ */

/* Code Blocks & Developer Documentation */
.api-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 960px) {
  .api-layout { grid-template-columns: 1fr; }
}

.api-sidebar {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.api-sidebar h4 {
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.api-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.api-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--navy-800);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}
.api-nav-list a:hover, .api-nav-list a.active {
  background: var(--paper-dim);
  color: var(--accent);
}

.api-section {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.api-section h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 12px;
}
.api-section p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.api-endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper-dim);
  border: 1px solid var(--line-soft);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin: 18px 0;
  font-family: var(--font-mono);
  font-size: 14px;
  word-break: break-all;
}

.badge-method {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.badge-get { background: #e0f2fe; color: #0369a1; }
.badge-post { background: #dcfce7; color: #15803d; }
.badge-put { background: #fef3c7; color: #b45309; }
.badge-delete { background: #fee2e2; color: #b91c1c; }

.code-box {
  background: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 18px 0 24px;
  border: 1px solid #1e293b;
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 12px;
}
.code-header .code-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.code-copy-btn {
  background: transparent;
  border: 1px solid #475569;
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s ease;
}
.code-copy-btn:hover {
  background: #334155;
  color: #fff;
}
.code-pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  color: #e2e8f0;
}
.code-pre code {
  font-family: inherit;
}

/* Param Table */
.param-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0 24px;
}
.param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
.param-table th {
  background: var(--paper-dim);
  padding: 12px 16px;
  color: var(--navy-800);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.param-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  vertical-align: top;
}
.param-name {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
}
.param-type {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}
.param-req {
  display: inline-block;
  background: #fef2f2;
  color: #dc2626;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
}

/* Guides Page Styles */
.guide-search-box {
  max-width: 600px;
  margin: 28px auto 0;
  position: relative;
}
.guide-search-input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: all 0.2s ease;
}
.guide-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,118,110,0.15);
}
.guide-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  width: 18px;
  height: 18px;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
@media (max-width: 980px) {
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .guides-grid { grid-template-columns: 1fr; }
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}
.guide-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.guide-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.guide-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(15,118,110,0.1);
  padding: 4px 10px;
  border-radius: 999px;
}
.guide-read-time {
  font-size: 12px;
  color: var(--ink-muted);
}
.guide-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.4;
  margin-bottom: 10px;
}
.guide-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 18px;
}
.guide-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}
.guide-card-foot svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.guide-card:hover .guide-card-foot svg {
  transform: translateX(4px);
}

/* Feature Comparison Table */
.comparison-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 40px 0 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
.comparison-table th {
  background: var(--paper-dim);
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
  border-bottom: 2px solid var(--line);
}
.comparison-table th.col-featured {
  background: #f0fdf4;
  color: #166534;
  border-top: 3px solid var(--accent);
}
.comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.comparison-table tr:hover td {
  background: rgba(15,118,110,0.02);
}
.comparison-category-row td {
  background: var(--paper-dim);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-800);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 20px;
}
.check-yes {
  color: #16a34a;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.check-no {
  color: #94a3b8;
}

/* Contact Info Aside Cards */
.contact-aside-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-card-rich {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.2s ease;
}
.contact-card-rich:hover {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.contact-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(15,118,110,0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card-rich h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
}
.contact-card-rich p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 8px;
}
.contact-card-rich a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}
.contact-card-rich a:hover {
  text-decoration: underline;
}

/* Story Milestones for About */
.milestones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 900px) {
  .milestones-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .milestones-grid { grid-template-columns: 1fr; }
}
.milestone-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}
.milestone-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}
.milestone-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 4px;
}
.milestone-desc {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* ============================================================
   FLOATING EMERGENCY / LIVE WHATSAPP CONTACT WIDGET
   ============================================================ */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 999999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 10px 18px 10px 12px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(18, 140, 126, 0.38), 0 3px 8px rgba(0, 0, 0, 0.18);
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif);
  font-weight: 600;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  user-select: none;
}

.floating-whatsapp-widget:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 32px rgba(18, 140, 126, 0.48), 0 5px 12px rgba(0, 0, 0, 0.22);
  background: linear-gradient(135deg, #2fe671 0%, #0f7a6e 100%);
  color: #ffffff !important;
}

.floating-whatsapp-widget:active {
  transform: translateY(-1px) scale(0.99);
}

.fwa-icon-container {
  position: relative;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fwa-icon-container svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.fwa-online-beacon {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: #38ef7d;
  border: 2px solid #128C7E;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(56, 239, 125, 0.8);
}

.fwa-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.fwa-subtext {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
  color: #e6fffa;
}

.fwa-maintext {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* Radar pulse animation */
.fwa-pulse-ring {
  position: absolute;
  left: -4px;
  top: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 60px;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: fwaPulse 2.4s infinite cubic-bezier(0.25, 0, 0, 1);
  pointer-events: none;
}

@keyframes fwaPulse {
  0% { transform: scale(0.96); opacity: 0.9; }
  60% { transform: scale(1.08, 1.16); opacity: 0; }
  100% { transform: scale(1.08, 1.16); opacity: 0; }
}

/* Mobile responsive */
@media (max-width: 600px) {
  .floating-whatsapp-widget {
    bottom: 20px;
    right: 20px;
    padding: 8px 14px 8px 10px;
  }
  .fwa-subtext { display: none; }
  .fwa-maintext { font-size: 13px; }
  .fwa-icon-container { width: 34px; height: 34px; }
  .fwa-icon-container svg { width: 20px; height: 20px; }
}
