/* ============================================================
   BIMIO website — shared design system
   Apple-styled, matching the suite's Report Kit tokens.
   Light + dark via [data-theme] with prefers-color-scheme fallback.
   ============================================================ */

:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #4b4b50; /* secondary text — dark enough to READ, not just decorate */
  --ink-3: #707075; /* AA on card/surface/bg at small sizes */
  --line: #e5e5ea;
  --surface: #fbfbfd;
  --hover: #f2f2f7;
  --accent: #0071e3;
  --accent-ink: #ffffff;
  --ok: #34c759;
  --ok-text: #1d7a3c; /* readable green for text on light tints */
  --warn: #ff9f0a;
  --bad: #ff3b30;
  --info: #5ac8fa;
  --purple: #af52de;
  --pink: #ff2d55;
  --teal: #30b0c7;
  --indigo: #5856d6;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.06), 0 18px 50px rgba(0,0,0,.10);
  --nav-bg: rgba(251,251,253,.78);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1120px;
  color-scheme: light;
}

/* LIGHT IS THE DEFAULT — dark only when the visitor explicitly toggles it.
   (No prefers-color-scheme auto-switch: the site should greet everyone the
   same way, like Apple's own marketing pages.) */
:root[data-theme="dark"] {
  --bg: #000000;
  --card: #1c1c1e;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #8e8e93;
  --line: #2c2c2e;
  --surface: #161618;
  --hover: #2c2c2e;
  --accent: #0a84ff;
  --ok: #30d158;
  --ok-text: #30d158;
  --warn: #ff9f0a;
  --bad: #ff453a;
  --nav-bg: rgba(22,22,24,.72);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.5);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.5), 0 18px 50px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ---------- base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: block; font-size: 14px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
h1, h2, h3 { letter-spacing: -0.015em; font-weight: 700; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  height: 52px; display: flex; align-items: center; gap: 28px;
}
.nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; color: var(--ink); }
.nav-logo:hover { text-decoration: none; }
.nav-logo svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  background: var(--accent); color: var(--accent-ink) !important;
  padding: 6px 16px; border-radius: 980px; font-weight: 600 !important;
}
.nav-cta:hover { filter: brightness(1.08); }
.theme-toggle {
  background: none; border: none; cursor: pointer; color: var(--ink-2);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
}
.theme-toggle:hover { background: var(--hover); color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.nav-burger { display: none; }

@media (max-width: 820px) {
  .nav-links {
    display: none; position: absolute; top: 52px; left: 0; right: 0;
    background: var(--nav-bg); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    flex-direction: column; padding: 18px 24px; gap: 16px; align-items: flex-start;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-burger {
    display: grid; place-items: center; margin-left: auto;
    background: none; border: none; cursor: pointer; color: var(--ink);
    width: 38px; height: 38px;
  }
  .nav-links .theme-toggle { margin-left: -6px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 980px; font-size: 16px; font-weight: 600;
  border: none; cursor: pointer; transition: transform .15s ease, filter .15s ease;
  font-family: var(--font);
}
.btn:hover { text-decoration: none; transform: scale(1.02); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-ghost:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.btn-lg { padding: 15px 34px; font-size: 17.5px; }
.btn-sm { padding: 8px 18px; font-size: 14.5px; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 96px 24px 72px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line); background: var(--card);
  padding: 6px 14px; border-radius: 980px; margin-bottom: 28px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 {
  font-size: clamp(42px, 7vw, 76px); line-height: 1.04; letter-spacing: -0.022em;
  max-width: 860px; margin: 0 auto;
}
.hero h1 .grad {
  background: linear-gradient(92deg, #0a84ff, #30b0c7 55%, #5ac8fa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: clamp(18px, 2.4vw, 23px); color: var(--ink-2);
  max-width: 680px; margin: 24px auto 0; line-height: 1.45; font-weight: 400;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; }
.section-head p { color: var(--ink-2); font-size: 18.5px; margin-top: 14px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- tool grid ---------- */
.panel-label {
  display: flex; align-items: center; gap: 12px; margin: 44px 0 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.panel-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 12px;
  color: var(--ink); transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.tool-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.tool-icon svg { width: 24px; height: 24px; }
.tool-card h3 { font-size: 19px; display: flex; align-items: center; gap: 8px; }
.tool-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; flex: 1; }
.tool-card .tool-link { font-size: 14.5px; font-weight: 600; color: var(--accent); }
.tool-chip {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: var(--hover); color: var(--ink-2); border-radius: 6px; padding: 2px 8px;
}
.tool-chip.free { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok-text); }

/* icon tints */
.tint-blue   { background: linear-gradient(135deg,#0a84ff,#0071e3); }
.tint-teal   { background: linear-gradient(135deg,#30b0c7,#5ac8fa); }
.tint-green  { background: linear-gradient(135deg,#34c759,#30d158); }
.tint-orange { background: linear-gradient(135deg,#ff9f0a,#ffb340); }
.tint-red    { background: linear-gradient(135deg,#ff453a,#ff6961); }
.tint-purple { background: linear-gradient(135deg,#af52de,#bf5af2); }
.tint-indigo { background: linear-gradient(135deg,#5856d6,#7d7aff); }
.tint-pink   { background: linear-gradient(135deg,#ff2d55,#ff6482); }
.tint-gray   { background: linear-gradient(135deg,#636366,#8e8e93); }

/* ---------- feature strip ---------- */
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .feature-strip { grid-template-columns: 1fr; } }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
}
.feature .f-icon {
  width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent); display: grid; place-items: center; margin-bottom: 16px;
}
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--ink-2); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 940px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column; position: relative;
}
.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.price-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; padding: 4px 14px; border-radius: 980px; white-space: nowrap;
}
.price-card h3 { font-size: 21px; }
.price-card .p-sub { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; }
.price-num { margin: 22px 0 4px; font-size: 44px; font-weight: 700; letter-spacing: -0.02em; }
.price-num span { font-size: 17px; font-weight: 500; color: var(--ink-2); }
.price-alt { font-size: 14.5px; color: var(--ink-2); margin-bottom: 20px; }
.price-alt strong { color: var(--ink); }
.price-card ul { list-style: none; margin: 0 0 26px; display: grid; gap: 10px; }
.price-card li { font-size: 14.5px; color: var(--ink-2); padding-left: 26px; position: relative; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: color-mix(in srgb, var(--ok) 18%, transparent);
}
.price-card li::after {
  content: ""; position: absolute; left: 4.5px; top: 7.5px; width: 6px; height: 3.5px;
  border-left: 1.8px solid var(--ok); border-bottom: 1.8px solid var(--ok); transform: rotate(-45deg);
}
.price-card .btn { margin-top: auto; }
.price-note { text-align: center; color: var(--ink-2); font-size: 13.5px; margin-top: 26px; }
.price-note a { color: var(--ink-2); text-decoration: underline; }

/* studio table */
.studio-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: 15px; }
.studio-table th, .studio-table td { padding: 14px 18px; text-align: left; }
.studio-table th { background: var(--hover); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.studio-table tr + tr td { border-top: 1px solid var(--line); }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
details.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 22px; overflow: hidden;
}
details.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16.5px; padding: 18px 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--ink-3); transition: transform .2s ease; flex-shrink: 0;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-body { padding: 0 0 20px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 48px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .foot-h { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { color: var(--ink-2); font-size: 14.5px; }
.footer a:hover { color: var(--ink); }
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.footer-brand svg { width: 26px; height: 26px; }
.footer-tag { color: var(--ink-2); font-size: 14px; max-width: 280px; }
.footer-legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--ink-3); }

/* ============================================================
   GUIDE PAGES
   ============================================================ */
.guide-hero {
  padding: 64px 0 44px; border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.guide-hero .crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 22px; }
.guide-hero .crumbs a { color: var(--ink-2); }
.guide-hero-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.guide-hero .tool-icon { width: 64px; height: 64px; border-radius: 16px; }
.guide-hero .tool-icon svg { width: 32px; height: 32px; }
.guide-hero h1 { font-size: clamp(34px, 5vw, 48px); }
.guide-hero .g-panel { font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.guide-hero p.tagline { font-size: 18.5px; color: var(--ink-2); max-width: 780px; margin-top: 18px; }

.guide-layout {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px;
  max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 90px;
}
@media (max-width: 940px) { .guide-layout { grid-template-columns: 1fr; gap: 0; } }

/* TOC */
.toc { position: sticky; top: 76px; align-self: start; }
@media (max-width: 940px) { .toc { position: static; margin-bottom: 36px; } }
.toc-box { border-left: 1px solid var(--line); padding-left: 18px; }
.toc .toc-h { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.toc ul { list-style: none; display: grid; gap: 2px; }
.toc a {
  display: block; font-size: 14px; color: var(--ink-2); padding: 5px 10px;
  border-radius: var(--radius-xs); line-height: 1.35;
}
.toc a:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.toc a.active { color: var(--accent); font-weight: 600; background: color-mix(in srgb, var(--accent) 9%, transparent); }
.guide-search {
  width: 100%; margin-bottom: 18px; padding: 9px 13px; font-size: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-xs);
  background: var(--card); color: var(--ink); font-family: var(--font);
}
.guide-search::placeholder { color: var(--ink-3); }
.guide-search:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

/* guide sections */
.gsec { margin-bottom: 64px; scroll-margin-top: 76px; }
.gsec > h2 {
  font-size: 28px; margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 12px;
}
.gsec > h2 .sec-count { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.gsec p { margin-bottom: 14px; color: var(--ink); font-size: 16.5px; }
.gsec p.dim { color: var(--ink); } /* guide CONTENT is never decorative */
.gsec ul.plain { margin: 0 0 14px 22px; display: grid; gap: 8px; color: var(--ink); font-size: 16px; }

/* access path pill */
.access-path {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 18px; font-size: 15px; font-weight: 600; margin-bottom: 16px;
}
.access-path .sep { color: var(--ink-3); font-weight: 400; }

/* concepts */
.concept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .concept-grid { grid-template-columns: 1fr; } }
.concept {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.concept dt { font-weight: 700; font-size: 15.5px; margin-bottom: 6px; }
.concept dd { font-size: 14.5px; color: var(--ink-2); }

/* UI areas */
.area-list { display: grid; gap: 10px; counter-reset: area; }
.area {
  display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px;
}
.area::before {
  counter-increment: area; content: counter(area);
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
  font-weight: 700; font-size: 14px; display: grid; place-items: center;
}
.area b { display: block; font-size: 15.5px; margin-bottom: 3px; }
.area span { font-size: 14.5px; color: var(--ink-2); }

/* workflows */
.wf {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 18px; overflow: hidden;
}
.wf > summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  display: flex; align-items: center; gap: 14px;
}
.wf > summary::-webkit-details-marker { display: none; }
.wf > summary .wf-n {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
  font-weight: 700; font-size: 15px; display: grid; place-items: center;
}
.wf > summary h3 { font-size: 17.5px; flex: 1; }
.wf > summary .wf-steps-n { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.wf > summary .chev { color: var(--ink-3); transition: transform .2s ease; flex-shrink: 0; }
.wf[open] > summary .chev { transform: rotate(90deg); }
.wf-body { padding: 4px 24px 24px; border-top: 1px solid var(--line); }
.wf-goal { font-size: 15px; color: var(--ink-2); padding: 14px 0 6px; }
.wf-goal b { color: var(--ink); }
.step-list { list-style: none; margin-top: 10px; }
.step {
  display: grid; grid-template-columns: 30px 1fr; gap: 0 14px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step-check { grid-row: 1 / 3; }
.step-check input {
  width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); cursor: pointer;
}
.step-text { font-size: 15.5px; }
.step.done .step-text { color: var(--ink-3); text-decoration: line-through; }
.step-detail { grid-column: 2; font-size: 14px; color: var(--ink-2); margin-top: 5px; }
.step .shot { grid-column: 2; margin-top: 12px; }
.wf-result {
  margin-top: 16px; padding: 13px 16px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--ok) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);
  font-size: 14.5px;
}
.wf-result b { color: var(--ok-text); }
.wf-tips { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.wf-tips li { margin-left: 20px; margin-top: 6px; }

/* options table */
.opt-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.opt-table th { text-align: left; background: var(--hover); padding: 11px 16px; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.opt-table td { padding: 12px 16px; vertical-align: top; }
.opt-table tr + tr td { border-top: 1px solid var(--line); }
.opt-table td:first-child { font-weight: 600; white-space: nowrap; }
.opt-table td:last-child { color: var(--ink-2); }
@media (max-width: 720px) { .opt-table td:first-child { white-space: normal; } }

/* callout lists (tips / limitations) */
.callout-list { display: grid; gap: 10px; }
.callout {
  display: flex; gap: 13px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 17px; font-size: 15px;
}
.callout .c-ic { flex-shrink: 0; width: 22px; height: 22px; display: grid; place-items: center; margin-top: 1px; }
.callout.tip .c-ic { color: var(--warn); }
.callout.limit .c-ic { color: var(--ink-3); }
.callout span { color: var(--ink); }

/* screenshots & placeholders */
.shot { margin: 20px 0; }
.shot-frame {
  border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface);
}
.shot-frame img { display: none; width: 100%; cursor: zoom-in; }
.shot-frame.has-img img { display: block; }
.shot-frame.has-img .shot-ph { display: none; }
.shot-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 44px 24px; text-align: center;
  background: repeating-linear-gradient(-45deg, transparent, transparent 12px,
    color-mix(in srgb, var(--ink) 3%, transparent) 12px,
    color-mix(in srgb, var(--ink) 3%, transparent) 24px);
}
.shot-ph svg { width: 34px; height: 34px; color: var(--ink-3); }
.shot-ph .ph-file {
  font-family: var(--mono); font-size: 12.5px; color: var(--accent);
  background: var(--card); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 6px;
}
.shot-ph .ph-desc { font-size: 13px; color: var(--ink-3); max-width: 520px; }
.shot figcaption { font-size: 13.5px; color: var(--ink-3); margin-top: 9px; text-align: center; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(0,0,0,.82); place-items: center; padding: 32px; cursor: zoom-out;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; width: 40px; height: 40px;
  border-radius: 50%; border: none; cursor: pointer; font-size: 20px; line-height: 1;
  background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center;
}
.lightbox-close:hover { background: rgba(255,255,255,.26); }
.shot-frame.has-img img:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* prev/next */
.guide-nav { display: flex; gap: 16px; margin-top: 20px; }
.guide-nav a {
  flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 20px; color: var(--ink);
}
.guide-nav a:hover { text-decoration: none; box-shadow: var(--shadow); }
.guide-nav .dir { font-size: 12.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.guide-nav .gt { font-weight: 700; font-size: 16px; margin-top: 3px; display: block; }
.guide-nav .next { text-align: right; }

/* guide hub cards */
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 780px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card {
  display: flex; gap: 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hub-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.hub-card .tool-icon { width: 52px; height: 52px; }
.hub-card h3 { font-size: 18px; }
.hub-card p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.hub-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }

/* search-hidden marker */
.search-hide { display: none !important; }

/* legal pages */
.legal-doc { max-width: 780px; margin: 0 auto; padding: 56px 24px 90px; }
.legal-doc h1 { font-size: 38px; margin-bottom: 8px; }
.legal-doc .doc-meta { color: var(--ink-3); font-size: 14px; margin-bottom: 36px; }
.legal-doc h2 { font-size: 24px; margin: 40px 0 14px; }
.legal-doc h3 { font-size: 18.5px; margin: 26px 0 10px; }
.legal-doc p, .legal-doc li { font-size: 16px; color: var(--ink); margin-bottom: 12px; }
.legal-doc ul, .legal-doc ol { margin: 0 0 16px 24px; }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 18px 0; }
.legal-doc th, .legal-doc td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.legal-doc th { background: var(--hover); }
.todo-ph {
  background: color-mix(in srgb, var(--warn) 18%, transparent);
  border: 1px dashed var(--warn); border-radius: 5px; padding: 1px 7px;
  font-family: var(--mono); font-size: .85em; color: var(--ink); white-space: nowrap;
}
.doc-banner {
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: 14.5px;
  color: var(--ink); margin-bottom: 34px;
}

/* ============================================================
   MOTION — the I/O signal, scroll reveals, micro-interactions.
   Everything here dies under prefers-reduced-motion (global kill
   at the top of this file), and all reveals are progressive
   enhancement: without JS the content simply shows.
   ============================================================ */

/* the brand signal: a dot travelling input → model → output */
.io-dot { opacity: 0; }
@supports (offset-path: path("M0 0 L1 1")) {
  .io-dot {
    offset-path: path("M4.5 7.7 L12 12 L12 20.4");
    animation: io-travel 3s cubic-bezier(.45, 0, .55, 1) infinite;
  }
}
@keyframes io-travel {
  0%   { offset-distance: 0%;   opacity: 0; }
  14%  { opacity: 1; }
  84%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* hero mark: the cube floating gently, signal running, tilting toward
   the pointer (tilt = inline transform on the wrapper, float = animation
   on the svg, so the two never fight) */
.hero-mark {
  width: 92px; margin: 0 auto 26px; color: var(--ink);
  filter: drop-shadow(0 10px 26px color-mix(in srgb, var(--accent) 32%, transparent));
  transition: transform .25s ease; transform-style: preserve-3d; will-change: transform;
}
.hero-mark svg { display: block; animation: mark-float 7s ease-in-out infinite; }
@keyframes mark-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* hero entrance: staggered rise */
.hero > * { animation: rise .7s cubic-bezier(.2, .7, .3, 1) both; }
.hero > :nth-child(2) { animation-delay: .07s; }
.hero > :nth-child(3) { animation-delay: .14s; }
.hero > :nth-child(4) { animation-delay: .21s; }
.hero > :nth-child(5) { animation-delay: .28s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* living gradient on the hero keyword */
.hero h1 .grad {
  background-size: 220% 100%;
  animation: grad-pan 7s ease-in-out infinite alternate;
}
@keyframes grad-pan {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* launch-badge dot: soft ping */
.hero-badge .dot { animation: dot-ping 2.4s ease-out infinite; }
@keyframes dot-ping {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* scroll reveals (elements are tagged by site.js; class removed after) */
.reveal { transition: opacity .6s cubic-bezier(.2, .7, .3, 1), transform .6s cubic-bezier(.2, .7, .3, 1); }
.reveal:not(.in) { opacity: 0; transform: translateY(18px); }

/* micro-interactions */
.tool-icon { transition: transform .25s ease; }
.tool-card:hover .tool-icon, .hub-card:hover .tool-icon { transform: scale(1.08) rotate(-2deg); }
.nav-logo svg { transition: transform .3s ease; }
.nav-logo:hover svg { transform: rotate(-6deg) scale(1.06); }

/* ============================================================
   WOW LAYER — ambient aurora, cursor spotlight, live stats,
   the mock report, page cross-fades. Still Apple-quiet.
   ============================================================ */

/* cross-fade between pages (progressive: Chromium MPA view transitions) */
@view-transition { navigation: auto; }

/* anchored sections must clear the sticky nav */
section[id], [id].section { scroll-margin-top: 64px; }

/* --- hero aurora: two soft glows drifting behind the content --- */
.hero { position: relative; overflow: hidden; }
.hero > * { position: relative; z-index: 1; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: 0; border-radius: 50%;
  filter: blur(70px); pointer-events: none;
}
.hero::before {
  width: 560px; height: 560px; left: 14%; top: -220px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 26%, transparent), transparent 68%);
  animation: drift-a 19s ease-in-out infinite alternate;
}
.hero::after {
  width: 460px; height: 460px; right: 10%; top: -120px;
  background: radial-gradient(circle, color-mix(in srgb, var(--teal) 22%, transparent), transparent 68%);
  animation: drift-b 23s ease-in-out infinite alternate;
}
@keyframes drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(90px, 60px) scale(1.18); } }
@keyframes drift-b { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-80px, 40px) scale(0.94); } }

/* --- cursor spotlight on cards (glow span injected by site.js) --- */
.card-glow {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--accent) 10%, transparent), transparent 65%);
}
.tool-card, .feature, .price-card, .hub-card { position: relative; }
.tool-card:hover .card-glow, .feature:hover .card-glow,
.price-card:hover .card-glow, .hub-card:hover .card-glow { opacity: 1; }

/* --- stats strip --- */
.stats { padding: 8px 0 46px; }
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center;
}
@media (max-width: 720px) { .stats-row { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; } }
.stat-n {
  display: block; font-size: clamp(30px, 4.6vw, 44px); font-weight: 700;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  background: linear-gradient(92deg, var(--accent), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-l { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-2); }

/* --- mock report (the product tease, pure CSS) --- */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; gap: 36px; } }
.showcase-copy .eyebrow { margin-bottom: 10px; }
.showcase-copy h2 { font-size: clamp(28px, 3.8vw, 40px); line-height: 1.12; }
.showcase-copy p { margin-top: 14px; font-size: 17px; }
.check-list { list-style: none; margin-top: 20px; display: grid; gap: 11px; }
.check-list li { padding-left: 28px; position: relative; font-size: 15.5px; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px;
  border-radius: 50%; background: color-mix(in srgb, var(--ok) 18%, transparent);
}
.check-list li::after {
  content: ""; position: absolute; left: 4.7px; top: 7.6px; width: 6.5px; height: 3.8px;
  border-left: 1.9px solid var(--ok-text); border-bottom: 1.9px solid var(--ok-text); transform: rotate(-45deg);
}
.mock-report {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
  transition: transform .3s ease;
}
.mock-report:hover { transform: translateY(-4px) rotate(-.4deg); }
.mock-head {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl.r { background: #ff5f57; } .tl.y { background: #febc2e; } .tl.g { background: #28c840; }
.mock-title { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.mock-body { display: flex; gap: 26px; align-items: center; padding: 26px 24px; flex-wrap: wrap; }
.ring-wrap { position: relative; width: 120px; flex-shrink: 0; text-align: center; }
.ring-wrap svg { width: 108px; height: 108px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--hover); stroke-width: 8; }
.ring-fg {
  fill: none; stroke: var(--ok); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 213.6; stroke-dashoffset: 213.6;
  transition: stroke-dashoffset 1.4s cubic-bezier(.25, .6, .3, 1) .25s;
}
.mock-report.live .ring-fg { stroke-dashoffset: 27.8; } /* 87% */
.ring-num {
  position: absolute; top: 34px; left: 0; width: 108px; text-align: center;
  font-size: 27px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.ring-cap { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.mock-rows { flex: 1; min-width: 200px; display: grid; gap: 9px; }
.mock-row {
  display: flex; align-items: center; gap: 10px; font-size: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xs); padding: 9px 12px;
  opacity: 0; transform: translateX(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.mock-report.live .mock-row { opacity: 1; transform: none; }
.mock-report.live .mock-row:nth-child(1) { transition-delay: .35s; }
.mock-report.live .mock-row:nth-child(2) { transition-delay: .55s; }
.mock-report.live .mock-row:nth-child(3) { transition-delay: .75s; }
.mock-report.live .mock-row:nth-child(4) { transition-delay: .95s; }
.mr-ic {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff;
}
.mr-ic.ok { background: var(--ok); } .mr-ic.warn { background: var(--warn); } .mr-ic.bad { background: var(--bad); }
@media (prefers-reduced-motion: reduce) {
  .mock-row { opacity: 1; transform: none; }
  .ring-fg { stroke-dashoffset: 27.8; }
}

/* --- theme toggle: moon in light, sun in dark --- */
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ============================================================
   CELESTIAL LAYER — the last 5%: typographic perfection, the
   glowing Suite card, silky accordions, reading progress,
   themed scrollbars, shine. All progressive, all quiet.
   ============================================================ */

/* typographic perfection: no orphan words in headings, tidy rag in prose */
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }

/* the money moment: an Apple-Intelligence glow ring around the Suite card */
@property --ring-ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@supports ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
  .price-card.featured { border-color: transparent; }
  .price-card.featured::before {
    content: ""; position: absolute; inset: -1.5px; border-radius: 19px;
    padding: 1.5px; pointer-events: none;
    background: conic-gradient(from var(--ring-ang),
      #0a84ff, #30b0c7 30%, #af52de 55%, #5ac8fa 80%, #0a84ff);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
    animation: ring-spin 7s linear infinite;
  }
  .price-card.featured { box-shadow: 0 2px 6px rgba(0,0,0,.06),
    0 18px 50px color-mix(in srgb, var(--accent) 16%, transparent); }
}
@keyframes ring-spin { to { --ring-ang: 360deg; } }

/* silky accordion open/close (FAQ + workflows; Chrome 131+, snaps elsewhere) */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details.faq::details-content, details.wf::details-content {
    height: 0; overflow: clip;
    transition: height .34s cubic-bezier(.3, .7, .3, 1), content-visibility .34s allow-discrete;
  }
  details.faq[open]::details-content, details.wf[open]::details-content { height: auto; }
}

/* reading progress on guide pages (bar injected by site.js) */
.read-progress {
  position: fixed; top: 0; left: 0; height: 2.5px; width: 0%; z-index: 300;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  pointer-events: none;
}

/* section heading anchors on guides (injected by site.js) */
.h-anchor {
  margin-left: 4px; font-weight: 400; font-size: .75em; color: var(--ink-3);
  opacity: 0; transition: opacity .2s ease; text-decoration: none;
}
.gsec > h2:hover .h-anchor, .h-anchor:focus-visible { opacity: 1; }
.h-anchor:hover { color: var(--accent); text-decoration: none; }

/* primary-button shine sweep */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.35) 50%, transparent 68%);
  transform: translateX(-120%);
}
.btn-primary:hover::after { animation: shine .85s ease; }
@keyframes shine { to { transform: translateX(120%); } }

/* themed scrollbars */
html { scrollbar-color: color-mix(in srgb, var(--ink) 24%, transparent) transparent; }
@media (pointer: fine) {
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--ink) 22%, transparent);
    border-radius: 8px; border: 3px solid var(--bg);
  }
  ::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--ink) 36%, transparent); }
}

/* frosted lightbox */
.lightbox { background: rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* util */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.hidden { display: none; }
