/* ==========================================================================
   FLOW WEBSITE — DESIGN SYSTEM
   APEX Studio · Subhodeep Rajak
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

@view-transition { navigation: auto; }

/* ─── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  --bg-hsl:      210, 20%, 98%;
  --fg-hsl:      220, 15%, 13%;
  --card-hsl:    0, 0%, 100%;
  --primary-hsl: 220, 75%, 48%;
  --accent-hsl:  184, 74%, 35%;
  --border-hsl:  220, 12%, 90%;
  --muted-hsl:   220, 8%, 46%;

  --bg:      hsl(var(--bg-hsl));
  --fg:      hsl(var(--fg-hsl));
  --card:    hsl(var(--card-hsl));
  --primary: hsl(var(--primary-hsl));
  --accent:  hsl(var(--accent-hsl));
  --border:  hsl(var(--border-hsl));
  --muted:   hsl(var(--muted-hsl));

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(24,32,51,.06);
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --t:         0.22s;

  --w-content: 1040px;
  --w-prose:   68ch;

  /* Spacing Scale */
  --space-xs:  0.25rem; /* 4px */
  --space-sm:  0.5rem;  /* 8px */
  --space-md:  1rem;    /* 16px */
  --space-lg:  1.5rem;  /* 24px */
  --space-xl:  2rem;    /* 32px */
  --space-2xl: 3rem;    /* 48px */

  /* Shared Typography scale matching Home page */
  --text-eyebrow: 0.65rem;
  --text-h1: clamp(1.35rem, 2.8vw, 1.95rem);
  --text-h2: clamp(1.05rem, 2.2vw, 1.4rem);
  --text-h3: clamp(0.85rem, 1.6vw, 0.95rem);
  --text-body: clamp(13px, 1vw, 14.5px);
  --text-small: clamp(11.5px, 0.85vw, 13px);
  
  --text-page-title: var(--text-h1);
  --text-section-title: var(--text-h2);
  
  --lh-body: 1.5;
  --lh-title: 1.2;
  --lh-heading: 1.25;
  
  --mb-p: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-hsl:      220, 16%, 8%;
    --fg-hsl:      220, 10%, 90%;
    --card-hsl:    220, 12%, 11%;
    --primary-hsl: 220, 75%, 60%;
    --accent-hsl:  184, 70%, 48%;
    --border-hsl:  220, 12%, 18%;
    --muted-hsl:   220, 6%, 58%;
    --shadow-sm:   0 1px 2px rgba(0,0,0,.2);
    --shadow-md:   0 4px 20px rgba(0,0,0,.3);
  }
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: var(--text-body);
  overflow-x: hidden;
  padding-top: 60px;
  overscroll-behavior-y: none;
}

/* ─── Mobile Interaction Resets ──────────────────────────────────────────── */
/* Remove tap highlight color and callouts on touch elements, icons, and cards */
a,
button,
.logo,
.brand,
.site-brand,
.nav-link,
.nav-toggle,
.mobile-menu-toggle,
.hero-app-icon,
.hero-actions,
.btn,
.button,
.card,
.feat-card,
.doc-card,
.doc-grid-card,
.install-step,
.faq-trigger,
.faq-item,
.summary-card,
.support-card,
.tour-card,
img,
svg,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* Prevent accidental text selection on active interactive components */
a,
button,
.logo,
.brand,
.site-brand,
.nav-link,
.nav-toggle,
.mobile-menu-toggle,
.hero-app-icon,
.hero-actions,
.btn,
.button,
.card,
.feat-card,
.install-step,
.faq-trigger,
.faq-item,
.summary-card,
.support-card,
.tour-card,
[role="button"] {
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* Prevent dragging ghost image on decorative or UI images/icons */
img,
svg {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

/* Restore selectability for legal, support, document, and FAQ contents */
.legal-container,
.legal-page,
.legal-content,
.legal-document,
.legal-section,
.policy-content,
.terms-content,
.support-page,
.support-section,
.faq-panel,
.faq-panel p,
.faq-item p,
.legal-document p,
.legal-document li,
.legal-note p,
.install-step p,
.doc-card p,
.doc-card li,
.data-table,
.legal-table {
  user-select: text;
  -webkit-user-select: text;
}

/* Polished focus outline styling for keyboard users */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
a:focus-visible, button:focus-visible, .faq-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main { flex: 1; }

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { color: var(--fg); font-weight: 700; line-height: 1.2; }

h1 {
  font-size: var(--text-h1);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-h2);
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin-bottom: 1rem; line-height: 1.6; }

a { color: var(--primary); text-decoration: none; transition: color var(--t) var(--ease); }
a:hover { color: var(--accent); }

.eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* ─── Section ────────────────────────────────────────────────────────────── */
.section {
  padding: clamp(2rem, 4.5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--border);
}

.section.subtle { background: hsla(var(--muted-hsl), 0.025); }

.section-heading {
  margin-bottom: 2rem;
  max-width: var(--w-prose);
}

.section-heading h2 { margin-bottom: 0.35rem; }
.section-heading p  { color: var(--muted); font-size: 0.82rem; margin-bottom: 0; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transform: translateZ(0);
  isolation: isolate;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--fg);
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
  position: relative;
  padding: 0.2rem 0;
  transition: color var(--t) var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--fg); }

.site-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 34px; height: 34px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: background var(--t) var(--ease);
}

.nav-toggle:hover { background: hsla(var(--muted-hsl), 0.05); }

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 16px; height: 2px;
  background: var(--fg);
  border-radius: 1px;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}

.nav-toggle.active span:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(3) { opacity: 0; }
.nav-toggle.active span:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 44px;
  padding: 0 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1),
              color 180ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
}

.button .icon {
  width: 15px; height: 15px;
  flex-shrink: 0;
}

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px hsla(var(--primary-hsl), 0.2);
}
.button.primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px hsla(var(--accent-hsl), 0.26);
  color: #fff;
}

.button.secondary {
  background: var(--card);
  color: var(--fg);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.button.secondary:hover {
  background: hsla(var(--border-hsl), 0.5);
  border-color: hsla(var(--muted-hsl), 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: var(--fg);
}.button.disabled {
  background: var(--bg);
  color: var(--muted);
  border-color: var(--border);
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-align: left;
}

.btn-main-text {
  font-size: 0.74rem;
  font-weight: 600;
}

.button.disabled .btn-subtext {
  display: block;
  font-size: 0.55rem;
  font-weight: 500;
  opacity: 0.8;
}
.button:not(.disabled):active { transform: scale(0.97); }

/* Full-width helper */
.btn-full { width: 100%; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: clamp(2.25rem, 5vw, 3.75rem) 0 2.25rem;
  background: radial-gradient(ellipse at top, hsla(var(--primary-hsl), 0.03) 0%, transparent 60%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Brand row: icon + eyebrow + headline side by side */
.hero-brand-row {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1rem;
  width: 100%;
}

.hero-app-icon {
  width: 80px; height: 80px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  transition: transform 0.4s var(--ease);
}
.hero-app-icon:hover { transform: scale(1.06) rotate(2deg); }

.hero-title-block { display: flex; flex-direction: column; }
.hero-title-block h1 { margin: 0; line-height: 1.12; }

/* Hero Title Wrap Rules */
.hero-title span {
  display: block;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.25rem, 5vw, 1.45rem) !important;
  }
}
.hero-title-block .eyebrow { margin-bottom: 0.2rem; }

.lead {
  font-size: clamp(13px, 1vw, 14.5px);
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 480px;
}

/* CTA cluster */
.cta-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.4rem 0 0.85rem;
  width: 100%;
  max-width: 420px;
}

.cta-row-secondary {
  display: flex;
  gap: 0.55rem;
}

.cta-row-secondary .button { flex: 1; }

.trust-note {
  font-size: 0.65rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Phone preview */
.hero-media {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.phone-frame {
  width: 100%;
  max-width: 230px;
  border: 5px solid var(--fg);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
}

.phone-frame img { width: 100%; display: block; }

/* Hero entrance stagger */
.hero-brand-row { animation: fadeUp 240ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.lead           { animation: fadeUp 260ms 40ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.cta-container  { animation: fadeUp 280ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.trust-note     { animation: fadeUp 280ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-media     { animation: fadeUp 300ms 60ms cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Screenshot Grid ────────────────────────────────────────────────────── */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.screenshot-grid figure {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.45rem;
  text-align: center;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.screenshot-grid figure:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.screenshot-grid img {
  width: 100%;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.screenshot-grid figcaption {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ─── Feature Cards Grid (simple — no panel, no drawers) ─────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}

.feat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: hsla(var(--primary-hsl), 0.22);
}

.feat-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: hsla(var(--primary-hsl), 0.07);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feat-icon svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.feat-card h3 {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--fg);
  margin: 0;
}

.feat-card p {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ─── Document Pages ─────────────────────────────────────────────────────── */
.doc-header {
  background: hsla(var(--muted-hsl), 0.02);
  border-bottom: 1px solid var(--border);
  padding: clamp(1.75rem, 3.5vw, 2.25rem) 0;
  text-align: center;
}

.doc-header .eyebrow {
  margin-bottom: 0.5rem;
}

.doc-header h1 {
  font-size: var(--text-page-title);
  font-weight: 800;
  margin-bottom: 0.4rem;
  line-height: var(--lh-title);
  color: var(--fg);
}

.doc-header p {
  font-size: var(--text-body);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: var(--lh-body);
}

.doc-container {
  max-width: var(--w-prose);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.doc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.doc-card h2 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.55rem;
  color: var(--fg);
}

.doc-card h2 svg {
  width: 14px; height: 14px;
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
}

.doc-card p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.doc-card p:last-child { margin-bottom: 0; }

.doc-card ul, .doc-card ol {
  padding-left: 1.15rem;
  margin-bottom: 0.75rem;
}

.doc-card li {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  line-height: 1.55;
}
.doc-card li:last-child { margin-bottom: 0; }

.doc-card strong { color: var(--fg); }

/* Disclaimer grid (Terms page) */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 0.25rem;
}

.doc-grid-card {
  background: hsla(var(--muted-hsl), 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.doc-grid-card h4 {
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--fg);
}

.doc-grid-card h4 svg {
  width: 12px; height: 12px;
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
}

.doc-grid-card p {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

/* Callout box */
.doc-card .callout {
  background: hsla(var(--muted-hsl), 0.02);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.9rem 1rem;
  margin: 0.85rem 0;
}

.doc-card .callout h4 {
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--fg);
}

.doc-card .callout h4 svg {
  width: 12px; height: 12px;
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
}

.doc-card .callout p {
  font-size: 0.74rem;
  margin: 0;
}

.doc-card .callout.alert { border-left-color: var(--primary); }
.doc-card .callout.alert h4 svg { stroke: var(--primary); }

/* Scrollable data table */
.data-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 0.85rem 0;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.73rem;
  background: var(--card);
  min-width: 480px;
}

.data-table th, .data-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.data-table th {
  background: hsla(var(--muted-hsl), 0.02);
  font-weight: 700;
  color: var(--fg);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table td { color: var(--muted); }

/* ─── Help & Support specific ────────────────────────────────────────────── */
/* Single email support card */
.support-primary-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.support-icon-inline {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: hsla(var(--primary-hsl), 0.07);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-icon-inline svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.support-primary-body { flex: 1; }
.support-primary-body h2 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  border: none;
  padding: 0;
  color: var(--fg);
}
.support-primary-body p {
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* Compact resource links list */
.resource-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
}

.resource-links li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  color: var(--muted);
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: color var(--t) var(--ease), background var(--t) var(--ease), border-color var(--t) var(--ease);
}

.resource-links li a:hover {
  color: var(--primary);
  background: hsla(var(--primary-hsl), 0.04);
  border-color: hsla(var(--primary-hsl), 0.15);
}

.resource-links li a svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
  stroke-width: 2;
}

.resource-links li a:hover svg { fill: currentColor; stroke: none; }

/* ─── FAQ Accordion ──────────────────────────────────────────────────────── */
.faq-accordion { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.85rem; }

.faq-item {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 22px;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  gap: 0.75rem;
  transition: background var(--t) var(--ease);
  font-family: inherit;
}
.faq-trigger:hover { background: hsla(var(--muted-hsl), 0.02); }

.faq-trigger svg {
  width: 11px; height: 11px;
  stroke: var(--muted);
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
  transition: transform var(--t) var(--ease), stroke var(--t) var(--ease);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  transition: max-height 0.26s var(--ease), padding 0.26s var(--ease);
}

.faq-panel p, .faq-panel a {
  font-size: var(--text-small);
  line-height: var(--lh-body);
}
.faq-panel .button { margin-top: 0.6rem; }

.faq-item.active .faq-trigger svg {
  transform: rotate(180deg);
  stroke: var(--accent);
}

.faq-item.active .faq-panel {
  max-height: 500px;
  padding: 12px 22px 18px 22px;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .faq-trigger {
    padding: 15px 16px;
  }
  .faq-panel {
    padding: 0 16px;
  }
  .faq-item.active .faq-panel {
    padding: 10px 16px 15px 16px;
  }
}

/* ─── Page Transitions ───────────────────────────────────────────────────── */
main {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.js-loading main {
  opacity: 0;
  transform: translateY(6px);
  transition: none;
}

main.page-exiting {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 2.25rem 0 0;
  font-size: 0.73rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  padding-bottom: 2.25rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.footer-brand .brand img {
  width: 24px; height: 24px;
  border-radius: 5px;
}

.footer-desc {
  max-width: 300px;
  line-height: 1.5;
  margin: 0;
  font-size: 0.73rem;
}

.footer-founder {
  font-size: 0.67rem;
  opacity: 0.75;
  margin: 0;
}

.footer-nav-col { display: flex; flex-direction: column; }

.footer-title {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--fg);
  margin-bottom: 0.7rem;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer nav a {
  color: var(--muted);
  font-size: 0.73rem;
  transition: color var(--t) var(--ease);
}

.site-footer nav a:hover { color: var(--fg); }

.footer-bottom {
  border-top: 1px solid var(--border);
  background: hsla(var(--muted-hsl), 0.02);
  padding: 0.9rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.65rem;
}

.footer-subtle { opacity: 0.65; }

/* ─── Animations ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
  }
  .phone-frame { animation: none; }
  .hero-brand-row, .lead, .cta-container, .trust-note, .hero-media { opacity: 1; }
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

/* Tablet: ≤ 900px */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet: ≤ 768px */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 0 1.25rem;
    gap: 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    box-shadow: var(--shadow-md);
    transition: max-height 0.28s var(--ease), opacity 0.22s var(--ease),
                padding 0.28s var(--ease), visibility 0s 0.28s;
  }

  .site-nav.open {
    max-height: 280px;
    opacity: 1;
    visibility: visible;
    padding: 1.25rem;
    transition: max-height 0.28s var(--ease), opacity 0.22s var(--ease),
                padding 0.28s var(--ease), visibility 0s 0s;
  }

  /* Active underline not appropriate in stacked menu */
  .site-nav a[aria-current="page"]::after { display: none; }

  /* Hero stacks */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-copy { align-items: center; text-align: center; }

  .hero-brand-row {
    flex-direction: column;
    gap: 0.85rem;
    align-items: center;
  }

  .hero-app-icon { width: 96px; height: 96px; border-radius: 18px; }

  .lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 420px;
    font-size: 13px;
    line-height: 1.55;
  }

  .hero-title-block { align-items: center; }

  .cta-container { max-width: 380px; align-self: center; }

  .hero-media { justify-content: center; }
  .phone-frame { max-width: 200px; animation: none; }

  /* Screenshot: 2 columns */
  .screenshot-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer: 2 col */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }

  /* Doc grid: 1 col */
  .doc-grid { grid-template-columns: 1fr; }
  .doc-container { padding: 1.5rem 1rem; }

  /* Support primary card: stack */
  .support-primary-card { flex-direction: column; gap: 0.75rem; }
}

/* Large mobile: ≤ 600px */
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* Narrow mobile: ≤ 480px */
@media (max-width: 480px) {
  .cta-row-secondary { flex-direction: column; gap: 0.45rem; }
  .cta-row-secondary .button { flex: none; width: 100%; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 0.35rem; }
}

/* Ultra-narrow: ≤ 360px */
@media (max-width: 360px) {
  body { font-size: 12.5px; }

  .hero-app-icon { width: 80px; height: 80px; border-radius: 16px; }
}

/* Screenshot swipe carousel for mobile */
@media (max-width: 768px) {
  .screenshot-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0.5rem 1.25rem 1.25rem;
    margin: 0 -1.25rem;
    scroll-padding: 1.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  
  .screenshot-grid::-webkit-scrollbar {
    display: none;
  }
  
  .screenshot-grid figure {
    flex: 0 0 min(72vw, 240px);
    scroll-snap-align: start;
    margin: 0;
    transition: none;
  }
  
  .screenshot-grid figure:hover {
    transform: none;
  }
}

/* ─── Legal Document Layout (Cardless, Simple & Polished) ────────────────── */
.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem clamp(16px, 4vw, 40px);
}

@media (max-width: 768px) {
  .legal-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

.legal-document {
  color: var(--fg);
}

.legal-document h2 {
  font-size: var(--text-section-title);
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.45rem;
  line-height: var(--lh-heading);
}

.legal-document h2:first-of-type {
  margin-top: 0;
}

.legal-document p {
  font-size: var(--text-body);
  color: var(--muted);
  line-height: var(--lh-body);
  margin-bottom: var(--mb-p);
}

.legal-document ul, .legal-document ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-document li {
  font-size: var(--text-body);
  color: var(--muted);
  margin-bottom: 0.35rem;
  line-height: var(--lh-body);
}

.legal-document li:last-child {
  margin-bottom: 0;
}

.legal-document strong {
  color: var(--fg);
  font-weight: 600;
}

/* Callout Note */
.legal-note {
  background: hsla(var(--muted-hsl), 0.02);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  padding: 1.1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.legal-note h3 {
  font-size: var(--text-body);
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--fg);
}

.legal-note p {
  font-size: var(--text-small);
  color: var(--muted);
  line-height: var(--lh-body);
  margin: 0;
}

.legal-note.alert {
  border-left-color: var(--primary);
}

.safety-note {
  font-size: var(--text-small);
  line-height: var(--lh-body);
  margin-top: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0;
}

.safety-note.margin-large {
  margin-top: 1.25rem;
  margin-bottom: 2rem;
}

.support-card {
  margin-bottom: 2.25rem;
}

.support-card p {
  margin-bottom: 0.85rem;
}

.install-intro {
  margin-bottom: 1.25rem;
}

/* Responsive Table */
.legal-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  -webkit-overflow-scrolling: touch;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.73rem;
  background: var(--card);
  min-width: 480px;
}

.legal-table th, .legal-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.legal-table th {
  background: hsla(var(--muted-hsl), 0.02);
  font-weight: 700;
  color: var(--fg);
}

.legal-table tr:last-child td {
  border-bottom: none;
}

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

@media (max-width: 768px) {
  .legal-container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

/* ─── Scroll entrance animations (Home page only) ────────────────────────── */
.js-enabled .animate-scroll {
  opacity: 0;
  transform: translateY(8px);
  will-change: opacity, transform;
}
.js-enabled .animate-scroll.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 300ms cubic-bezier(0.22, 1, 0.36, 1), transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  /* Disable animations and transitions */
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .js-enabled .animate-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ─── Install Step Vertical Timeline ─────────────────────────────────────── */
.install-steps {
  position: relative;
  display: grid;
  gap: 0; /* padding on steps controls the spacing */
  margin: 1.5rem 0;
  padding-left: 0;
}

/* One continuous vertical line on the left */
.install-steps::before {
  content: '';
  position: absolute;
  top: 34px; /* center of first badge (16px paddingTop + 18px radius) */
  bottom: 34px; /* center of last badge (16px paddingBottom + 18px radius) */
  left: 18px; /* center of 36px badge */
  width: 2px;
  background: hsla(var(--primary-hsl), 0.15);
  z-index: 1;
}

.install-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 16px;
  align-items: start;
  padding: 16px 0;
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  border-radius: 0;
  transition: none;
}

.install-step:hover {
  transform: none !important;
  border-color: transparent !important;
  background: none !important;
}

.install-step .step-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--bg);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0;
  box-shadow: 0 0 0 6px var(--bg); /* mask vertical line */
  flex-shrink: 0;
  z-index: 2;
}

.install-step-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.install-step h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--fg);
  line-height: 1.25;
}

.install-step p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 0;
}

/* ─── Mobile Specific Legal & Support Layout Polishing (≤ 640px) ─────────── */
@media (max-width: 640px) {
  .doc-header {
    padding: 1.25rem 0;
  }
  
  .doc-header .eyebrow {
    font-size: var(--text-eyebrow);
    margin-bottom: 0.25rem;
  }

  .doc-header h1 {
    font-size: var(--text-page-title);
    margin-bottom: 0.2rem;
  }

  .doc-header p {
    /* Uses responsive body scale */
  }

  .legal-container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  
  .legal-document h2 {
    line-height: 1.25;
    margin: 1.5rem 0 0.5rem;
    padding-bottom: 0.35rem;
  }
  
  .legal-document p {
    line-height: 1.45;
    margin-bottom: 10px;
  }
  
  .legal-document li {
    line-height: 1.45;
    margin-bottom: 0.25rem;
  }

  .legal-note {
    padding: 0.8rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 6px;
  }

  .legal-note h3 {
    margin-bottom: 0.25rem;
  }

  .legal-note p {
    line-height: 1.45;
  }

  .safety-note {
    line-height: 1.45;
  }
  
  /* Help / Support Accordion mobile adjustments */
  .faq-trigger {
    padding: 12px 14px;
  }
  
  .faq-panel {
    padding: 0 14px;
  }
  
  .faq-panel p, .faq-panel a {
    line-height: 1.45;
  }
  
  .faq-item.active .faq-panel {
    padding: 6px 14px 12px 14px;
  }

  /* Help Page FAQ specific overrides for polished mobile typography & spacing */
  .support-page .faq-trigger {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.38;
    padding: 14px 16px;
  }
  
  .support-page .faq-trigger svg {
    width: 17px;
    height: 17px;
  }
  
  .support-page .faq-panel {
    padding: 0 16px;
  }
  
  .support-page .faq-item.active .faq-panel {
    padding: 8px 16px 14px 16px;
  }

  /* Mobile Step Card Overrides */
  .install-steps {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  
  .install-step {
    padding: 1rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
  }
  
  .step-badge {
    margin-bottom: 0;
    flex-shrink: 0;
    margin-top: 2px;
  }
  
  .install-step div {
    flex: 1;
  }
  
  .install-step h4 {
    margin-bottom: 0.25rem;
  }
  
  .install-step p {
    line-height: 1.45;
  }
}

/* ─── Mobile Specific Legal & Support Layout Polishing (≤ 430px) ─────────── */
@media (max-width: 430px) {
  .doc-header p {
    /* Uses responsive body scale */
  }

  .legal-document h2 {
    line-height: 1.25;
    margin: 1.25rem 0 0.45rem;
  }

  .legal-document p {
    line-height: 1.42;
    margin-bottom: 8px;
  }

  .legal-document li {
    line-height: 1.42;
    margin-bottom: 0.2rem;
  }

  .legal-note {
    padding: 0.75rem 0.85rem;
  }

  .legal-note h3 {
    /* Uses responsive body scale */
  }

  .legal-note p {
    line-height: 1.42;
  }

  .safety-note {
    line-height: 1.42;
  }

  .faq-trigger {
    padding: 10px 12px;
  }

  .faq-panel p, .faq-panel a {
    line-height: 1.42;
  }

  .install-step h4 {
    /* Uses responsive body scale */
  }

  .install-step p {
    line-height: 1.42;
  }
}

/* ─── Visual Tour Section (visual-tour-section) ──────────────────────────── */
.visual-tour-section {
  background: var(--bg);
  border-bottom: none; /* Handled via border-top of the next section */
  padding-bottom: clamp(44px, 5vw, 64px);
}

/* ─── Everyday Flow Section (everyday-flow-section) ──────────────────────── */
.everyday-flow-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: clamp(48px, 5.5vw, 72px);
  padding-bottom: clamp(2rem, 4.5vw, 3.5rem);
}

.everyday-flow-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  margin-bottom: 1.5rem; /* Clean vertical spacer */
  gap: 1.5rem;
}

/* Horizontal line on desktop */
.everyday-flow-timeline::before {
  content: '';
  position: absolute;
  top: 18px; /* center of 36px badge */
  left: 18px;
  right: calc(20% - 1.2rem - 18px);
  height: 2px;
  background: hsla(var(--primary-hsl), 0.15);
  z-index: 1;
}

.everyday-flow-step {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.everyday-flow-step .step-badge {
  width: 36px;
  height: 36px;
  background: var(--bg);
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 0 6px var(--bg); /* mask connector line */
  flex-shrink: 0;
  z-index: 2;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.everyday-flow-step:hover .step-badge {
  transform: translateY(-1px);
  box-shadow: 0 0 0 6px var(--bg), 0 0 12px hsla(var(--primary-hsl), 0.22);
}

.everyday-flow-step h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.everyday-flow-step p {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ─── New Separate CTA Section (home-cta-section) ────────────────────────── */
.home-cta-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border); /* Visually separate background band divider */
  background: hsla(var(--muted-hsl), 0.015);
}

.home-cta-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.home-cta-content {
  flex: 1;
  max-width: 520px;
}

.home-cta-content .eyebrow {
  margin-bottom: 0.6rem;
}

.home-cta-content h2 {
  font-size: var(--text-h2);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.home-cta-content p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.home-cta-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.home-cta-actions .button {
  width: 190px;
  height: 44px;
  justify-content: center;
  box-sizing: border-box;
}

/* Responsiveness for Home timeline & CTA */
@media (max-width: 768px) {
  .visual-tour-section {
    padding-bottom: 44px;
  }

  .everyday-flow-section {
    padding-top: 48px;
    padding-bottom: 40px;
  }

  /* Disable horizontal connector */
  .everyday-flow-timeline::before {
    display: none;
  }

  .everyday-flow-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    margin-bottom: 0;
  }

  .everyday-flow-step {
    flex-direction: row;
    gap: 1.15rem;
    align-items: flex-start;
    width: 100%;
    position: relative;
  }

  /* Enable vertical segment connectors to stop exactly at the last badge */
  .everyday-flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px; /* center of 36px badge */
    left: 18px; /* center of 36px badge */
    width: 2px;
    height: calc(100% + 2.25rem); /* span to next badge center */
    background: hsla(var(--primary-hsl), 0.15);
    z-index: 1;
  }

  .everyday-flow-step .step-badge {
    margin-bottom: 0;
    box-shadow: 0 0 0 6px var(--bg); /* mask vertical connector */
  }

  .everyday-flow-step p {
    font-size: 0.76rem;
  }

  /* CTA Section overrides */
  .home-cta-section {
    padding: 2.5rem 0;
  }

  .home-cta-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .home-cta-content {
    max-width: 100%;
  }

  .home-cta-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .home-cta-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 0.65rem;
  }

  .home-cta-actions .button {
    width: 100%;
    height: 44px;
  }
}

/* ─── Legal & Support Pages Mobile Polish (≤ 768px) ──────────────────────── */
/* Base Desktop & Tablet Supporting Copy (Width > 768px) */
.policy-page .legal-document p,
.policy-page .legal-document li,
.terms-page .legal-document p,
.terms-page .legal-document li,
.support-page .legal-document p,
.support-page .legal-document li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.policy-page .legal-note p,
.terms-page .legal-note p,
.support-page .support-card p,
.support-page .install-step p,
.support-page .faq-panel p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
  /* Prevent bullet clipping on left edge */
  .legal-document ul,
  .legal-document ol {
    padding-left: 1.5rem;
  }

  .policy-page .legal-document p,
  .policy-page .legal-document li,
  .terms-page .legal-document p,
  .terms-page .legal-document li,
  .support-page .legal-document p,
  .support-page .legal-document li {
    font-size: 14.5px;
    line-height: 1.6;
  }

  .policy-page .legal-note p,
  .terms-page .legal-note p,
  .support-page .support-card p,
  .support-page .install-step p,
  .support-page .faq-panel p {
    font-size: 14px;
    line-height: 1.55;
  }

  .policy-page .legal-note,
  .terms-page .legal-note,
  .support-page .support-card {
    padding: 16px;
  }

  .support-page .install-step {
    padding: 14px 0;
  }
  .support-page .install-steps::before {
    top: 32px; /* center of first badge (14px paddingTop + 18px radius) */
    bottom: 32px; /* center of last badge (14px paddingBottom + 18px radius) */
  }
}

/* Mobile (max-width: 480px) { */
@media (max-width: 480px) {
  /* Legal headings overrides to prevent oversized headers */
  .policy-page .legal-document h2,
  .terms-page .legal-document h2,
  .support-page .legal-document h2 {
    font-size: 18.5px;
    margin-top: 2rem;
  }

  .policy-page .legal-note h3,
  .terms-page .legal-note h3,
  .support-page .support-card h3,
  .support-page .install-step h4,
  .support-page .faq-trigger {
    font-size: 15px;
  }

  /* Help page subtitle */
  .support-page .doc-header p {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Supporting Paragraphs & List Items */
  .policy-page .legal-document p,
  .policy-page .legal-document li,
  .terms-page .legal-document p,
  .terms-page .legal-document li,
  .support-page .legal-document p,
  .support-page .legal-document li {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Card body text, steps, and FAQs */
  .policy-page .legal-note p,
  .terms-page .legal-note p,
  .support-page .support-card p,
  .support-page .install-step p,
  .support-page .faq-panel p {
    font-size: 13.5px;
    line-height: 1.55;
  }
}

