/* GENERATED by scripts/build_css.py — do not edit; edit the sources. */

/* ===== fonts.css ===== */
/* Self-hosted Inter (latin + latin-ext) — vendored from Google Fonts css2.
   Refresh with scripts/update_fonts.py. unicode-range keeps downloads minimal. */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/static/fonts/inter-400-latin-ext.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:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/static/fonts/inter-400-latin.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;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/static/fonts/inter-500-latin-ext.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:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/static/fonts/inter-500-latin.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;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/static/fonts/inter-600-latin-ext.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:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/static/fonts/inter-600-latin.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;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/static/fonts/inter-700-latin-ext.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:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/static/fonts/inter-700-latin.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;}
@font-face{font-family:'Inter';font-style:normal;font-weight:800;font-display:swap;src:url('/static/fonts/inter-800-latin-ext.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:'Inter';font-style:normal;font-weight:800;font-display:swap;src:url('/static/fonts/inter-800-latin.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;}


/* ===== base.css ===== */
/* =========================================================================
   img.now base layer: design tokens, reset, typography, theme.
   ========================================================================= */
/* Metric-matched fallback for Inter (loaded async/non-blocking). Using Arial
   with these overrides means the box the text occupies is the same before and
   after Inter loads, so the web-font swap causes no layout shift (CLS). */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90%;
  descent-override: 22.43%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}
:root {
  /* Color system: neutral base, one vivid accent. */
  --bg: #f5f5f7;
  --bg-2: #ececef;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-strong: rgba(255, 255, 255, 0.86);
  --text: #111114;
  --text-2: #5f6368;
  --text-3: #6b6b71;
  --border: rgba(0, 0, 0, 0.08);
  --border-2: rgba(0, 0, 0, 0.045);
  --line: rgba(0, 0, 0, 0.08);

  /* Brand mint-green, matched to hix.ai (#2FEBBF). --cta-bg is the bright mint
     button fill with near-black --cta-ink text; --accent is a readable green
     for links, focus and icon strokes on white. */
  --accent: #0c9e7a;
  --accent-text: #0a7d57;    /* AA-compliant green for TEXT/LINKS only; keep --accent for large/decorative icons & fills */
  --accent-press: #0a8568;
  --cta-bg: #2febbf;
  --cta-ink: #052b22;
  --ink: #0a0a0b;            /* near-black used for primary dark buttons */
  --violet: #13c79e;
  --success: #34c759;
  --warning: #ff9500;
  --error: #ff3b30;

  /* Calm gradients (used sparingly). */
  --grad-hero: radial-gradient(130% 120% at 50% -10%, rgba(47, 235, 191, 0.18) 0%, rgba(19, 199, 158, 0.07) 42%, rgba(245, 245, 247, 0) 72%);
  --grad-accent: linear-gradient(135deg, #2febbf 0%, #13c79e 55%, #0c9e7a 100%);
  --grad-soft: linear-gradient(135deg, rgba(47, 235, 191, 0.20), rgba(19, 199, 158, 0.10));

  /* Typography: Inter to match hix.ai, with a system fallback. */
  --font: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radius */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 9999px;

  /* Soft depth, matched to hix.ai's light shadows. */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.10), 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 14px rgba(16, 24, 40, 0.10);
  --shadow-lg: 0 12px 28px rgba(16, 24, 40, 0.14);
  --shadow-glass: 0 4px 14px rgba(16, 24, 40, 0.10);

  /* Layout */
  --maxw: 1280px;
  --maxw-narrow: 920px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 64px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.18s;
  --t: 0.28s;
  --t-slow: 0.55s;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep anchor targets and the skip-link landing clear of the sticky header. */
  scroll-padding-top: calc(var(--header-h, 64px) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Explicit keyboard focus ring for all interactive controls (a11y). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Headings ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 0 0.4em;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 680;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
strong { font-weight: 650; }

.display {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 760;
}

/* ---- Utility ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--maxw-narrow); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-2);
}
.text-2 { color: var(--text-2); }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; color: var(--text-2); letter-spacing: -0.015em; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.gradient-text {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

section { position: relative; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 14px; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


/* ===== components.css ===== */
/* =========================================================================
   Components: buttons, cards, glass panels, chips, icons, forms, badges.
   ========================================================================= */

/* ---- Icons ---- */
.icon { width: 24px; height: 24px; flex: none; }
.icon-lg { width: 30px; height: 30px; }
.icon-sm { width: 18px; height: 18px; }

.icon-tile {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.icon-tile.violet { color: var(--violet); }
.icon-tile.grad {
  background: var(--grad-soft);
  border-color: transparent;
}

/* ---- Buttons ---- */
.btn {
  --bh: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: var(--bh); padding: 0 22px;
  border-radius: var(--r-xs);
  font-size: 0.98rem; font-weight: 590; letter-spacing: -0.01em;
  border: 1px solid transparent; background: var(--surface); color: var(--text);
  transition: transform var(--t-fast) var(--ease), background var(--t) var(--ease),
              box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 19px; height: 19px; }

/* Black button (squared, rounded edges) */
.btn-primary {
  background: var(--ink); color: #fff; box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #000; box-shadow: var(--shadow-md); }

/* Mint-green CTA (hix "Try for free" style): 8px radius, near-black text */
.btn-accent { background: var(--cta-bg); color: var(--cta-ink); border-radius: var(--r-xs); font-weight: 600; }
.btn-accent:hover { background: #25d6ad; }

/* Solid green with white text (deeper green for legible white) */
.btn-green { background: #0a7d57; color: #fff; font-weight: 590; }
.btn-green:hover { background: #086a49; color: #fff; }

/* Gold trial CTA (matches the 7-day trial banner) */
.btn-gold { background: #ffd84d; color: #4a3800; font-weight: 650; }
.btn-gold:hover { background: #ffce1f; color: #4a3800; }
.btn-gold .icon { color: #4a3800; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(0,0,0,0.16); }

.btn-soft { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-soft:hover { background: var(--surface); border-color: rgba(0,0,0,0.16); }

.btn-lg { --bh: 54px; padding: 0 30px; font-size: 1.05rem; }
.btn-sm { --bh: 38px; padding: 0 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---- Glass panel ---- */
.glass {
  background: var(--surface-glass);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-glass);
}

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 26px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(12, 158, 122, 0.28);
}
.card-link:hover .icon-tile { transform: scale(1.06); }
.card h3 { font-size: 1.12rem; margin-bottom: 6px; letter-spacing: -0.02em; }
.card p { color: var(--text-2); font-size: 0.96rem; line-height: 1.55; margin: 0; }

.card-arrow {
  margin-top: 16px; color: var(--accent-text); display: inline-flex; align-items: center; gap: 6px;
  font-weight: 560; font-size: 0.92rem;
  opacity: 0; transform: translateX(-4px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.card-link:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* ---- Chips ---- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 0.92rem; font-weight: 480;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-fast) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.chip:hover { transform: translateY(-2px); border-color: rgba(12,158,122,0.3); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--accent); color: #fff; border-color: transparent;
}

/* ---- Badge / pill ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--r-pill);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}
.badge .icon { width: 14px; height: 14px; }
.badge-accent { color: var(--accent-text); border-color: rgba(12,158,122,0.25); background: rgba(12,158,122,0.06); }
.badge-popular { background: var(--grad-accent); color: #fff; border-color: transparent; }

/* ---- Avatar stack (trust) ---- */
.avatars { display: inline-flex; }
.avatars span {
  width: 28px; height: 28px; border-radius: 50%; margin-left: -8px;
  border: 2px solid var(--surface); background: var(--grad-soft);
}
.avatars span:first-child { margin-left: 0; }

/* ---- Forms ---- */
.field { display: block; margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 580; margin-bottom: 7px; color: var(--text); }
.input, .textarea, .select {
  width: 100%; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 13px 15px;
  transition: border-color var(--t) var(--ease), outline-color var(--t) var(--ease);
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.input::placeholder, .textarea::placeholder { color: var(--text-2); }
.help-text { font-size: 0.84rem; color: var(--text-3); margin-top: 6px; }
.error-text { font-size: 0.86rem; color: var(--error); margin-top: 6px; }

/* ---- Segmented control ---- */
.segmented {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill);
}
.segmented button {
  border: none; background: transparent; color: var(--text-2);
  padding: 8px 16px; border-radius: var(--r-pill); font-weight: 540; font-size: 0.9rem;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.segmented button.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }

/* ---- Toast ---- */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg);
  font-size: 0.92rem; font-weight: 520;
  animation: toast-in 0.4s var(--ease-out);
}
.toast.error { background: var(--error); color: #fff; }
.toast .icon { width: 18px; height: 18px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Loading skeleton ---- */
.skeleton {
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--bg-2) 50%, var(--surface-2) 70%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: var(--r-sm);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---- Divider ---- */
.hr { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ---- Tag list ---- */
.taglist { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- Reveal on scroll ----
   Hidden state only applies when JS is present (html.js), so content is fully
   visible without JavaScript and never hidden from crawlers. */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---- Auth: modal, pages, Google button ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300; padding: 20px;
  display: flex; align-items: safe center; justify-content: center; overflow-y: auto;
  background: rgba(10, 10, 11, 0.5); backdrop-filter: saturate(160%) blur(8px); -webkit-backdrop-filter: saturate(160%) blur(8px);
  animation: fade-in 0.2s var(--ease);
}
.modal-overlay[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal { animation: modal-in 0.28s var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}
.modal-close:hover { background: var(--surface); color: var(--text); }

.auth-card {
  position: relative; width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px;
}
.auth-head { text-align: center; margin-bottom: 20px; }
.auth-mark { display: inline-block; margin-bottom: 6px; }
.auth-head h1, .auth-head h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 6px; }
.auth-head p { color: var(--text-2); font-size: 0.95rem; margin: 0; }

.btn-google { background: var(--surface); color: var(--text); border: 1px solid var(--border); font-weight: 560; }
.btn-google:hover { background: var(--surface-2); border-color: rgba(0,0,0,0.16); }
.btn-google .g-logo { flex: none; }

.auth-or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 0.82rem; margin: 16px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.auth-fields { display: grid; gap: 12px; }
.auth-fields .field { margin: 0; display: block; }
.auth-fields .field span { display: block; font-size: 0.84rem; font-weight: 580; margin-bottom: 6px; }
.auth-switch { text-align: center; margin: 16px 0 0; font-size: 0.9rem; color: var(--text-2); }
.auth-switch a { color: var(--accent-text); font-weight: 560; }

.auth-page { min-height: 72vh; display: grid; place-items: center; padding: 48px 20px; }

/* ---- Trial banner (sign-up) ---- */
.trial-banner { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; margin-bottom: 18px; padding: 12px 14px; border-radius: var(--r-md); background: #fff8e1; border: 1px solid #ffe6a3; }
.trial-badge { display: inline-flex; align-items: center; gap: 6px; background: #ffd84d; color: #4a3800; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.02em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-pill); }
.trial-badge .icon { color: #4a3800; }
.trial-note { font-size: 0.85rem; color: var(--text-2); line-height: 1.45; }

/* ---- Contact form ---- */
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.contact-note { font-size: 0.86rem; color: var(--text-3); margin: 10px 0 0; }


/* ===== layout.css ===== */
/* =========================================================================
   Layout: header, footer, hero, page sections, grids.
   ========================================================================= */

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm);
  transition: top var(--t) var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
  border-bottom: 1px solid var(--border);
}
.site-header.scrolled {
  background: var(--surface-glass-strong);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 680; font-size: 1.18rem; letter-spacing: -0.03em; }
.brand-logo { width: 34px; height: 34px; flex: none; object-fit: contain; }
.brand .dot { color: var(--accent); }

/* Centered primary nav, hix-style with dropdown carets */
.nav-primary { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav-primary a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 14px; border-radius: var(--r-sm); font-size: 0.96rem; font-weight: 520; color: var(--text-2);
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.nav-primary a:hover { color: var(--text); background: var(--surface-2); }
.nav-primary a.active { color: var(--text); }
.nav-primary .caret { display: inline-flex; align-items: center; margin-left: 1px; opacity: 0.5; }
.nav-primary .caret .icon { width: 14px; height: 14px; display: block; }

/* Mega-menu dropdowns (promo + icon links) */
.nav-item { position: relative; display: inline-flex; }
.nav-menu {
  position: absolute; top: 100%; left: 50%; margin-top: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 14px;
  display: grid; grid-template-columns: 224px 1fr; gap: 16px;
  min-width: 560px; max-width: calc(100vw - 24px); z-index: 130;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
}
.nav-menu.wide { min-width: 680px; }
/* Wide 4-column mega-menu (Tools): anchor to the trigger's left edge and expand
   right so it never clips off-screen the way a centred wide menu would. */
.nav-menu.mega { min-width: 900px; left: 0; transform: translateX(0) translateY(8px); }
.nav-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-item:hover .nav-menu.mega, .nav-item:focus-within .nav-menu.mega { transform: translateX(0) translateY(0); }

.nav-promo { display: flex; flex-direction: column; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; }
.nav-promo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); margin-bottom: 12px; }
.nav-promo strong { font-family: var(--font-display); font-size: 1rem; letter-spacing: -0.02em; }
.nav-promo p { font-size: 0.83rem; color: var(--text-2); line-height: 1.45; margin: 5px 0 13px; }
.nav-promo .btn { margin-top: auto; align-self: flex-start; }
/* Beat `.nav-primary a` colour so the green CTA text stays white */
/* Promo CTA: mint background + dark ink text, legible at rest and on hover. */
.nav-promo .nav-promo-cta { background: var(--cta-bg); color: var(--cta-ink); border-color: transparent; }
.nav-promo .nav-promo-cta:hover { background: #25d6ad; color: var(--cta-ink); }
.nav-promo .nav-promo-cta .icon { color: var(--cta-ink); }

.nav-links { display: grid; gap: 2px; align-content: start; }
.nav-links.two, .nav-links.cols-2 { grid-template-columns: 1fr 1fr; }
.nav-links.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nav-links.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 6px; }
/* Compact links so 4 columns stay readable: smaller icon, labels wrap instead of
   overflowing, tighter padding. */
.nav-links.cols-4 .nav-link { gap: 8px; padding: 7px 8px; }
.nav-links.cols-4 .nav-link-ic { width: 28px; height: 28px; border-radius: 8px; }
.nav-links.cols-4 .nav-link-tx b { white-space: normal; font-size: 0.83rem; line-height: 1.2; }
.nav-link { display: flex; gap: 11px; align-items: center; padding: 9px 10px; border-radius: var(--r-sm); }
.nav-link:hover { background: var(--surface-2); }
.nav-link-ic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--accent); }
.nav-link:hover .nav-link-ic { background: var(--surface); border-color: rgba(12,158,122,0.35); }
.nav-link-tx b { display: block; font-size: 0.9rem; font-weight: 560; color: var(--text); white-space: nowrap; }
.nav-link-tx span { display: block; font-size: 0.77rem; color: var(--text-3); line-height: 1.3; }

/* Breadcrumb home icon */
.breadcrumb .bc-home { display: inline-flex; align-items: center; color: var(--text-2); }
.breadcrumb .bc-home:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); background: transparent; border: 1px solid var(--border); color: var(--text); place-items: center; }
.link-quiet { color: var(--text-2); font-weight: 520; font-size: 0.95rem; padding: 9px 6px; }
.link-quiet:hover { color: var(--text); }

/* ---- Mobile menu ---- */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  background: var(--surface-glass-strong);
  backdrop-filter: saturate(180%) blur(28px); -webkit-backdrop-filter: saturate(180%) blur(28px);
  padding: 24px var(--gutter) 40px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
/* Top-level items and expandable group headers */
.mobile-menu .mm-link,
.mobile-menu summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 4px; font-size: 1.2rem; font-weight: 580; font-family: var(--font-display);
  letter-spacing: -0.02em; color: var(--text); border-bottom: 1px solid var(--border);
  list-style: none; cursor: pointer;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mm-group summary .icon { color: var(--text-3); transition: transform var(--t) var(--ease); }
.mm-group[open] summary .icon { transform: rotate(180deg); }
/* Sub-menu links inside an expanded group */
.mm-sub { display: grid; gap: 2px; padding: 8px 0 14px; border-bottom: 1px solid var(--border); }
.mm-sub a { display: flex; align-items: center; gap: 12px; padding: 11px 8px; font-size: 1rem; color: var(--text-2); border-radius: var(--r-sm); }
.mm-sub a:hover, .mm-sub a:active { background: var(--surface-2); color: var(--text); }
.mm-sub .mm-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); color: var(--accent); }
.mm-sub-all { color: var(--accent-text); font-weight: 600; }
.mm-sub-all .icon { color: var(--accent); }
.mobile-menu .mm-actions { margin-top: 26px; display: grid; gap: 12px; }

/* ---- Hero (centered) ---- */
.hero { position: relative; text-align: center; padding: clamp(40px, 6vw, 84px) 0 clamp(28px, 4vw, 52px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -8% -10% 38%; background: var(--grad-hero);
  pointer-events: none; z-index: -1;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; position: relative; }
.hero h1 { margin: 0 auto; }
.hero .lead { max-width: 600px; margin: 0 auto; }

/* Logo gets a relative wrapper so the trust pill can sit on top of it */
.logo-wrap { position: relative; display: inline-block; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 16px 5px 6px; border-radius: var(--r-pill);
  background: #eef3fb; color: var(--text-2); font-weight: 530;
  font-size: 0.86rem; line-height: 1.3; white-space: nowrap;
  position: absolute; left: 50%; bottom: 72%; z-index: 5;
  transform: translateX(-50%) rotate(-20deg); transform-origin: center;
}

/* Inline brand mascot used inside the headline.
   display:inline-block overrides the global `img { display:block }` reset,
   which would otherwise force a line break before and after the logo. */
.hero-logo { display: inline-block; height: 1.1em; width: auto; vertical-align: -0.26em; }

/* ---- Hero composer (centered, flat) ---- */
.composer {
  width: 100%; max-width: 1040px; margin: 6px auto 0; text-align: left;
  padding: 16px 18px 14px; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); transition: border-color var(--t) var(--ease);
}
.composer:focus-within { border-color: var(--accent); }
.composer-textarea {
  width: 100%; border: none; background: transparent; resize: none; font: inherit;
  font-size: 1.1rem; line-height: 1.5; color: var(--text); min-height: 84px; padding: 8px 6px;
}
.composer-textarea:focus { outline: none; }
/* One row: + | chips (scroll if cramped) | mode mic send */
.composer-bar { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.composer-bar .chips-scroll { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; min-width: 0; scrollbar-width: none; }
.composer-bar .chips-scroll::-webkit-scrollbar { display: none; }
.composer-bar .chips-scroll .chip { flex: none; }
.composer-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
/* Bare "+" icon (hix style, no border) */
.composer-add {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: transparent; border: none; color: var(--text);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.composer-add:hover { background: var(--surface-2); }
/* Bare mode selector ("Instant" style) */
.composer-mode {
  display: inline-flex; align-items: center; gap: 4px; background: transparent; border: none;
  color: var(--text-2); font-size: 0.92rem; font-weight: 500; padding: 8px 6px;
  transition: color var(--t) var(--ease);
}
.composer-mode:hover { color: var(--text); }
.composer-mode .icon { opacity: 0.55; }
/* Bare mic icon */
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: transparent; border: none; color: var(--text-3);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
/* Send: light-gray circle that activates when the prompt has text */
.composer-send {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); color: var(--text-3); border: none;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.composer-send:hover, .composer-send.active { background: var(--cta-bg); color: var(--cta-ink); }

/* Secondary chip row under the composer: one line, never wraps.
   Auto-margins on the end chips center the group when it fits, but collapse to
   0 when the row overflows - so on mobile it scrolls from the first chip
   instead of clipping it half-off the left edge (which `justify-content:center`
   + `overflow-x:auto` does). */
.hero-chips {
  display: flex; flex-wrap: nowrap; gap: 10px;
  max-width: none; margin: 0 auto; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.hero-chips::-webkit-scrollbar { display: none; }
.hero-chips .chip { flex: none; }
.hero-chips > :first-child { margin-left: auto; }
.hero-chips > :last-child { margin-right: auto; }

/* ---- Showcase tab switcher ---- */
.showcase { width: 100%; }
.showcase-tabs {
  display: inline-flex; gap: 4px; padding: 5px; flex-wrap: wrap; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2);
}
.showcase-tab {
  border: 1px solid transparent; background: transparent; color: var(--text-2);
  padding: 9px 16px; border-radius: var(--r-sm); font-weight: 540; font-size: 0.92rem;
  display: inline-flex; gap: 7px; align-items: center;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.showcase-tab .icon { width: 17px; height: 17px; }
.showcase-tab.is-active { background: var(--surface); color: var(--text); border-color: var(--border); }
.showcase-stage { margin-top: 22px; max-width: 960px; margin-left: auto; margin-right: auto; }
.showcase-panel {
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch;
}
.showcase-panel[hidden] { display: none; }
.showcase-copy { padding: clamp(24px, 4vw, 40px); text-align: left; align-self: center; }
.showcase-copy h3 { font-size: 1.5rem; margin-bottom: 10px; }
.showcase-copy p { color: var(--text-2); margin-bottom: 18px; }
.showcase-media { background: var(--surface-2); border-left: 1px solid var(--border); }
.showcase-media img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 280px; }

/* ---- Trust strip ---- */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: center;
  padding: 22px 0;
}
.trust-item { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); font-weight: 520; font-size: 0.94rem; }
.trust-item .icon { width: 19px; height: 19px; color: var(--accent); }

/* ---- Live "images created" counter ---- */
.live-counter { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--line);
  background-size: cover; background-position: center; text-align: center; padding: 40px 24px; margin: 10px 0 2px; }
.live-counter::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.50), rgba(255,255,255,.80)); }
.lc-inner { position: relative; z-index: 1; }
.lc-live { display: inline-flex; align-items: center; gap: 7px; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent-text); background: rgba(255,255,255,.72);
  border: 1px solid var(--line); padding: 5px 13px; border-radius: 9999px; }
.lc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: lc-pulse 1.8s infinite; }
@keyframes lc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(12,158,122,.5); }
  70% { box-shadow: 0 0 0 9px rgba(12,158,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(12,158,122,0); } }
.lc-num { font-size: clamp(2.7rem, 8vw, 4.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em;
  margin: 14px 0 6px; font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
  background: linear-gradient(90deg, var(--accent), #18c79a); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent); }
.lc-label { font-size: 1.04rem; color: var(--text-2); margin: 0; font-weight: 560; }
.lc-sub { color: var(--text-3); }
.lc-join { color: var(--accent-text); font-weight: 700; text-decoration: none; }
.lc-join:hover { text-decoration: underline; }
@media (max-width: 560px) { .live-counter { padding: 28px 16px; border-radius: 18px; } }
@media (prefers-reduced-motion: reduce) { .lc-dot { animation: none; } }

/* ---- Generic grids ---- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-tools { grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---- How it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); font-weight: 640; color: var(--accent);
  margin-bottom: 16px; box-shadow: var(--shadow-xs);
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--text-2); margin: 0; }
.process-bar { height: 4px; border-radius: var(--r-pill); background: var(--border); overflow: hidden; margin: 36px 0 0; }
.process-bar i { display: block; height: 100%; width: 35%; background: var(--grad-accent); border-radius: inherit; animation: process 3.4s var(--ease) infinite; }
@keyframes process { 0% { width: 8%; } 45% { width: 64%; } 100% { width: 100%; } }

/* ---- Templates gallery ---- */
.tmpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tmpl {
  position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 4 / 3; box-shadow: var(--shadow-xs);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.tmpl:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tmpl img { width: 100%; height: 100%; object-fit: cover; }
.tmpl-meta {
  position: absolute; inset: auto 0 0 0; padding: 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0)); color: #fff;
}
.tmpl-meta h3 { color: #fff; font-size: 1.1rem; margin: 0 0 2px; }
.tmpl-meta p { color: rgba(255,255,255,0.82); font-size: 0.85rem; margin: 0; }

/* ---- Learn teaser ---- */
.read-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.read-card { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.read-card .badge { align-self: flex-start; }
.read-card h3 { font-size: 1.06rem; margin: 0; letter-spacing: -0.02em; }
.read-card p { font-size: 0.92rem; }

/* ---- Comparison band ---- */
.band {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: clamp(36px, 6vw, 72px); box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.band::after { content: ""; position: absolute; inset: 0; background: var(--grad-hero); pointer-events: none; }
.band > * { position: relative; }

/* ---- Final CTA ---- */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 14px; }
.cta-final .lead { max-width: 520px; margin: 0 auto 28px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-2); padding: 64px 0 36px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(6, 1fr); gap: 26px; }
.footer-brand { max-width: 280px; }
.footer-brand p { color: var(--text-2); font-size: 0.92rem; margin: 14px 0 18px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); margin-bottom: 14px; font-family: var(--font); font-weight: 640; }
.footer-col a { display: block; color: var(--text-2); font-size: 0.93rem; padding: 6px 0; transition: color var(--t) var(--ease); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 0.88rem; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); color: var(--text-2); transition: color var(--t), border-color var(--t); }
.footer-social a:hover { color: var(--text); border-color: var(--text-3); }
.lang-select { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--border); color: var(--text-2); font-size: 0.9rem; background: var(--surface); }

/* ---- Breadcrumbs ---- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.86rem; color: var(--text-3); padding-top: 18px; padding-bottom: 2px; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--text-3); }
.breadcrumb [aria-current] { color: var(--text); }

/* ---- Page header ---- */
.page-head { padding: clamp(28px, 5vw, 52px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { margin-bottom: 12px; }
.page-head .lead { max-width: none; }

/* ---- FAQ accordion ---- */
.faq { display: grid; gap: 0; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; padding: 20px 4px; font-weight: 580; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform var(--t) var(--ease); color: var(--text-3); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .faq-body { padding: 0 4px 20px; color: var(--text-2); max-width: 720px; }

/* =========================================================================
   Homepage section stack (faithful to hix.ai, light/mint).
   ========================================================================= */

/* Hero headline: lighter Inter weight with a hand-drawn underline (hix style) */
.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.8rem, 6vw, 5.2rem); line-height: 1.06; letter-spacing: -0.04em;
  max-width: none; white-space: nowrap; margin: 0 auto; color: var(--text);
}
.hero-ul { position: relative; white-space: nowrap; }
.hero-ul .squiggle { position: absolute; left: 0; bottom: -0.30em; width: 100%; height: 0.30em; color: var(--ink); }

/* Trust pill with real avatars (light-blue tint like hix) */
.trust-pill { background: #eef3fb; border-color: transparent; padding: 5px 16px 5px 6px; }
.trust-pill .av { display: inline-flex; }
.trust-pill .av img { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; margin-left: -9px; }
.trust-pill .av img:first-child { margin-left: 0; }
.trust-pill .stars { color: #ffb400; letter-spacing: 1px; font-size: 0.9rem; }
.trust-pill b { color: var(--text); font-weight: 650; }

/* Feature rows */
.feature-rows { display: grid; gap: clamp(44px, 7vw, 104px); }
.feature-row .eyebrow { margin-bottom: 14px; }
.feature-row h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.03em; margin-bottom: 14px; }
.feature-row p { color: var(--text-2); margin-bottom: 22px; max-width: 46ch; }

/* Model cards row */
.models-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.model-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 26px 18px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--shadow-xs);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.model-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(12,158,122,0.3); }
.model-logo { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent); }
.model-card h3 { font-size: 1rem; margin: 0; letter-spacing: -0.01em; }
.model-card span { font-size: 0.82rem; color: var(--text-3); }

/* Reviews auto-scrolling marquee (alternating big/small cards) */
.tcar-head { margin-bottom: 24px; }
.tcar-head h2 { margin-bottom: 8px; }
.tcar-rating { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); font-weight: 520; font-size: 0.95rem; }
.tcar-rating .stars { color: #ffb400; letter-spacing: 2px; }

.tmarquee {
  overflow: hidden; width: 100%; padding: 6px 0 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.tmarquee-track { display: flex; gap: 14px; align-items: flex-start; width: max-content; animation: tmarquee 55s linear infinite; }
.tmarquee:hover .tmarquee-track { animation-play-state: paused; }
@keyframes tmarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.tcard {
  flex: 0 0 auto; display: flex; flex-direction: column; gap: 16px;
  padding: 26px; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.tcard.lg { width: 400px; }
.tcard.sm { width: 300px; }
.tcard .stars { color: #ffb400; letter-spacing: 2px; font-size: 0.95rem; }
.tcard p { margin: 0; color: var(--text); line-height: 1.62; letter-spacing: -0.01em; }
.tcard.lg p { font-size: 1.18rem; }
.tcard.sm p { font-size: 1rem; }
.t-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.t-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.t-author b { font-size: 0.92rem; display: block; }
.t-author span { font-size: 0.8rem; color: var(--text-3); }

/* Questions and answers with side image */
.qa-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.qa-visual { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); position: sticky; top: calc(var(--header-h) + 20px); box-shadow: var(--shadow-sm); }
.qa-visual img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }

/* Dark CTA banner */
.cta-banner { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 400px; display: grid; align-items: center; }
.cta-banner .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-banner::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(4,8,7,0.92) 0%, rgba(4,8,7,0.7) 50%, rgba(4,8,7,0.32) 100%); }
.cta-banner .cta-inner { position: relative; z-index: 2; padding: clamp(34px, 6vw, 76px); max-width: 640px; }
.cta-banner h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.3rem); margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.82); max-width: 44ch; margin-bottom: 26px; }

/* =========================================================================
   AI Editor section (dark, before/after slider)
   ========================================================================= */
.editor-section { padding: clamp(40px, 6vw, 80px) 0; }
.editor-grid {
  display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(28px, 5vw, 56px); align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
}
.editor-copy { color: var(--text); }
.editor-copy h2 { color: var(--text); font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -0.035em; margin: 0 0 16px; line-height: 1.04; }
.editor-copy .lead-dark { color: var(--text-2); font-size: 1.1rem; line-height: 1.6; max-width: 46ch; margin-bottom: 24px; }
.editor-checks { list-style: none; display: grid; gap: 11px; margin: 0 0 30px; padding: 0; }
.editor-checks li { display: flex; gap: 10px; align-items: center; color: var(--text); font-size: 0.97rem; }
.editor-checks .icon { color: var(--accent); width: 18px; height: 18px; flex: none; }
.editor-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.editor-visual { position: relative; }
.editor-credits { text-align: right; color: var(--text-3); font-size: 0.85rem; font-weight: 500; margin-bottom: 12px; }
.editor-section .ba-slider { border: 1px solid var(--border); border-radius: var(--r-lg); aspect-ratio: 11 / 7; }
.editor-section .ba-label { background: rgba(0,0,0,0.55); }
.editor-chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.editor-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 0.9rem; font-weight: 500; }
.editor-chip .icon { width: 16px; height: 16px; }
.editor-chip.active { background: var(--cta-bg); color: var(--cta-ink); border-color: transparent; font-weight: 600; }

/* ---- "How templates work": labelled prompt -> result ---- */
.tmpl-how { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 30px); align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 30px); margin-bottom: 40px; }
.tmpl-how-step { display: flex; flex-direction: column; }
.tmpl-how-label { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 660; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-2); margin-bottom: 12px; }
.tmpl-how-label .icon { color: var(--accent); }
.tmpl-how-prompt { font-size: 1.02rem; line-height: 1.5; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px 16px; margin: 0 0 11px; }
.tmpl-how-note { font-size: 0.86rem; color: var(--text-3); line-height: 1.5; }
.tmpl-how-step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--border); display: block; margin-bottom: 11px; }
.tmpl-how-arrow { color: var(--accent); display: grid; place-items: center; }
@media (max-width: 760px) {
  .tmpl-how { grid-template-columns: 1fr; gap: 16px; }
  .tmpl-how-arrow { transform: rotate(90deg); }
}


/* ===== tools.css ===== */
/* =========================================================================
   Tool pages: generator workspace, uploader, before/after, results, pricing.
   ========================================================================= */

/* ---- Tool hero ---- */
.tool-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(20px, 3vw, 36px) 0 clamp(28px, 4vw, 48px); }
.tool-hero .eyebrow { margin-bottom: 14px; }
.tool-hero h1 { margin-bottom: 16px; }
.tool-hero .lead { margin-bottom: 24px; }
.tool-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Workspace panel ---- */
.workspace { padding: clamp(18px, 2.4vw, 26px); display: grid; gap: 18px; }
.workspace-grid { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
.workspace-controls { display: grid; gap: 16px; }
.workspace-output { min-height: 360px; }

/* control groups */
.control-group label { font-size: 0.84rem; font-weight: 580; margin-bottom: 8px; display: block; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.ratio-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ratio-btn { display: grid; gap: 6px; place-items: center; padding: 12px 6px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); font-size: 0.74rem; color: var(--text-2); transition: border-color var(--t), background var(--t), color var(--t); }
.ratio-btn .ratio-shape { border: 1.75px solid currentColor; border-radius: 3px; opacity: 0.7; }
.ratio-btn.is-active { border-color: var(--accent); color: var(--accent-text); background: rgba(12,158,122,0.05); }
.ratio-btn.is-active .ratio-shape { opacity: 1; }
.advanced summary { cursor: pointer; font-size: 0.9rem; color: var(--text-2); font-weight: 540; padding: 6px 0; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced[open] summary .icon { transform: rotate(180deg); }
.advanced .icon { transition: transform var(--t) var(--ease); width: 16px; height: 16px; }

/* output area */
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.result-tile { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.result-tile img { width: 100%; height: 100%; object-fit: cover; }
.result-actions { position: absolute; inset: auto 0 0 0; display: flex; gap: 6px; padding: 10px; background: linear-gradient(to top, rgba(0,0,0,0.55), transparent); opacity: 0; transition: opacity var(--t); }
.result-tile:hover .result-actions { opacity: 1; }
.result-actions .mini { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,0.92); color: #111; display: grid; place-items: center; border: none; }
.result-actions .mini:hover { background: #fff; }

.empty-state { display: grid; place-items: center; text-align: center; min-height: 360px; gap: 12px; padding: 30px; color: var(--text-3); border: 1.5px dashed var(--border); border-radius: var(--r-md); }
.empty-state .icon-tile { width: 60px; height: 60px; }
.empty-state h3, .empty-state .empty-title { color: var(--text-2); font-size: 1.05rem; font-weight: 600; margin: 0; }

/* progress */
.gen-progress { display: none; }
.gen-progress.show { display: grid; gap: 14px; place-items: center; min-height: 360px; text-align: center; }
.gen-progress .spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gen-progress p { margin: 0; color: var(--text-2); font-weight: 520; }

/* ---- Uploader dropzone ---- */
.dropzone {
  border: 1.5px dashed var(--border); border-radius: var(--r-md); padding: clamp(28px, 5vw, 52px);
  text-align: center; background: var(--surface-2); transition: border-color var(--t), background var(--t);
  display: grid; gap: 12px; place-items: center; cursor: pointer; min-height: 240px;
}
.dropzone.drag { border-color: var(--accent); background: rgba(12,158,122,0.05); }
.dropzone .icon-tile { width: 60px; height: 60px; }
.dropzone h3, .dropzone .dz-title { margin: 0; font-size: 1.1rem; font-weight: 600; }
.dropzone p { margin: 0; color: var(--text-3); font-size: 0.92rem; }

/* ---- Before/after slider ---- */
.ba-slider { position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); user-select: none; touch-action: none; aspect-ratio: 3 / 2; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 50%); }
.ba-slider, .ba-handle { cursor: ew-resize; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; border-left: 1px solid var(--border); transform: translateX(-50%); }
.ba-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.18); transform: translate(-50%, -50%); }
/* Left/right arrows so it's obvious the knob is draggable. */
.ba-handle::before { content: ""; position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%); z-index: 1; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c9e7a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M10 8l-4 4 4 4'/><path d='M14 8l4 4-4 4'/></svg>") center / 26px no-repeat; }
/* Visible keyboard focus ring for the draggable slider + its handle (a11y). */
.ba-slider:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.ba-handle:focus-visible { outline: none; }
.ba-handle:focus-visible::after {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18), 0 0 0 4px rgba(12,158,122,0.25);
}
.ba-label { position: absolute; top: 12px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 0.74rem; font-weight: 600; color: #fff; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); }
.ba-label.before { left: 12px; }
.ba-label.after { right: 12px; }

/* ---- How tool works strip ---- */
.tool-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---- Tool grid section ---- */
.related-tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ---- Sticky mobile CTA ---- */
.sticky-cta { display: none; }

/* ---- Pricing ---- */
.billing-toggle { display: inline-flex; gap: 4px; padding: 5px; margin: 8px auto 28px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); position: relative; left: 50%; transform: translateX(-50%); }
.billing-toggle .bt-opt { display: inline-flex; align-items: center; gap: 8px; border: none; background: transparent; color: var(--text-2); padding: 9px 20px; border-radius: var(--r-pill); font-weight: 560; font-size: 0.95rem; cursor: pointer; transition: background var(--t) var(--ease), color var(--t) var(--ease); }
.billing-toggle .bt-opt.is-active { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.bt-save { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; color: #4a3800; background: #ffd84d; padding: 2px 8px; border-radius: var(--r-pill); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; max-width: 1060px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; gap: 14px; height: 100%; position: relative; }
.plan.featured { border-color: var(--accent); border-width: 1.5px; }
.plan .plan-name { font-size: 1.2rem; font-weight: 640; letter-spacing: -0.02em; }
.plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.plan .price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 720; letter-spacing: -0.04em; line-height: 1; }
.plan .cadence { color: var(--text-3); font-size: 0.86rem; }
.plan .price-was { color: var(--text-3); font-size: 1.1rem; text-decoration: line-through; font-weight: 500; flex-basis: 100%; }
.plan .yearly-note { color: var(--text-2); font-size: 0.84rem; margin: -6px 0 0; }
.credit-pill { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 7px 15px; font-size: 0.92rem; color: var(--text); }
.credit-pill strong { font-weight: 680; }
.images-note { display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 0.86rem; margin: 0; }
.images-note .icon { color: var(--accent); flex: none; }
.plan .tagline { color: var(--text-2); font-size: 0.92rem; margin: 0; }
.plan > ul { list-style: none; display: grid; gap: 10px; margin: 4px 0 0; }
.plan li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.9rem; color: var(--text); }
.plan li .icon { color: var(--success); width: 18px; height: 18px; flex: none; margin-top: 2px; }
.plan .btn { margin-top: 6px; }
.plan-badge { position: absolute; top: 16px; right: 16px; }

/* ---- Compare table ---- */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 640px; margin: 0 auto; max-width: 980px; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--border); }
.compare-table thead th { font-size: 1.05rem; font-weight: 640; color: var(--text); border-bottom: 1.5px solid var(--border); }
.compare-table .ct-feature { text-align: left; color: var(--text); font-weight: 500; width: 38%; }
.compare-table tr.ct-section th { text-align: left; background: var(--surface-2); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); font-weight: 620; padding: 10px 18px; }
.compare-table .ct-featured { background: rgba(12,158,122,0.05); }
.ct-yes .icon { color: var(--success); }
.ct-no .icon { color: var(--text-3); }
.ct-val { font-weight: 600; color: var(--text); }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
}

/* ---- Feature row ---- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.feature-row.flip .feature-visual { order: -1; }
.feature-visual { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; background: var(--surface-2); }
.feature-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Status table ---- */
.status-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); margin-bottom: 10px; }
.status-dot { display: inline-flex; align-items: center; gap: 9px; font-size: 0.9rem; color: var(--success); font-weight: 560; }
.status-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--success); }

/* ---- Account shell ---- */
.account-shell { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 24px 0 60px; }
.account-nav { display: grid; gap: 4px; align-content: start; position: sticky; top: calc(var(--header-h) + 20px); }
.account-nav a { padding: 11px 14px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 520; font-size: 0.95rem; transition: background var(--t), color var(--t); }
.account-nav a:hover { background: var(--surface-2); color: var(--text); }
.account-nav a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); border: 1px solid var(--border); }

/* ---- Tool showcase (example imagery) ---- */
.tool-showcase .section-head { margin-bottom: 28px; }
.showcase-ba-wrap { max-width: 760px; margin: 0 auto; }
.showcase-ba { aspect-ratio: 3 / 2; }
.showcase-ba .ba-label { font-size: 0.78rem; }
/* Interactive blur demo: a single image the slider blurs in real time. */
.showcase-blur-wrap { max-width: 760px; margin: 0 auto; }
.showcase-blur-stage { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 3 / 2; }
.showcase-blur-img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transform-origin: center; }
.showcase-blur-control { margin: 18px 0 0; }
.showcase-blur-control .tsl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.showcase-blur-control .mode-label { font-size: 0.82rem; font-weight: 600; color: var(--text-2); }
.showcase-blur-control .showcase-blur-val { color: var(--accent); font-weight: 680; }
.showcase-blur-range { width: 100%; accent-color: var(--accent); cursor: pointer; display: block; margin: 0; }
.showcase-blur-control .tsl-ends { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-3); margin-top: 4px; }
.showcase-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.showcase-gallery figure { margin: 0; }
.showcase-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--border); display: block; }
.showcase-gallery figcaption { margin-top: 10px; text-align: center; color: var(--text-2); font-size: 0.9rem; font-weight: 500; }
@media (max-width: 760px) {
  .showcase-gallery { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; gap: 22px; }
}
@media (max-width: 980px) and (min-width: 561px) {
  .showcase-gallery-6 { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin: 0 auto; }
}

/* ---- Free-plan generation notice (priority / wait time) ---- */
.gen-notice { display: flex; align-items: flex-start; gap: 9px; font-size: 0.84rem; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 12px; line-height: 1.45; }
.gen-notice .icon { color: var(--accent); flex: none; margin-top: 1px; }
.gen-notice a { color: var(--accent-text); font-weight: 560; }

/* ---------- File-conversion landing pages (/convert) ---------- */
.conv-hub-head{max-width:760px;margin:0 0 8px;}
.conv-group{margin-top:44px;}
.conv-group h2{font-size:1.5rem;margin:0 0 4px;}
.conv-group p.blurb{color:var(--text-2);margin:0 0 20px;}
.conv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px;}
.conv-card{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid var(--line);
  border-radius:var(--r-md,14px);background:var(--surface,#fff);transition:border-color .15s,transform .15s,box-shadow .15s;}
.conv-card:hover{border-color:var(--accent);transform:translateY(-2px);box-shadow:var(--shadow-md);}
.conv-doc{position:relative;flex:0 0 auto;width:38px;height:46px;border:1.5px solid #d4d7dd;border-radius:5px;
  background:#fff;}
.conv-doc::before{content:"";position:absolute;top:0;right:0;width:12px;height:12px;
  background:linear-gradient(225deg,#eef0f3 0 50%,transparent 50%);border-left:1.5px solid #d4d7dd;border-bottom:1.5px solid #d4d7dd;border-radius:0 5px 0 4px;}
.conv-doc .fmt-badge{position:absolute;left:-2px;bottom:6px;}
.fmt-badge{display:inline-block;padding:2px 6px;border-radius:4px;font-size:.62rem;font-weight:800;
  letter-spacing:.02em;color:#fff;line-height:1.3;text-transform:uppercase;}
.conv-card .conv-meta{min-width:0;}
.conv-card .conv-route{font-size:.72rem;font-weight:700;color:var(--text-3,#8b8f98);margin:0 0 2px;letter-spacing:.02em;}
.conv-card .conv-route b{color:var(--accent-text);}
.conv-card h3{font-size:.98rem;margin:0;line-height:1.25;color:var(--ink);}
.conv-related{display:flex;flex-wrap:wrap;gap:10px;}
.conv-related a{font-size:.85rem;padding:7px 12px;border:1px solid var(--line);border-radius:var(--r-pill,9999px);
  color:var(--ink);text-decoration:none;}
.conv-related a:hover{border-color:var(--accent);color:var(--accent-text);}
.conv-hero-badges{display:flex;align-items:center;gap:14px;margin:18px 0 6px;}
.conv-hero-badges .conv-doc{width:48px;height:58px;}
.conv-hero-badges .arrow{color:var(--accent);}

/* Single-shot showcase (e.g. the OCR document → text demo) shows in full. */
.showcase-gallery-1 { grid-template-columns: 1fr; max-width: 940px; margin: 0 auto; }
.showcase-gallery-1 img { aspect-ratio: auto; object-fit: contain; background: var(--surface, #fff); }

/* ---------- /convert detail: rich content layout ---------- */
.conv-split{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:40px;align-items:center;}
.conv-split.reverse .conv-figure{order:2;}
.conv-figure{margin:0;}
.conv-figure img{width:100%;height:auto;border-radius:var(--r-lg,18px);border:1px solid var(--line);display:block;}
.conv-copy h2{font-size:1.6rem;margin:0 0 12px;}
.conv-copy p{color:var(--text-2);line-height:1.65;}
.conv-spec-table{width:100%;border-collapse:collapse;margin-top:18px;font-size:.95rem;}
.conv-spec-table th,.conv-spec-table td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top;}
.conv-spec-table thead th{color:var(--text-3,#8b8f98);font-size:.78rem;text-transform:uppercase;letter-spacing:.03em;}
.conv-spec-table tbody th{font-weight:700;color:var(--ink);width:34%;}
.conv-about{margin-top:18px;}
.conv-about h3{margin:0 0 6px;}
.conv-about ul{margin:8px 0 0;padding-left:18px;color:var(--text-2);}
.conv-about li{margin:3px 0;}
@media (max-width:860px){
  .conv-split{grid-template-columns:1fr;gap:22px;}
  .conv-split.reverse .conv-figure{order:0;}
}

/* Two-up showcase (wide demo cards) keeps natural aspect. */
.showcase-gallery-2 { grid-template-columns: repeat(2, 1fr); max-width: 1000px; margin: 0 auto; }
.showcase-gallery-2 img { aspect-ratio: auto; object-fit: contain; background: var(--surface, #fff); }
@media (max-width: 760px){ .showcase-gallery-2 { grid-template-columns: 1fr; } }

/* ---------- Magazine layout (use-cases, models) ---------- */
.stat-band{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:26px;}
.stat-cell{border:1px solid var(--line);border-radius:16px;padding:24px;text-align:center;background:var(--surface,#fff);}
.stat-cell b{display:block;font-size:2.2rem;line-height:1;color:var(--accent);font-weight:800;}
.stat-cell span{display:block;margin-top:8px;color:var(--text-2);font-size:.92rem;}
.mag-row{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;}
.mag-row.reverse .mag-img{order:-1;}
.mag-text h2{font-size:1.7rem;margin:0 0 12px;}
.mag-text p{color:var(--text-2);line-height:1.7;margin:0 0 16px;}
.mag-list{list-style:none;margin:0;padding:0;}
.mag-list li{display:flex;align-items:flex-start;gap:9px;margin:9px 0;color:var(--ink);}
.mag-list li svg{color:var(--accent);flex:0 0 auto;margin-top:2px;}
.mag-img{margin:0;}
.mag-img img{width:100%;height:auto;border-radius:var(--r-lg,18px);border:1px solid var(--line);display:block;}
.mag-split{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start;}
.mag-panel h2{font-size:1.35rem;margin:0 0 16px;}
.data-table{width:100%;border-collapse:collapse;font-size:.93rem;}
.data-table th,.data-table td{text-align:left;padding:11px 12px;border-bottom:1px solid var(--line);}
.data-table thead th{font-size:.74rem;text-transform:uppercase;letter-spacing:.04em;color:var(--text-3);}
.data-table tbody td:last-child{color:var(--accent-text);font-weight:600;}
.bar-chart{display:flex;flex-direction:column;gap:12px;}
.bar-row{display:grid;grid-template-columns:130px 1fr;align-items:center;gap:12px;}
.bar-label{font-size:.86rem;color:var(--ink);}
.bar-track{height:14px;background:var(--line);border-radius:9999px;overflow:hidden;}
.bar-fill{display:block;height:100%;background:linear-gradient(90deg,var(--accent),var(--cta-bg,#2febbf));border-radius:9999px;}
.bar-unit{margin-top:12px;color:var(--text-3);font-size:.8rem;}
@media (max-width:820px){
  .mag-row,.mag-split{grid-template-columns:1fr;gap:24px;}
  .mag-row.reverse .mag-img{order:0;}
  .stat-band{grid-template-columns:1fr;}
  .bar-row{grid-template-columns:100px 1fr;}
}

/* Model-card generated icons (kept large enough to read) */
.model-icon{width:84px;height:84px;border-radius:18px;display:block;object-fit:cover;}

/* "Do more" action cards on convert pages */
.do-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;}
.do-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:16px;
  border:1px solid var(--line);border-radius:var(--r-md,14px);background:var(--surface,#fff);
  transition:border-color .15s,transform .15s,box-shadow .15s;}
.do-card:hover{border-color:var(--accent);transform:translateY(-2px);box-shadow:var(--shadow-md);}
.do-card .icon-tile{margin-bottom:8px;}
.do-card b{font-size:.98rem;color:var(--ink);}
.do-card span:last-child{font-size:.8rem;color:var(--text-2);}

/* Convert "what to expect" cards */
.expect-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;}
.expect-card{padding:18px 20px;border:1px solid var(--line);border-radius:var(--r-md,14px);
  background:var(--surface,#fff);}
.expect-card .expect-ic{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;
  border-radius:9px;background:rgba(12,158,122,.10);color:var(--accent);margin-bottom:10px;}
.expect-card b{display:block;font-size:.95rem;color:var(--ink);margin-bottom:4px;}
.expect-card p{margin:0;font-size:.9rem;line-height:1.5;color:var(--text-2);}

/* Affiliate earnings calculator */
.aff-calc{border:1px solid var(--line);border-radius:16px;padding:22px;background:var(--surface,#fff);margin-top:16px;}
.aff-calc-plan{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap;}
.aff-calc-plan button{flex:1;min-width:140px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;font-weight:600;font-size:.9rem;color:var(--text-2);}
.aff-calc-plan button.on{border-color:var(--accent);color:var(--accent-text);background:#eafaf4;}
.aff-calc-label{display:block;font-size:.9rem;color:var(--text-2);margin-bottom:8px;}
.aff-calc-label b{color:var(--ink);}
.aff-calc-range{width:100%;accent-color:var(--accent);}
.aff-calc-out{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px;}
.aff-calc-out div{background:#f4faf8;border-radius:12px;padding:16px;text-align:center;}
.aff-calc-out span{display:block;font-size:.78rem;color:var(--text-3);}
.aff-calc-out b{display:block;font-size:1.9rem;color:var(--accent);line-height:1.1;margin:4px 0;}
.aff-calc-out em{font-size:.78rem;color:var(--text-2);font-style:normal;}

/* Help article + hub topical icons */
.help-hero-icon{width:104px;height:104px;border-radius:22px;display:block;margin-bottom:14px;}
.help-card-icon{width:64px;height:64px;border-radius:16px;display:block;}

/* Learn hub: numbered learning path */
.learn-path{list-style:none;counter-reset:lp;margin:0;padding:0;display:grid;gap:12px;}
.learn-path li{counter-increment:lp;}
.learn-path a{display:flex;align-items:flex-start;gap:14px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface,#fff);transition:border-color .15s,transform .15s;}
.learn-path a:hover{border-color:var(--accent);transform:translateY(-1px);}
.learn-path a::before{content:counter(lp);flex:0 0 auto;width:30px;height:30px;border-radius:50%;background:var(--accent);color:#fff;font-weight:700;display:grid;place-items:center;font-size:.95rem;}
.learn-path b{display:block;color:var(--ink);}
.learn-path span{display:block;color:var(--text-2);font-size:.9rem;margin-top:2px;}

/* Use-cases hub: image-backed audience cards */
.uc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px;}
.uc-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface,#fff);display:flex;flex-direction:column;transition:border-color .15s,transform .15s,box-shadow .15s;}
.uc-card:hover{border-color:var(--accent);transform:translateY(-2px);box-shadow:var(--shadow-md);}
.uc-card img{width:100%;aspect-ratio:3/2;object-fit:cover;display:block;}
.uc-card-body{padding:16px 18px;}
.uc-card-body h3{margin:0 0 6px;font-size:1.1rem;}
.uc-card-body p{color:var(--text-2);font-size:.9rem;margin:0 0 10px;}

/* =========================================================
   Banner Maker — dropdown + info bar + result card
   ========================================================= */

/* Size field wrapper */
.bm-size-field { display:grid; gap:8px; }

/* Live info bar — sits below the <select> */
.bm-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  min-height: 52px;
}

/* Shape thumbnail stage — fixed 52×36 canvas so the bar height is stable */
.bm-info-stage {
  flex-shrink: 0;
  width: 52px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bm-info-rect {
  display: block;
  border: 1.75px solid var(--accent);
  border-radius: 2px;
  background: rgba(12,158,122,.08);
  transition: width .18s var(--ease), height .18s var(--ease);
}

/* Text stack */
.bm-info-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.bm-info-body strong {
  font-size: .82rem;
  font-weight: 640;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bm-info-body span {
  font-size: .74rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category badge */
.bm-info-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: .67rem;
  font-weight: 640;
  letter-spacing: .02em;
  background: rgba(12,158,122,.12);
  color: var(--accent-text);
}

/* Result card */
.banner-card{margin:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface);display:inline-flex;flex-direction:column;width:100%;}
.banner-card-img{width:100%;overflow:hidden;}
.banner-card-cap{display:flex;align-items:center;gap:12px;padding:10px 14px;font-size:.8rem;color:var(--text-2);}

/* gen-notice reuse for banner anon message */
#banner-output .gen-notice{margin-top:12px;}

/* Dashboard banner examples grid */
.bm-examples{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:4px;}
.bm-example{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:8px 10px;background:var(--surface-2);border:1px solid var(--line);border-radius:8px;cursor:pointer;text-align:left;transition:border-color .15s,background .15s;}
.bm-example:hover{border-color:var(--accent);background:rgba(12,158,122,.06);}
.bm-example.is-active{border-color:var(--accent);background:rgba(12,158,122,.1);}
.bm-ex-label{font-size:.78rem;font-weight:640;color:var(--text);}
.bm-ex-desc{font-size:.72rem;color:var(--text-2);line-height:1.3;}

/* Banner brief structured fields */
.bm-brief-label{display:block;font-size:.75rem;font-weight:640;color:var(--text-2);text-transform:uppercase;letter-spacing:.04em;margin-bottom:5px;}
.bm-brief-row{display:flex;gap:10px;}
.bm-brief-row .field label{font-size:.75rem;font-weight:640;color:var(--text-2);text-transform:uppercase;letter-spacing:.04em;}

/* Result-panel progress bar */
.bm-result-progress{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:var(--surface);border-radius:inherit;z-index:2;}
.bm-rp-inner{display:flex;flex-direction:column;align-items:center;gap:14px;padding:32px;max-width:320px;width:100%;text-align:center;}
.bm-rp-spinner{width:28px;height:28px;}
.bm-rp-phase{font-size:.9rem;font-weight:600;color:var(--text);margin:0;}
.bm-rp-bar-wrap{width:100%;height:6px;background:var(--line);border-radius:99px;overflow:hidden;}
.bm-rp-bar{height:100%;background:var(--accent);border-radius:99px;transition:width .4s ease;}
.bm-rp-hint{font-size:.75rem;color:var(--text-2);margin:0;}

/* =========================================================
   Banner Maker — rich public page sections
   ========================================================= */

/* Hero */
.bm-hero { padding: clamp(24px,3.5vw,48px) 0 clamp(16px,2vw,28px); }
.bm-hero-inner { }

/* Below-generator intro: text left, image right */
.bm-intro-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.bm-intro-text h2 { margin: 0 0 14px; font-size: clamp(1.25rem,2.4vw,1.7rem); }
.bm-intro-text p { font-size: .97rem; line-height: 1.72; color: var(--text-2); margin-bottom: 4px; }
.bm-intro-img { border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.12); }
.bm-intro-img img { width: 100%; height: auto; display: block; }
.bm-hero h1 { font-size: clamp(1.6rem,4vw,2.6rem); margin: 0 0 16px; }
.bm-hero .lead { font-size: clamp(.95rem,1.8vw,1.1rem); color: var(--text-2); margin-bottom: 18px; }
.bm-compat-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bm-compat-label { font-size: .75rem; font-weight: 660; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.bm-compat-list { font-size: .8rem; color: var(--text-2); }

/* Hero size chips */
.bm-hero-sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; }
.bm-hero-chip { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.bm-hero-chip-rect { display: block; border: 1.5px solid var(--accent); border-radius: 2px; background: rgba(12,158,122,.1); flex-shrink: 0; min-width: 4px; min-height: 4px; }
.bm-hero-chip-label { font-size: .68rem; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* How it works */
.bm-how { }
.bm-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.bm-step { display: flex; gap: 16px; }
.bm-step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .9rem; font-weight: 700; flex-shrink: 0; }
.bm-step-body h3 { margin: 4px 0 8px; font-size: 1rem; }
.bm-step-body p { font-size: .88rem; color: var(--text-2); margin: 0; line-height: 1.6; }

/* Use cases */
.bm-usecases { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 18px; }
.bm-usecase { padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.bm-usecase .icon { color: var(--accent); }
.bm-usecase h3 { margin: 0; font-size: .98rem; }
.bm-usecase p { margin: 0; font-size: .84rem; color: var(--text-2); line-height: 1.55; flex: 1; }
.bm-usecase .btn { align-self: flex-start; margin-top: 4px; }

/* Visual size reference cards */
.bm-size-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 12px; margin: 24px 0; }
.bm-size-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.bm-sc-stage { width: 80px; height: 56px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bm-sc-rect { display: block; border: 1.5px solid var(--text-3); border-radius: 2px; }
.bm-sc-body { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.bm-sc-body strong { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-sc-dims { font-size: .72rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.bm-sc-desc { font-size: .7rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-sc-badge { padding: 2px 7px; border-radius: 20px; font-size: .62rem; font-weight: 660; background: rgba(12,158,122,.1); color: var(--accent-text); flex-shrink: 0; }
.bm-sc-badge--mobile { background: rgba(100,100,220,.1); color: #4444cc; }

/* Banner maker platform grid */
.bm-platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 10px; margin-top: 20px; }
.bm-platform-link { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); text-decoration: none; color: var(--ink); font-size: .84rem; font-weight: 560; transition: border-color var(--t), background var(--t); }
.bm-platform-link:hover { border-color: var(--accent); background: rgba(12,158,122,.04); color: var(--accent-text); }
.bm-platform-link .icon { color: var(--text-3); flex-shrink: 0; }
.bm-platform-link:hover .icon { color: var(--accent); }

/* Banner maker sibling links on subpages */
.bm-siblings { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bm-sibling-chip { padding: 5px 12px; border: 1px solid var(--border); border-radius: 20px; font-size: .8rem; color: var(--text-2); text-decoration: none; transition: border-color var(--t), color var(--t); }
.bm-sibling-chip:hover { border-color: var(--accent); color: var(--accent-text); }
.bm-sibling-chip.is-current { border-color: var(--accent); background: rgba(12,158,122,.08); color: var(--accent-text); pointer-events: none; }

/* Dashboard banner step labels */
.bm-dash-step { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bm-dash-step-num { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.bm-dash-step-label { font-size: .78rem; font-weight: 620; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.bm-dash-divider { border: none; border-top: 1px solid var(--border); margin: 14px 0; }

/* Platform specs callout (old card style - kept for fallback) */
.bm-platform-specs { padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); }
.bm-ps-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.bm-ps-head h2 { margin: 0; font-size: 1.1rem; }
.bm-ps-head .icon { color: var(--accent); }
.bm-ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
.bm-ps-card { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.bm-ps-dims { font-size: .88rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.bm-ps-name { font-size: .8rem; font-weight: 560; color: var(--text-2); margin: 2px 0; }
.bm-ps-use { font-size: .74rem; color: var(--text-3); line-height: 1.4; }
.bm-ps-note { display: flex; align-items: baseline; gap: 6px; font-size: .8rem; color: var(--text-3); margin: 0; }
.bm-ps-note .icon { flex-shrink: 0; position: relative; top: 2px; }

/* Rich platform content: Why + stats chart */
.bm-why-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.bm-why-text h2 { margin-bottom: 14px; }
.bm-why-text p { font-size: .97rem; line-height: 1.7; color: var(--text-2); }
.bm-stats { display: flex; flex-direction: column; gap: 18px; }
.bm-stat-row { display: grid; grid-template-columns: 1fr 160px 72px; align-items: center; gap: 12px; }
.bm-stat-label { font-size: .82rem; color: var(--text-2); line-height: 1.35; }
.bm-stat-bar-wrap { height: 7px; background: var(--surface-2); border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }
.bm-stat-bar { height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s ease; }
.bm-stat-val { font-size: .82rem; font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

/* Specs table */
.bm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bm-spec-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 520px; }
.bm-spec-table th { text-align: left; padding: 10px 14px; background: var(--surface); font-weight: 640; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); border-bottom: 2px solid var(--border); white-space: nowrap; }
.bm-spec-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: top; line-height: 1.4; }
.bm-spec-table tbody tr:last-child td { border-bottom: none; }
.bm-spec-table tbody tr:hover td { background: rgba(12,158,122,.03); }
.bm-iab-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .74rem; font-weight: 600; background: rgba(12,158,122,.1); color: var(--accent-text); border: 1px solid rgba(12,158,122,.2); }

/* Best practices numbered list */
.bm-ol { list-style: none; padding: 0; margin: 22px 0 0; counter-reset: bm-ol; display: flex; flex-direction: column; gap: 20px; }
.bm-ol li { display: flex; gap: 16px; align-items: flex-start; counter-increment: bm-ol; }
.bm-ol li::before { content: counter(bm-ol); font-size: .72rem; font-weight: 700; color: var(--accent); background: rgba(12,158,122,.1); border: 1px solid rgba(12,158,122,.25); border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.bm-ol li > div { flex: 1; min-width: 0; }
.bm-ol li > div strong { display: block; font-size: .94rem; font-weight: 680; color: var(--text); margin-bottom: 3px; }
.bm-ol li > div p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--text-2); }

/* Checklist bullet list */
.bm-ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 11px; }
.bm-ul li { display: flex; gap: 11px; align-items: flex-start; font-size: .93rem; line-height: 1.55; color: var(--text); }
.bm-ul li::before { content: "✓"; color: var(--accent); font-weight: 800; flex-shrink: 0; margin-top: 1px; width: 16px; }

/* Pro tip callout */
.bm-pro-tip { display: flex; gap: 12px; align-items: flex-start; background: rgba(12,158,122,.06); border-left: 3px solid var(--accent); padding: 16px 18px; border-radius: 0 10px 10px 0; font-size: .9rem; line-height: 1.65; color: var(--text); }
.bm-pro-tip .icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.bm-pro-tip strong { color: var(--accent-text); }
.bm-pro-tip em { font-family: Georgia, "Times New Roman", serif; font-style: italic; color: var(--text-2); }

@media(max-width:900px){
  .bm-why-wrap { grid-template-columns: 1fr; gap: 28px; }
  .bm-intro-wrap { grid-template-columns: 1fr; gap: 28px; }
  .bm-intro-img { max-height: 280px; overflow: hidden; }
  .bm-intro-img img { object-fit: cover; height: 280px; }
}
@media(max-width:768px){
  .bm-steps { grid-template-columns: 1fr; }
  .bm-size-cards { grid-template-columns: 1fr 1fr; }
  .bm-stat-row { grid-template-columns: 1fr 100px 60px; gap: 8px; }
}
@media(max-width:480px){
  .bm-size-cards { grid-template-columns: 1fr; }
  .bm-ps-grid { grid-template-columns: 1fr 1fr; }
  .bm-stat-row { grid-template-columns: 1fr; gap: 4px; }
  .bm-stat-bar-wrap { display: none; }
}


/* ===== article.css ===== */
/* =========================================================================
   Article layout: 3-column shell, TOC, prose, tables, charts, related.
   ========================================================================= */
.article-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px) 280px;
  gap: 40px;
  align-items: start;
  padding: 24px 0 40px;
}

/* ---- Sticky sidebars ---- */
.article-toc { position: sticky; top: calc(var(--header-h) + 20px); }
.article-toc .toc-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); font-weight: 640; margin-bottom: 12px; }
.article-toc ul { list-style: none; display: grid; gap: 2px; }
.article-toc a {
  display: block; padding: 6px 12px; border-left: 2px solid var(--border);
  color: var(--text-2); font-size: 0.88rem; line-height: 1.4;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.article-toc a:hover { color: var(--text); }
.article-toc a.lvl-3 { padding-left: 24px; font-size: 0.84rem; }
.article-toc a.active { color: var(--accent-text); border-left-color: var(--accent); font-weight: 560; }

.related-sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.related-sidebar .rs-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); font-weight: 640; }
.rs-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); transition: border-color var(--t), box-shadow var(--t); }
.rs-card:hover { border-color: rgba(12,158,122,0.3); box-shadow: var(--shadow-xs); }
.rs-card .icon-tile { width: 38px; height: 38px; border-radius: 11px; }
.rs-card .icon-tile .icon { width: 19px; height: 19px; }
.rs-card h4 { font-size: 0.92rem; margin: 0 0 2px; line-height: 1.3; letter-spacing: -0.01em; }
.rs-card span { font-size: 0.78rem; color: var(--text-3); text-transform: capitalize; }

/* ---- Article meta ---- */
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--text-3); font-size: 0.88rem; margin: 6px 0 18px; }
.article-meta .badge { text-transform: capitalize; }
.article-summary { font-size: 1.18rem; line-height: 1.6; color: var(--text-2); margin-bottom: 8px; letter-spacing: -0.015em; }

/* ---- Mobile inline TOC ---- */
.toc-inline { display: none; margin: 18px 0 26px; }
.toc-inline summary { cursor: pointer; font-weight: 580; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline ul { list-style: none; padding: 14px 16px; }
.toc-inline a { display: block; padding: 7px 0; color: var(--text-2); font-size: 0.92rem; }

/* ---- Prose ---- */
.prose { font-size: 1.07rem; line-height: 1.75; color: var(--text); }
.prose > p:first-of-type { font-size: 1.16rem; color: var(--text-2); line-height: 1.6; }
.prose h2 { font-size: 1.6rem; margin: 2em 0 0.6em; scroll-margin-top: calc(var(--header-h) + 20px); letter-spacing: -0.025em; }
.prose h3 { font-size: 1.2rem; margin: 1.5em 0 0.5em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose p { margin: 0 0 1.15em; }
.prose a { color: var(--accent-text); text-decoration: none; border-bottom: 1px solid rgba(12,158,122,0.32); transition: border-color var(--t) var(--ease); }
.prose a:hover { border-bottom-color: var(--accent-text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin: 0.4em 0; }
.prose strong { font-weight: 640; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
.prose pre {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 18px 20px; overflow-x: auto; margin: 0 0 1.5em; line-height: 1.6;
}
.prose pre code { background: none; border: none; padding: 0; font-size: 0.92rem; }
.prose blockquote { margin: 0 0 1.4em; padding: 14px 20px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text-2); }

/* ---- Tables ---- */
.prose table, .data-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 1.6em; font-size: 0.95rem; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.prose th, .prose td, .data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.prose thead th, .data-table thead th { background: var(--surface-2); font-weight: 620; font-size: 0.85rem; letter-spacing: 0.01em; text-transform: uppercase; color: var(--text-2); }
.prose tbody tr:last-child td, .data-table tbody tr:last-child td { border-bottom: none; }
.prose tbody tr:hover td { background: var(--surface-2); }

/* ---- Callout / example ---- */
.callout { border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px 22px; margin: 0 0 1.6em; background: var(--surface-2); }
.callout .callout-head { display: flex; align-items: center; gap: 9px; font-weight: 620; margin-bottom: 8px; }
.callout .icon { color: var(--accent); }

/* ---- CSS bar chart (prompt quality) ---- */
.bars { display: grid; gap: 12px; margin: 8px 0 1.6em; }
.bar-row { display: grid; grid-template-columns: 180px 1fr; gap: 14px; align-items: center; font-size: 0.9rem; }
.bar-track { height: 14px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: var(--grad-accent); }

/* ---- Bottom related ---- */
.bottom-related { margin-top: 8px; }
.bottom-related h2 { font-size: 1.5rem; margin-bottom: 20px; }

/* ---- Author note ---- */
.note-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); margin-top: 28px; }
.note-card .icon-tile { flex: none; }
.note-card p { margin: 0; font-size: 0.92rem; color: var(--text-2); }

/* ---- Magazine media: wrap-around figures + charts ---- */
.article-figure { margin: 6px 0 22px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.article-figure img { width: 100%; height: auto; display: block; }
.article-figure.float-right { float: right; width: 43%; margin-left: 28px; }
.article-figure.float-left { float: left; width: 43%; margin-right: 28px; }

.chart-card { clear: both; margin: 26px 0 30px; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.chart-title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 640; letter-spacing: -0.02em; margin: 0 0 14px; color: var(--text); }
.chart-wrap { position: relative; height: 260px; }
.chart-cap { margin: 14px 0 0; font-size: 0.88rem; color: var(--text-3); line-height: 1.5; }

@media (max-width: 720px) {
  .article-figure.float-right, .article-figure.float-left { float: none; width: 100%; margin: 0 0 20px; }
  .chart-wrap { height: 220px; }
}

/* ---- Scrollable table wrapper (mobile-safe) ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.6em; border-radius: var(--r-sm); }
.table-scroll table, .table-scroll .data-table { margin: 0; }


/* ===== mobile.css ===== */
/* =========================================================================
   Responsive overrides. Mobile-first content, these handle larger-to-smaller.
   ========================================================================= */

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: none; margin-bottom: 8px; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .related-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .models-row { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 980px) {
  /* Article collapses to single column; sidebars move/relocate. */
  .article-shell { display: block; }
  .article-toc { display: none; }
  .related-sidebar { display: none; }
  .toc-inline { display: block; }

  .tool-hero { grid-template-columns: 1fr; }
  .editor-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip .feature-visual { order: 0; }
  .workspace-grid { grid-template-columns: 1fr; }
  .account-shell { grid-template-columns: 1fr; }
  .account-nav { position: static; grid-auto-flow: column; overflow-x: auto; padding-bottom: 8px; }

  .grid-3, .grid-4, .grid-tools, .tmpl-grid, .read-grid, .steps, .tool-steps { grid-template-columns: repeat(2, 1fr); }
  .example-grid { grid-template-columns: repeat(3, 1fr); }

  .showcase-panel { grid-template-columns: 1fr; }
  .showcase-media { border-left: none; border-top: 1px solid var(--border); order: -1; }
  .showcase-media img { min-height: 220px; }

  .models-row { grid-template-columns: repeat(2, 1fr); }
  .tcard.lg, .tcard.sm { width: 82vw; max-width: 340px; }
  .qa-grid { grid-template-columns: 1fr; }
  .qa-visual { position: static; }
}

@media (max-width: 760px) {
  /* Hamburger sits on the right; nav + desktop actions hidden */
  .nav-primary, .header-actions .btn-accent, .header-actions .link-quiet { display: none; }
  .menu-toggle { display: grid; }
  .header-actions { gap: 6px; margin-left: auto; }

  .hero { padding-top: 28px; }
  .display { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .composer-textarea { font-size: 1.05rem; }

  /* Charts fit the smaller column */
  .chart-card { padding: 18px 16px; }
  .editor-chips { gap: 8px; }
  .editor-credits { text-align: left; }

  .grid-2, .grid-3, .grid-4, .grid-tools, .tmpl-grid, .read-grid, .steps, .tool-steps,
  .pricing-grid, .related-tools-grid { grid-template-columns: 1fr; }
  .ratio-grid { grid-template-columns: repeat(5, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .example-grid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .example-card { flex: 0 0 42%; scroll-snap-align: start; }
  .example-card .cap { opacity: 1; transform: none; }

  .chips-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .chips-scroll .chip { flex: none; }

  /* Sticky CTA on tool/generator pages */
  .sticky-cta {
    display: flex; position: fixed; left: 12px; right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom)); z-index: 90;
    gap: 10px; padding: 10px; border-radius: var(--r-pill);
    background: var(--surface-glass-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  }
  .sticky-cta .btn { flex: 1; }
  /* Reserve room so the fixed CTA can never overlap the footer on tool pages.
     :has() targets only pages that actually render a sticky CTA; the body class
     is a fallback hook for browsers without :has(). */
  body:has(.sticky-cta),
  body.has-sticky-cta { padding-bottom: 84px; }

  /* Touch targets: keep chips and small tappable controls >= 44px on mobile. */
  .chip, .ratio-btn, .showcase-tab, .editor-chip, .conv-related a,
  .billing-toggle .bt-opt, .segmented button { min-height: 44px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  /* Headline wraps cleanly on phones instead of risking overflow */
  .hero-title { white-space: normal; font-size: clamp(2rem, 8.5vw, 3rem); }
  .hero-ul { white-space: normal; }
  .composer-mode { display: none; }
  .editor-grid { padding: 22px; }
  .editor-copy h2 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
}

@media (max-width: 460px) {
  /* Keep the footer a tidy 2-column grid on phones (1 column makes it very
     long). The brand block still spans the full width above the link columns. */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .footer-col a { padding: 5px 0; font-size: 0.9rem; }
  .example-card { flex-basis: 60%; }
  .bar-row { grid-template-columns: 110px 1fr; font-size: 0.82rem; }
}

/* Pause the reviews marquee for reduced-motion users and let it scroll */
@media (prefers-reduced-motion: reduce) {
  .tmarquee-track { animation: none; }
  .tmarquee { overflow-x: auto; }
}

/* ---- Tighter "band" + "steps" on phones (tools, templates, homepage) ---- */
@media (max-width: 760px) {
  .band { padding: 26px 20px; border-radius: var(--r-lg); }
  .band .section-head { margin-bottom: 24px !important; }

  .steps { gap: 22px; }
  /* number sits beside the heading, paragraph spans full width below */
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 13px; row-gap: 8px; align-items: center; padding-top: 0; }
  .step-num { width: 36px; height: 36px; margin-bottom: 0; grid-column: 1; grid-row: 1; }
  .step h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 1.12rem; }
  .step p { grid-column: 1 / -1; grid-row: 2; margin: 0; }

  .process-bar { display: none; }
}
