/* ============================================================
   VoiceScribe — Premium SaaS Design System
   Pure CSS. Glassmorphism, gradients, premium shadows.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --brand: #7C5CFF;
  --brand-2: #A78BFA;
  --brand-700: #5b3df0;
  --brand-soft: #ede9ff;
  --brand-glow: rgba(124, 92, 255, 0.35);

  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f7f6ff;
  --bg-tint: #f3f1fe;
  --surface: #ffffff;
  --surface-2: #fbfaff;
  --border: rgba(22, 18, 45, 0.08);
  --border-strong: rgba(22, 18, 45, 0.14);

  /* Text */
  --ink: #16122d;
  --ink-2: #44415c;
  --ink-3: #6c6982;
  --ink-soft: #8b88a0;
  --on-brand: #ffffff;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #7C5CFF 0%, #A78BFA 100%);
  --grad-brand-rev: linear-gradient(135deg, #A78BFA 0%, #7C5CFF 100%);
  --grad-hero: radial-gradient(1200px 700px at 80% -10%, #efeaff 0%, rgba(239,234,255,0) 55%),
               radial-gradient(900px 600px at -10% 10%, #f3effe 0%, rgba(243,239,254,0) 50%);
  --grad-text: linear-gradient(120deg, #7C5CFF 0%, #9b7bff 50%, #A78BFA 100%);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(22,18,45,.06);
  --shadow-sm: 0 2px 8px rgba(22,18,45,.06);
  --shadow-md: 0 12px 30px -12px rgba(22,18,45,.18);
  --shadow-lg: 0 30px 60px -22px rgba(54,40,120,.30);
  --shadow-brand: 0 18px 40px -14px rgba(124,92,255,.45);
  --shadow-card: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 40px -24px rgba(40,30,90,.30);

  /* Geometry */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 72px;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; }
::selection { background: var(--brand); color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--tint { background: var(--bg-soft); }
.section--grad { background: var(--grad-hero); }
.center { text-align: center; }
.grid { display: grid; gap: 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-soft);
  border: 1px solid rgba(124,92,255,.18);
  padding: 7px 14px; border-radius: var(--r-pill);
}
.section-head { max-width: 720px; margin-inline: auto; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .eyebrow { margin-bottom: 18px; }
h2.h-section { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -0.03em; }
.lead { color: var(--ink-2); font-size: clamp(16px, 1.6vw, 19px); margin-top: 16px; }
.grad-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15px; line-height: 1;
  padding: 14px 22px; border-radius: var(--r-pill);
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -14px rgba(124,92,255,.55); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); border-color: var(--border-strong); backdrop-filter: blur(10px); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background:#fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* App Store badge button */
.appstore-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #111; color: #fff; padding: 12px 22px; border-radius: 14px;
  box-shadow: var(--shadow-md); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.appstore-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.appstore-btn svg { width: 26px; height: 26px; flex: none; }
.appstore-btn .as-top { font-size: 11px; opacity: .85; line-height: 1; }
.appstore-btn .as-bot { font-size: 19px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgba(22,18,45,.4); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-brand); box-shadow: var(--shadow-brand); color: #fff;
}
.brand .logo svg { width: 21px; height: 21px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--brand-700); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: rgba(255,255,255,.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 18px var(--gutter) 28px;
  transform: translateY(-110%); transition: transform .35s var(--ease);
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { display: block; padding: 13px 4px; font-weight: 600; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad-hero); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(124,92,255,.10) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 75%);
  opacity: .7;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center;
  padding-block: clamp(48px, 8vw, 96px);
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -0.035em; line-height: 1.02;
}
.hero .lead { font-size: clamp(17px, 1.9vw, 21px); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 17px; height: 17px; color: var(--brand); }

/* ---------- Screenshot / device visuals ----------
   Source images are full 1242x2688 App Store promo graphics
   (each already contains a phone + headline + badges), so we
   present them as clean, HEIGHT-capped rounded cards instead of
   wrapping them in a second phone bezel. Height caps keep every
   section balanced and prevent the visuals from dominating. */
.phone {
  position: relative;
  display: inline-flex;
  margin-inline: auto;
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  -webkit-mask-image: -webkit-radial-gradient(#fff, #000); /* clip rounded corners in Safari */
}
.phone img,
.hero-phone-image,
.feature-phone-image,
.screenshot-card-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
  border-radius: inherit;
}
.hero-phone-image { max-height: 580px; }
.feature-phone-image { max-height: 600px; }
/* Reusable utility for screenshots placed inside cards (fixed box, cropped) */
.screenshot-card-image { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-phone-wrap { position: relative; display: flex; justify-content: center; }
.hero-phone-glow {
  position: absolute; inset: -8% -12% -4% -12%; z-index: -1;
  background: radial-gradient(closest-side, var(--brand-glow), transparent 72%);
  filter: blur(20px);
}
.float-badge {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow-md);
  padding: 11px 15px; border-radius: 16px; font-weight: 700; font-size: 13px;
}
.float-badge .fb-ico { width: 30px; height: 30px; border-radius: 9px; display:grid; place-items:center; background: var(--brand-soft); color: var(--brand-700); flex:none; }
.float-badge .fb-ico svg { width: 17px; height: 17px; }
.float-badge small { display:block; font-weight: 500; color: var(--ink-3); font-size: 11px; }
.fb-1 { top: 12%; left: -8%; animation: float 6s ease-in-out infinite; }
.fb-2 { bottom: 16%; right: -6%; animation: float 6s ease-in-out infinite .8s; }

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

/* Logo strip */
.logos { padding-block: 36px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background:#fff; }
.logos p { text-align:center; color: var(--ink-soft); font-weight:600; font-size: 13px; letter-spacing:.08em; text-transform:uppercase; margin-bottom: 18px; }
.logos-row { display:flex; flex-wrap:wrap; gap: 14px 28px; align-items:center; justify-content:center; }
.logo-chip {
  display:inline-flex; align-items:center; gap:9px; color: var(--ink-2);
  font-weight:700; font-size:15px; padding:9px 16px; border-radius: var(--r-pill);
  background: var(--bg-soft); border:1px solid var(--border);
}
.logo-chip svg { width:18px; height:18px; color: var(--brand); }

/* ---------- Feature grid (bento) ---------- */
.bento { display:grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-card); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(124,92,255,.25); }
.card .ico {
  width: 52px; height: 52px; border-radius: 15px; display:grid; place-items:center;
  background: var(--grad-brand); color:#fff; box-shadow: var(--shadow-brand); margin-bottom: 18px;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card .tag { display:inline-block; margin-top:14px; font-size:13px; font-weight:700; color: var(--brand-700); background: var(--brand-soft); padding:5px 12px; border-radius: var(--r-pill); }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
.span-6 { grid-column: span 6; }

/* Icon color variants */
.ico--violet { background: linear-gradient(135deg,#7C5CFF,#A78BFA); }
.ico--red { background: linear-gradient(135deg,#ff5a6e,#ff8aa0); }
.ico--green { background: linear-gradient(135deg,#21c08a,#5fd6ab); }
.ico--orange { background: linear-gradient(135deg,#ff9d3c,#ffba6b); }
.ico--blue { background: linear-gradient(135deg,#3b82f6,#60a5fa); }
.ico--ink { background: linear-gradient(135deg,#2a2440,#46406b); }

/* ---------- Use-case split rows ---------- */
.usecase { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items:center; }
.usecase + .usecase { margin-top: clamp(56px, 8vw, 110px); }
.usecase--rev .uc-media { order: 2; }
.uc-media { position: relative; display:flex; justify-content:center; overflow: hidden; border-radius: var(--r-xl); }
.uc-text .eyebrow { margin-bottom: 18px; }
.uc-text h3 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing:-.03em; }
.uc-text p { color: var(--ink-2); font-size: 17px; margin-top: 16px; }
.uc-list { list-style:none; padding:0; margin-top: 24px; display:grid; gap: 14px; }
.uc-list li { display:flex; gap: 13px; align-items:flex-start; font-weight:600; color: var(--ink); }
.uc-list .tick { width: 26px; height:26px; border-radius:8px; flex:none; display:grid; place-items:center; background: var(--brand-soft); color: var(--brand-700); }
.uc-list .tick svg { width:15px; height:15px; }
.uc-phone-glow { position:absolute; inset:-6%; z-index:-1; background: radial-gradient(closest-side, var(--brand-glow), transparent 70%); filter: blur(24px); }

/* ---------- Screenshot gallery ---------- */
.gallery {
  display:flex; gap: 22px; overflow-x:auto; padding: 12px 4px 28px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--brand-2) transparent;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: var(--brand-2); border-radius: 99px; }
.gallery-item { flex: 0 0 auto; width: 232px; scroll-snap-align: center; }
.gallery-item .shot {
  width: 232px; height: 464px; border-radius: 26px; overflow:hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border); background: var(--bg-soft);
  transition: transform .4s var(--ease);
}
.gallery-item:hover .shot { transform: translateY(-8px) scale(1.02); }
/* Uniform, consistently-cropped gallery tiles */
.gallery-image { display:block; width:100%; height:100%; object-fit: cover; object-position: top center; }
.gallery-cap { text-align:center; margin-top: 14px; font-weight:700; font-size: 14px; color: var(--ink-2); }

/* ---------- Stats ---------- */
.stats { display:grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.stat { text-align:center; padding: 28px 18px; border-radius: var(--r-lg); background: var(--surface); border:1px solid var(--border); box-shadow: var(--shadow-sm); }
.stat .num { font-size: clamp(32px, 4vw, 48px); font-weight:800; letter-spacing:-.03em; background: var(--grad-text); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stat .lbl { color: var(--ink-3); font-weight:600; margin-top: 6px; font-size: 14px; }

/* ---------- Privacy highlight ---------- */
.privacy-banner {
  border-radius: var(--r-xl); overflow:hidden; position:relative;
  background: linear-gradient(135deg, #19142e, #2a2150 60%, #3a2b6b);
  color:#fff; padding: clamp(36px, 6vw, 64px);
}
.privacy-banner::before { content:""; position:absolute; inset:0; background: radial-gradient(700px 400px at 90% -20%, rgba(167,139,250,.4), transparent 60%); }
.privacy-banner > * { position:relative; }
.privacy-banner .eyebrow { background: rgba(255,255,255,.12); color:#d9ccff; border-color: rgba(255,255,255,.18); }
.privacy-banner h2 { color:#fff; font-size: clamp(28px,4vw,44px); margin-top:18px; }
.privacy-banner p { color: rgba(255,255,255,.82); margin-top: 16px; max-width: 640px; font-size: 17px; }
.pill-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 34px; }
.pill-card { background: rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); border-radius: var(--r-md); padding: 22px; backdrop-filter: blur(8px); }
.pill-card .ico { width:42px; height:42px; border-radius:12px; display:grid; place-items:center; background: rgba(255,255,255,.12); color:#cbb8ff; margin-bottom:14px; }
.pill-card .ico svg { width:22px; height:22px; }
.pill-card h4 { font-size:17px; color:#fff; }
.pill-card p { color: rgba(255,255,255,.72); font-size:14px; margin-top:7px; }

/* ---------- Pricing ---------- */
.plans { display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items:stretch; }
.plan {
  background: var(--surface); border:1px solid var(--border); border-radius: var(--r-xl);
  padding: 32px; box-shadow: var(--shadow-card); display:flex; flex-direction:column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan--featured { border: 1.5px solid var(--brand); box-shadow: var(--shadow-brand); position:relative; }
.plan--featured::before {
  content:"Most Popular"; position:absolute; top:-13px; left:50%; transform:translateX(-50%);
  background: var(--grad-brand); color:#fff; font-size:12px; font-weight:700; letter-spacing:.04em;
  padding:6px 16px; border-radius: var(--r-pill); box-shadow: var(--shadow-brand);
}
.plan h3 { font-size: 21px; }
.plan .price { display:flex; align-items:flex-end; gap:6px; margin: 16px 0 4px; }
.plan .price .amt { font-size: 44px; font-weight:800; letter-spacing:-.03em; }
.plan .price .per { color: var(--ink-3); font-weight:600; padding-bottom: 8px; }
.plan .desc { color: var(--ink-3); font-size:14px; }
.plan .feat { list-style:none; padding:0; margin: 22px 0; display:grid; gap: 12px; flex:1; }
.plan .feat li { display:flex; gap:10px; align-items:flex-start; font-size:15px; color: var(--ink-2); }
.plan .feat svg { width:19px; height:19px; color: var(--brand); flex:none; margin-top:2px; }
.plan .legal { margin-top:14px; font-size:12px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline:auto; }
.faq-item { border:1px solid var(--border); border-radius: var(--r-md); margin-bottom: 14px; background: var(--surface); overflow:hidden; transition: box-shadow .3s, border-color .3s; }
.faq-item[open] { box-shadow: var(--shadow-md); border-color: rgba(124,92,255,.25); }
.faq-item summary {
  list-style:none; cursor:pointer; padding: 20px 24px; font-weight:700; font-size:17px;
  display:flex; justify-content:space-between; align-items:center; gap:16px;
}
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary .chev { width:22px; height:22px; color:var(--brand); transition: transform .3s var(--ease); flex:none; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--ink-2); font-size:15.5px; }

/* ---------- CTA banner ---------- */
.cta {
  position:relative; overflow:hidden; border-radius: var(--r-xl);
  background: var(--grad-brand); color:#fff; padding: clamp(44px,7vw,80px); text-align:center;
}
.cta::before { content:""; position:absolute; inset:0; background: radial-gradient(600px 300px at 20% 120%, rgba(255,255,255,.25), transparent 60%); }
.cta > * { position:relative; }
.cta h2 { font-size: clamp(30px,4.6vw,52px); color:#fff; }
.cta p { color: rgba(255,255,255,.9); margin-top:16px; font-size: 18px; max-width:560px; margin-inline:auto; }
.cta .hero-cta { justify-content:center; margin-top:30px; }
.cta .appstore-btn { background:#111; }

/* ---------- Footer ---------- */
.footer { background: #0f0c1c; color: rgba(255,255,255,.7); padding-block: 64px 36px; }
.footer-top { display:grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer .brand { color:#fff; }
.footer-about { margin-top:16px; max-width: 320px; font-size:14px; color: rgba(255,255,255,.6); }
.footer-col h4 { font-size:13px; letter-spacing:.1em; text-transform:uppercase; color: rgba(255,255,255,.5); margin-bottom: 16px; font-weight:700; }
.footer-col a { display:block; padding:7px 0; font-size:14.5px; color: rgba(255,255,255,.72); transition: color .2s; }
.footer-col a:hover { color:#fff; }
.footer-bottom { margin-top:48px; padding-top:24px; border-top:1px solid rgba(255,255,255,.1); display:flex; flex-wrap:wrap; gap:16px; justify-content:space-between; align-items:center; font-size:13px; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color:#fff; }

/* ---------- Legal / doc pages ---------- */
.doc-hero { background: var(--grad-hero); padding-block: clamp(48px,7vw,84px) clamp(36px,5vw,56px); border-bottom:1px solid var(--border); }
.doc-hero h1 { font-size: clamp(34px,5vw,56px); letter-spacing:-.03em; }
.doc-hero p { color: var(--ink-2); margin-top:16px; font-size:18px; max-width:680px; }
.doc-meta { margin-top:18px; font-size:14px; color: var(--ink-3); font-weight:600; }
.doc-wrap { display:grid; grid-template-columns: 250px 1fr; gap: 48px; align-items:start; }
.doc-toc { position: sticky; top: calc(var(--nav-h) + 24px); border:1px solid var(--border); border-radius: var(--r-lg); padding: 20px; background: var(--surface-2); box-shadow: var(--shadow-sm); }
.doc-toc h4 { font-size:12px; letter-spacing:.1em; text-transform:uppercase; color: var(--ink-soft); margin-bottom:12px; }
.doc-toc a { display:block; padding:6px 0; font-size:14px; color: var(--ink-2); font-weight:600; transition:color .2s; }
.doc-toc a:hover { color: var(--brand-700); }
.doc-body { max-width: 760px; }
.doc-body h2 { font-size: clamp(22px,2.6vw,30px); margin: 40px 0 14px; letter-spacing:-.02em; scroll-margin-top: calc(var(--nav-h) + 20px); }
.doc-body h2:first-child { margin-top:0; }
.doc-body h3 { font-size:19px; margin: 26px 0 10px; }
.doc-body p { color: var(--ink-2); margin-bottom: 14px; font-size: 16px; }
.doc-body ul, .doc-body ol { color: var(--ink-2); margin: 0 0 16px; padding-left: 22px; }
.doc-body li { margin-bottom: 8px; }
.doc-body a { color: var(--brand-700); font-weight:600; border-bottom:1px solid rgba(124,92,255,.3); }
.doc-body strong { color: var(--ink); }
.callout {
  border-radius: var(--r-md); padding: 20px 22px; margin: 20px 0; border:1px solid;
  display:flex; gap:14px; align-items:flex-start;
}
.callout svg { width:22px; height:22px; flex:none; margin-top:2px; }
.callout p { margin:0; font-size:15px; }
.callout--brand { background: var(--brand-soft); border-color: rgba(124,92,255,.25); color: var(--ink); }
.callout--brand svg { color: var(--brand-700); }
.callout--warn { background:#fff7ed; border-color:#fed7aa; }
.callout--warn svg { color:#ea8a18; }
.callout--ok { background:#ecfdf5; border-color:#a7f3d0; }
.callout--ok svg { color:#0f9d6f; }

/* ---------- Data table ---------- */
.table-wrap { overflow-x:auto; border:1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); margin: 22px 0; }
table.data { width:100%; border-collapse:collapse; min-width: 640px; font-size: 14.5px; }
table.data thead th { background: var(--bg-tint); color: var(--ink); text-align:left; font-weight:700; padding: 14px 18px; font-size:13px; letter-spacing:.03em; text-transform:uppercase; border-bottom:1px solid var(--border); }
table.data td { padding: 16px 18px; border-bottom:1px solid var(--border); color: var(--ink-2); vertical-align:top; }
table.data tr:last-child td { border-bottom:none; }
table.data tr:hover td { background: var(--surface-2); }
.badge { display:inline-block; font-size:12px; font-weight:700; padding:4px 10px; border-radius: var(--r-pill); }
.badge--local { background:#ecfdf5; color:#0f9d6f; }
.badge--cloud { background:#eff6ff; color:#2563eb; }
.badge--ad { background:#fff7ed; color:#c2710c; }
.badge--none { background:#f3f4f6; color:#6b7280; }

/* ---------- Transparency cards ---------- */
.flow-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.flow-card { border:1px solid var(--border); border-radius: var(--r-lg); padding:24px; background: var(--surface); box-shadow: var(--shadow-card); }
.flow-steps { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:14px; }
.flow-node { background: var(--bg-tint); border:1px solid var(--border); border-radius: var(--r-sm); padding:9px 13px; font-weight:700; font-size:13.5px; }
.flow-arrow { color: var(--brand); }
.flow-arrow svg { width:20px; height:20px; }
.flow-card .note { color: var(--ink-3); font-size:13.5px; margin-top:14px; }

/* ---------- Contact ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items:start; }
.field { margin-bottom:18px; }
.field label { display:block; font-weight:700; font-size:14px; margin-bottom:7px; color: var(--ink); }
.field input, .field textarea, .field select {
  width:100%; padding:13px 15px; border:1px solid var(--border-strong); border-radius: var(--r-sm);
  font-family:inherit; font-size:15px; color: var(--ink); background:#fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline:none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }
.field textarea { min-height: 140px; resize: vertical; }
.contact-info-card { border:1px solid var(--border); border-radius: var(--r-lg); padding:28px; background: var(--surface-2); box-shadow: var(--shadow-sm); }
.contact-line { display:flex; gap:14px; align-items:flex-start; padding:14px 0; border-bottom:1px solid var(--border); }
.contact-line:last-child { border-bottom:none; }
.contact-line .ci { width:42px; height:42px; border-radius:12px; flex:none; display:grid; place-items:center; background: var(--brand-soft); color: var(--brand-700); }
.contact-line .ci svg { width:21px; height:21px; }
.contact-line h4 { font-size:15px; }
.contact-line p, .contact-line a { color: var(--ink-3); font-size:14.5px; }
.form-note { font-size:13px; color: var(--ink-soft); margin-top:6px; }
.form-success { display:none; background:#ecfdf5; border:1px solid #a7f3d0; color:#0f7a55; padding:16px; border-radius: var(--r-md); font-weight:600; margin-top:16px; }
.form-success.show { display:block; }

/* ---------- Reveal animations ---------- */
.reveal { opacity:0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity:1; transform:none; }
.reveal.d1 { transition-delay:.08s; }
.reveal.d2 { transition-delay:.16s; }
.reveal.d3 { transition-delay:.24s; }
.reveal.d4 { transition-delay:.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1; transform:none; transition:none; }
  .float-badge { animation:none !important; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 48px; height:48px; border-radius:50%; border:none;
  background: var(--grad-brand); color:#fff; box-shadow: var(--shadow-brand);
  display:grid; place-items:center; opacity:0; pointer-events:none; transform: translateY(14px);
  transition: opacity .3s, transform .3s;
}
.to-top.show { opacity:1; pointer-events:auto; transform:none; }
.to-top svg { width:22px; height:22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align:center; }
  .hero .lead { margin-inline:auto; }
  .hero-cta, .hero-trust { justify-content:center; }
  .hero-phone-wrap { margin-top: 40px; }
  .bento { grid-template-columns: repeat(4,1fr); }
  .span-3 { grid-column: span 2; }
  .span-2 { grid-column: span 2; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .pill-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  /* Keep stacked visuals from getting too tall on tablet */
  .hero-phone-image, .feature-phone-image { max-height: 540px; }
  .fb-1 { left: 2%; }
  .fb-2 { right: 2%; }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta .btn { display:none; }
  .nav-toggle { display:inline-flex; }
  .nav-cta { display:none; }
  .doc-wrap { grid-template-columns: 1fr; }
  .doc-toc { display:none; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline:auto; }
  .plan--featured { order:-1; }
  .usecase { grid-template-columns: 1fr; }
  .usecase--rev .uc-media { order: 0; }
  .uc-media { order: -1; }
  .flow-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .span-3, .span-2, .span-6 { grid-column: span 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap:28px; }
  .pill-grid { grid-template-columns: 1fr; }
  /* Phone visuals sized to the viewport, never overflowing */
  .hero-phone-image, .feature-phone-image { max-height: 70vh; max-width: 74vw; }
  /* Floating badges can crowd small screens — hide for a clean stack */
  .float-badge { display: none; }
  /* Slightly smaller, still-uniform gallery tiles */
  .gallery-item { width: 200px; }
  .gallery-item .shot { width: 200px; height: 400px; }
}
