/*
 * Tellify — public marketing website stylesheet.
 * Loaded by website/index.html via <link rel="stylesheet" href="assets/css/main.css">.
 * Single file on purpose: the site is a static one-pager, no build step.
 */

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

:root {
  /* Warm, light "cream" palette — gold kept as the accent, darker tones used for text/readability */
  --bg:      #fffdf5; /* Page background — warm off-white */
  --bg2:     #fbf6e4; /* Card surface — slightly warmer */
  --bg3:     #f3ead0; /* Deeper surface (code headers, sidebar) */
  --border:  rgba(120, 90, 10, .14); /* Soft golden-tinted border */
  --text:    #1a1300; /* Primary text — near-black with warm undertone */
  --muted:   #7a6f5c; /* Secondary / muted copy */
  --gold:    #F5C518; /* Brand gold — used for primary buttons, dots, badges */
  --gold2:   #C9960A; /* Darker gold — readable on light bg (gradients, links, badges) */
  --gold3:   #8a6700; /* Deepest gold — used in contrast-sensitive text */
  --green:   #15803d; /* Darker green — readable on cream */
  --red:     #dc2626;
  --radius:  14px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NOISE OVERLAY (very subtle grain on light bg) ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .04; /* Slightly higher so grain remains visible on the cream background */
  mix-blend-mode: multiply; /* Make the noise darken the page instead of lightening it */
  pointer-events: none;
  z-index: 0;
}

/* ── LAYOUT ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  background: rgba(255, 253, 245, .75); /* Translucent cream for the blurred nav bar */
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

/* ── LOGO ── */
.logo-wrap { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 32px; height: 32px; flex-shrink: 0; }
.logo-text {
  font-size: 22px; font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1;
}
/* Logo: "tell" in dark text, "ify" in brand gold */
.logo-text .tell { color: var(--text); }
.logo-text .ify  { color: var(--gold2); }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all .2s; border: none;
}
.btn-ghost {
  color: var(--text); background: transparent;
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--gold3); border-color: rgba(201,150,10,.35); background: rgba(245,197,24,.05); }
.btn-primary {
  background: var(--gold);
  color: #1a1300; /* Dark warm text keeps great contrast on the gold button */
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(201,150,10,.22); /* Soft drop-shadow suits the light bg better than a glow */
}
.btn-primary:hover {
  background: #ffd234;
  box-shadow: 0 10px 26px rgba(201,150,10,.32);
  transform: translateY(-1px);
}
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 10px; }

/* ── HERO ── */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden; /* Clip the oversized decorative glow pseudo-elements so they can't push the page wider than the viewport */
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero::before {
  width: 700px; height: 700px;
  top: -100px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(245,197,24,.22), transparent 70%); /* Warm gold halo */
}
.hero::after {
  width: 400px; height: 400px;
  bottom: 0; right: 10%;
  background: radial-gradient(circle, rgba(253,230,138,.35), transparent 70%); /* Soft warm glow */
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,197,24,.12);
  border: 1px solid rgba(201,150,10,.35);
  color: var(--gold3); /* Darker gold reads well on the cream badge */
  padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 500; margin-bottom: 28px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.8); }
}

.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 900; line-height: 1.05; letter-spacing: -2px; margin-bottom: 24px;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  /* On a light bg we gradient from the deeper gold to the brand gold so the word stays legible */
  background: linear-gradient(135deg, var(--gold3) 0%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 580px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-sub { margin-top: 16px; font-size: 13px; color: var(--muted); }
.hero-sub span { color: var(--green); }

/* ── STATS ── */
.stats {
  display: flex; justify-content: center; gap: 0;
  margin: 72px 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(255,255,255,.55); /* Slightly brighter than page bg so the block has lift */
  box-shadow: 0 1px 3px rgba(20,14,0,.04);
  overflow: hidden;
}
.stat { flex: 1; padding: 32px 20px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-value {
  font-size: 36px; font-weight: 800; letter-spacing: -1px;
  /* Gradient between dark text and deep gold so stats stay strong on the cream background */
  background: linear-gradient(135deg, var(--text), var(--gold2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; font-weight: 500; }

/* ── SECTION HEADERS ── */
.section-label {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold2); margin-bottom: 12px; /* Use the darker gold so the eyebrow is readable */
}
.section-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin-bottom: 16px; }
.section-sub { font-size: 17px; color: var(--muted); line-height: 1.7; max-width: 560px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }

/* ── FEATURES ── */
.features { padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  background: #ffffff; /* Pure white card on cream bg adds lift */
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  position: relative; overflow: hidden;
  box-shadow: 0 1px 2px rgba(20,14,0,.03);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.feature-card:hover {
  border-color: rgba(201,150,10,.45);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(201,150,10,.10);
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,197,24,.6), transparent);
  opacity: 0; transition: opacity .3s;
}
.feature-card:hover::before { opacity: 1; }
.feature-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.3px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.feature-card.wide { grid-column: span 2; }
.feature-card.wide .feature-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }

/* ── CODE SECTION ── */
.integration { padding: 80px 0; }
.integration-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
/* Grid/flex children default to min-width:auto (min-content); the long code
   lines below would blow the track wider than the viewport and force the whole
   page to scroll horizontally. min-width:0 lets the column shrink so the
   <pre> handles its own overflow instead. */
.integration-inner > * { min-width: 0; }
.integration-text h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; line-height: 1.2; }
.integration-text p { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); }
.check-list li::before { content: '✓'; color: var(--green); font-weight: 700; font-size: 14px; }

/* Code blocks use a dark "editor" panel so syntax tokens stay vivid against the light page */
.code-block {
  background: #1f1a0b;
  border: 1px solid rgba(20,14,0,.12);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0; /* Allow the block to shrink below its content width so the inner <pre> scrolls instead of the page */
  box-shadow: 0 10px 24px rgba(20,14,0,.08);
}
.code-header {
  background: #17130a; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(245,197,24,.12);
}
.code-header-left { display: flex; align-items: center; gap: 10px; }
.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 12px; height: 12px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }
.code-filename { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #8a7d6a; }
.code-badge {
  font-size: 11px; font-weight: 600;
  color: var(--gold); background: rgba(245,197,24,.12);
  border: 1px solid rgba(245,197,24,.28); padding: 2px 8px; border-radius: 100px;
}
pre { padding: 20px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.7; overflow-x: auto; color: #fef9e7; }
/* Syntax highlighting tuned for the dark editor panel */
.kw  { color: #FDE68A; }
.fn  { color: #fbbf24; }
.str { color: #c3e88d; }
.cm  { color: #7a6a4a; font-style: italic; }
.attr{ color: #F5C518; }
.val { color: #fb923c; }

/* ── HOW IT WORKS ── */
.how { padding: 80px 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 28px; left: 64px; right: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
}
.step { text-align: center; padding: 12px; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: #ffffff; /* White circle with gold ring — pops nicely on cream bg */
  border: 2px solid rgba(201,150,10,.45);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; font-size: 18px; font-weight: 800; color: var(--gold3);
  box-shadow: 0 2px 6px rgba(201,150,10,.12);
  position: relative; z-index: 1;
}
.step h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── DASHBOARD PREVIEW ── */
.preview { padding: 80px 0; overflow: hidden; }
.preview-wrapper {
  position: relative; border-radius: 16px; border: 1px solid var(--border);
  overflow: hidden; background: #ffffff; /* White canvas simulates the real app's light UI */
  box-shadow: 0 24px 48px rgba(20,14,0,.08); /* Subtle lift for the mock browser */
}
.preview-bar {
  padding: 12px 20px; background: #f8f4e8; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.url-bar {
  flex: 1; background: #ffffff; border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 12px; font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--muted); max-width: 300px;
}
.dash-body { display: flex; min-height: 400px; }
.dash-sidebar {
  width: 200px; flex-shrink: 0;
  background: #faf4df; /* Warm tinted sidebar pairs with the cream theme */
  border-right: 1px solid var(--border); padding: 20px 0;
}
.dash-nav-item {
  padding: 9px 20px; font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--muted);
}
.dash-nav-item.active {
  background: rgba(245,197,24,.16);
  color: var(--gold3);
  border-right: 2px solid var(--gold);
}
.dash-content { flex: 1; padding: 24px; background: #ffffff; }
.dash-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dash-title { font-size: 18px; font-weight: 700; color: var(--text); }
.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.dash-card { background: #fbf6e4; border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.dash-card-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.dash-card-value { font-size: 24px; font-weight: 800; letter-spacing: -1px; color: var(--text); }
.dash-card-change { font-size: 12px; color: var(--green); margin-top: 4px; }
.dash-chart { background: #fbf6e4; border: 1px solid var(--border); border-radius: 10px; padding: 16px; height: 160px; display: flex; align-items: flex-end; gap: 6px; overflow: hidden; }
.bar-wrap { flex: 1; display: flex; align-items: flex-end; }
.bar { width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(to top, var(--gold3), var(--gold)); opacity: .9; }

/* ── LIVE DEMO ── */
.demo { padding: 80px 0; }
.demo-wrapper {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(20,14,0,.05);
  max-width: 860px;
  margin: 0 auto;
}
.demo-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.demo-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.demo-step-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1300;
  font-weight: 800;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.demo-step-body h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.demo-step-body p  { font-size: 13px; color: var(--muted); line-height: 1.5; }

.demo-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.demo-actions .btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.demo-btn-icon { font-size: 16px; }

.demo-status {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  min-height: 48px;
  transition: background .2s, border-color .2s, color .2s;
}
.demo-status[data-kind="success"] {
  color: var(--green);
  background: rgba(52,211,153,.08);
  border-color: rgba(52,211,153,.25);
}
.demo-status[data-kind="error"] {
  color: var(--red);
  background: rgba(220,38,38,.06);
  border-color: rgba(220,38,38,.25);
}

/* ── PRICING ── */
.pricing { padding: 80px 0; }
.pricing-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.pricing-card {
  flex: 1 1 280px; max-width: 350px;
  background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; position: relative; overflow: hidden;
  box-shadow: 0 1px 2px rgba(20,14,0,.03);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(20,14,0,.08); }
.pricing-card.featured {
  border-color: rgba(245,197,24,.5);
  /* Subtle golden wash on the featured plan */
  background: linear-gradient(160deg, rgba(245,197,24,.12), #ffffff 60%);
  box-shadow: 0 10px 30px rgba(201,150,10,.12);
}
.pricing-card.featured::after {
  content: 'Most Popular'; position: absolute; top: 16px; right: 16px;
  background: var(--gold); color: #1a1300; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
}
.plan-name { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.plan-price { font-size: 42px; font-weight: 900; letter-spacing: -2px; margin-bottom: 4px; color: var(--text); }
.plan-price sup { font-size: 22px; vertical-align: super; font-weight: 600; }
.plan-price span { font-size: 16px; font-weight: 400; color: var(--muted); }
.plan-desc { font-size: 14px; color: var(--muted); margin-bottom: 24px; line-height: 1.5; }
.plan-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.plan-features li .ico { font-size: 16px; }
.plan-features li.dim { color: var(--muted); }

/* Loading skeleton shown while GET /api/plans is in flight */
.pricing-skeleton {
  min-height: 460px;
  background: linear-gradient(100deg, #fbf6e4 40%, #f5eed8 50%, #fbf6e4 60%) #fbf6e4;
  background-size: 200% 100%;
  animation: pricing-shimmer 1.4s linear infinite;
}
@keyframes pricing-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── CTA ── */
.cta-section { padding: 80px 0 120px; }
.cta-box {
  background: linear-gradient(135deg, #fff9e0, #fff5c8); /* Warm golden gradient — lighter, airier */
  border: 1px solid rgba(201,150,10,.3);
  border-radius: 24px; padding: 72px; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 48px rgba(201,150,10,.12);
}
.cta-box::before {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,197,24,.25), transparent 70%);
  pointer-events: none;
}
.cta-box h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 900; letter-spacing: -1.5px; margin-bottom: 16px; line-height: 1.1; }
.cta-box p { font-size: 17px; color: var(--muted); margin-bottom: 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--muted); }

/* ── LEGAL / DOC PAGES (docs.html, privacy.html, terms.html) ──
   Shared readable-column layout for the static subpages linked from the
   footer. `padding-top` clears the fixed nav; the narrow container keeps
   long-form copy comfortable to read. */
.legal { padding: 140px 0 96px; }
.legal .container { max-width: 760px; }
.legal-header { margin-bottom: 48px; }
.legal-header .section-label { display: inline-block; }
.legal-header h1 {
  font-size: clamp(30px, 5vw, 46px); font-weight: 800;
  letter-spacing: -1px; line-height: 1.15; margin-bottom: 14px;
}
.legal-updated { font-size: 14px; color: var(--muted); }
.legal-body { color: var(--text); font-size: 16px; line-height: 1.75; }
.legal-body h2 {
  font-size: 24px; font-weight: 800; letter-spacing: -.4px;
  margin: 48px 0 14px;
}
.legal-body h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.legal-body p { margin-bottom: 16px; color: var(--muted); }
.legal-body ul, .legal-body ol { margin: 0 0 16px 22px; color: var(--muted); }
.legal-body li { margin-bottom: 8px; line-height: 1.7; }
.legal-body a { color: var(--gold2); text-decoration: underline; }
.legal-body a:hover { color: var(--gold3); }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body code {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 6px;
}
/* Code snippets on docs.html reuse the homepage dark-editor chrome
   (.code-block / .code-header / .cm/.kw/.attr/.str/.fn tokens); just add
   vertical rhythm between a block and the surrounding copy. */
.legal-body .code-block { margin: 24px 0; }
.legal-body hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
/* Grouped doc/legal navigation cards */
.legal-toc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0 8px; }
.legal-toc a {
  display: block; padding: 18px 20px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg2);
  text-decoration: none; transition: border-color .2s, transform .2s;
}
.legal-toc a:hover { border-color: var(--gold2); transform: translateY(-2px); }
.legal-toc strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.legal-toc span { font-size: 13px; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card.wide { grid-column: span 2; }
  .feature-card.wide .feature-inner { grid-template-columns: 1fr; }
  .integration-inner { grid-template-columns: 1fr; }
  .pricing-card { max-width: 100%; flex-basis: 100%; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
  .stats { flex-wrap: wrap; }
  .stat { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .platform-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .demo-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .demo-wrapper { padding: 28px 20px; }
  .demo-actions .btn { width: 100%; justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.wide { grid-column: span 1; }
  .nav-links { display: none; }
  .cta-box { padding: 40px 24px; }
  /* Tighten the nav on small phones so the logo + both CTAs never overflow the bar */
  .container { padding: 0 16px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { padding: 9px 14px; }
  .dash-sidebar { display: none; }
  .platform-grid { grid-template-columns: 1fr 1fr !important; }
  .footer-inner { flex-direction: column; align-items: center; gap: 24px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px 24px; }
  .footer-copy { text-align: center; }
  .legal { padding: 116px 0 72px; }
  .legal-toc { grid-template-columns: 1fr; }
}

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
