@font-face{font-family:'DM Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/DMSans.woff2) format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500 700;font-display:swap;src:url(/assets/fonts/SpaceGrotesk.woff2) format('woff2');}

/* ============ Design tokens ============ */
:root {
  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --radius-sm: 10px; --radius: 16px; --radius-lg: 24px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --ease: cubic-bezier(.22,.61,.36,1);

  /* light (default) */
  --primary: #7C3AED; --primary-strong: #6D28D9; --on-primary: #FFFFFF;
  --accent: #0891B2; --bg: #FAF5FF; --bg-tint: #F3ECFE; --fg: #1E1B4B;
  --card: #FFFFFF; --card-fg: #1E1B4B; --muted: #ECEEF9; --muted-fg: #64748B;
  --border: #E4DAFB; --border-strong: #D4C6F7; --ring: #7C3AED;
  --success: #059669; --danger: #DC2626;
  --glow: radial-gradient(60% 60% at 50% 0%, rgba(124,58,237,.16), transparent 70%);
  --shadow-card: 0 1px 2px rgba(30,27,75,.04), 0 12px 32px -12px rgba(124,58,237,.18);
  --grad: linear-gradient(120deg, #7C3AED 0%, #6D28D9 40%, #0891B2 110%);
  --grad-text: linear-gradient(115deg, #7C3AED 10%, #6D28D9 45%, #0E7490 95%);
}

/* dark tokens, shared by OS preference and explicit toggle */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #A78BFA; --primary-strong: #8B5CF6; --on-primary: #12101F;
    --accent: #22D3EE; --bg: #0B0917; --bg-tint: #12101F; --fg: #F5F3FF;
    --card: rgba(23,20,36,.52); --card-fg: #F5F3FF; --muted: #211D33; --muted-fg: #A9A3C4;
    --border: #2A2540; --border-strong: #3A3358; --ring: #A78BFA;
    --success: #34D399; --danger: #F87171;
    --glow: radial-gradient(55% 55% at 50% -5%, rgba(139,92,246,.35), transparent 70%);
    --shadow-card: 0 1px 0 rgba(255,255,255,.03) inset, 0 24px 60px -24px rgba(0,0,0,.7);
    --grad: linear-gradient(120deg, #A78BFA 0%, #8B5CF6 40%, #22D3EE 120%);
    --grad-text: linear-gradient(115deg, #C4B5FD 5%, #A78BFA 45%, #67E8F9 100%);
  }
}
:root[data-theme="dark"] {
  --primary: #A78BFA; --primary-strong: #8B5CF6; --on-primary: #12101F;
  --accent: #22D3EE; --bg: #0B0917; --bg-tint: #12101F; --fg: #F5F3FF;
  --card: rgba(23,20,36,.52); --card-fg: #F5F3FF; --muted: #211D33; --muted-fg: #A9A3C4;
  --border: #2A2540; --border-strong: #3A3358; --ring: #A78BFA;
  --success: #34D399; --danger: #F87171;
  --glow: radial-gradient(55% 55% at 50% -5%, rgba(139,92,246,.35), transparent 70%);
  --shadow-card: 0 1px 0 rgba(255,255,255,.03) inset, 0 24px 60px -24px rgba(0,0,0,.7);
  --grad: linear-gradient(120deg, #A78BFA 0%, #8B5CF6 40%, #22D3EE 120%);
  --grad-text: linear-gradient(115deg, #C4B5FD 5%, #A78BFA 45%, #67E8F9 100%);
}

* { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font-body); background: var(--bg); color: var(--fg);
  line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100dvh; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0; background: var(--glow); pointer-events: none; z-index: 0; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -.02em; margin: 0; text-wrap: balance; }

.wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 var(--space-5); }

header.bar { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid var(--border); }
.bar-inner { display: flex; align-items: center; gap: var(--space-4); height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; }
.logo { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 18px -6px var(--primary); }
.logo svg { width: 16px; height: 16px; color: var(--on-primary); }
.spacer { flex: 1; }

.segmented { display: inline-flex; background: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 2px; }
.segmented button { font-family: var(--font-body); font-weight: 500; font-size: .84rem; border: 0; background: transparent; color: var(--muted-fg);
  padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color .2s var(--ease), background .2s var(--ease); }
.segmented button[aria-selected="true"] { background: var(--card); color: var(--fg); box-shadow: 0 1px 6px rgba(0,0,0,.12); }
:root[data-theme="dark"] .segmented button[aria-selected="true"] { background: #2A2540; color: #fff; }

.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--card); color: var(--fg); cursor: pointer; transition: border-color .2s var(--ease), transform .15s var(--ease); }
.icon-btn:hover { border-color: var(--border-strong); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 18px; height: 18px; }

.screen { display: none; padding: var(--space-8) 0; animation: rise .5s var(--ease) both; }
.screen.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 500; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  padding: 6px 12px; border-radius: 999px; margin-bottom: var(--space-4); }
.eyebrow svg { width: 14px; height: 14px; }

.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-8); align-items: start; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: var(--space-6); } }

h1.title { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; margin-bottom: var(--space-4); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.12rem; color: var(--muted-fg); max-width: 46ch; margin-bottom: var(--space-6); }

.trust { display: flex; flex-wrap: wrap; gap: var(--space-5) var(--space-6); margin-top: var(--space-6); }
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-item .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.trust-item .ico svg { width: 18px; height: 18px; }
.trust-item b { font-family: var(--font-heading); font-size: .98rem; display: block; }
.trust-item span { font-size: .8rem; color: var(--muted-fg); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-6); backdrop-filter: blur(6px); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.card-head h2 { font-size: 1.15rem; }
.card-head .pill { font-size: .72rem; color: var(--muted-fg); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: var(--space-5); }
.field:last-of-type { margin-bottom: 0; }
.field label { font-weight: 500; font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.field label .req { color: var(--danger); }
.field .hint { font-size: .78rem; color: var(--muted-fg); margin-top: -2px; }

.input, .textarea { font-family: var(--font-body); font-size: .95rem; color: var(--fg); background: var(--bg-tint); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px; width: 100%; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s; min-height: 46px; }
.textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--muted-fg); opacity: .8; }
.input:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); background: var(--card); }

.slider-row { display: flex; align-items: center; gap: var(--space-4); }
.slider-val { font-family: var(--font-heading); font-weight: 600; font-size: 1rem; min-width: 74px; text-align: center; background: var(--muted);
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 0; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) var(--pct,40%), var(--muted) var(--pct,40%)); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; transition: transform .15s var(--ease); }
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 3px solid var(--primary); cursor: pointer; }

.dropzone { display: flex; align-items: center; gap: var(--space-3); padding: 14px 16px; border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm); background: var(--bg-tint); color: var(--muted-fg); font-size: .88rem; cursor: pointer; transition: border-color .2s var(--ease), background .2s; }
.dropzone:hover { border-color: var(--primary); color: var(--fg); }
.dropzone .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--muted); color: var(--primary); flex: none; }
.dropzone .ico svg { width: 19px; height: 19px; }
.dropzone b { color: var(--fg); font-weight: 500; }

.btn { font-family: var(--font-body); font-weight: 600; font-size: .98rem; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 20px; border-radius: var(--radius-sm); border: 0; cursor: pointer; width: 100%; color: var(--on-primary); background: var(--grad); background-size: 160% 160%;
  box-shadow: 0 10px 26px -10px var(--primary); transition: transform .15s var(--ease), box-shadow .2s var(--ease), background-position .5s var(--ease); margin-top: var(--space-5); }
.btn:hover { background-position: 100% 0; box-shadow: 0 14px 32px -10px var(--primary); }
.btn:active { transform: translateY(1px) scale(.995); }
.btn svg { width: 18px; height: 18px; }

.center-col { max-width: 640px; margin: 0 auto; }
.progress-head { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-6); }
.spinner { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--grad); box-shadow: 0 8px 24px -8px var(--primary); }
.spinner svg { width: 24px; height: 24px; color: var(--on-primary); animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.bar-track { height: 10px; border-radius: 999px; background: var(--muted); overflow: hidden; margin: var(--space-4) 0 var(--space-2); }
.bar-fill { height: 100%; width: 62%; border-radius: 999px; background: var(--grad); box-shadow: 0 0 16px color-mix(in srgb, var(--primary) 60%, transparent); transition: width .6s var(--ease); position: relative; }
.bar-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: sheen 1.8s linear infinite; }
@keyframes sheen { to { transform: translateX(100%); } }
.bar-meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted-fg); }
.bar-meta .now { color: var(--fg); font-weight: 500; }

.stages { margin-top: var(--space-6); display: flex; flex-direction: column; gap: 2px; }
.stage { display: flex; align-items: center; gap: var(--space-3); padding: 12px 14px; border-radius: 12px; transition: background .3s; }
.stage .dot { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid var(--border-strong); color: var(--muted-fg); background: var(--card); }
.stage .dot svg { width: 14px; height: 14px; }
.stage .txt { font-size: .95rem; color: var(--muted-fg); }
.stage.done .dot { border-color: var(--success); background: var(--success); color: #fff; }
.stage.done .txt { color: var(--fg); }
.stage.active { background: var(--muted); }
.stage.active .dot { border-color: var(--primary); color: var(--primary); animation: pulse 1.4s var(--ease) infinite; }
.stage.active .txt { color: var(--fg); font-weight: 500; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent);} 50%{ box-shadow: 0 0 0 6px transparent;} }

.outline-live { margin-top: var(--space-6); }
.outline-live h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-fg); margin-bottom: var(--space-3); font-family: var(--font-body); font-weight: 700; }
.outline-live ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.outline-live li { font-size: .92rem; }
.outline-live li.pending { color: var(--muted-fg); opacity: .5; }

.ready-hero { text-align: center; margin-bottom: var(--space-7); }
.check-badge { width: 66px; height: 66px; border-radius: 20px; margin: 0 auto var(--space-4); display: grid; place-items: center;
  background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); }
.check-badge svg { width: 34px; height: 34px; }
.ready-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: var(--space-2); }
.ready-hero p { color: var(--muted-fg); }

.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--space-4); margin: var(--space-6) 0 var(--space-7); }
.slide-thumb { aspect-ratio: 16/9; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--card); padding: 14px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-card); position: relative; overflow: hidden; transition: transform .18s var(--ease), border-color .18s var(--ease); }
.slide-thumb:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.slide-thumb .num { position: absolute; top: 10px; right: 12px; font-size: .68rem; color: var(--muted-fg); font-variant-numeric: tabular-nums; }
.slide-thumb .badge { font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); }
.slide-thumb h4 { font-family: var(--font-heading); font-size: .92rem; line-height: 1.2; margin: 2px 0; }
.slide-thumb .lines { margin-top: auto; display: flex; flex-direction: column; gap: 5px; }
.slide-thumb .lines i { height: 5px; border-radius: 3px; background: var(--muted); display: block; }
.slide-thumb .lines i:nth-child(1){ width: 88%; } .slide-thumb .lines i:nth-child(2){ width: 66%; }
.slide-thumb.cover { background: var(--grad); border: 0; }
.slide-thumb.cover .badge { color: rgba(255,255,255,.85); }
.slide-thumb.cover h4 { color: #fff; font-size: 1rem; }
.slide-thumb.cover .num { color: rgba(255,255,255,.7); }
.slide-thumb.cover .lines i { background: rgba(255,255,255,.3); }

.actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.btn-secondary { width: auto; background: var(--card); color: var(--fg); border: 1px solid var(--border); box-shadow: none; margin: 0; padding: 14px 22px; }
.btn-secondary:hover { border-color: var(--border-strong); background: var(--muted); }
.btn-primary-inline { width: auto; margin: 0; padding: 14px 26px; }

footer.note { text-align: center; color: var(--muted-fg); font-size: .8rem; padding: var(--space-6) 0 var(--space-8); position: relative; z-index: 1; }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }


/* ============ v3 additions ============ */
.bar-inner { gap: var(--space-5); }
.brand { cursor: pointer; text-decoration: none; color: inherit; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted-fg); text-decoration: none; font-weight: 500; font-size: .92rem; padding: 8px 12px; border-radius: 999px; transition: color .2s var(--ease), background .2s var(--ease); white-space: nowrap; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); background: var(--muted); }
.auth-out, .auth-in { display: flex; align-items: center; gap: var(--space-2); }
body.signed-in .auth-out { display: none; }
body:not(.signed-in) .auth-in { display: none; }
.link-btn { background: none; border: 0; font: inherit; font-weight: 600; font-size: .92rem; color: var(--fg); cursor: pointer; padding: 8px 12px; border-radius: 10px; text-decoration: none; }
.link-btn:hover { background: var(--muted); }
.btn-sm { width: auto; margin: 0; padding: 9px 16px; font-size: .9rem; box-shadow: 0 6px 18px -8px var(--primary); text-decoration: none; }
.credits-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); text-decoration: none; white-space: nowrap; }
.credits-pill svg { width: 14px; height: 14px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: var(--on-primary); display: grid; place-items: center; font-family: var(--font-heading); font-weight: 700; font-size: .9rem; text-decoration: none; }
.nav-mobile { display: none; }
@media (max-width: 860px) {
  .bar-inner > .nav { display: none; }
  .nav-mobile { display: flex; overflow-x: auto; padding: 0 var(--space-5) 10px; gap: 4px; scrollbar-width: none; }
  .nav-mobile::-webkit-scrollbar { display: none; }
  .bar-inner { gap: var(--space-2); }
}
@media (max-width: 520px) {
  .brand-name { display: none; }
  .auth-out .link-btn { padding: 8px 8px; }
}

.page { display: none; }
.page.active { display: block; animation: rise .5s var(--ease) both; }
.section { padding-top: var(--space-8); padding-bottom: var(--space-8); }
@media (max-width: 520px) { .wrap { padding-left: 16px; padding-right: 16px; } }
.section-head { text-align: center; max-width: 640px; margin: 0 auto var(--space-7); }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.1; margin-bottom: var(--space-3); }
.section-head p { color: var(--muted-fg); font-size: 1.05rem; margin: 0; }
.kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--primary); margin-bottom: var(--space-3); display: block; }

/* presentation types */
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.type-opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-tint); cursor: pointer; font-size: .86rem; font-weight: 500; line-height: 1.25; transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease); }
.type-opt:hover { border-color: var(--border-strong); }
.type-opt input { position: absolute; opacity: 0; pointer-events: none; }
.type-opt .ico { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--muted); color: var(--primary); transition: background .2s, color .2s; }
.type-opt .ico svg { width: 16px; height: 16px; }
.type-opt:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, var(--card)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.type-opt:has(input:checked) .ico { background: var(--primary); color: var(--on-primary); }
.type-opt:has(input:focus-visible) { outline: 2px solid var(--ring); outline-offset: 2px; }
.type-opt.wide { grid-column: 1 / -1; }
@media (max-width: 420px) { .types { grid-template-columns: 1fr; } }
.free-note { text-align: center; font-size: .8rem; color: var(--muted-fg); margin: 10px 0 0; }

/* types strip */
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: var(--space-7); }
.strip span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: .86rem; color: var(--muted-fg); }
.strip svg { width: 15px; height: 15px; color: var(--primary); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step .n { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 700; background: var(--grad); color: var(--on-primary); margin-bottom: var(--space-4); }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted-fg); margin: 0; font-size: .95rem; }

/* features */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; padding: var(--space-7) 0; }
.feature + .feature { border-top: 1px solid var(--border); }
.feature.flip .feature-copy { order: 2; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; gap: var(--space-5); } .feature.flip .feature-copy { order: 0; } }
.feature h3 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); line-height: 1.15; margin-bottom: var(--space-3); }
.feature p { color: var(--muted-fg); font-size: 1.02rem; margin: 0 0 var(--space-4); }
.feature ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.feature li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.feature li svg { width: 18px; height: 18px; color: var(--success); flex: none; margin-top: 2px; }
.text-link { color: var(--primary); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-4); }
.text-link:hover { text-decoration: underline; }
.visual { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-card); padding: var(--space-5); min-height: 260px; display: grid; place-items: center; position: relative; overflow: hidden; }
.visual::before { content: ""; position: absolute; inset: 0; background: var(--glow); opacity: .7; pointer-events: none; }

/* mini slides used in visuals */
.mini { aspect-ratio: 16/9; width: 100%; border-radius: 10px; border: 1px solid var(--border); background: var(--card); padding: 12px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.mini b { font-family: var(--font-heading); font-size: .82rem; line-height: 1.2; }
.mini i { display: block; height: 5px; border-radius: 3px; background: var(--muted); }
.mini i:nth-of-type(1) { width: 85%; } .mini i:nth-of-type(2) { width: 65%; } .mini i:nth-of-type(3) { width: 75%; }
.mini.plain { background: #F4F4F5; border-color: #E4E4E7; color: #3F3F46; }
.mini.plain i { background: #D4D4D8; }
.mini.brand { background: #0F3D3E; border: 0; color: #fff; }
.mini.brand i { background: rgba(255,255,255,.28); }
.mini.brand .bar-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: #F2A541; }
.mini.brand .mark { position: absolute; right: 10px; bottom: 9px; width: 22px; height: 22px; border-radius: 6px; background: #F2A541; }
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-4); align-items: center; width: 100%; position: relative; }
.ba .arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--on-primary); }
.ba .arrow svg { width: 16px; height: 16px; }
.ba small { display: block; text-align: center; font-size: .72rem; color: var(--muted-fg); margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.type-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; position: relative; }
.type-stack .mini:nth-child(1) { background: var(--grad); border: 0; color: #fff; }
.type-stack .mini:nth-child(1) i { background: rgba(255,255,255,.3); }
.type-stack .tag { font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--primary); }
.type-stack .mini:nth-child(1) .tag { color: rgba(255,255,255,.85); }
.doc-visual { display: flex; align-items: center; gap: var(--space-4); width: 100%; position: relative; }
.doc { width: 38%; aspect-ratio: 3/4; border-radius: 10px; border: 1px solid var(--border); background: var(--card); padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: none; }
.doc .pdf { font-size: .62rem; font-weight: 700; color: #fff; background: var(--danger); align-self: flex-start; padding: 2px 6px; border-radius: 4px; margin-bottom: 4px; }
.doc i { height: 4px; border-radius: 2px; background: var(--muted); display: block; }
.doc i:nth-child(odd) { width: 90%; } .doc i:nth-child(even) { width: 70%; }
.pptx-visual { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); position: relative; }
.file-badge { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-card); }
.file-badge .ext { width: 44px; height: 52px; border-radius: 8px; background: #C2410C; color: #fff; font-weight: 700; font-size: .7rem; display: grid; place-items: end center; padding-bottom: 8px; }
.file-badge b { display: block; font-family: var(--font-heading); }
.file-badge span { font-size: .82rem; color: var(--muted-fg); }

.ba-arrow { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--on-primary); }
.ba-arrow svg { width: 16px; height: 16px; }
a.btn { text-decoration: none; }
.gift[hidden] { display: none; }
.foot-grid a.brand { display: flex; }
.hero-center { text-align: center; max-width: 760px; margin: 0 auto var(--space-7); }
.hero-center .lede { margin: 0 auto; max-width: 56ch; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); max-width: 880px; margin: 0 auto var(--space-5); }
@media (max-width: 680px) { .choices { grid-template-columns: 1fr; gap: var(--space-3); } }
.choice { position: relative; text-align: left; font: inherit; color: var(--fg); cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: var(--space-6); border-radius: var(--radius-lg); border: 1.5px solid var(--border); background: var(--card); box-shadow: var(--shadow-card); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease); }
.choice:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.choice[aria-selected="true"] { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent), 0 24px 50px -24px color-mix(in srgb, var(--primary) 60%, transparent); }
.choice-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--muted); color: var(--primary); margin-bottom: 8px; transition: background .2s, color .2s; }
.choice-ico svg { width: 24px; height: 24px; }
.choice[aria-selected="true"] .choice-ico { background: var(--grad); color: var(--on-primary); }
.choice-step { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--primary); }
.choice-title { font-family: var(--font-heading); font-weight: 600; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.15; }
.choice-desc { color: var(--muted-fg); font-size: .95rem; }
.choice-meta { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 500; margin-top: 6px; }
.choice-meta svg { width: 16px; height: 16px; color: var(--success); }
.choice-tick { position: absolute; top: 18px; right: 18px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; color: transparent; transition: all .2s var(--ease); }
.choice-tick svg { width: 14px; height: 14px; }
.choice[aria-selected="true"] .choice-tick { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
@media (max-width: 680px) { .choice { padding: var(--space-5); } .choice-ico { width: 40px; height: 40px; } .choice-title { font-size: 1.25rem; } }
.panel { max-width: 880px; margin: 0 auto; }
.panel[hidden] { display: none; }
.panel > .card { animation: rise .35s var(--ease) both; }
@media (min-width: 760px) { .panel .types { grid-template-columns: repeat(3, 1fr); } .panel .type-opt.wide { grid-column: auto; } }
.trust-center { justify-content: center; margin-top: var(--space-7); }
/* ---- v5 palette: purple + green ---- */
:root {
  --accent: #059669; --mint: #10B981;
  --glow: radial-gradient(50% 55% at 25% 0%, rgba(124,58,237,.16), transparent 70%), radial-gradient(40% 45% at 85% 5%, rgba(16,185,129,.13), transparent 70%);
  --grad: linear-gradient(120deg, #7C3AED 0%, #6D28D9 42%, #0D9488 100%);
  --grad-text: linear-gradient(115deg, #7C3AED 10%, #6D28D9 40%, #059669 95%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #34D399; --mint: #34D399;
    --glow: radial-gradient(50% 55% at 25% -5%, rgba(139,92,246,.33), transparent 70%), radial-gradient(40% 45% at 85% 0%, rgba(52,211,153,.16), transparent 70%);
    --grad: linear-gradient(120deg, #A78BFA 0%, #8B5CF6 45%, #34D399 115%);
    --grad-text: linear-gradient(115deg, #C4B5FD 5%, #A78BFA 40%, #6EE7B7 100%);
  }
}
:root[data-theme="dark"] {
  --accent: #34D399; --mint: #34D399;
  --glow: radial-gradient(50% 55% at 25% -5%, rgba(139,92,246,.33), transparent 70%), radial-gradient(40% 45% at 85% 0%, rgba(52,211,153,.16), transparent 70%);
  --grad: linear-gradient(120deg, #A78BFA 0%, #8B5CF6 45%, #34D399 115%);
  --grad-text: linear-gradient(115deg, #C4B5FD 5%, #A78BFA 40%, #6EE7B7 100%);
}
.eyebrow.green { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 28%, transparent); }
.kicker.green { color: var(--accent); }
.choice-step { color: var(--accent); }
.step .n { background: var(--grad); }
.free-note b { color: var(--accent); }

/* ---- slide renderer (template previews) ---- */
.sl { container-type: inline-size; aspect-ratio: 16/9; width: 100%; position: relative; overflow: hidden; border-radius: 10px; background: var(--s-bg); color: var(--s-fg); font-family: var(--font-heading); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px -12px rgba(0,0,0,.25); }
.sl * { box-sizing: border-box; }
.sl.f-serif .t { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -.01em; }
.sl.f-sans .t { font-family: var(--font-body); font-weight: 700; }
.sl .in { position: absolute; inset: 0; padding: 8cqw 8cqw; display: flex; flex-direction: column; justify-content: center; gap: 2.4cqw; z-index: 1; }
.sl .lab { font-family: var(--font-body); font-size: 2.6cqw; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--s-ac); }
.sl .t { font-size: 7.2cqw; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; margin: 0; max-width: 82%; }
.sl .t.sm { font-size: 5.2cqw; }
.sl .sub { font-family: var(--font-body); font-size: 2.9cqw; opacity: .75; }
.sl .ln { height: 1.4cqw; border-radius: 1cqw; background: currentColor; opacity: .16; }
.sl .bul { display: flex; flex-direction: column; gap: 2.6cqw; margin-top: 1cqw; }
.sl .bul div { display: flex; align-items: center; gap: 2.4cqw; }
.sl .bul i { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: var(--s-ac); flex: none; }
.sl .bul span { height: 1.6cqw; border-radius: 1cqw; background: currentColor; opacity: .2; }
.sl .bars { display: flex; align-items: flex-end; gap: 3cqw; height: 34cqw; margin-top: 1cqw; padding-bottom: 1cqw; border-bottom: .4cqw solid color-mix(in srgb, var(--s-fg) 25%, transparent); }
.sl .bars i { flex: 1; border-radius: 1cqw 1cqw 0 0; background: var(--s-ac); opacity: .45; }
.sl .bars i.hi { opacity: 1; background: var(--s-ac2); }
.sl .logo-dot { position: absolute; right: 5cqw; bottom: 5cqw; width: 6cqw; height: 6cqw; border-radius: 1.6cqw; background: var(--s-ac); z-index: 2; }
.sl .pg { position: absolute; left: 8cqw; bottom: 4.6cqw; font-family: var(--font-body); font-size: 2.2cqw; opacity: .5; z-index: 2; }
/* style variants */
.sl.s-minimal::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2.2cqw; background: var(--s-ac); }
.sl.s-bold::before { content: ""; position: absolute; width: 70cqw; height: 70cqw; border-radius: 50%; right: -22cqw; top: -26cqw; background: var(--s-ac2); opacity: .9; }
.sl.s-bold::after { content: ""; position: absolute; width: 26cqw; height: 26cqw; border-radius: 50%; right: 18cqw; bottom: -12cqw; background: var(--s-ac); opacity: .55; }
.sl.s-split::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 38%; background: var(--s-ac2); }
.sl.s-split::after { content: ""; position: absolute; right: 12%; top: 26%; width: 15cqw; height: 15cqw; border-radius: 50%; border: 1.6cqw solid var(--s-ac); }
.sl.s-split .in { right: 38%; padding-right: 5cqw; }
.sl.s-split .t { max-width: 100%; }
.sl.s-editorial .in { justify-content: flex-end; padding-bottom: 12cqw; }
.sl.s-editorial::before { content: ""; position: absolute; left: 8cqw; right: 8cqw; top: 9cqw; height: .5cqw; background: currentColor; opacity: .7; }
.sl.s-editorial::after { content: ""; position: absolute; right: 8cqw; top: 13cqw; width: 18cqw; height: 18cqw; background: var(--s-ac); border-radius: 50% 50% 0 50%; }
.sl.s-dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 10%, color-mix(in srgb, var(--s-ac) 45%, transparent), transparent 70%); }
.sl.s-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22%; background: var(--s-ac); }
.sl.s-band::after { content: ""; position: absolute; left: 0; right: 0; top: 22%; height: 2cqw; background: var(--s-ac2); }
.sl.s-band .in { top: 22%; }
.sl.s-fun::before { content: ""; position: absolute; inset: 4cqw; border: 1.2cqw dashed var(--s-ac); border-radius: 4cqw; opacity: .6; }
.sl.s-fun::after { content: ""; position: absolute; width: 12cqw; height: 12cqw; right: 9cqw; top: 9cqw; background: var(--s-ac2); transform: rotate(45deg); border-radius: 2cqw; }
.sl.k-closing .in { align-items: center; text-align: center; }
.sl.k-closing .t { max-width: 90%; }
.sl.k-closing .uline { width: 16cqw; height: 1.4cqw; border-radius: 1cqw; background: var(--s-ac); }
.sl.k-bullets::after, .sl.k-chart::after, .sl.k-bullets::before, .sl.k-chart::before { opacity: .35; }
.sl.s-split.k-bullets::before, .sl.s-split.k-chart::before { opacity: 1; }
.sl.s-band.k-bullets::before, .sl.s-band.k-chart::before, .sl.s-band.k-bullets::after, .sl.s-band.k-chart::after { opacity: 1; }
.sl.s-minimal.k-bullets::before, .sl.s-minimal.k-chart::before { opacity: 1; }

/* ---- style gallery ---- */
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; margin-bottom: var(--space-5); }
.gallery-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.1; margin-bottom: var(--space-3); }
.gallery-head p { color: var(--muted-fg); margin: 0; max-width: 56ch; }
.arrows { display: flex; gap: 8px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: var(--space-3); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { font: inherit; font-size: .86rem; font-weight: 500; white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted-fg); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: all .2s var(--ease); }
.chip svg { width: 15px; height: 15px; }
.chip:hover { color: var(--fg); border-color: var(--border-strong); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 31%); gap: var(--space-5); overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: thin; }
@media (max-width: 900px) { .track { grid-auto-columns: 46%; } }
@media (max-width: 600px) { .track { grid-auto-columns: 82%; gap: var(--space-4); } }
.tcard { scroll-snap-align: start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 12px 16px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 12px; transition: transform .18s var(--ease), border-color .18s var(--ease); }
.tcard:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.tcard[hidden] { display: none; }
.tcard .shot { position: relative; cursor: zoom-in; border: 0; padding: 0; background: none; display: block; width: 100%; border-radius: 10px; }
.tcard .shot .peek { position: absolute; right: 10px; bottom: 10px; z-index: 3; font-family: var(--font-body); font-size: .74rem; font-weight: 600; background: rgba(0,0,0,.6); color: #fff; padding: 4px 9px; border-radius: 999px; opacity: 0; transition: opacity .2s; }
.tcard .shot:hover .peek, .tcard .shot:focus-visible .peek { opacity: 1; }
.tcard .meta { padding: 0 6px; display: flex; flex-direction: column; gap: 4px; }
.tcard .meta b { font-family: var(--font-heading); font-size: 1.05rem; }
.tcard .meta span { font-size: .82rem; color: var(--muted-fg); }
.tcard .dots { display: flex; gap: 5px; margin-top: 2px; }
.tcard .dots i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0,0,0,.08); display: block; }
.tcard .acts { display: flex; gap: 8px; padding: 0 6px; }
.tcard .acts .btn { margin: 0; padding: 10px 14px; font-size: .88rem; }
.tcard .acts .btn-secondary { width: auto; flex: none; padding: 10px 14px; }

/* preview modal */
.modal .card.wide { max-width: 860px; max-height: calc(100dvh - 40px); overflow-y: auto; }
.pv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: var(--space-5) 0; }
@media (max-width: 560px) { .pv-grid { grid-template-columns: 1fr; } }
.pv-foot { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; justify-content: space-between; }
.pv-foot .btn { width: auto; margin: 0; }

/* style field in the create form */
.style-pick { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-tint); }
.style-pick .thumb { width: 120px; flex: none; }
.style-pick .auto-thumb { width: 120px; aspect-ratio: 16/9; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--grad); color: var(--on-primary); }
.style-pick .auto-thumb svg { width: 22px; height: 22px; }
.style-pick b { display: block; font-family: var(--font-heading); }
.style-pick span { font-size: .82rem; color: var(--muted-fg); }
.style-pick .grow { flex: 1; min-width: 0; }
.style-pick .lnk { background: none; border: 0; font: inherit; font-size: .86rem; font-weight: 600; color: var(--primary); cursor: pointer; padding: 6px 4px; white-space: nowrap; }
@media (max-width: 460px) { .style-pick { flex-wrap: wrap; } .style-pick .thumb, .style-pick .auto-thumb { width: 100%; } }
.toggle { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; cursor: pointer; user-select: none; }
.toggle input { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; }
.own-colours { margin-top: 10px; }
.own-colours[hidden] { display: none; }
/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 0 var(--space-5); transition: border-color .2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--primary); line-height: 1; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted-fg); }

/* closing CTA */
.cta-band { border-radius: var(--radius-lg); background: var(--grad); color: #fff; padding: var(--space-8) var(--space-6); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: var(--space-3); }
.cta-band p { opacity: .9; margin: 0 0 var(--space-5); }
.btn-white { width: auto; margin: 0; background: #fff; color: #4C1D95; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); padding: 14px 26px; text-decoration: none; }
.btn-white:hover { background: #F5F3FF; }

/* forms extra */
.req-mark { color: var(--danger); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-tint); font-size: .82rem; color: var(--muted-fg); }
.swatch input[type="color"] { -webkit-appearance: none; appearance: none; width: 30px; height: 30px; border: 0; border-radius: 8px; padding: 0; background: none; cursor: pointer; }
.swatch input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.swatch input[type="color"]::-webkit-color-swatch { border: 1px solid rgba(0,0,0,.1); border-radius: 8px; }
.swatch input[type="color"]::-moz-color-swatch { border: 1px solid rgba(0,0,0,.1); border-radius: 8px; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 520px) { .two-up { grid-template-columns: 1fr; } }
.seg-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg-choice label { display: block; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: var(--bg-tint); cursor: pointer; font-size: .86rem; position: relative; }
.seg-choice label b { display: block; font-size: .9rem; margin-bottom: 2px; }
.seg-choice label span { color: var(--muted-fg); font-size: .78rem; }
.seg-choice input { position: absolute; opacity: 0; }
.seg-choice label:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, var(--card)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
@media (max-width: 420px) { .seg-choice { grid-template-columns: 1fr; } }
.step-label { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; margin: var(--space-5) 0 var(--space-4); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.step-label:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.step-label .n { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: .78rem; background: var(--muted); color: var(--primary); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--primary); box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--primary) 60%, transparent); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: var(--on-primary); font-size: .74rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 1.15rem; margin-bottom: 4px; }
.plan .sub { color: var(--muted-fg); font-size: .9rem; margin: 0 0 var(--space-5); min-height: 2.8em; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: var(--space-5); }
.price b { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted-fg); font-size: .9rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: .93rem; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; color: var(--success); flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; }
.plan .btn-secondary { width: 100%; }
.credit-table { max-width: 760px; margin: var(--space-7) auto 0; }
.credit-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.credit-table th, .credit-table td { text-align: left; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.credit-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-fg); font-weight: 700; }
.credit-table td:last-child, .credit-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.vat-note { text-align: center; color: var(--muted-fg); font-size: .85rem; margin-top: var(--space-5); }

/* sign in */
.auth-wrap { max-width: 420px; margin: 0 auto; }
.auth-wrap h1 { font-size: 1.8rem; text-align: center; margin-bottom: 6px; }
.auth-wrap .lede-sm { text-align: center; color: var(--muted-fg); margin: 0 0 var(--space-6); }
.btn-google { width: 100%; margin: 0; background: var(--card); color: var(--fg); border: 1px solid var(--border-strong); box-shadow: none; }
.btn-google:hover { background: var(--muted); }
.divider { display: flex; align-items: center; gap: var(--space-3); color: var(--muted-fg); font-size: .8rem; margin: var(--space-5) 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-switch { text-align: center; font-size: .9rem; color: var(--muted-fg); margin-top: var(--space-5); }
.auth-switch button { background: none; border: 0; font: inherit; color: var(--primary); font-weight: 600; cursor: pointer; padding: 0; }
.gift { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--success) 10%, transparent); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); font-size: .86rem; margin-bottom: var(--space-5); }
.gift svg { width: 18px; height: 18px; color: var(--success); flex: none; }
.legal { font-size: .76rem; color: var(--muted-fg); text-align: center; margin-top: var(--space-4); }

/* account */
.acct-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
.acct-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-5); margin-bottom: var(--space-5); }
@media (max-width: 900px) { .acct-grid { grid-template-columns: 1fr; } }
.stat-label { font-size: .8rem; color: var(--muted-fg); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.stat-big { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.stat-big small { font-size: 1rem; color: var(--muted-fg); font-weight: 500; }
.meter { height: 8px; border-radius: 999px; background: var(--muted); overflow: hidden; margin: 10px 0 8px; }
.meter > i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.muted-sm { font-size: .84rem; color: var(--muted-fg); margin: 0; }
.kit { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.kit .logo-ph { width: 44px; height: 44px; border-radius: 10px; background: #0F3D3E; display: grid; place-items: center; color: #F2A541; font-family: var(--font-heading); font-weight: 700; }
.kit .dots { display: flex; gap: 6px; }
.kit .dots i { width: 22px; height: 22px; border-radius: 6px; display: block; border: 1px solid rgba(0,0,0,.08); }
.deck-list { display: flex; flex-direction: column; }
.deck-row { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-4); align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.deck-row:last-child { border-bottom: 0; }
.deck-row .th { aspect-ratio: 16/9; border-radius: 6px; background: var(--grad); }
.deck-row .th.teal { background: linear-gradient(120deg, #0F3D3E, #1F6F6F); }
.deck-row .th.amber { background: linear-gradient(120deg, #B45309, #F59E0B); }
.deck-row b { display: block; font-family: var(--font-heading); font-weight: 600; }
.deck-row span { font-size: .82rem; color: var(--muted-fg); }
.tag-sm { display: inline-block; font-size: .7rem; font-weight: 600; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); padding: 2px 8px; border-radius: 999px; margin-right: 6px; }
.btn-ghost-sm { width: auto; margin: 0; padding: 8px 14px; font-size: .86rem; background: var(--card); color: var(--fg); border: 1px solid var(--border); box-shadow: none; }
.btn-ghost-sm:hover { background: var(--muted); }
@media (max-width: 520px) { .deck-row { grid-template-columns: 48px 1fr; } .deck-row .btn-ghost-sm { grid-column: 2; justify-self: start; } }
.row-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-4); }

/* edit request on ready page */
.edit-box { max-width: 640px; margin: 0 auto var(--space-6); }
.edit-box .row { display: flex; gap: var(--space-3); align-items: stretch; }
.edit-box .row .btn { width: auto; margin: 0; white-space: nowrap; }
@media (max-width: 520px) { .edit-box .row { flex-direction: column; } .edit-box .row .btn { width: 100%; } }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: var(--space-5); }
.modal[hidden] { display: none; }
.modal .scrim { position: absolute; inset: 0; background: rgba(11,9,23,.55); backdrop-filter: blur(4px); animation: fade .2s var(--ease) both; }
.modal .card { position: relative; width: 100%; max-width: 420px; animation: rise .3s var(--ease) both; background: var(--bg); }
.modal .close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; }
@keyframes fade { from { opacity: 0; } }

/* footer */
.site-footer { border-top: 1px solid var(--border); margin-top: var(--space-8); padding: var(--space-7) 0 var(--space-6); position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-6); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.foot-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-fg); margin: 0 0 var(--space-3); font-family: var(--font-body); }
.foot-grid a { display: block; color: var(--fg); text-decoration: none; font-size: .92rem; padding: 4px 0; }
.foot-grid a:hover { color: var(--primary); }
.foot-grid p { color: var(--muted-fg); font-size: .9rem; max-width: 32ch; margin: var(--space-3) 0 0; }
.copy { color: var(--muted-fg); font-size: .8rem; margin-top: var(--space-6); }

/* preview toggle (mockup only) */
.preview-toggle { position: fixed; left: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: .78rem; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.preview-toggle button { border: 0; border-radius: 999px; padding: 6px 10px; font: inherit; cursor: pointer; background: color-mix(in srgb, var(--bg) 18%, transparent); color: var(--bg); }


/* ================= v6: more green ================= */
:root {
  --accent: #059669; --accent-strong: #047857; --mint-bg: #ECFDF5;
  --grad: linear-gradient(120deg, #7C3AED 0%, #4F46E5 38%, #059669 100%);
  --grad-text: linear-gradient(110deg, #7C3AED 5%, #4F46E5 40%, #059669 85%);
  --glow: radial-gradient(45% 55% at 20% 0%, rgba(124,58,237,.14), transparent 70%), radial-gradient(45% 55% at 85% 0%, rgba(16,185,129,.18), transparent 70%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #34D399; --accent-strong: #6EE7B7; --mint-bg: #0C1F1A;
    --grad: linear-gradient(120deg, #A78BFA 0%, #818CF8 40%, #34D399 100%);
    --grad-text: linear-gradient(110deg, #C4B5FD 5%, #A5B4FC 40%, #6EE7B7 85%);
    --glow: radial-gradient(45% 55% at 20% -5%, rgba(139,92,246,.30), transparent 70%), radial-gradient(45% 55% at 85% -5%, rgba(52,211,153,.20), transparent 70%);
  }
}
:root[data-theme="dark"] {
  --accent: #34D399; --accent-strong: #6EE7B7; --mint-bg: #0C1F1A;
  --grad: linear-gradient(120deg, #A78BFA 0%, #818CF8 40%, #34D399 100%);
  --grad-text: linear-gradient(110deg, #C4B5FD 5%, #A5B4FC 40%, #6EE7B7 85%);
  --glow: radial-gradient(45% 55% at 20% -5%, rgba(139,92,246,.30), transparent 70%), radial-gradient(45% 55% at 85% -5%, rgba(52,211,153,.20), transparent 70%);
}
.kicker { color: var(--accent); }
.eyebrow { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.text-link { color: var(--accent); }
.type-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--card)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.type-opt:has(input:checked) .ico { background: var(--accent); color: #fff; }
.seg-choice label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--card)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.choice[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent), 0 24px 50px -24px color-mix(in srgb, var(--accent) 55%, transparent); }
.choice[aria-selected="true"] .choice-tick { background: var(--accent); border-color: var(--accent); }
.plan.featured { border-color: var(--accent); box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--accent) 55%, transparent); }
.step-label .n { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.meter > i { background: var(--grad); }
.band-green { background: linear-gradient(180deg, transparent, var(--mint-bg) 18%, var(--mint-bg) 82%, transparent); position: relative; z-index: 1; }
.seg-choice b { display: flex; align-items: center; gap: 7px; }
.seg-choice b svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.style-pick { margin-top: 10px; }
.style-pick[hidden] { display: none; }
.nav a[aria-current="page"] { color: var(--fg); background: color-mix(in srgb, var(--accent) 14%, var(--muted)); }

/* ================= static pages ================= */
.page-hero { padding-top: var(--space-8); padding-bottom: var(--space-6); position: relative; z-index: 1; }
.btn { background-size: 115% 115%; }
.post-grid.featured > :first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; padding: 0; }
.post-grid.featured > :first-child .art { height: 100%; min-height: 220px; }
.post-grid.featured > :first-child .body { padding: var(--space-6); justify-content: center; }
.post-grid.featured > :first-child h3 { font-size: 1.6rem; }
@media (max-width: 700px) { .post-grid.featured > :first-child { grid-template-columns: 1fr; } .post-grid.featured > :first-child .art { min-height: 140px; } .post-grid.featured > :first-child .body { padding: 0 var(--space-5) var(--space-5); } }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.08; margin-bottom: var(--space-3); }
.page-hero p { color: var(--muted-fg); font-size: 1.1rem; max-width: 60ch; margin: 0; }
.crumbs { font-size: .84rem; color: var(--muted-fg); margin-bottom: var(--space-4); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted-fg); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.content { position: relative; z-index: 1; padding-bottom: var(--space-8); }
.prose { max-width: 740px; font-size: 1.04rem; line-height: 1.75; }
.prose h2 { font-size: 1.5rem; margin: 2.2em 0 .6em; line-height: 1.2; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose .lead { font-size: 1.18rem; color: var(--muted-fg); }
.prose code { font-size: .9em; background: var(--muted); padding: 2px 6px; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-fg); }
.prose table.kv th { text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--fg); width: 38%; }
.callout { border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 9%, var(--card)); border-radius: var(--radius); padding: 18px 20px; margin: 2em 0; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 1.4em; }
@media (max-width: 560px) { .compare { grid-template-columns: 1fr; } }
.compare > div { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: var(--card); }
.compare p { margin: 6px 0 0; font-size: .97rem; }
.tag-bad, .tag-good { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; }
.tag-bad { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.tag-good { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.post-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted-fg); font-size: .9rem; margin-top: var(--space-4); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--space-8); align-items: start; }
@media (max-width: 980px) { .post-layout { grid-template-columns: 1fr; } .post-aside { display: none; } }
.post-aside { position: sticky; top: 88px; }
.post-aside .card { padding: var(--space-5); }
.post-aside h4 { margin: 0 0 8px; font-family: var(--font-heading); font-size: 1.05rem; }
.post-aside p { color: var(--muted-fg); font-size: .9rem; margin: 0 0 14px; }
.post-aside .btn { margin: 0; }
.faq-block { max-width: 740px; margin-top: var(--space-7); }
.faq-block h2 { font-size: 1.5rem; margin-bottom: var(--space-4); }
.faq-block .faq { margin: 0; max-width: none; }
.related { margin-top: var(--space-8); }
.related h2 { font-size: 1.5rem; margin-bottom: var(--space-5); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0 0 var(--space-5); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .18s var(--ease), border-color .18s var(--ease); }
.post-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.post-card .art { height: 120px; background: var(--grad); position: relative; overflow: hidden; }
.post-card .art::before { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; right: -40px; top: -60px; background: rgba(255,255,255,.18); }
.post-card .art::after { content: ""; position: absolute; left: 22px; bottom: 18px; width: 46%; height: 10px; border-radius: 6px; background: rgba(255,255,255,.55); box-shadow: 0 -18px 0 rgba(255,255,255,.85); }
.post-card .art.c1 { background: linear-gradient(120deg, #059669, #0D9488); }
.post-card .art.c2 { background: linear-gradient(120deg, #7C3AED, #4F46E5); }
.post-card .art.c3 { background: linear-gradient(120deg, #4F46E5, #059669); }
.post-card .art.c4 { background: linear-gradient(120deg, #0F766E, #7C3AED); }
.post-card .body { padding: 0 var(--space-5); display: flex; flex-direction: column; gap: 8px; }
.post-card .cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); }
.post-card h3 { font-size: 1.15rem; line-height: 1.25; }
.post-card p { color: var(--muted-fg); font-size: .92rem; margin: 0; }
.post-card .m { font-size: .8rem; color: var(--muted-fg); }
mark.ph { background: #FEF08A; color: #713F12; padding: 1px 4px; border-radius: 4px; font-weight: 600; }
.draft-note { border: 1px solid #F59E0B; background: color-mix(in srgb, #F59E0B 12%, var(--card)); border-radius: 12px; padding: 12px 16px; font-size: .92rem; margin-bottom: 1.6em; }
.form-box { border: 1px dashed var(--border-strong); border-radius: 12px; padding: 16px 18px; background: var(--bg-tint); margin-bottom: 1.4em; }
.form-box p { margin: 0 0 .5em; }
.updated { color: var(--muted-fg); font-size: .9rem; margin-top: 2em; }
.btn-inline { width: auto; margin: 0; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-7); align-items: start; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; } .legal-nav { position: static !important; } }
.legal-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; }
.legal-nav a { color: var(--muted-fg); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: .92rem; }
.legal-nav a:hover { color: var(--fg); background: var(--muted); }
.legal-nav a[aria-current="page"] { color: var(--fg); background: color-mix(in srgb, var(--accent) 14%, var(--muted)); font-weight: 600; }
@media (max-width: 860px) { .legal-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; } .legal-nav a { white-space: nowrap; } }
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 860px) { .sitemap-grid { grid-template-columns: 1fr; } }
.sitemap-grid h2 { font-size: 1.1rem; margin-bottom: var(--space-3); }
.sitemap-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sitemap-grid a { color: var(--fg); text-decoration: none; }
.sitemap-grid a:hover { color: var(--accent); }

/* footer v6 */
.foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.foot-grid button.foot-link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: .92rem; color: var(--fg); cursor: pointer; text-align: left; }
.foot-grid button.foot-link:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.foot-bottom p { margin: 0; color: var(--muted-fg); font-size: .82rem; max-width: 70ch; }

/* cookie consent */
.cc { position: fixed; z-index: 60; right: 16px; bottom: 16px; width: min(440px, calc(100vw - 32px)); background: var(--bg); color: var(--fg); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); padding: 20px; animation: rise .35s var(--ease) both; }
.cc[hidden] { display: none; }
.cc h2 { font-size: 1.05rem; margin: 0 0 6px; }
.cc p { margin: 0 0 14px; font-size: .9rem; color: var(--muted-fg); }
.cc p a { color: var(--accent); }
.cc .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc .row .btn { margin: 0; padding: 11px 14px; font-size: .9rem; }
.cc .btn-equal { background: var(--fg); color: var(--bg); box-shadow: none; }
.cc .btn-equal:hover { opacity: .9; }
.cc .more { background: none; border: 0; font: inherit; font-size: .86rem; font-weight: 600; color: var(--accent); cursor: pointer; padding: 10px 0 0; display: block; margin: 0 auto; }
.cc .opts { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
.cc .opts[hidden] { display: none; }
.cc .opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.cc .opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.cc .opt b { display: block; font-size: .9rem; }
.cc .opt span { font-size: .8rem; color: var(--muted-fg); }
@media (max-width: 520px) { .cc { right: 8px; left: 8px; bottom: 8px; width: auto; } }

/* ================= v7: plans ================= */
body:not(.plan-pro) .only-pro { display: none !important; }
body:not(.plan-free) .only-free { display: none !important; }
body.plan-pro .only-free-or-out, body.plan-free .only-pro-or-out { display: none !important; }
body:not(.plan-free) .only-free-or-out-x { display: none !important; }
body:not(.signed-in) .free-banner { display: none !important; }
.billing { display: flex; width: max-content; margin: 0 auto var(--space-6); background: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 2px; }
.billing button { font: inherit; font-size: .9rem; font-weight: 600; border: 0; background: transparent; color: var(--muted-fg); padding: 9px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.billing button[aria-pressed="true"] { background: var(--card); color: var(--fg); box-shadow: 0 1px 6px rgba(0,0,0,.12); }
.billing .save { font-size: .72rem; font-weight: 700; color: #fff; background: var(--accent); padding: 2px 8px; border-radius: 999px; }
:root[data-theme="dark"] .billing .save { color: #052e1f; }
.price-note { font-size: .85rem; color: var(--muted-fg); margin: -14px 0 var(--space-5); min-height: 1.3em; }
.plan li.no { color: var(--muted-fg); }
.plan li.no svg { color: var(--muted-fg); opacity: .7; }
.ladder { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; color: var(--fg); font-weight: 500; margin: var(--space-5) auto 0; font-size: .95rem; }
.ladder svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.free-banner { display: flex; align-items: center; gap: 14px; max-width: 640px; margin: 0 auto var(--space-5); padding: 14px 16px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 9%, var(--card)); font-size: .92rem; }
.free-banner > svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.free-banner .btn { flex: none; }
@media (max-width: 560px) { .free-banner { flex-wrap: wrap; } .free-banner .btn { width: 100%; } }
body.plan-free #readyGrid .slide-thumb::after { content: "Made with I Love Presentations"; position: absolute; right: 10px; bottom: 7px; font-size: .55rem; font-weight: 600; opacity: .55; letter-spacing: .02em; }
body.plan-free #readyGrid .slide-thumb.cover::after { color: #fff; }

/* ================= v8: chat + contact ================= */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 55; }
.chat-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px rgba(5,150,105,.7); position: relative; transition: transform .15s var(--ease); }
.chat-btn:hover { transform: translateY(-2px); }
.chat-btn svg { width: 24px; height: 24px; }
.chat-dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: #F43F5E; border: 2px solid var(--bg); }
.chat-dot[hidden] { display: none; }
.chat-panel { position: absolute; right: 0; bottom: 70px; width: min(360px, calc(100vw - 32px)); height: min(500px, calc(100dvh - 120px)); display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); overflow: hidden; animation: rise .25s var(--ease) both; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--grad); color: #fff; }
.chat-head b { display: block; font-family: var(--font-heading); }
.chat-head span { font-size: .8rem; opacity: .9; }
.chat-x { background: rgba(255,255,255,.18); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-tint); }
.cm { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: .9rem; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.cm.them { align-self: flex-start; background: var(--card); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.cm.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
:root[data-theme="dark"] .cm.me { color: #052e1f; }
.cm.soft { opacity: .75; font-size: .82rem; }
.chat-form { padding: 10px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.chat-form input, .chat-form textarea { font: inherit; font-size: .9rem; color: var(--fg); background: var(--bg-tint); border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; width: 100%; }
.chat-form input[hidden] { display: none; }
.chat-form input:focus, .chat-form textarea:focus { outline: none; border-color: var(--accent); }
.chat-row { display: flex; gap: 8px; }
.chat-row textarea { resize: none; min-height: 40px; max-height: 120px; }
.chat-row button { border: 0; border-radius: 10px; padding: 0 16px; font: inherit; font-weight: 600; background: var(--accent); color: #fff; cursor: pointer; }
:root[data-theme="dark"] .chat-row button { color: #052e1f; }
.chat-legal { margin: 0; font-size: .72rem; color: var(--muted-fg); }
.chat-legal a { color: var(--accent); }
@media (max-width: 520px) { .chat { right: 12px; bottom: 12px; } .chat.open { left: 12px; } .chat-panel { width: calc(100vw - 24px); } }
body:has(.cc:not([hidden])) .chat { bottom: 250px; }
@media (max-width: 520px) { body:has(.cc:not([hidden])) .chat { display: none; } }
.preview-toggle { bottom: 20px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-6); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-ways { display: flex; flex-direction: column; gap: var(--space-4); }
.way { display: flex; gap: 14px; align-items: flex-start; }
.way .ico { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.way .ico svg { width: 20px; height: 20px; }
.way b { display: block; font-family: var(--font-heading); }
.way p { margin: 2px 0 8px; color: var(--muted-fg); font-size: .92rem; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.kinds label { position: relative; }
.kinds input { position: absolute; opacity: 0; }
.kinds span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-tint); font-size: .88rem; font-weight: 500; cursor: pointer; }
.kinds input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.kinds input:focus-visible + span { outline: 2px solid var(--ring); outline-offset: 2px; }
.rate { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rate input { position: absolute; opacity: 0; }
.rate label { font-size: 1.7rem; line-height: 1; color: var(--border-strong); cursor: pointer; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: #F59E0B; }
.rate input:focus-visible + label { outline: 2px solid var(--ring); border-radius: 4px; }
.sent { text-align: center; padding: var(--space-6) 0; }
.sent[hidden] { display: none; }
.sent .check-badge { margin-bottom: var(--space-4); }
