/* =========================================================
   Jayla Health — Global Stylesheet
   Design system: tokens first, then base, layout, components.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colors */
  --brand-1: #F58E6B;        /* warm coral */
  --brand-2: #9B6DE0;        /* orchid */
  --brand-grad: linear-gradient(120deg, #F58E6B 0%, #C96CC0 50%, #9B6DE0 100%);
  --primary: #6B4E9E;        /* plum */
  --primary-dark: #4E3877;
  --cta: #D8472F;            /* high-contrast terracotta, reserved for CTAs */
  --cta-dark: #B5361F;
  --accent: #F6B45E;         /* warm amber */

  /* Neutrals */
  --bg: #FBF7F5;             /* warm cream */
  --bg-tint: #F5EEF7;        /* soft lilac tint */
  --bg-warm: #FBEFE9;        /* soft peach tint */
  --surface: #FFFFFF;
  --ink: #2B2440;            /* near-black plum */
  --ink-soft: #4A4360;
  --muted: #6E6680;
  --line: #ECE4EE;
  --line-strong: #DCD2E2;

  /* Dark surfaces */
  --dark: #221B33;
  --dark-2: #2D2545;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-6: 24px; --s-8: 32px; --s-12: 48px; --s-16: 64px; --s-24: 96px;

  /* Radii */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;

  /* Shadows (3 elevations) */
  --sh-1: 0 1px 2px rgba(43,36,64,.06), 0 2px 8px rgba(43,36,64,.06);
  --sh-2: 0 6px 18px rgba(43,36,64,.10), 0 2px 6px rgba(43,36,64,.06);
  --sh-3: 0 22px 50px rgba(43,36,64,.18), 0 8px 18px rgba(43,36,64,.10);
  --glow: 0 10px 30px rgba(216,71,47,.35);

  /* Motion */
  --t-fast: 160ms cubic-bezier(.2,.7,.3,1);
  --t: 240ms cubic-bezier(.2,.7,.3,1);
  --t-slow: 420ms cubic-bezier(.2,.7,.3,1);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1200px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--cta); }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { color: var(--ink-soft); }
.serif { font-family: var(--font-display); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-6); }
.container--narrow { max-width: 880px; }
.section { padding-block: clamp(56px, 9vw, 120px); position: relative; }
.section--tint { background: var(--bg-tint); }
.section--warm { background: var(--bg-warm); }
.section--dark { background: var(--dark); color: #F4EEFB; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #C9BEDD; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary);
}
.section--dark .eyebrow { color: var(--accent); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand-grad); border-radius: 2px; }
.section-head { max-width: 680px; margin-bottom: var(--s-12); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--s-4); font-size: 1.1rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.text-grad {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--cta); color: #fff; box-shadow: var(--sh-1); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); background: var(--cta-dark); box-shadow: var(--glow); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--line-strong); }
.btn-secondary:hover { color: var(--primary-dark); border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--sh-1); }
.btn-grad { background-image: var(--brand-grad); color: #fff; box-shadow: var(--sh-1); }
.btn-grad:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { color: #fff; background: rgba(255,255,255,.18); transform: translateY(-2px); }
.btn-lg { padding: 18px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; color: var(--ink); letter-spacing: -.02em; }
.logo .logo-mark { width: 38px; height: 38px; flex: none; transition: transform var(--t), filter var(--t); }
.logo:hover { color: var(--ink); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); filter: drop-shadow(0 4px 10px rgba(155,109,224,.45)); }
.logo .logo-mark .lm-sun { transform-box: fill-box; transform-origin: center; transition: transform var(--t-slow); }
.logo:hover .logo-mark .lm-sun { transform: translateY(-1.5px) scale(1.12); }
.logo-name b { font-weight: 600; }
.logo-name span { color: var(--primary); }
.site-footer .logo, .footer-logo .logo { color: #fff; }
.site-footer .logo-name span { color: var(--accent); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background var(--t), box-shadow var(--t), border-color var(--t), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(251,247,245,.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: var(--sh-1);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); height: 76px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; color: var(--ink-soft); font-weight: 500; font-size: .98rem;
  padding: 8px 14px; border-radius: var(--r-pill); transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--primary); background: rgba(155,109,224,.08); }
.nav-links a[aria-current="page"] { color: var(--primary); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--brand-grad); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: var(--s-3); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: none; background: transparent; position: relative; border-radius: var(--r-sm);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform var(--t), opacity var(--t-fast); }
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
.nav-backdrop { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 140px; padding-bottom: clamp(60px,9vw,120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px,5vw,72px); align-items: center; }
.hero h1 { margin-bottom: var(--s-6); }
.hero .lead { max-width: 38ch; margin-bottom: var(--s-8); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-bottom: var(--s-12); }
.pill {
  display: inline-flex; align-items: center; gap: var(--s-2); padding: 7px 14px 7px 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: .85rem; font-weight: 600; color: var(--ink-soft); box-shadow: var(--sh-1); margin-bottom: var(--s-6);
}
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #36B37E; box-shadow: 0 0 0 4px rgba(54,179,126,.18); }

/* Soft background blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 0; pointer-events: none; }
.blob-1 { width: 520px; height: 520px; background: radial-gradient(circle at 30% 30%, #FBC1A6, transparent 70%); top: -160px; right: -120px; }
.blob-2 { width: 460px; height: 460px; background: radial-gradient(circle at 30% 30%, #CDB4F2, transparent 70%); bottom: -180px; left: -140px; opacity: .5; }
.grain { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero .container { position: relative; z-index: 1; }

/* Hero visual card */
.hero-visual { position: relative; }
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-3); padding: var(--s-8); position: relative; z-index: 1;
}
.hero-card .hc-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-6); }
.hero-card .hc-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-grad); display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--font-display); }
.hero-card .hc-meta strong { display: block; font-size: .98rem; }
.hero-card .hc-meta span { font-size: .82rem; color: var(--muted); }
.symptom-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 13px 0; border-top: 1px solid var(--line); }
.symptom-row:first-of-type { border-top: none; }
.symptom-row .s-label { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .95rem; color: var(--ink); }
.symptom-row .s-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--bg-tint); display: grid; place-items: center; color: var(--primary); flex: none; }
.bar { width: 110px; height: 8px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--brand-grad); }
.hero-float {
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-2); padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; z-index: 2;
}
.hero-float.f1 { top: -22px; left: -26px; }
.hero-float.f2 { bottom: -20px; right: -16px; }
.hero-float .fico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; }

/* Trust strip */
.trust-strip { margin-top: var(--s-8); border-top: 1px solid var(--line); padding-top: var(--s-8);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.trust-strip .ts-num { font-family: var(--font-display); font-size: clamp(1.7rem,2.6vw,2.3rem); font-weight: 600; color: var(--ink); }
.trust-strip .ts-label { font-size: .85rem; color: var(--muted); margin-top: 2px; }

/* ---------- Bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: var(--s-6); }
.bento-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-8); box-shadow: var(--sh-1); position: relative; overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--line-strong); }
.bento-card h3 { margin-bottom: var(--s-3); }
.bento-card p { font-size: .98rem; }
.bento-card .b-ico { width: 50px; height: 50px; border-radius: var(--r-md); display: grid; place-items: center; margin-bottom: var(--s-6); color: #fff; background: var(--brand-grad); }
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }
.bento-dark { background: var(--dark); color: #fff; border-color: transparent; }
.bento-dark h3 { color: #fff; } .bento-dark p { color: #C9BEDD; }
.bento-stat { font-family: var(--font-display); font-size: clamp(2.4rem,4vw,3.4rem); font-weight: 600; line-height: 1; margin-bottom: var(--s-2); }
.bento-accent { background: linear-gradient(135deg, #FBEFE9, #F5EEF7); }

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.svc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-8); box-shadow: var(--sh-1); border-top: 3px solid transparent;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-top-color: var(--brand-1); }
.svc-ico { width: 54px; height: 54px; border-radius: var(--r-md); display: grid; place-items: center; color: var(--primary); background: var(--bg-tint); margin-bottom: var(--s-6); }
.svc-card:hover .svc-ico { background: var(--brand-grad); color: #fff; }
.svc-card h3 { margin-bottom: var(--s-3); }
.svc-card p { font-size: .98rem; }
.svc-card ul.ticks { margin-top: var(--s-4); display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink-soft); }
.ticks li svg { flex: none; width: 18px; height: 18px; color: #36B37E; margin-top: 2px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); opacity: .4; }
.step { position: relative; text-align: center; padding-inline: var(--s-2); }
.step .step-num {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto var(--s-6); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: #fff; background: var(--brand-grad);
  box-shadow: var(--sh-2); position: relative; z-index: 1; border: 4px solid var(--bg);
}
.section--tint .step .step-num { border-color: var(--bg-tint); }
.step h3 { font-size: 1.15rem; margin-bottom: var(--s-2); }
.step p { font-size: .95rem; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); text-align: center; }
.stat .stat-num { font-family: var(--font-display); font-size: clamp(2.4rem,5vw,3.6rem); font-weight: 600; line-height: 1; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .stat-label { margin-top: var(--s-3); color: #C9BEDD; font-size: .98rem; }

/* ---------- Testimonials ---------- */
.tcarousel { position: relative; }
.ttrack { display: flex; gap: var(--s-6); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-4); scrollbar-width: none; }
.ttrack::-webkit-scrollbar { display: none; }
.tcard {
  flex: 0 0 clamp(280px, 80%, 380px); scroll-snap-align: start; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-8); box-shadow: var(--sh-1);
}
.tcard .quote { font-family: var(--font-display); font-size: 1.18rem; line-height: 1.4; color: var(--ink); margin-bottom: var(--s-6); }
.tcard .stars { color: var(--accent); margin-bottom: var(--s-4); letter-spacing: 2px; }
.tmeta { display: flex; align-items: center; gap: var(--s-3); }
.tmeta .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--font-display); background: var(--brand-grad); flex: none; }
.tmeta strong { display: block; font-size: .95rem; }
.tmeta span { font-size: .82rem; color: var(--muted); }
.tnav { display: flex; gap: var(--s-3); margin-top: var(--s-6); justify-content: center; }
.tnav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--primary); display: grid; place-items: center; transition: all var(--t); }
.tnav button:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand-grad); border-radius: var(--r-xl); padding: clamp(40px,6vw,72px); text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; max-width: 16ch; margin: 0 auto var(--s-4); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 48ch; margin: 0 auto var(--s-8); }
.cta-band .btn-primary { background: #fff; color: var(--cta); }
.cta-band .btn-primary:hover { background: #fff; color: var(--cta-dark); box-shadow: 0 12px 30px rgba(0,0,0,.18); }

/* ---------- Section divider (soft curve) ---------- */
.divider { display: block; width: 100%; height: 60px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-top: 150px; padding-bottom: var(--s-16); text-align: center; position: relative; overflow: hidden; }
.page-hero h1 { max-width: 16ch; margin: var(--s-4) auto var(--s-4); }
.page-hero p { max-width: 56ch; margin-inline: auto; font-size: 1.12rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 800px; margin-inline: auto; display: grid; gap: var(--s-3); }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: box-shadow var(--t), border-color var(--t); }
.faq-item.open { box-shadow: var(--sh-2); border-color: var(--line-strong); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.faq-q .chev { flex: none; width: 26px; height: 26px; display: grid; place-items: center; color: var(--primary); transition: transform var(--t); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t-slow); }
.faq-a-inner { padding: 0 24px 22px; color: var(--ink-soft); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-8); }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); transition: transform var(--t), box-shadow var(--t); display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.post-thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.post-thumb svg { width: 100%; height: 100%; }
.post-body { padding: var(--s-6); display: flex; flex-direction: column; flex: 1; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); background: var(--bg-tint); padding: 5px 11px; border-radius: var(--r-pill); margin-bottom: var(--s-3); align-self: flex-start; }
.post-card h3 { font-size: 1.2rem; margin-bottom: var(--s-3); }
.post-card h3 a { color: var(--ink); } .post-card h3 a:hover { color: var(--primary); }
.post-meta { margin-top: auto; padding-top: var(--s-4); display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); }
.post-feature { aspect-ratio: 21/8; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-2); margin-bottom: var(--s-12); }
.post-feature svg { width: 100%; height: 100%; }

/* ---------- Feature post (blog index) ---------- */
.feature-post { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-8); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-1); transition: transform var(--t), box-shadow var(--t); }
.feature-post:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.feature-thumb { position: relative; min-height: 280px; overflow: hidden; }
.feature-thumb svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.feature-body { padding: clamp(24px,3vw,44px); display: flex; flex-direction: column; justify-content: center; }
.feature-body h2 { font-size: clamp(1.5rem,2.4vw,2.1rem); margin-bottom: var(--s-3); }
.feature-body h2 a, .feature-post h2 { color: var(--ink); }
.feature-post:hover h2 { color: var(--primary); }
.article-meta { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-4); font-size: .9rem; color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--font-display); background: var(--brand-grad); flex: none; }
.avatar.sm { width: 30px; height: 30px; font-size: .78rem; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(32px,5vw,56px); text-align: center; box-shadow: var(--sh-1); }
.newsletter h2 { margin-bottom: var(--s-3); }
.newsletter p { max-width: 48ch; margin: 0 auto var(--s-8); }
.newsletter-form { display: flex; gap: var(--s-3); max-width: 480px; margin-inline: auto; }
.newsletter-form input { flex: 1; font-family: inherit; font-size: 1rem; padding: 15px 18px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); outline: none; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.newsletter-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(107,78,158,.14); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- About: split + stand cards ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px,5vw,64px); align-items: center; }
.stand-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px,3vw,40px); box-shadow: var(--sh-2); }
.stand-card h3 { font-size: 1.2rem; margin-bottom: var(--s-4); }
.stand-list { display: grid; gap: var(--s-3); }
.stand-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.stand-list .x { color: var(--cta); font-weight: 700; flex: none; }
.stand-list.pos .c { color: #36B37E; font-weight: 700; flex: none; }

/* ---------- Team ---------- */
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-8); box-shadow: var(--sh-1); text-align: center; transition: transform var(--t), box-shadow var(--t); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.team-avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto var(--s-4); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.5rem; font-family: var(--font-display); background: var(--brand-grad); }
.team-card h3 { font-size: 1.2rem; margin-bottom: 2px; }
.team-role { display: block; color: var(--primary); font-weight: 600; font-size: .9rem; margin-bottom: var(--s-3); }
.team-card p { font-size: .95rem; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); align-items: start; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-8); box-shadow: var(--sh-1); position: relative; transition: transform var(--t), box-shadow var(--t); }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.price-card.featured { border-color: var(--primary); box-shadow: var(--sh-2); }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand-grad); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--r-pill); }
.price-card h3 { font-size: 1.2rem; margin-bottom: var(--s-3); }
.price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--ink); line-height: 1; margin-bottom: var(--s-2); }
.price span { font-size: 1rem; color: var(--muted); font-family: var(--font-body); }
.price-card > p { font-size: .92rem; margin-bottom: var(--s-6); }
.price-list { display: grid; gap: 10px; margin-bottom: var(--s-8); }
.price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.price-list li::before { content: "✓"; color: #36B37E; font-weight: 700; flex: none; }
.price-card .btn { width: 100%; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px,3vw,40px); box-shadow: var(--sh-2); }
.form-card h2 { margin-bottom: var(--s-6); font-size: 1.6rem; }
.field { position: relative; margin-bottom: var(--s-6); }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 22px 16px 10px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--surface); transition: border-color var(--t-fast), box-shadow var(--t-fast); outline: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field label {
  position: absolute; left: 16px; top: 16px; color: var(--muted); font-size: 1rem; pointer-events: none;
  transition: transform var(--t-fast), color var(--t-fast), font-size var(--t-fast); transform-origin: left top;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(107,78,158,.14); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label {
  transform: translateY(-9px) scale(.78); color: var(--primary);
}
.field .err-msg { display: none; color: var(--cta); font-size: .82rem; margin-top: 6px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--cta); box-shadow: 0 0 0 4px rgba(216,71,47,.12); }
.field.invalid .err-msg { display: block; }
.field.valid input, .field.valid textarea, .field.valid select { border-color: #36B37E; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: var(--s-4); }
.form-success { display: none; background: #E9F8F1; border: 1px solid #B7E6CF; color: #1B7A4B; padding: 18px 20px; border-radius: var(--r-md); margin-bottom: var(--s-6); }
.form-success.show { display: block; }
.form-success h3 { color: #1B7A4B; font-size: 1.15rem; margin-bottom: 4px; }
.form-success p { color: #2E7D55; }
.form-success .fs-ico { width: 40px; height: 40px; border-radius: 50%; background: #36B37E; display: grid; place-items: center; margin-bottom: var(--s-3); }

/* Contact info + map */
.contact-info .info-list { display: grid; gap: var(--s-6); margin-bottom: var(--s-8); }
.info-list li { display: flex; gap: var(--s-4); align-items: flex-start; }
.info-ico { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--bg-tint); color: var(--primary); display: grid; place-items: center; flex: none; }
.info-list strong { display: block; font-family: var(--font-display); }
.info-list a, .info-list span { color: var(--ink-soft); }
.map-ph { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-1); position: relative; aspect-ratio: 16/10; background: var(--bg-tint); }
.map-ph svg { width: 100%; height: 100%; }
.map-pin { animation: pin-pulse 2s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pin-pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- Legal pages ---------- */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px,5vw,64px); align-items: start; }
.legal-toc { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--sh-1); }
.legal-toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-body); margin-bottom: var(--s-4); color: var(--muted); }
.legal-toc ol { padding-left: 18px; display: grid; gap: 8px; color: var(--ink-soft); font-size: .92rem; }
.legal-toc a { color: var(--ink-soft); }
.legal-toc a:hover { color: var(--primary); }
.legal-body .intro { font-size: 1.15rem; color: var(--ink); margin-bottom: var(--s-6); }
.legal-callout { background: var(--bg-tint); border-left: 4px solid var(--primary); border-radius: var(--r-md); padding: var(--s-6); margin-bottom: var(--s-8); color: var(--ink-soft); }
.legal-body h2 { margin-top: var(--s-12); margin-bottom: var(--s-4); font-size: 1.5rem; scroll-margin-top: 100px; }
.legal-body p, .legal-body li { color: var(--ink-soft); margin-bottom: var(--s-3); }
.legal-body ul { list-style: disc; padding-left: 22px; margin-bottom: var(--s-4); }
.page-hero--sm { padding-bottom: var(--s-12); }

/* ---------- Article (single post) ---------- */
.article { padding-top: 120px; }
.article-head { margin-bottom: var(--s-8); }
.article-head h1 { font-size: clamp(2.2rem,4vw,3.4rem); margin: var(--s-3) 0; }
.article-dek { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: var(--s-6); }
.article-hero { max-width: 1100px; margin: 0 auto var(--s-12); aspect-ratio: 3/1; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-2); }
.article-hero svg { width: 100%; height: 100%; }
.article-body p { font-size: 1.12rem; margin-bottom: var(--s-6); color: var(--ink-soft); }
.article-body h2 { margin-top: var(--s-12); margin-bottom: var(--s-4); }
.article-body ul { list-style: disc; padding-left: 24px; margin-bottom: var(--s-6); display: grid; gap: 10px; }
.article-body ul li { color: var(--ink-soft); font-size: 1.08rem; }
.article-body blockquote { border-left: 4px solid var(--brand-1); padding: var(--s-2) var(--s-6); margin: var(--s-8) 0; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); font-style: italic; }
.article-cta { background: var(--bg-tint); border-radius: var(--r-lg); padding: var(--s-8); margin: var(--s-12) 0; text-align: center; }
.article-cta h3 { margin-bottom: var(--s-3); }
.article-cta p { margin-bottom: var(--s-6); }
.article-disclaimer { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--s-6); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #C9BEDD; padding-top: var(--s-24); position: relative; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-12); padding-bottom: var(--s-16); }
.footer-brand p { color: #B6AAD0; max-width: 34ch; margin: var(--s-4) 0 var(--s-6); }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--s-4); font-weight: 700; }
.footer-col a { display: block; color: #C9BEDD; padding: 6px 0; }
.footer-col a:hover { color: #fff; }
.footer-contact { display: grid; gap: 10px; font-size: .95rem; }
.footer-contact a, .footer-contact span { color: #C9BEDD; }
.socials { display: flex; gap: var(--s-3); margin-top: var(--s-6); }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background var(--t), transform var(--t); }
.socials a:hover { background: var(--brand-grad); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: var(--s-6); display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: .88rem; color: #9C90B8; }
.footer-bottom a { color: #9C90B8; } .footer-bottom a:hover { color: #fff; }
.footer-legal-links { display: flex; gap: var(--s-6); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-auto { margin-top: auto; }
.flex { display: flex; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0; z-index: 200; }
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.site-header.scrolled :focus-visible, .nav :focus-visible { outline-color: var(--primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-tall { grid-row: span 1; }
  .card-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .feature-post { grid-template-columns: 1fr; }
  .feature-thumb { min-height: 220px; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: var(--s-12) var(--s-6); }
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; z-index: 120; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 360px); flex-direction: column; align-items: flex-start;
    background: var(--surface); padding: 104px var(--s-8) var(--s-8); gap: 6px; box-shadow: var(--sh-3);
    transform: translateX(100%); transition: transform var(--t-slow); z-index: 110;
  }
  .nav-open .nav-links { transform: none; }
  .nav-links a { width: 100%; font-size: 1.1rem; padding: 12px 14px; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-cta .btn { display: none; }
  .nav-open .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(43,36,64,.4); z-index: 105; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); gap: var(--s-8) var(--s-6); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bento, .card-grid, .blog-grid { grid-template-columns: 1fr; }
  .steps, .stats-band { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: var(--s-8); }
  .hero-float { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .newsletter-form { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
