/* AI Answer Generator — RU redesign in the Clearbit reference language.
   Light near-achromatic canvas, midnight-navy ink, single electric-blue current.
   Tokens lifted from the attached Clearbit style reference. */

:root {
  /* Colors */
  --ink: #091135;          /* Midnight Ink — primary text/headings */
  --blue: #0f77ff;         /* Electric Blue — accent, focus, checks */
  --cobalt: #127ee3;       /* Cobalt Surface — primary action fill */
  --slate: #36394a;        /* Secondary muted text */
  --frost: #e1e9f0;        /* Hairline borders */
  --mist: #b1bbcd;         /* Soft shadow / secondary neutral */
  --paper: #ffffff;        /* Canvas */
  --lav: #f5f3ff;          /* Lavender Wash — section tint */
  --lav-2: #eef1ff;

  /* Typography */
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radii */
  --r-tag: 9999px;
  --r-card: 12px;
  --r-input: 8px;
  --r-btn: 8px;

  /* Layout */
  --maxw: 1200px;
  --gap: 64px;
  --hh: 76px; /* header height — single source of truth for fixed header + drawer offset */

  /* Focus / elevation */
  --ring: 0 0 0 1px rgb(15 119 255), 0 1px 2px 0 rgba(12,43,100,.32), 0 6px 16px 0 rgba(12,43,100,.32);
  --lift: 0 10px 40px -12px rgba(9,17,53,.16);
  --lift-lg: 0 24px 70px -18px rgba(9,17,53,.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  padding-top: var(--hh); /* fixed header is out of flow — reserve its height so content isn't hidden underneath */
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .008em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Global guard against horizontal overflow on mobile.
   `clip` (not `hidden`) does NOT create a scroll container → sticky header keeps working. */
html, body { overflow-x: clip; max-width: 100%; width: 100%; position: relative; }
/* Older iOS Safari ignores `overflow-x: clip` on the root — hard fallback so the
   page can never pan sideways there. `hidden` on <html> only (not body) keeps the
   sticky header working because the viewport stays the scroll container. */
@supports not (overflow: clip) { html { overflow-x: hidden; } }

img { max-width: 100%; height: auto; display: block; }
/* long words / headings must never force the line wider than the screen */
h1, h2, h3, h4, p, li, a, .display, .h-lg, .h-md { overflow-wrap: break-word; word-break: break-word; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography scale (tracking OPENS with size — the signature) ---------- */
h1,h2,h3,h4 { margin: 0; font-weight: 600; line-height: 1.15; color: var(--ink); }
.display { font-size: clamp(38px, 5.4vw, 62px); letter-spacing: .018em; line-height: 1.08; font-weight: 600; }
.h-lg   { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: .014em; line-height: 1.14; }
.h-md   { font-size: clamp(24px, 2.5vw, 32px); letter-spacing: .010em; }
.lead   { font-size: clamp(17px, 1.4vw, 19px); color: var(--slate); line-height: 1.55; font-weight: 400; letter-spacing: .004em; }
.muted  { color: var(--slate); }
.eyebrow{ font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-size: 16px; font-weight: 500;
  padding: 12px 20px; border-radius: var(--r-btn); border: 1px solid transparent; cursor: pointer;
  transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s, background .18s, border-color .18s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cobalt); color: #fff; box-shadow: 0 8px 22px -8px rgba(18,126,227,.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(18,126,227,.75); }
.btn-primary:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--frost); }
.btn-ghost:hover { border-color: var(--mist); transform: translateY(-2px); }
.btn-lg { padding: 15px 26px; font-size: 17px; }

/* ---------- Header ---------- */
/* Fixed (not sticky): a sticky header detaches and scrolls out of view once the
   drawer sets `overflow:hidden` on <body> — fixed is anchored to the viewport and
   stays put whether the menu is open or the page is scroll-locked. */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--frost); box-shadow: 0 1px 0 rgba(9,17,53,.03); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--hh); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .01em; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, #2b8bff, #0f77ff); color: #fff; font-weight: 700; box-shadow: 0 6px 16px -6px rgba(15,119,255,.8); }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--slate); letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { position: relative; font-size: 15px; font-weight: 500; color: var(--slate); transition: color .15s; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #2b8bff, var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform .22s cubic-bezier(.16,1,.3,1); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active,
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-links a.active::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--frost); border-radius: 8px; background: #fff; cursor: pointer; }

/* ---------- Section rhythm ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tint { background: linear-gradient(180deg, #fff 0%, var(--lav) 22%, var(--lav) 78%, #fff 100%); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; max-width: 640px; }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head .lead { margin-top: 16px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--lav); color: var(--ink);
  font-size: 13px; font-weight: 500; padding: 7px 15px; border-radius: var(--r-tag); border: 1px solid #e6e2ff; margin-bottom: 18px; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(15,119,255,.18); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(48px, 6vw, 84px); }
.hero::before { content: ""; position: absolute; top: -180px; right: -120px; width: 620px; height: 620px; z-index: 0;
  background: radial-gradient(circle at center, rgba(15,119,255,.20), rgba(43,139,255,.08) 42%, transparent 68%);
  filter: blur(6px); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(9,17,53,.05) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 60%); mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 60%); opacity: .5; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy .display { margin-top: 18px; }
.hero-copy .lead { margin-top: 20px; max-width: 500px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--slate); }
.hero-trust svg { color: var(--blue); flex: none; }

/* ---------- Product card (the answer generator itself — product-as-hero) ---------- */
.ask { position: relative; background: #fff; border: 1px solid var(--frost); border-radius: 16px; padding: 22px;
  box-shadow: var(--lift-lg); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .ask { animation: none; } }
.ask::before { content: ""; position: absolute; inset: -1px; border-radius: 17px; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(15,119,255,.5), transparent 40%, transparent 60%, rgba(43,139,255,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ask-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ask-head .tag { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.ask-dots { display: flex; gap: 6px; }
.ask-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--frost); display: block; }
.ask-field { display: flex; gap: 10px; border: 1px solid var(--frost); border-radius: var(--r-input); padding: 8px 8px 8px 14px;
  align-items: center; transition: box-shadow .18s, border-color .18s; }
.ask-field:focus-within { box-shadow: var(--ring); border-color: transparent; }
.ask-field input { flex: 1; border: 0; outline: 0; font-family: inherit; font-size: 15.5px; color: var(--ink); background: transparent; min-width: 0; }
.ask-field input::placeholder { color: var(--mist); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { font-size: 13px; color: var(--slate); background: var(--lav); border: 1px solid #e6e2ff; padding: 7px 12px;
  border-radius: var(--r-tag); cursor: pointer; transition: color .15s, border-color .15s, transform .15s; }
.chip:hover { color: var(--ink); border-color: var(--blue); transform: translateY(-1px); }
.ask-answer { margin-top: 16px; border-top: 1px dashed var(--frost); padding-top: 16px; }
.ask-answer.empty { color: var(--mist); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.ask-answer .who { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.ask-answer .who .av { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg,#2b8bff,#0f77ff);
  display: grid; place-items: center; color: #fff; font-size: 12px; }
.ask-answer p { margin: 0; font-size: 15px; color: var(--slate); line-height: 1.55; }
.ask-answer .cursor { display: inline-block; width: 8px; height: 17px; vertical-align: -3px; background: var(--blue); margin-left: 2px;
  animation: blink 1s steps(2) infinite; border-radius: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.thinking i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--mist); margin-right: 4px; animation: bounce 1.2s infinite; }
.thinking i:nth-child(2){ animation-delay: .15s; } .thinking i:nth-child(3){ animation-delay: .3s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); opacity:.5;} 30% { transform: translateY(-5px); opacity:1;} }
.ask-note { font-size: 11.5px; color: var(--mist); margin-top: 12px; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { text-align: center; }
.stat b { display: block; font-size: clamp(30px,3.2vw,40px); letter-spacing: .01em; }
.stat span { font-size: 14px; color: var(--slate); }

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--frost); border-radius: var(--r-card); padding: 26px 24px 24px; }
.step .n { counter-increment: step; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--lav); color: var(--blue); font-weight: 700; font-size: 17px; margin-bottom: 16px; border: 1px solid #e6e2ff; }
.step .n::before { content: "0" counter(step); }
.step h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: .006em; }
.step p { margin: 0; color: var(--slate); font-size: 15px; }
.step::after { content: ""; position: absolute; top: 46px; right: -13px; width: 26px; height: 2px; background: var(--frost); }
.step:last-child::after { display: none; }

/* ---------- Split (illustration + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { position: relative; }
.split-media .glow { position: absolute; inset: 4% 8%; z-index: 0; border-radius: 30%;
  background: radial-gradient(circle at 50% 45%, rgba(15,119,255,.22), transparent 62%); filter: blur(8px); }
.split-media img { position: relative; z-index: 1; width: 100%; height: auto; object-fit: contain; border-radius: var(--r-card); }
.split-body h2 { margin-bottom: 16px; }
.split-body .lead { margin-bottom: 20px; }
.mini-list { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.mini-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--slate); }
.mini-list svg { color: var(--blue); flex: none; margin-top: 3px; }

/* ---------- Feature bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6,1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--frost); border-radius: var(--r-card); padding: 26px; position: relative;
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s, border-color .2s; overflow: hidden; }
.card:hover { transform: translateY(-4px); box-shadow: var(--lift); border-color: #d3e0ef; }
.card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--lav); color: var(--blue); border: 1px solid #e6e2ff; }
.card h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: .006em; }
.card p { margin: 0; color: var(--slate); font-size: 14.5px; }
.card.span3 { grid-column: span 3; } .card.span2 { grid-column: span 2; } .card.span6 { grid-column: span 6; }
.card.feature { background: linear-gradient(135deg, #0b1a44 0%, #0f2a6b 100%); color: #fff; border-color: transparent; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; }
.card.feature h3, .card.feature p { color: #fff; }
.card.feature p { color: #c9d6f2; }
.card.feature .ico { background: rgba(255,255,255,.1); color: #7fb2ff; border-color: rgba(255,255,255,.14); }
.card.feature::after { content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -120px;
  background: radial-gradient(circle, rgba(15,119,255,.55), transparent 65%); pointer-events: none; }
.feature-visual { position: relative; z-index: 1; }
.answer-mini { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 16px; backdrop-filter: blur(4px); }
.answer-mini .row { height: 9px; border-radius: 5px; background: rgba(255,255,255,.14); margin-bottom: 9px; }
.answer-mini .row.b { background: linear-gradient(90deg, #2b8bff, rgba(43,139,255,.2)); width: 64%; }
.answer-mini .row.s { width: 88%; } .answer-mini .row.s2 { width: 72%; } .answer-mini .row.s3 { width: 40%; margin-bottom: 0; }

/* ---------- Tech chips grid ---------- */
.tech-head { max-width: 720px; margin: 0 auto; text-align: center; }
.tech-head .lead { margin-bottom: 0; }
.tech-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.tech { background: #fff; border: 1px solid var(--frost); border-radius: var(--r-card); padding: 28px 24px; transition: transform .2s, box-shadow .2s; }
.tech:hover { transform: translateY(-3px); box-shadow: var(--lift); }
.tech b { display: block; font-size: 15px; margin-bottom: 6px; letter-spacing: .006em; }
.tech span { font-size: 13.5px; color: var(--slate); }
.tech .k { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--lav);
  color: var(--blue); margin-bottom: 12px; font-weight: 700; font-size: 13px; border: 1px solid #e6e2ff; }

/* ---------- Use-case chips ---------- */
.uc-list { display: grid; gap: 14px; }
.uc { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--frost); border-radius: var(--r-card); background: #fff; transition: border-color .18s, transform .18s; }
.uc:hover { border-color: #d3e0ef; transform: translateX(3px); }
.uc .k { width: 40px; height: 40px; border-radius: 10px; background: var(--lav); color: var(--blue); display: grid; place-items: center; flex: none; border: 1px solid #e6e2ff; }
.uc b { display: block; font-size: 16px; margin-bottom: 3px; }
.uc span { font-size: 14px; color: var(--slate); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.qa { border: 1px solid var(--frost); border-radius: var(--r-card); background: #fff; overflow: hidden; }
.qa summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 600; font-size: 17px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; letter-spacing: .004em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ic { flex: none; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--frost); display: grid; place-items: center; color: var(--blue); transition: transform .2s, background .2s; }
.qa[open] summary .ic { transform: rotate(45deg); background: var(--lav); }
.qa .a { padding: 0 22px 20px; color: var(--slate); font-size: 15px; line-height: 1.6; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, #0b1a44 0%, #10306f 100%); color: #fff; border-radius: 20px; padding: clamp(40px,6vw,64px); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.cta-band::after { content: ""; position: absolute; width: 480px; height: 480px; left: 50%; top: -60%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(15,119,255,.5), transparent 62%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9d6f2; max-width: 560px; margin: 16px auto 26px; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { box-shadow: 0 14px 34px -8px rgba(0,0,0,.4); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.cta-band .btn-ghost:hover { border-color: rgba(255,255,255,.6); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--frost); padding: 56px 0 34px; background: linear-gradient(180deg,#fff,var(--lav)); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--slate); font-size: 14.5px; max-width: 300px; margin: 14px 0 0; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); margin-bottom: 14px; font-weight: 600; }
.foot-col a { display: block; color: var(--ink); font-size: 14.5px; padding: 6px 0; transition: color .15s; }
.foot-col a:hover { color: var(--blue); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--frost); color: var(--slate); font-size: 13.5px; gap: 16px; flex-wrap: wrap; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Tilt ---------- */
.tilt { transform-style: preserve-3d; transition: transform .3s cubic-bezier(.16,1,.3,1); }

/* ---------- Blog cards with covers ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--frost);
  border-radius: var(--r-card); overflow: hidden; transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s, border-color .22s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--lift); border-color: #d3e0ef; }
.post-cover { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--lav); }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 24px; flex: 1; }
.post-body h3 { font-size: 18px; line-height: 1.3; letter-spacing: .004em; margin: 0; }
.post-body p { margin: 0; color: var(--slate); font-size: 14px; line-height: 1.55; }
.post-date { margin-top: auto; padding-top: 12px; font-size: 12.5px; color: var(--slate); letter-spacing: .02em; }
.post-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue); margin-top: 2px; }
.post-card:hover .post-more svg { transform: translateX(3px); }
.post-more svg { transition: transform .2s; }

/* article cover banner */
.article-cover { width: 100%; max-width: 900px; margin: 26px auto 0; display: block; aspect-ratio: 16 / 9;
  object-fit: cover; border-radius: var(--r-card); border: 1px solid var(--frost); }

/* related posts under an article */
.related { border-top: 1px solid var(--frost); }
.related .rel-head { max-width: 760px; margin: 0 auto 26px; }
.related .rel-head h2 { font-size: 24px; margin: 0; }

/* ---------- Article / blog + legal prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 28px; letter-spacing: .008em; margin: 40px 0 14px; }
.prose h3 { font-size: 21px; margin: 28px 0 10px; }
.prose p { color: var(--slate); font-size: 16.5px; line-height: 1.7; margin: 0 0 16px; }
.prose ul { color: var(--slate); font-size: 16.5px; line-height: 1.7; padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--blue); }
/* buttons inside prose must keep their own contrast, not the blue link color */
.prose a.btn-primary { color: #fff; }
.prose a.btn-ghost { color: var(--ink); }
.prose p a.btn { margin-top: 4px; }
.page-hero { padding: clamp(48px,6vw,80px) 0 clamp(24px,4vw,40px); }
.crumbs { font-size: 13.5px; color: var(--slate); margin-bottom: 16px; }
.crumbs a { color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  /* grid/flex children default to min-width:auto and can refuse to shrink,
     pushing a track wider than the viewport — force them to shrink instead */
  .hero-grid > *, .split > *, .bento > *, .steps > *, .stats > *,
  .tech-grid > *, .posts > *, .foot-grid > *, .uc, .ask-field { min-width: 0; }
  .nav { gap: 10px; min-width: 0; }
  /* brand must be allowed to shrink and truncate — never the reason the row grows wider than the screen */
  .brand { flex: 0 1 auto; min-width: 0; overflow: hidden; }
  .brand > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-cta { flex: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy .lead, .hero-copy { max-width: none; }
  .split, .split.rev { grid-template-columns: 1fr; gap: 32px; }
  .split.rev .split-media { order: 0; }
  .steps { grid-template-columns: 1fr; } .step::after { display: none; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 28px 16px; }
  .tech-grid { grid-template-columns: repeat(2,1fr); }
  .posts { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .card.span3, .card.span2, .card.span6 { grid-column: span 6; }
  .card.feature { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: fixed; top: var(--hh); left: 0; right: 0; z-index: 45; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--frost); padding: 14px 24px 20px; gap: 4px; box-shadow: var(--lift);
    max-height: calc(100vh - var(--hh)); overflow-y: auto; }
  .nav-links.open a { padding: 12px 0; width: 100%; }
  .burger { display: grid; place-items: center; }
  /* CTA лежит в бургере, не в шапке */
  .nav-cta > .btn-primary { display: none; }
  .nav-drawer-cta { display: none; }
  .nav-links.open .nav-drawer-cta { display: inline-flex; justify-content: center; margin-top: 10px; padding: 12px 18px; width: 100%; }
  /* длинный подзаголовок бренда прячем — он распирал шапку */
  .brand small { display: none; }
}
/* backdrop за выехавшим меню — тап по нему закрывает бургер */
.nav-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(9,17,53,.30);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
@media (max-width: 960px) { .nav-backdrop.open { opacity: 1; visibility: visible; } }
body.nav-locked { overflow: hidden; }
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .posts { grid-template-columns: 1fr; }

  /* Hero fits a phone: larger centered display, tighter tracking, full-width stacked CTAs */
  .display { font-size: 36px; line-height: 1.14; letter-spacing: .004em; }
  .hero { padding-top: 28px; }
  /* весь первый блок выравниваем по центру на мобилке */
  .hero-copy { text-align: center; }
  .hero-copy .display { margin-left: auto; margin-right: auto; }
  .hero-copy .lead { font-size: 16px; margin-left: auto; margin-right: auto; }
  .hero-actions { flex-direction: column; gap: 10px; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { gap: 8px 18px; margin-top: 20px; justify-content: center; }

  /* Product card breathes less on narrow screens */
  .ask { padding: 16px; }
  .ask-field { padding: 6px 6px 6px 12px; gap: 8px; }
  .ask-field .btn { padding: 11px 13px; font-size: 14px; }
  .ask-head .tag { font-size: 11px; }
  .brand > span { font-size: 15px; }
}
@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  .display { font-size: 32px; }
}
