/* ==========================================================================
   optcatch.com — shared design system (site.css)
   One stylesheet for every page. Mobile-first; works from 360px wide.
   Build pages ONLY with the classes below. Copy header/footer from _partials.html.

   COMPONENT INVENTORY (component -> classes -> usage)
   --------------------------------------------------------------------------
   Tokens        :root custom properties (--coral, --ink, --grad, --radius ...)
   Utilities     .container (max 1160px)  .container--narrow (760px)  .container--wide
                 .sr-only  .skip-link  .text-center  .muted  .lead (large intro text)
                 .stack (vertical rhythm for children)  .mt-0 .mt-2 .mt-4 .mb-0
                 .grad-text (gradient-filled text)  .coral-text (accessible coral on white)
   Header        .site-header > .container.site-header__inner > .brand (.brand__icon,
                 .brand__word > .brand__opt + .brand__catch), .nav-toggle (hamburger,
                 aria-controls="site-nav"), nav#site-nav.site-nav > ul.site-nav__list >
                 li > a (aria-current="page" on the active one), .site-nav__cta (button).
                 JS (site.js) toggles .is-open on .site-nav + aria-expanded on the toggle.
   Buttons       .btn + one of .btn--primary (deep coral gradient, --grad-btn) | .btn--secondary (white,
                 bordered; light sections) | .btn--ghost (outlined, for DARK sections) |
                 .btn--dark (ink fill). Sizes: .btn--lg, .btn--sm, .btn--block (full width).
                 .btn-row = wrapping flex row of buttons.
   Sections      .section (light, default white) | .section--alt (soft grey bg) |
                 .section--dark (ink bg, light text, coral/magenta glows) |
                 .section--tight (less padding). Inside: .section__head (centered intro)
                 > .eyebrow (small caps label) + h2.section__title + p.section__lead
   Hero          .hero (dark, glows) > .container.hero__inner > .hero__copy (.eyebrow,
                 h1.hero__title, p.hero__tagline, .btn-row, p.hero__note) + .hero__media
                 (put a .shot inside). .page-hero = smaller dark hero for inner pages
                 (pricing/docs/legal): .page-hero > .container > .eyebrow + h1 + p.lead
   Badges/pills  .badge (neutral) .badge--pro (gradient "Pro") .badge--free (green)
                 .pill-list > li (rounded chips, e.g. form tools strip; .pill-list--dark
                 for use on dark backgrounds)
   Logo strip    .logo-strip > p.logo-strip__label + ul.pill-list
   Cards/grid    .grid (gap) + .grid--2 | .grid--3 | .grid--4 (responsive columns)
                 .card (white, rounded, shadow) .card--pro (gradient top border)
                 .card--dark (for dark sections) > .card__icon (emoji/svg square),
                 h3.card__title, p, ul.checklist
   Lists         ul.checklist (green ticks)  ul.checklist--pro (coral ticks)
                 ul.crosslist (grey dashes, "not included")
   Steps         ol.steps > li.step > .step__num? (auto-numbered via CSS counter)
                 h3.step__title + p
   Screenshots   figure.shot > .shot__bar (3 dots, browser chrome; aria-hidden) + img
                 + figcaption.shot__caption.  .shot--plain = no chrome.
                 .gallery (responsive grid of .shot figures)
   Feature row   .feature-row (text + .shot side by side; .feature-row--reverse)
   Comparison    .table-wrap (horizontal scroll on small screens) > table.compare
                 (thead th; first column = feature name; td.yes / td.no / td.pro
                 give ✓ / — / Pro marks via CSS — put sr text inside, e.g.
                 <td class="yes"><span class="sr-only">Included</span></td>)
                 tr.compare__group > th[colspan] for group headings.
   Pricing       .pricing-grid > .price-card (.price-card--featured highlights one)
                 > .price-card__name, .price-card__price (> .price-card__amount +
                 .price-card__period), p.price-card__desc, ul.checklist, .btn.btn--block,
                 .price-card__ribbon (e.g. "Most popular")
   FAQ           .faq > details.faq__item > summary.faq__q + .faq__a (p's inside)
   CTA band      .cta-band (gradient panel) > h2 + p + .btn-row
   Callouts      .callout (info, blue-grey) .callout--note (amber) .callout--warn (red)
                 .callout--pro (coral; Pro-only content). Optional p.callout__title first.
   Docs layout   .docs (grid: sidebar + article) > aside.docs__sidebar > nav.docs-nav
                 (> p.docs-nav__title + ul > li > a, aria-current="page" on active)
                 + article.docs__article.prose
                 .breadcrumbs (ol > li > a) above the article title.
                 .docs-pager (prev/next links: a.docs-pager__prev / a.docs-pager__next)
   Long-form     .prose — typography for docs & legal: h2/h3/h4, p, ul/ol, code, pre,
                 kbd, blockquote, table, hr, img. Headings get scroll-margin for the
                 sticky header.  .legal = .prose variant with numbered-section feel,
                 p.legal__meta (effective date line). .toc (on-page table of contents).
   Footer        .site-footer > .container > .site-footer__grid > .site-footer__brand +
                 .site-footer__col (h2.site-footer__title + ul) ; .site-footer__bottom
   404           .notfound (centered block inside .section)
   ========================================================================== */

/* ---------- Tokens ---------- */
/* Self-hosted Plus Jakarta Sans (SIL OFL 1.1, assets/fonts/OFL.txt) - no third-party font requests. */
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-display:swap;font-weight:200 800;src:url("/assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-display:swap;font-weight:200 800;src:url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

:root {
  --coral: #ff5a36;
  --coral-text: #c2381a;      /* accessible coral on white (AA) */
  --orange: #ff9a3d;
  --magenta: #e0246e;
  --grad: linear-gradient(135deg, #ff9a3d 0%, #ff5a36 50%, #e0246e 100%); /* decorative only, never under white text */
  --grad-btn: linear-gradient(135deg, #c64512 0%, #cc3a1c 50%, #c41d62 100%);       /* white text >= 4.9:1 at every point */
  --grad-btn-hover: linear-gradient(135deg, #b23c0c 0%, #b8321a 50%, #ac1755 100%); /* white text >= 5.9:1 */
  --grad-text: linear-gradient(135deg, #ff9a3d 0%, #ff5a36 50%, #ff4f8b 100%);      /* gradient text on dark sections (large text >= 3:1) */
  --grad-soft: linear-gradient(135deg, rgba(255,154,61,.12), rgba(255,90,54,.10) 50%, rgba(224,36,110,.12));

  --ink: #14161f;
  --ink-2: #1d2030;
  --ink-3: #2a2e40;
  --text: #14161f;
  --text-2: #4a4f63;          /* secondary text on white (AA) */
  --text-on-dark: #f3f4f8;
  --text-on-dark-2: #b9bdcc;  /* secondary text on ink (AA) */

  --bg: #ffffff;
  --bg-alt: #f6f6f9;
  --line: #e4e5ec;
  --line-dark: rgba(255,255,255,.12);

  --green: #12805c;
  --green-bg: #e8f6f0;
  --blue-bg: #eef2fb;
  --blue-line: #b9c8ec;
  --amber-bg: #fff6e5;
  --amber-line: #f3c56b;
  --red-bg: #fdecec;
  --red-line: #f0a3a3;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(20,22,31,.06), 0 1px 3px rgba(20,22,31,.06);
  --shadow: 0 2px 6px rgba(20,22,31,.05), 0 12px 32px rgba(20,22,31,.08);
  --shadow-lg: 0 24px 64px rgba(10,10,20,.35);

  --header-h: 68px;
  --gutter: 20px;
  --focus: 0 0 0 3px #fff, 0 0 0 6px #ff5a36;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--coral-text); text-underline-offset: 3px; }
a:hover { color: #9e2c12; }
strong { font-weight: 700; }
code, kbd, pre { font-family: var(--mono); font-size: .9em; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(255,90,54,.25); }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 760px; }
.container--wide { max-width: 1320px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 1000;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }
.text-center { text-align: center; }
.muted { color: var(--text-2); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--text-2); }
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0 !important; } .mt-2 { margin-top: 1rem !important; } .mt-4 { margin-top: 2rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.coral-text { color: var(--coral-text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20,22,31,.92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-on-dark);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex-shrink: 0; }
.brand__icon { width: 36px; height: 36px; }
.brand__word { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.brand__opt { color: #fff; }
.brand__catch { color: var(--coral); }
.brand:hover { color: inherit; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-dark); border-radius: 10px;
  background: transparent; color: #fff; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ink); border-bottom: 1px solid var(--line-dark);
  padding: 8px var(--gutter) 20px; box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  display: block; padding: 12px 4px; color: var(--text-on-dark); text-decoration: none;
  font-weight: 600; border-bottom: 1px solid var(--line-dark);
}
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { color: #fff; }
.site-nav__list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--coral); padding-left: 12px; }
.site-nav__cta { margin-top: 16px; width: 100%; }
.no-js .site-header__inner { flex-wrap: wrap; }
.no-js .nav-toggle { display: none; }
.no-js .site-nav { display: block; position: static; width: 100%; padding-bottom: 12px; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: flex; align-items: center; gap: 28px; position: static;
    background: none; border: 0; padding: 0; box-shadow: none;
  }
  .site-nav__list { display: flex; gap: 4px; }
  .site-nav__list a { border: 0; padding: 8px 12px; border-radius: 8px; color: var(--text-on-dark-2); }
  .site-nav__list a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .site-nav__list a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--coral); padding-left: 12px; border-radius: 0; color: #fff; }
  .site-nav__cta { margin-top: 0; width: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn--primary {
  background: var(--grad-btn); color: #fff;
  box-shadow: 0 6px 18px rgba(255,90,54,.35);
  text-shadow: 0 1px 1px rgba(120,20,10,.35);
}
.btn--primary:hover { background: var(--grad-btn-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255,90,54,.45); }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--secondary:hover { color: var(--ink); border-color: #c9cbd6; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { color: #fff; background: var(--ink-3); }
.btn--lg { min-height: 54px; padding: 15px 28px; font-size: 1.05rem; }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: .92rem; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row--center { justify-content: center; }
@media (max-width: 480px) { .btn-row > .btn { width: 100%; } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 40px 0; }
.section--dark, .hero, .page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(600px 420px at 8% 20%, rgba(255,90,54,.28), transparent 70%),
    radial-gradient(680px 480px at 95% 0%, rgba(224,36,110,.30), transparent 70%),
    var(--ink);
  color: var(--text-on-dark);
}
.section--dark .muted, .section--dark .lead, .hero .lead, .page-hero .lead,
.section--dark .section__lead { color: var(--text-on-dark-2); }
.section--dark a:not(.btn), .page-hero a:not(.btn), .hero a:not(.btn) { color: #ffb39e; }
.section__head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section__title { margin-bottom: .35em; }
.section__lead { font-size: 1.1rem; color: var(--text-2); margin: 0; }
.eyebrow {
  display: inline-block; margin: 0 0 12px; font-size: .8rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--coral-text);
}
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #ff9a7d; }
@media (min-width: 900px) { .section { padding: 96px 0; } .section--tight { padding: 56px 0; } }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 64px; }
.hero__inner { display: grid; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(2rem, 6.5vw, 3.25rem); letter-spacing: -0.035em; margin-bottom: .35em; color: #fff; }
.hero__tagline { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--text-on-dark-2); max-width: 36em; margin-bottom: 28px; }
.hero__note { margin: 18px 0 0; font-size: .92rem; color: var(--text-on-dark-2); }
.hero__note strong { color: #fff; }
.hero__media { min-width: 0; }
@media (min-width: 1000px) {
  .hero { padding: 88px 0 104px; }
  .hero__inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 48px; }
}
.page-hero { padding: 56px 0 48px; text-align: center; }
.page-hero h1 { color: #fff; }
.page-hero .lead { max-width: 680px; margin: 0 auto; }
.page-hero--left { text-align: left; }
.page-hero--left .lead { margin: 0; }
@media (min-width: 900px) { .page-hero { padding: 80px 0 64px; } }

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 800; letter-spacing: .04em; line-height: 1.6;
  background: var(--bg-alt); color: var(--text-2); border: 1px solid var(--line);
  vertical-align: middle; white-space: nowrap;
}
.badge--pro { background: var(--grad-btn); color: #fff; border-color: transparent; text-transform: uppercase; text-shadow: 0 1px 1px rgba(120,20,10,.3); }
.badge--free { background: var(--green-bg); color: var(--green); border-color: #bfe5d5; text-transform: uppercase; }
h2 .badge, h3 .badge, h4 .badge { margin-left: 6px; position: relative; top: -2px; }
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill-list > li {
  padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 700; font-size: .95rem; color: var(--ink); box-shadow: var(--shadow-sm);
}
.pill-list--dark > li { background: rgba(255,255,255,.06); border-color: var(--line-dark); color: var(--text-on-dark); box-shadow: none; }
.logo-strip { text-align: center; }
.logo-strip__label { font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 18px; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) {
  .grid { gap: 24px; }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card > :last-child { margin-bottom: 0; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 14px; background: var(--grad-soft); color: var(--coral-text); margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; }
.card__title { font-size: 1.15rem; margin-bottom: .45em; }
.card p { color: var(--text-2); }
.card--pro { border-top: 0; padding-top: 30px; overflow: hidden; }
.card--pro::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.card--dark { background: rgba(255,255,255,.04); border-color: var(--line-dark); box-shadow: none; color: var(--text-on-dark); }
.card--dark p { color: var(--text-on-dark-2); }
.card--dark .card__icon { background: rgba(255,90,54,.16); color: #ff9a7d; }
.card--dark .card__title { color: #fff; }

/* ---------- Lists ---------- */
.checklist, .crosslist { list-style: none; margin: 0 0 1em; padding: 0; }
.checklist > li, .crosslist > li { position: relative; padding-left: 28px; margin: 0 0 8px; }
.checklist > li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2312805c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checklist--pro > li::before {
  background-color: rgba(255,90,54,.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23c2381a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.section--dark .checklist--pro > li::before, .card--dark .checklist--pro > li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23ff9a7d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-color: rgba(255,90,54,.18);
}
.crosslist > li { color: var(--text-2); }
.crosslist > li::before { content: ""; position: absolute; left: 4px; top: .8em; width: 10px; height: 2px; background: #a3a7b7; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.step {
  counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm);
}
.step::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; background: var(--grad-btn); color: #fff;
  font-weight: 800; font-size: 1.1rem; margin-bottom: 14px;
}
.step__title { font-size: 1.15rem; }
.step p { color: var(--text-2); margin: 0; }
.step code { font-size: .85em; }

/* ---------- Screenshot frame ---------- */
.shot { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot__bar { display: flex; gap: 6px; align-items: center; height: 30px; padding: 0 12px; background: #eceef3; border-bottom: 1px solid var(--line); }
.shot__bar span { width: 10px; height: 10px; border-radius: 50%; background: #c9ccd6; }
.shot__bar span:nth-child(1) { background: #ff6b57; }
.shot__bar span:nth-child(2) { background: #ffbd3d; }
.shot__bar span:nth-child(3) { background: #2bc76b; }
.shot img { width: 100%; height: auto; }
.shot__caption { padding: 14px 18px 16px; font-size: .92rem; color: var(--text-2); border-top: 1px solid var(--line); background: #fff; }
.shot__caption strong { color: var(--text); }
.shot--plain .shot__bar { display: none; }
.hero .shot, .section--dark .shot { border-color: rgba(255,255,255,.14); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.04); }
.hero .shot__bar { background: #262a3a; border-bottom-color: rgba(255,255,255,.08); }
.gallery { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) { .gallery > .shot:first-child:nth-last-child(odd) { grid-column: 1 / -1; } }

/* Feature row: copy + screenshot side by side */
.feature-row { display: grid; gap: 32px; align-items: center; }
.feature-row + .feature-row { margin-top: 64px; }
@media (min-width: 940px) {
  .feature-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; }
  .feature-row--reverse > :first-child { order: 2; }
}

/* ---------- Comparison table ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.table-wrap:focus-visible { outline: 3px solid var(--coral); }
.compare { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--bg-alt); font-weight: 800; font-size: .9rem; white-space: nowrap; }
.compare thead th:not(:first-child), .compare td { text-align: center; width: 22%; }
.compare tbody th { font-weight: 600; }
.compare tbody th small { display: block; font-weight: 400; color: var(--text-2); font-size: .85em; margin-top: 2px; }
.compare tr:last-child > * { border-bottom: 0; }
.compare__group > th { background: #fbfbfd; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--coral-text); text-align: left !important; }
.compare td.yes::before, .compare td.pro::before, .compare td.no::before {
  content: ""; display: inline-block; width: 22px; height: 22px; border-radius: 50%; vertical-align: middle;
}
.compare td.yes::before {
  background: var(--green-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2312805c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.compare td.pro::before {
  background: rgba(255,90,54,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23c2381a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.compare td.no::before { width: 14px; height: 2px; border-radius: 1px; background: #a3a7b7; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 720px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .pricing-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pricing-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.price-card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm);
}
.price-card .checklist { flex: 1; margin-bottom: 24px; }
.price-card--featured { border: 2px solid var(--coral); box-shadow: 0 18px 48px rgba(255,90,54,.18); }
.price-card__ribbon {
  position: absolute; top: -13px; left: 28px; padding: 3px 12px; border-radius: 999px;
  background: var(--grad-btn); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.price-card__name { font-size: 1.15rem; font-weight: 800; margin: 0 0 6px; }
.price-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.price-card__amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.price-card__period { color: var(--text-2); font-weight: 600; }
.price-card__desc { color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.faq__item[open] { border-color: #d6d8e1; }
.faq__q {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; border-radius: var(--radius);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--coral-text); border-bottom: 2.5px solid var(--coral-text);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq__item[open] > .faq__q::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__q:focus-visible { outline-offset: -3px; }
.faq__a { padding: 0 20px 18px; color: var(--text-2); }
.faq__a > :last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 44px 24px; text-align: center;
  background:
    radial-gradient(500px 300px at 0% 0%, rgba(255,154,61,.35), transparent 70%),
    radial-gradient(500px 300px at 100% 100%, rgba(224,36,110,.40), transparent 70%),
    var(--ink);
  color: var(--text-on-dark);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--text-on-dark-2); max-width: 600px; margin: 0 auto 24px; }
.cta-band .btn-row { justify-content: center; }
@media (min-width: 900px) { .cta-band { padding: 64px 48px; } }

/* ---------- Callouts ---------- */
.callout {
  margin: 1.5em 0; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--blue-line);
  border-left-width: 4px; background: var(--blue-bg); color: var(--text);
}
.callout > :last-child { margin-bottom: 0; }
.callout__title { font-weight: 800; margin-bottom: .35em; }
.callout--note { background: var(--amber-bg); border-color: var(--amber-line); }
.callout--warn { background: var(--red-bg); border-color: var(--red-line); }
.callout--pro { background: #fff4f0; border-color: #ffc3b2; border-left-color: var(--coral); }

/* ---------- Docs layout ---------- */
.docs { display: grid; gap: 32px; padding: 32px 0 72px; }
@media (min-width: 960px) { .docs { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 48px; } }
.docs__sidebar { min-width: 0; }
@media (min-width: 960px) { .docs__sidebar { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; } }
.docs-nav { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.docs-nav__title { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin: 0 0 8px; }
.docs-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.docs-nav ul:last-child { margin-bottom: 0; }
.docs-nav a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.docs-nav a:hover { background: #fff; color: var(--coral-text); }
.docs-nav a[aria-current="page"] { background: #fff; color: var(--coral-text); box-shadow: inset 3px 0 0 var(--coral); }
.docs__article { min-width: 0; max-width: 760px; }
.breadcrumbs ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--text-2); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #a3a7b7; }
.breadcrumbs a { color: var(--text-2); }
.docs-pager { display: grid; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 600px) { .docs-pager { grid-template-columns: 1fr 1fr; } }
.docs-pager a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); font-weight: 700; }
.docs-pager a:hover { border-color: var(--coral); color: var(--coral-text); }
.docs-pager a small { display: block; font-weight: 600; color: var(--text-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.docs-pager__next { text-align: right; grid-column: -2 / -1; }

/* ---------- Long-form (.prose / .legal) ---------- */
.prose { font-size: 1.03rem; line-height: 1.75; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: .4em; }
.prose h2 { font-size: clamp(1.4rem, 3.4vw, 1.75rem); margin: 2em 0 .6em; padding-top: .2em; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h4 { font-size: 1.02rem; margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose li > ul, .prose li > ol { margin: .4em 0 0; }
.prose li::marker { color: var(--coral-text); }
.prose code {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em;
  font-size: .88em; overflow-wrap: anywhere;
}
.prose pre {
  background: var(--ink); color: #e9ebf3; border-radius: var(--radius); padding: 16px 18px; overflow-x: auto;
  line-height: 1.55; font-size: .88rem;
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }
.prose kbd { background: #fff; border: 1px solid #c9ccd6; border-bottom-width: 2px; border-radius: 5px; padding: .05em .4em; font-size: .85em; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--line); color: var(--text-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .9rem; color: var(--text-2); margin-top: 8px; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); font-weight: 700; }
.prose .shot { margin: 1.6em 0; }
.prose .shot img { border: 0; border-radius: 0; }
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 1.35rem; padding-top: 1em; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; }
.legal__meta { font-size: .92rem; color: var(--text-2); padding: 12px 16px; background: var(--bg-alt); border-radius: var(--radius-sm); }
.toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 2em; }
.toc__title { font-weight: 800; margin: 0 0 8px; }
.toc ol, .toc ul { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-on-dark-2); padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--text-on-dark); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer__brand { grid-column: 1 / -1; }
.site-footer__brand p { margin: 14px 0 0; max-width: 30em; }
@media (min-width: 820px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: auto; }
}
.site-footer__title { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: .86rem; }
.site-footer__bottom p { margin: 0; }

/* ---------- 404 ---------- */
.notfound { max-width: 620px; margin: 0 auto; text-align: center; padding: 24px 0; }
.notfound__code { font-size: clamp(4rem, 18vw, 8rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; margin: 0 0 8px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .btn:hover { transform: none; }
}

/* === pricing additions === */
/* Long placeholder/currency strings must wrap inside narrow 4-column cards. */
.price-card__amount { overflow-wrap: anywhere; }
/* Pro badge inside comparison row headings sits inline before the <small> line. */
.compare tbody th .badge { margin-left: 6px; vertical-align: 1px; }
/* .compare--fit: a 3-column (feature / Free / Pro) table that fits phone widths instead of
   hiding the Pro column off-screen; .table-wrap still scrolls if content ever overflows. */
@media (max-width: 600px) {
  .compare--fit { min-width: 0; font-size: .88rem; }
  /* break only between words ("Unlimited" must never split mid-word); hyphenate long words as a last resort */
  .compare--fit td { font-size: .82rem; overflow-wrap: normal; word-break: normal; hyphens: auto; }
  .compare--fit th, .compare--fit td { padding: 12px 6px; }
  .compare--fit th:first-child { padding-left: 14px; }
  .compare--fit thead th:not(:first-child), .compare--fit td { width: 26%; }
}

/* === docs additions === */
/* Cards and pill lists placed inside .prose keep their component look. */
.prose .card__title { font-size: 1.15rem; margin: 0 0 .45em; padding-top: 0; }
.prose .card__title a { text-decoration: none; }
.prose .card__title a:hover { text-decoration: underline; }
.prose .grid { margin: 0 0 1.6em; }
.prose .pill-list { padding-left: 0; justify-content: flex-start; margin: 0 0 1.1em; }
.prose .pill-list > li { margin: 0; font-size: .9rem; }
/* .docs sets "padding: 32px 0 72px", which wipes .container's side gutter. */
.container.docs { padding-left: var(--gutter); padding-right: var(--gutter); }
/* Below the two-column breakpoint the sidebar becomes a compact wrapping row of chips. */
@media (max-width: 959px) {
  .docs { gap: 24px; padding-top: 20px; }
  .docs-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
  .docs-nav__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .docs-nav ul, .docs-nav ul:last-child { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
  .docs-nav a { padding: 5px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; }
  .docs-nav a[aria-current="page"] { box-shadow: none; border-color: var(--coral); }
}
/* Breadcrumbs sit inside .prose; cancel the prose list indent. */
.prose .breadcrumbs ol { padding-left: 0; margin-bottom: 16px; }
.prose .breadcrumbs li { margin-bottom: 0; }
