/* minim3.ai marketing site — shared across home, pricing, download, tutorials.
   Direction (2026-06-16): DARK, on the app's Studio palette — near-black
   surfaces + an indigo Studio accent. Same layout/formatting as the light
   version; only the colour layer changed. Warmth/identity now comes from the
   indigo glow + the live activity card. Portal/admin match this (their own
   inline styles). */

:root {
  --bg:        #0b0c10;        /* page — Studio near-black */
  --bg-alt:    #101319;        /* slightly elevated alt section */
  --surface:   #15161d;        /* cards (Studio --panel) */
  --surface-2: #1b1d26;        /* nested / hover surface */
  --text:      #e9eaef;
  --text-2:    #9aa0ad;        /* ≥6:1 on bg + surface */
  --border:    #262833;
  --border-2:  #343745;

  --accent:    #635cf0;        /* indigo — Studio family; white text = 4.9:1 (AA) */
  --accent-bright:#8b86ff;     /* glow / borders / focus ring / text on dark */
  --accent-press:#5249d8;      /* filled-button hover (darker, keeps white ≥4.5:1) */
  --accent-deep:#a9a4ff;       /* accent TEXT on dark (AA on bg/surface) */
  --accent-soft:rgba(109,102,245,.14);  /* chip / icon wash */
  --success:   #34d399;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --maxw:      1140px;

  --s-sm: 12px; --s-md: 20px; --s-lg: 40px; --s-xl: 72px; --s-2xl: 112px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-nav: 50;
  --z-modal: 100;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 22px -12px rgba(0,0,0,.7);
  --shadow-lg: 0 30px 60px -28px rgba(0,0,0,.85);
  --glow:      0 0 40px -10px rgba(109,102,245,.55);
}

* { box-sizing: border-box; margin: 0; }

.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.skip { position:absolute; left:-9999px; top:0; z-index:100; background:var(--surface); color:var(--accent-deep); font-weight:700; padding:10px 16px; border-radius:10px; box-shadow:var(--shadow-md); }
.skip:focus { left:12px; top:12px; }

/* Visible keyboard focus on every interactive element (mouse clicks unaffected). */
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; border-radius: 6px; }
.btn:focus-visible { outline-offset: 3px; }
.nav-toggle:focus-visible, .input:focus-visible { outline-offset: 1px; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: 'Bricolage Grotesque', 'Figtree', sans-serif; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }

a { color: var(--accent-deep); text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: background .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
/* Filled buttons darken on hover (keeps white text ≥4.5:1; lightening dropped it to ~3:1). */
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-press); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--glow); }
.btn-accent:hover { background: var(--accent-press); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.on-dark .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.24); }
.on-dark .btn-ghost:hover { border-color: var(--accent-bright); }

/* ── Image placeholders (swap later) ─────────────────────────────────────── */
.ph {
  display: grid; place-items: center; text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(109,102,245,.06) 0 12px, transparent 12px 24px),
    var(--surface);
  border: 1.5px dashed var(--border-2); border-radius: var(--radius);
  color: var(--text-2); font-size: 13px; font-weight: 500; padding: 20px;
  min-height: 120px;
}
.ph small { display: block; font-weight: 400; opacity: .7; margin-top: 4px; font-size: 11.5px; }
.ph-logo { min-height: 56px; border-radius: var(--radius-sm); font-size: 12px; }
.ph-avatar { width: 44px; height: 44px; min-height: 0; border-radius: 50%; font-size: 0; flex: none; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: var(--z-nav); background: rgba(11,12,16,.78); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 0 rgba(0,0,0,.4); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 13px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 19px; color: #fff; letter-spacing: -0.01em; }
.brand-dot { width: 26px; height: 26px; background: url('/logo.svg') center/contain no-repeat; display: inline-block; font-size: 0; color: transparent; flex: none; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-links .lnk { color: var(--text-2); font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.nav-links .lnk:hover { color: #fff; background: var(--surface); }
.nav-links .lnk[aria-current="page"] { color: #fff; font-weight: 600; }
.nav-links .btn { padding: 9px 16px; font-size: 14px; }

/* Hamburger toggle — hidden on desktop, shown on mobile. */
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

/* Mobile menu — full-width panel under the bar, opened by the hamburger. */
.mobile-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(11,12,16,.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 12px; flex-direction: column; gap: 4px; }
.mobile-menu.open { display: flex; animation: menu-drop .22s var(--ease) both; }
.mobile-menu a { color: var(--text); font-size: 16px; font-weight: 500; padding: 13px 14px; border-radius: 10px; }
.mobile-menu a:hover { background: var(--surface); }
.mobile-menu a[aria-current="page"] { color: #fff; }
.mobile-menu .btn { margin-top: 8px; }
@keyframes menu-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
body.menu-open { overflow: hidden; }

/* ── Section scaffolding ─────────────────────────────────────────────────── */
.section { padding: var(--s-2xl) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto var(--s-lg); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--accent-deep); margin-bottom: 12px; }
.section h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 14px; }
.section .sub { font-size: 18px; color: var(--text-2); text-wrap: pretty; }
.section-head .sub { margin: 0 auto; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-top: var(--s-xl); }
.hero::before { content:''; position:absolute; inset:0 0 auto 0; height:620px; background: radial-gradient(900px 460px at 72% -8%, rgba(109,102,245,.22), transparent 62%); pointer-events:none; }
.hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: var(--s-lg) 24px var(--s-2xl); display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }
.badge { display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:600; color:var(--accent-deep); background:var(--accent-soft); border:1px solid rgba(109,102,245,.32); padding:5px 13px; border-radius:999px; margin-bottom:22px; }
.badge-dot { width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 8px var(--accent); }
.hero h1 { font-size: clamp(38px, 6vw, 66px); margin-bottom: 20px; }
.hero .lede { font-size: clamp(17px, 1.7vw, 20px); color: var(--text-2); max-width: 34ch; margin-bottom: 30px; text-wrap: pretty; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { margin-top: 26px; display: flex; gap: 18px 26px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--success); flex: none; }
.hero-visual .ph { aspect-ratio: 4 / 3; min-height: 300px; box-shadow: var(--shadow-lg); }

/* ── Logo strip ──────────────────────────────────────────────────────────── */
.logos { text-align: center; }
.logos .label { font-size: 13px; color: var(--text-2); margin-bottom: 22px; }
.logo-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.logo-row .ph-logo { width: 150px; }

/* ── Feature grid ────────────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }
.feature:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 16px; }
.feature-ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; margin-bottom: 7px; letter-spacing: -0.01em; }
.feature p { font-size: 15px; color: var(--text-2); }

/* Home features as a bento — two lead tiles, a row of thirds, a full-width
   closer — so it reads as a composed layout, not an identical 3×2 card grid.
   Scoped to .features--bento so the reused .features grid (download) is untouched. */
.features--bento { grid-template-columns: repeat(6, 1fr); }
.features--bento .feature { grid-column: span 2; }
.features--bento .feature:nth-child(1),
.features--bento .feature:nth-child(2) { grid-column: span 3; padding: 30px 28px; }
.features--bento .feature:nth-child(1) h3,
.features--bento .feature:nth-child(2) h3 { font-size: 21px; }
.features--bento .feature:nth-child(1) p,
.features--bento .feature:nth-child(2) p { font-size: 15.5px; }
.features--bento .feature:nth-child(6) { grid-column: span 6; display: flex; align-items: center; gap: 22px; }
.features--bento .feature:nth-child(6) .feature-ico { margin-bottom: 0; }
.features--bento .feature:nth-child(6) .feature-bd { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.features--bento .feature:nth-child(6) .feature-bd p { max-width: 68ch; }

/* ── How it works (steps) ────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; }
.step-n { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: 16px; font-family: 'Bricolage Grotesque', sans-serif; box-shadow: var(--glow); }
.step h3 { font-size: 18px; margin-bottom: 7px; }
.step p { font-size: 15px; color: var(--text-2); }
.step .ph { margin-top: 16px; aspect-ratio: 16 / 10; }

/* ── Comparison ──────────────────────────────────────────────────────────── */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cmp { border-radius: var(--radius-lg); padding: 30px 28px; }
.cmp h3 { font-size: 18px; margin-bottom: 18px; display: flex; align-items: center; gap: 9px; }
.cmp ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cmp li { display: flex; gap: 10px; font-size: 15px; align-items: flex-start; }
.cmp li svg { width: 19px; height: 19px; flex: none; margin-top: 2px; }
.cmp-good { background: linear-gradient(180deg, rgba(109,102,245,.14), rgba(109,102,245,.04)); border: 1px solid rgba(109,102,245,.4); box-shadow: var(--glow); }
.cmp-good h3 { color: #fff; }
.cmp-good li svg { color: var(--accent-bright); }
.cmp-good li { color: var(--text); }
.cmp-bad { background: var(--surface); border: 1px solid var(--border); }
.cmp-bad h3 { color: var(--text); }
.cmp-bad li { color: var(--text-2); }
.cmp-bad li svg { color: var(--border-2); }

/* ── Use cases ───────────────────────────────────────────────────────────── */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.uc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.uc .ph { border: 0; border-bottom: 1px dashed var(--border-2); border-radius: 0; aspect-ratio: 16 / 9; }
.uc-body { padding: 22px 22px 26px; }
.uc h3 { font-size: 18px; margin-bottom: 7px; }
.uc p { font-size: 14.5px; color: var(--text-2); }

/* ── Early-access line (stands in for testimonials pre-beta) ──────────────── */
.earlyline { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; text-align: center; max-width: 760px; margin: 0 auto; padding: 36px 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.earlyline p { font-size: 17px; color: var(--text-2); margin: 0; }

/* ── Testimonials (kept for when real quotes land) ───────────────────────── */
.quotes { columns: 3; column-gap: 18px; }
.quote { break-inside: avoid; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.quote p { font-size: 15px; color: var(--text); margin-bottom: 16px; }
.quote-by { display: flex; align-items: center; gap: 11px; }
.quote-by .who { font-size: 13.5px; } .quote-by .who b { display: block; color: #fff; } .quote-by .who span { color: var(--text-2); font-size: 12.5px; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; font-size: 17px; color: #fff; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent-deep); font-weight: 400; }
.faq details[open] summary::after { content: '\2013'; }
.faq p { padding: 0 36px 18px 0; color: var(--text-2); font-size: 15.5px; }

/* ── Hero signature visual: live agent-activity card ─────────────────────── */
.demo { margin: 0; }
.demo-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow-lg), 0 0 50px -18px rgba(109,102,245,.5); }
.demo-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.demo-spin { width: 18px; height: 18px; border-radius: 50%; flex: none; border: 2px solid rgba(109,102,245,.3); border-top-color: var(--accent); animation: demo-spin .8s linear infinite; }
.demo-card.is-done .demo-spin { border: none; background: var(--success); position: relative; animation: demo-pop .4s var(--ease); }
.demo-card.is-done .demo-spin::after { content: ''; position: absolute; inset: 0; margin: auto; width: 5px; height: 9px; border: solid #0b0c10; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.demo-title { font-weight: 700; font-size: 14px; color: #fff; font-family: 'Bricolage Grotesque',sans-serif; }
.demo-status { margin-left: auto; font-size: 12px; color: var(--text-2); }
.demo-card.is-done .demo-status { color: var(--success); }
.demo-steps { display: flex; flex-direction: column; gap: 14px; }
.demo-step { display: flex; gap: 11px; align-items: flex-start; opacity: .45; transition: opacity .35s var(--ease); }
.demo-step.active, .demo-step.done { opacity: 1; }
.demo-dot { flex: none; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #3a3d4a; transition: background .3s var(--ease); }
.demo-step.active .demo-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(109,102,245,.22); }
.demo-step.done .demo-dot { background: var(--success); }
.demo-bd { min-width: 0; }
.demo-label { font-size: 13.5px; color: var(--text); font-weight: 500; }
.demo-pill { display: inline-flex; align-items: center; margin-top: 6px; font-size: 11.5px; color: var(--text-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.demo-step.active .demo-pill { border-color: rgba(109,102,245,.5); color: var(--accent-deep); }
.demo-step.done .demo-pill { border-color: rgba(52,211,153,.4); }
@keyframes demo-spin { to { transform: rotate(360deg); } }
@keyframes demo-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }

/* ── Band (CTA) + Footer ─────────────────────────────────────────────────── */
.band { background: var(--bg-alt); color: #fff; text-align: center; position: relative; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band::before { content:''; position:absolute; inset:0; background: radial-gradient(700px 360px at 50% 0%, rgba(109,102,245,.22), transparent 62%); pointer-events:none; }
.band-inner { position: relative; max-width: 640px; margin: 0 auto; padding: var(--s-2xl) 24px; }
.band h2 { color: #fff; font-size: clamp(30px, 4.2vw, 48px); margin-bottom: 14px; }
.band p { color: var(--text-2); font-size: 18px; margin-bottom: 28px; }
.band .fine { margin-top: 16px; font-size: 13px; color: var(--text-2); opacity: .8; }

.footer { background: #08090c; color: var(--text-2); border-top: 1px solid var(--border); }
.footer-top { max-width: var(--maxw); margin: 0 auto; padding: var(--s-xl) 24px var(--s-lg); display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; max-width: 30ch; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 14px; font-family: 'Figtree', sans-serif; letter-spacing: .02em; }
.footer-col a { display: block; color: var(--text-2); font-size: 14px; padding: 10px 0; }   /* ≈44px tap target */
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom-inner { max-width: var(--maxw); margin: 0 auto; padding: 20px 24px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.footer-bottom .spacer { margin-left: auto; }

/* ── Page header (pricing/download/tutorials top) ────────────────────────── */
.page-hero { text-align: center; padding: var(--s-2xl) 0 var(--s-lg); position: relative; overflow: hidden; }
.page-hero::before { content:''; position:absolute; inset:0 0 auto 0; height:320px; background: radial-gradient(700px 320px at 50% -20%, rgba(109,102,245,.18), transparent 60%); pointer-events:none; }
.page-hero h1 { position: relative; font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; }
.page-hero p { position: relative; font-size: 19px; color: var(--text-2); max-width: 52ch; margin: 0 auto; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; max-width: 980px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 28px; display: flex; flex-direction: column; gap: 18px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--glow); position: relative; }
.plan-tag { position: absolute; top: -12px; left: 28px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 4px 12px; border-radius: 999px; box-shadow: var(--glow); }
.plan-name { font-weight: 700; font-size: 16px; font-family: 'Bricolage Grotesque',sans-serif; color: #fff; }
.plan-price { display: flex; align-items: baseline; gap: 5px; }
.plan-price .amt { font-family: 'Bricolage Grotesque',sans-serif; font-size: 44px; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.plan-price .per { color: var(--text-2); font-size: 15px; }
.plan ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 15px; color: var(--text-2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; color: var(--success); flex: none; margin-top: 2px; }
.plan .btn { width: 100%; margin-top: auto; }

/* ── Tutorials ───────────────────────────────────────────────────────────── */
.tut-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.tut { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tut .ph { border: 0; border-bottom: 1px dashed var(--border-2); border-radius: 0; aspect-ratio: 16 / 9; }
.tut-body { padding: 22px 24px 26px; }
.tut .kicker { font-size: 12px; font-weight: 700; color: var(--accent-deep); letter-spacing: .02em; }
.tut h3 { font-size: 19px; margin: 6px 0 8px; }
.tut p { font-size: 15px; color: var(--text-2); margin-bottom: 14px; }
.tut .step-list { display:flex; flex-direction:column; gap:18px; }
.tut-step { display:grid; grid-template-columns: 40px 1fr; gap:16px; align-items:start; }

/* ── Contact form ────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 28px; max-width: 1000px; margin: 0 auto; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.contact-card h2 { font-size: 22px; margin-bottom: 6px; }
.contact-card .lead { color: var(--text-2); font-size: 15px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.field .opt { color: var(--text-2); font-weight: 400; }
.input { font: inherit; font-size: 15px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; width: 100%; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.input::placeholder { color: #8b92a0; }   /* 5.4:1 on the input fill — AA */
.input:hover { border-color: var(--border-2); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { min-height: 150px; resize: vertical; line-height: 1.55; }
select.input { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='%239aa0ad'%3E%3Cpath d='M480-360 280-560h400L480-360Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form-actions .btn { min-width: 150px; }
.form-note { font-size: 13px; color: var(--text-2); }
.form-status { font-size: 14.5px; font-weight: 500; min-height: 1.3em; margin-top: 16px; }
.form-status.ok  { color: var(--success); }
.form-status.err { color: #f28b82; }
.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.aside-card .feature-ico { margin-bottom: 14px; }
.aside-card h3 { font-size: 16px; margin-bottom: 6px; }
.aside-card p { font-size: 14.5px; color: var(--text-2); }
.aside-card a { font-weight: 600; }

/* ── Modal (subscribe checkout email capture) ────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(0,0,0,.6); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; animation: modal-in .2s var(--ease) both; }
.modal-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; max-width: 420px; width: 100%; box-shadow: var(--shadow-lg); }
.modal-card h2 { font-size: 19px; margin-bottom: 16px; }
.modal-card .actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-card .actions .btn { flex: 1; }
.modal .err { color: #f28b82; font-size: 13px; margin-top: 8px; min-height: 1em; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ── Error pages (404, served from the Worker) ───────────────────────────── */
.error-page { max-width: 640px; margin: 0 auto; padding: var(--s-2xl) 24px; min-height: 56vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
/* Alert-face Kumo above the copy (markup from kumo_mascot.js; loops + the
   reduced-motion freeze live in the generated KUMO block at file end). */
.error-kumo { display: flex; justify-content: center; margin-bottom: 14px; }
.error-page .badge { margin-bottom: 18px; }
.error-code { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(84px, 17vw, 150px); line-height: 1; letter-spacing: -0.05em; color: var(--accent-deep); text-shadow: 0 0 60px rgba(109,102,245,.4); }
.error-page h1 { font-size: clamp(26px, 4vw, 38px); margin: 6px 0 12px; }
.error-page p { font-size: 17px; color: var(--text-2); max-width: 46ch; margin: 0 auto 28px; text-wrap: pretty; }
.error-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.error-links { margin-top: 32px; display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: center; font-size: 14px; }
.error-links a { color: var(--text-2); } .error-links a:hover { color: #fff; }

/* ── Legal pages (privacy, terms) ────────────────────────────────────────── */
.legal { max-width: 760px; margin: 0 auto; padding: var(--s-xl) 0 var(--s-2xl); }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.legal .updated { color: var(--text-2); font-size: 14px; margin-bottom: 12px; }
.legal .intro { font-size: 17px; color: var(--text); margin-bottom: 8px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; }
.legal p, .legal li { font-size: 16px; color: var(--text); line-height: 1.7; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0 18px; display: flex; flex-direction: column; gap: 7px; }
.legal a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent-bright); }
.legal strong { color: #fff; font-weight: 700; }
.legal .callout { background: var(--accent-soft); border: 1px solid rgba(109,102,245,.34); border-radius: var(--radius); padding: 16px 18px; margin: 20px 0; font-size: 14.5px; color: var(--text); line-height: 1.6; }

/* ── Reveal + responsive + reduced motion ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-bottom: var(--s-xl); }
  .hero .lede { max-width: 48ch; }
  .features, .steps, .uc-grid { grid-template-columns: repeat(2, 1fr); }
  .features--bento { grid-template-columns: 1fr 1fr; }
  /* Reset every span — the :nth-child lead-tile rules need equal specificity
     here or they keep `span 3` and overflow the 2/1-col mobile grid. */
  .features--bento .feature,
  .features--bento .feature:nth-child(1),
  .features--bento .feature:nth-child(2),
  .features--bento .feature:nth-child(6) { grid-column: auto; }
  .features--bento .feature:nth-child(6) { grid-column: 1 / -1; }
  .quotes { columns: 2; }
  .compare { grid-template-columns: 1fr; }
  .tut-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: var(--s-xl) 0; }
}
/* Below this width the inline nav links give way to the hamburger menu. */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 600px) {
  .features, .steps, .uc-grid, .plans { grid-template-columns: 1fr; }
  .features--bento { grid-template-columns: 1fr; }
  .features--bento .feature:nth-child(6) { grid-column: auto; display: block; }
  .features--bento .feature:nth-child(6) .feature-ico { margin-bottom: 16px; }
  .quotes { columns: 1; }
  .form-row { grid-template-columns: 1fr; }
  .contact-card { padding: 24px 22px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:active { transform: none; }
  .feature:hover { transform: none; }
  .demo-spin { animation: none; }
  .demo-step { opacity: 1; transition: none; }
  .mobile-menu.open { animation: none; }
  .modal.open { animation: none; }
}

/* KUMO:BEGIN generated by scripts/gen_kumo.mjs; do not hand-edit, re-run to sync */
/* Chibi Kumo (idle + alert web subset). Rules and keyframes are verbatim
   slices of the sidepanel.css "Kumo mascot" block. */
.kumo { display: inline-flex; flex: none; line-height: 0; }
.kumo svg { display: block; overflow: visible; }
.kumo-body { animation: kumo-bob 2.9s ease-in-out infinite; }
.kumo-orb { transform-box: fill-box; transform-origin: center; animation: kumo-orb-drift 3.4s ease-in-out infinite; }
.kumo-eyes { transform-box: fill-box; transform-origin: center; animation: kumo-blink 7.4s ease-in-out infinite; }
.kumo-lid { animation: kumo-lid-blink 7.4s ease-in-out infinite; }
.kumo-lid-lo { animation: kumo-lid-lo-blink 7.4s ease-in-out infinite; }
.kumo-face { transform-box: view-box; transform-origin: 50px 42px; transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1); }
.kumo--idle .kumo-face { animation: kumo-idle-face 13s ease-in-out infinite; }
.kumo--idle .kumo-pupils { animation: kumo-idle-pupils 13s ease-in-out infinite; }
.kumo--idle .kumo-pose { animation: kumo-idle-pose 13s ease-in-out infinite; }
.kumo--idle .kumo-m-smile { animation: kumo-idle-smile 13s ease-in-out infinite; }
.kumo-pupils { transform-box: fill-box; transform-origin: center; transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.kumo-m { opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity 0.22s ease, transform 0.3s ease; }
.kumo-mth--soft .kumo-mv-soft,
.kumo-mth--cat .kumo-mv-cat,
.kumo-mth--beam .kumo-mv-beam,
.kumo-mth--tiny .kumo-mv-tiny { opacity: 1; }
.kumo-prop { opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease; }
.kumo-env, .kumo-pencil, .kumo-write-drift, .kumo-mag { transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.kumo-env { transform-origin: 50px 72px; }
.kumo-pencil { transform-origin: 64.8px 60.9px; }
.kumo-mag { transform-origin: 62px 50px; }
.kumo-hand { transform-box: fill-box; transform-origin: center; transition: transform 0.48s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.22s ease; }
.kumo-hand-loop { transform-box: fill-box; transform-origin: center; transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.kumo--alert     .kumo-hand-l { transform: translate(-5px, -10px) rotate(-24deg); }
.kumo--alert     .kumo-hand-r { transform: translate(5px, -10px) rotate(24deg); }
.kumo--alert .kumo-face { animation: kumo-face-alert 2.4s ease-in-out infinite; }
.kumo--alert .kumo-pose { animation: kumo-pose-alert 2.4s ease-in-out infinite; }
.kumo--alert .kumo-pupils { animation: kumo-alert-pupils 2.4s ease-in-out infinite; }
.kumo--alert .kumo-hand-loop { animation: kumo-alert-hands 0.44s ease-in-out infinite; }
.kumo--alert .kumo-hand-r-loop { animation-delay: -0.22s; }
.kumo--alert .kumo-m-smile { opacity: 0; }
.kumo--alert .kumo-m-alert { opacity: 1; animation: kumo-m-alert-loop 2.4s ease-in-out infinite, kumo-mf-a 2.4s ease-in-out infinite; }
.kumo--alert .kumo-m-alert2 { animation: kumo-m-alert-loop 2.4s ease-in-out infinite, kumo-mf-b 2.4s ease-in-out infinite; }
.kumo-m-grin { transform: scale(0.4); transition: opacity 0.22s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.kumo-pose { transform-box: view-box; transform-origin: 50% 62%; }
.kumo-spark { transform-box: fill-box; transform-origin: center; }
@keyframes kumo-idle-face { 0%, 8%, 22%, 30%, 48%, 64%, 76%, 100% { transform: translate(0, 0) rotate(0deg); } 12%, 18% { transform: translate(2.4px, -0.6px) rotate(1.8deg); } 34%, 44% { transform: translate(-2.6px, -1.4px) rotate(-2deg); } 54%, 60% { transform: translate(0, -0.8px) rotate(1.2deg); } 68%, 72% { transform: translate(0.6px, 1.8px) rotate(0.5deg); } }
@keyframes kumo-idle-pupils { 0%, 8%, 22%, 30%, 48%, 64%, 76%, 100% { transform: translate(0, 0); } 12%, 18% { transform: translate(3.2px, -0.8px); } 34%, 44% { transform: translate(-3.6px, -2px); } 54%, 60% { transform: translate(0, -1px); } 68%, 72% { transform: translate(0.8px, 2.4px); } }
@keyframes kumo-idle-pose { 0%, 10%, 30%, 50%, 70%, 100% { transform: rotate(0deg) translateY(0); } 15% { transform: rotate(1deg) translateY(-0.8px); } 38% { transform: rotate(-1.4deg) translateY(-0.5px); } 56% { transform: rotate(0.8deg) translateY(-1.5px); } 80% { transform: rotate(-0.6deg) translateY(0.3px); } }
@keyframes kumo-idle-smile { 0%, 50%, 64%, 100% { transform: scale(1); } 55%, 60% { transform: scale(1.18); } }
@keyframes kumo-face-alert { 0%, 100% { transform: translate(-0.9px, -1.9px); } 25% { transform: translate(0.9px, -2.3px); } 50% { transform: translate(1.1px, -1.6px); } 75% { transform: translate(-1.1px, -2.1px); } }
@keyframes kumo-pose-alert { 0%, 100% { transform: translateY(-1.4px) scale(1.012, 1.02); } 30% { transform: translateY(-2.6px) scale(1.02, 1.035); } 62% { transform: translateY(-0.8px) scale(1.008, 1.01); } }
@keyframes kumo-alert-pupils { 0%, 100% { transform: scale(0.8); } 34% { transform: scale(0.72); } 68% { transform: scale(0.86); } }
@keyframes kumo-alert-hands { 0%, 100% { transform: translate(-0.5px, 0) rotate(-1.5deg); } 50% { transform: translate(0.5px, -0.4px) rotate(1.5deg); } }
@keyframes kumo-m-alert-loop { 0%, 100% { transform: scale(1, 1.06) translateY(0); } 18% { transform: scale(1.14, 1.3) translateY(-0.3px); } 38% { transform: scale(0.96, 1) translateY(0.2px); } 58% { transform: scale(1.08, 1.18) translateY(-0.2px); } 80% { transform: scale(0.94, 0.96) translateY(0.2px); } }
@keyframes kumo-mf-a { 0%, 34% { opacity: 1; } 44%, 80% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes kumo-mf-b { 0%, 34% { opacity: 0; } 44%, 80% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes kumo-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes kumo-orb-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.6px); } }
@keyframes kumo-blink { 0%, 37%, 41.5%, 73%, 77.5%, 100% { transform: scaleY(1); } 38.7% { transform: scaleY(0.92); } 74.7% { transform: scaleY(0.94); } }
@keyframes kumo-lid-blink { 0%, 37%, 41%, 73%, 77.5%, 100% { transform: translateY(0); } 38.4%, 39% { transform: translateY(25px); } 74.4%, 75% { transform: translateY(25px); } }
@keyframes kumo-lid-lo-blink { 0%, 37%, 41%, 73%, 77.5%, 100% { transform: translateY(0); } 38.4%, 39% { transform: translateY(-5px); } 74.4%, 75% { transform: translateY(-5px); } }
/* Reduced motion: the mascot goes fully static (the idle pose). */
@media (prefers-reduced-motion: reduce) {
  .kumo, .kumo * { animation: none !important; transition: none !important; }
}
/* KUMO:END */
