/* Eatin POS — marketing + docs site
   Palette mirrors the app: ember on warm stone (src/config/palette.ts). */

:root {
  --ember: #C2410C;
  --ember-hover: #9A3412;
  --ember-active: #7C2D12;
  --ember-soft: #FFF1E7;
  --amber: #F59E0B;
  --amber-text: #B45309;

  --ink: #1C1917;
  --strong: #44403C;
  --muted: #78716C;
  --soft: #A8A29E;
  --line: #EADFD3;
  --line-strong: #DCCFC0;
  --page: #FBF7F1;
  --card: #FDFBF7;

  --ok: #15803D;
  --err: #EF4444;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, .05);
  --shadow: 0 4px 16px rgba(28, 25, 23, .07);
  --shadow-lg: 0 18px 48px rgba(28, 25, 23, .13);
  --max: 1180px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember); text-decoration: none; }
a:hover { color: var(--ember-hover); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.021em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.22rem; }
/* A heading that sits at h2 in the document outline but reads as an h3.
   Lets each page keep one h1 and skip no levels without changing the look. */
.h-sub { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1.05em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 251, 247, .87);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 26px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.06rem; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
/* The cloche mark from the product's own login theme. */
.brand-mark { width: 32px; height: 32px; flex: none; display: block; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a:not(.btn) {
  color: var(--strong); font-size: .93rem; font-weight: 500;
  padding: 7px 12px; border-radius: 8px;
}
.nav-links a:not(.btn):hover { background: var(--ember-soft); color: var(--ember); text-decoration: none; }
.nav-links a.active { color: var(--ember); background: var(--ember-soft); }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 7px 10px; cursor: pointer; color: var(--ink); font-size: 1rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: .15s ease; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: var(--ember-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ember); color: var(--ember); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sm { padding: 7px 14px; font-size: .86rem; }

/* ── Bits ───────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ember-soft); color: var(--ember-active);
  border: 1px solid #FBD8BF; border-radius: 999px;
  padding: 5px 13px; font-size: .8rem; font-weight: 600; letter-spacing: .01em;
}
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--ember); margin-bottom: 10px; }
.lede { font-size: 1.14rem; color: var(--strong); }
.muted { color: var(--muted); }
.center { text-align: center; }
.tag {
  display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: .76rem;
  font-weight: 600; border: 1px solid var(--line-strong); background: var(--card); color: var(--strong);
}
.tag-ember { background: var(--ember-soft); border-color: #FBD8BF; color: var(--ember-active); }
.tag-ok { background: #ECFDF3; border-color: #BBF7D0; color: var(--ok); }

section { padding: 76px 0; }
section.tight { padding: 52px 0; }
.section-head { max-width: 700px; margin: 0 auto 46px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.04rem; margin: 0; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card h3, .card .h-sub { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; color: inherit; transition: .16s ease; }
.card-link:hover { text-decoration: none; color: inherit; border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }

.icon-box {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--ember-soft); color: var(--ember); margin-bottom: 14px;
}
.icon-box svg { width: 21px; height: 21px; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 74px 0 60px;
  background:
    radial-gradient(1100px 460px at 50% -12%, #FFF1E7 0%, rgba(255,241,231,0) 62%),
    var(--page);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 810px; margin: 0 auto; text-align: center; }
.hero h1 { margin-top: 16px; }
.hero h1 em { font-style: normal; color: var(--ember); }
.hero .lede { font-size: 1.2rem; max-width: 660px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: .87rem; color: var(--muted); }

/* ── Screenshot frame ───────────────────────────────────── */
.shot {
  border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden;
  background: var(--card); box-shadow: var(--shadow);
}
.shot-lg { box-shadow: var(--shadow-lg); border-radius: 16px; }
.shot-bar {
  display: flex; align-items: center; gap: 7px; padding: 9px 14px;
  background: #F4EDE4; border-bottom: 1px solid var(--line);
}
.shot-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.shot-url {
  margin-left: 10px; font-size: .74rem; color: var(--muted); font-family: var(--mono);
  background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px;
}
.shot img { width: 100%; height: auto; }
.shot-caption { padding: 14px 18px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); background: var(--card); }
.shot-caption strong { color: var(--ink); display: block; font-size: .96rem; margin-bottom: 2px; }
.hero-shot { margin-top: 52px; }

.shot-placeholder {
  aspect-ratio: 16/10; display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(45deg, #FBF7F1, #FBF7F1 12px, #F6F0E7 12px, #F6F0E7 24px);
  color: var(--muted); font-size: .9rem; padding: 20px;
}

/* ── Feature list ───────────────────────────────────────── */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; font-size: .97rem; }
.check {
  flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ember-soft);
  color: var(--ember); display: grid; place-items: center; font-size: 11px; font-weight: 800; margin-top: 3px;
}

/* The app screens are dense, so the screenshot gets the larger half. */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: center; }
.split.flip .split-text { order: 2; }

.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: 8px; }
.step-no {
  width: 34px; height: 34px; border-radius: 10px; background: var(--ember); color: #fff;
  display: grid; place-items: center; font-weight: 700; margin-bottom: 13px;
}

/* ── Free banner ────────────────────────────────────────── */
.free-band {
  background: linear-gradient(135deg, var(--ember), var(--ember-active));
  color: #fff; border-radius: var(--radius-lg); padding: 46px 40px; text-align: center;
}
.free-band h2 { color: #fff; }
.free-band p { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 22px; }
.free-band .btn-ghost { background: #fff; color: var(--ember-active); border-color: #fff; }
.free-band .btn-ghost:hover { background: #FFF1E7; color: var(--ember-active); }

.price-card {
  background: var(--card); border: 2px solid var(--ember); border-radius: var(--radius-lg);
  padding: 38px; box-shadow: var(--shadow); text-align: center; max-width: 480px; margin: 0 auto;
}
.price { font-size: 3.6rem; font-weight: 800; color: var(--ember); line-height: 1; letter-spacing: -.03em; }
.price-sub { color: var(--muted); margin-bottom: 24px; }

/* ── Docs layout ────────────────────────────────────────── */
.docs-shell { display: grid; grid-template-columns: 258px 1fr; gap: 44px; padding: 40px 0 80px; align-items: start; }
.docs-nav { position: sticky; top: 86px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 8px; }
.docs-nav-group { margin-bottom: 22px; }
.docs-nav-group h4 {
  font-size: .71rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--soft); margin: 0 0 9px; font-weight: 700;
}
.docs-nav a {
  display: block; padding: 6px 11px; border-radius: 8px; font-size: .89rem;
  color: var(--strong); line-height: 1.45; border-left: 2px solid transparent;
}
.docs-nav a:hover { background: var(--ember-soft); color: var(--ember); text-decoration: none; }
.docs-nav a.active { background: var(--ember-soft); color: var(--ember); font-weight: 600; border-left-color: var(--ember); }

.docs-body { min-width: 0; max-width: 780px; }
.docs-body h1 { font-size: 2.3rem; margin-bottom: .3em; }
.docs-body h2 {
  font-size: 1.5rem; margin-top: 2.1em; padding-top: .55em; border-top: 1px solid var(--line);
}
.docs-body h3 { font-size: 1.1rem; margin-top: 1.7em; }
.docs-body ul, .docs-body ol { padding-left: 22px; margin: 0 0 1.1em; }
.docs-body li { margin-bottom: .42em; }
.docs-body code {
  font-family: var(--mono); font-size: .855em; background: #F4EDE4;
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--ember-active);
}
.docs-body pre {
  background: #2B2522; color: #F5EFE8; padding: 16px 18px; border-radius: 10px;
  overflow-x: auto; font-family: var(--mono); font-size: .86rem; line-height: 1.55;
}
.docs-body pre code { background: none; border: none; color: inherit; padding: 0; }
.docs-body blockquote {
  margin: 0 0 1.1em; padding: 13px 18px; border-left: 3px solid var(--ember);
  background: var(--ember-soft); border-radius: 0 10px 10px 0; color: var(--strong);
}
.docs-body blockquote p:last-child { margin-bottom: 0; }
.docs-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .92rem; }
.docs-body th {
  text-align: left; background: var(--ember-soft); padding: 10px 13px;
  border: 1px solid var(--line); font-weight: 600; color: var(--ember-active); white-space: nowrap;
}
.docs-body td { padding: 10px 13px; border: 1px solid var(--line); vertical-align: top; }
.docs-body tbody tr:nth-child(even) { background: rgba(234, 223, 211, .22); }
.table-scroll { overflow-x: auto; margin-bottom: 1.4em; }
.table-scroll table { margin-bottom: 0; }

.doc-lede { font-size: 1.1rem; color: var(--strong); margin-bottom: 1.6em; }
/* The meta row already draws a rule; don't stack a second one on the first heading. */
.doc-meta + h2, .doc-lede + h2 { border-top: none; padding-top: 0; margin-top: 1.2em; }
.doc-meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }

.doc-nav-foot {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 56px;
  padding-top: 26px; border-top: 1px solid var(--line); font-size: .93rem;
}
.doc-nav-foot .muted { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }

.callout { border: 1px solid var(--line-strong); border-radius: 10px; padding: 15px 18px; margin: 0 0 1.2em; background: var(--card); }
.callout strong:first-child { color: var(--ember-active); }
.callout-warn { background: #FFFBEB; border-color: #FDE68A; }
.callout-warn strong:first-child { color: var(--amber-text); }

/* ── Gallery ────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.shot-zoom { display: block; position: relative; }
.shot-zoom::after {
  content: "⤢ Full size"; position: absolute; right: 10px; bottom: 10px;
  background: rgba(28, 25, 23, .82); color: #fff; font-size: .72rem; font-weight: 600;
  padding: 4px 10px; border-radius: 6px; opacity: 0; transition: opacity .15s ease;
}
.shot-zoom:hover::after { opacity: 1; }
.gallery .shot { height: 100%; display: flex; flex-direction: column; }
/* Never let flex stretch a screenshot: hold the real 16:10 ratio and let the
   caption take the slack instead. */
.gallery .shot > .shot-zoom, .gallery .shot > img { flex: none; }
.gallery .shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.gallery .shot-caption { flex: 1; }

/* ── FAQ ────────────────────────────────────────────────── */
details.faq {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  padding: 16px 20px; margin-bottom: 12px;
}
details.faq[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
details.faq summary {
  cursor: pointer; font-weight: 600; list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 14px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--ember); font-size: 1.3rem; font-weight: 400; flex: none; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 12px 0 0; color: var(--strong); font-size: .96rem; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--card); border-top: 1px solid var(--line); padding: 54px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 36px; }
.footer-grid h5 { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--soft); margin: 0 0 13px; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--strong); font-size: .91rem; }
.footer-grid a:hover { color: var(--ember); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: var(--muted);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(20px); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.flip .split-text { grid-template-columns: 1fr; order: 0; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
  .docs-shell { grid-template-columns: 1fr; gap: 0; }
  .docs-nav {
    position: static; max-height: none; margin-bottom: 32px; padding: 18px;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wa-bubble { right: 16px; bottom: 16px; padding: 12px; }
  .wa-bubble svg { width: 24px; height: 24px; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; background: var(--card); border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px; gap: 2px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { margin-top: 8px; }
  .nav-toggle { display: block; }
  .g2, .g3, .g4, .gallery { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .free-band { padding: 34px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ── WhatsApp chat bubble ───────────────────────────────── */
.wa-bubble {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center;
  background: #25D366; color: #fff;
  border-radius: 999px; padding: 14px;
  box-shadow: 0 6px 20px rgba(18,140,70,.34);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.wa-bubble:hover,
.wa-bubble:focus-visible {
  background: #1EBE57; color: #fff; text-decoration: none;
  transform: translateY(-2px); box-shadow: 0 10px 26px rgba(18,140,70,.42);
}
.wa-bubble svg { width: 26px; height: 26px; fill: currentColor; flex: none; display: block; }
.wa-bubble span {
  max-width: 0; padding-left: 0; overflow: hidden; white-space: nowrap;
  font-weight: 600; font-size: .92rem; opacity: 0;
  transition: max-width .25s ease, padding-left .25s ease, opacity .18s ease;
}
.wa-bubble:hover span,
.wa-bubble:focus-visible span { max-width: 180px; padding-left: 10px; padding-right: 4px; opacity: 1; }

@media print {
  .site-header, .site-footer, .docs-nav, .doc-nav-foot, .wa-bubble { display: none; }
  body { background: #fff; }
}

/* ── Motion ─────────────────────────────────────────────────
   Everything here is gated on .js (set by an inline script in
   <head>) so the page is fully visible when scripting is off,
   and switched off entirely under prefers-reduced-motion. */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .66s cubic-bezier(.22, .61, .36, 1),
    transform .66s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="fade"]  { transform: none; }
.js [data-reveal="left"]  { transform: translateX(-26px); }
.js [data-reveal="right"] { transform: translateX(26px); }
/* A right-bound element mid-animation would otherwise widen the page. */
main { overflow-x: clip; }
.js [data-reveal="zoom"]  { transform: translateY(28px) scale(.972); }
.js [data-reveal].is-in   { opacity: 1; transform: none; }

/* Checklist ticks trickle in behind the block they belong to. */
.js [data-reveal] .checklist li {
  opacity: 0; transform: translateY(9px);
  transition: opacity .42s ease, transform .42s ease;
}
.js [data-reveal].is-in .checklist li { opacity: 1; transform: none; }
.js [data-reveal].is-in .checklist li:nth-child(1) { transition-delay: .20s; }
.js [data-reveal].is-in .checklist li:nth-child(2) { transition-delay: .28s; }
.js [data-reveal].is-in .checklist li:nth-child(3) { transition-delay: .36s; }
.js [data-reveal].is-in .checklist li:nth-child(4) { transition-delay: .44s; }
.js [data-reveal].is-in .checklist li:nth-child(5) { transition-delay: .52s; }
.js [data-reveal].is-in .checklist li:nth-child(6) { transition-delay: .60s; }

/* The step numeral pops a beat after its card lands. */
.js [data-reveal] .step-no {
  opacity: 0; transform: scale(.55);
  transition: opacity .4s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1);
  transition-delay: calc(var(--d, 0ms) + 140ms);
}
.js [data-reveal].is-in .step-no { opacity: 1; transform: none; }

/* ── Hero ───────────────────────────────────────────────── */
/* A slow warm drift behind the headline. */
.hero { position: relative; overflow: hidden; }
.hero > * { position: relative; z-index: 1; }
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: -280px; left: 50%; width: 900px; height: 640px; margin-left: -450px;
  background: radial-gradient(closest-side, rgba(245, 158, 11, .20), rgba(245, 158, 11, 0) 70%);
  filter: blur(12px);
  animation: heroDrift 22s ease-in-out infinite;
}
@keyframes heroDrift {
  0%, 100% { transform: translate3d(-40px, 0, 0) scale(1); }
  50%      { transform: translate3d(40px, 26px, 0) scale(1.08); }
}

/* The ember phrase gets its rule drawn under it. Painted as a background
   so a headline that wraps is underlined on every line, not just the first. */
.hero h1 em {
  background-image: linear-gradient(90deg, var(--amber), var(--ember));
  background-repeat: no-repeat;
  background-position: 0 96%;
  background-size: 100% .07em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.js .hero h1 em {
  background-size: 0% .07em;
  transition: background-size .85s cubic-bezier(.22, .61, .36, 1) .45s;
}
.js .hero h1.is-in em { background-size: 100% .07em; }

/* One short halo on the main call to action, then it settles down. */
.js .hero-actions .btn-primary { animation: ctaPulse 2.6s ease-out 1.4s 3; }
@keyframes ctaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(194, 65, 12, .34); }
  62%  { box-shadow: 0 0 0 15px rgba(194, 65, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(194, 65, 12, 0); }
}
.hero-actions .btn-primary:hover { animation: none; }

/* ── Header ─────────────────────────────────────────────── */
.site-header { transition: box-shadow .25s ease, background-color .25s ease; }
.site-header.is-stuck { background: rgba(253, 251, 247, .95); box-shadow: 0 2px 14px rgba(28, 25, 23, .07); }
.nav-links a:not(.btn) { transition: background-color .18s ease, color .18s ease; }
.brand-mark { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.07); }

/* ── Cards, shots, buttons ──────────────────────────────── */
.grid .card { transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease; }
.grid .card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.icon-box { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background-color .25s ease; }
.grid .card:hover .icon-box { transform: scale(1.09) rotate(-5deg); }

.shot { transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .45s ease; }
.hero-shot:hover, .split .shot:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.btn:active { transform: translateY(1px); }

/* ── Free banner ────────────────────────────────────────── */
.free-band { position: relative; overflow: hidden; }
.free-band > * { position: relative; z-index: 1; }
.free-band::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .17) 46%, transparent 62%);
  transform: translateX(-110%);
}
.js .free-band.is-in::after { animation: sheen 1.6s cubic-bezier(.4, 0, .2, 1) .4s 1; }
@keyframes sheen { to { transform: translateX(110%); } }

/* ── FAQ ────────────────────────────────────────────────── */
details.faq { transition: border-color .2s ease, box-shadow .2s ease; }
details.faq:hover { border-color: var(--line-strong); }
details.faq summary::after { transition: transform .22s ease; }
details.faq[open] > p { animation: faqOpen .3s ease both; }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal],
  .js [data-reveal] .checklist li,
  .js [data-reveal] .step-no {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .js .hero h1 em, .js .hero h1.is-in em { background-size: 100% .07em !important; transition: none !important; }
  .hero::before,
  .js .hero-actions .btn-primary,
  .js .free-band.is-in::after,
  details.faq[open] > p { animation: none !important; }
  .grid .card:hover, .hero-shot:hover, .split .shot:hover,
  .btn-primary:hover, .btn:active, .brand:hover .brand-mark { transform: none; }
}

/* ── AI assistant blocks ────────────────────────────────── */
.ai-panel {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--card); box-shadow: var(--shadow); overflow: hidden; text-align: left;
}
.ai-panel-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ember-soft), rgba(255, 241, 231, .35));
}
.ai-panel-bar b { font-size: .92rem; letter-spacing: -.01em; }
.ai-panel-bar .tag { margin-left: auto; }
.ai-mark {
  width: 28px; height: 28px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ember), var(--amber)); color: #fff;
}
.ai-mark svg { width: 16px; height: 16px; display: block; }
.ai-body { padding: 18px; display: grid; gap: 13px; }
.ai-ask {
  justify-self: end; max-width: 90%; background: var(--ember); color: #fff;
  border-radius: 14px 14px 4px 14px; padding: 9px 14px; font-size: .93rem; line-height: 1.5;
}
.ai-reply {
  background: var(--page); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px;
  padding: 14px 16px; font-size: .93rem; line-height: 1.6; color: var(--strong);
}
.ai-reply strong { color: var(--ink); }
.ai-lines { list-style: none; padding: 0; margin: 11px 0 0; display: grid; gap: 9px; }
.ai-lines li { display: flex; gap: 9px; align-items: flex-start; }
.ai-lines b { color: var(--ink); font-weight: 600; }
.ai-bullet { color: var(--ember); font-weight: 700; line-height: 1.5; flex: none; }
.ai-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.ai-metric { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 10px 12px; }
.ai-metric b { display: block; font-size: 1.12rem; letter-spacing: -.02em; color: var(--ink); }
.ai-metric span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); font-weight: 700; }
.ai-foot {
  padding: 11px 16px; border-top: 1px solid var(--line); background: var(--card);
  font-size: .81rem; color: var(--muted); display: flex; align-items: center; gap: 8px;
}
.ai-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }

/* Insight card floating over the hero screenshot */
.hero-stack { position: relative; }
.ai-float {
  position: absolute; right: 16px; bottom: 16px; width: 328px; z-index: 2;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(4px);
}
.ai-float .ai-body { padding: 15px; gap: 11px; }
.ai-float .ai-reply { font-size: .88rem; }

/* Capability chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }

@media (max-width: 900px) {
  .ai-float { position: static; width: auto; margin-top: 18px; box-shadow: var(--shadow); }
  .ai-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .ai-metrics { grid-template-columns: 1fr; }
}

/* ── Social proof: logo band + reviews ───────────────────────────────────── */
.logo-band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-band-title {
  margin: 0 0 22px; text-align: center; color: var(--muted);
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.logo-strip {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 18px 40px;
}
.logo-item { display: flex; align-items: center; justify-content: center; min-height: 44px; }
.logo-item img {
  max-height: 40px; width: auto; max-width: 150px;
  opacity: .68; filter: grayscale(1); transition: opacity .18s ease, filter .18s ease;
}
.logo-item a:hover img { opacity: 1; filter: grayscale(0); }
/* Slot with no image yet — keeps the row aligned while logos are collected. */
.logo-item.is-empty .logo-blank {
  display: grid; place-items: center; min-width: 132px; min-height: 44px; padding: 0 16px;
  border: 1px dashed var(--line-strong); border-radius: 10px;
  color: var(--soft); font-size: .78rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}

.reviews .sec-head { max-width: 640px; margin: 0 auto 38px; text-align: center; }
.reviews .sec-head h2 { margin-bottom: .3em; }
.reviews .sec-head .lede { margin: 0; }
.review-grid { align-items: stretch; }
.review-card { display: flex; flex-direction: column; gap: 14px; position: relative; }
.review-card blockquote {
  margin: 0; font-size: 1.02rem; line-height: 1.62; color: var(--strong);
}
.review-card blockquote::before { content: "\201C"; }
.review-card blockquote::after  { content: "\201D"; }
.review-card figcaption {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px; font-size: .9rem;
}
.stars { display: flex; gap: 2px; font-size: .95rem; line-height: 1; }
.star { color: var(--ember); }
.star-off { color: var(--line-strong); }
.review-tag { position: absolute; top: 14px; right: 14px; font-size: .68rem; }
/* Example copy shipped with the template — visibly not a real customer quote. */
.review-card.is-placeholder { border-style: dashed; background: transparent; box-shadow: none; }
.review-card.is-placeholder blockquote,
.review-card.is-placeholder figcaption { color: var(--soft); }
.review-card.is-placeholder .star { color: var(--line-strong); }

@media (max-width: 900px) {
  .review-grid { grid-template-columns: 1fr; }
  .logo-strip { gap: 16px 26px; }
}
