/* STAK sign-up / onboarding styles — copied verbatim from the landing sample
   (https://stak-erp-landing.vercel.app/styles.css, fetched 2026-10-19).
   Server-side additions and the dark theme live in onboarding-app.css. */
:root {
  --brand: #0B5D5B;
  --brand-2: #0E7A6F;
  --accent: #0E8A6E;
  --ink: #0B1F2A;
  --ink-2: #334155;
  --muted: #64748B;
  --line: #E4EBEA;
  --bg: #FFFFFF;
  --tint: #F3F8F7;
  --dark: #08262B;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 31, 42, .04), 0 8px 24px rgba(11, 31, 42, .06);
  --shadow-lg: 0 24px 60px -18px rgba(8, 38, 43, .28);
  --font-h: "Outfit", system-ui, sans-serif;
  --font-b: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font-b); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-h); margin: 0; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.accent { color: var(--accent); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.eyebrow.center { text-align: center; color: var(--ink-2); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1.5px solid transparent; transition: transform .15s, box-shadow .2s, background .2s, color .2s; white-space: nowrap; }
.btn svg { width: 17px; height: 17px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 26px; }
.btn--block { width: 100%; }
.btn--primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 6px 18px -6px rgba(11, 93, 91, .6); }
.btn--primary:hover { box-shadow: 0 10px 26px -8px rgba(11, 93, 91, .7); }
.btn--ghost { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--brand); }
.btn--outline-white { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline-white:hover { background: rgba(255,255,255,.1); }
.btn--link-white { color: #CFE9E3; padding: 0 8px; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(0,0,0,.15); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; font-family: var(--font-h); font-weight: 800; font-size: 26px; letter-spacing: .02em; color: var(--brand); }
.logo__mark { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 1px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), #16A085); color: #fff; font-size: 20px; }
.logo__mark.sm { width: 20px; height: 20px; font-size: 13px; border-radius: 6px; }
.logo--light { color: #fff; }
.nav__links { display: flex; gap: 32px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav__links a { position: relative; padding: 6px 0; transition: color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--accent); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav__burger span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
.mobile-menu { display: grid; padding: 8px 20px 20px; border-top: 1px solid var(--line); background: #fff; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 40%; height: 720px; background: radial-gradient(closest-side, rgba(14, 138, 110, .13), transparent 70%); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 56px; }
.hero__title { margin: 16px 0 20px; font-size: clamp(38px, 5vw, 60px); font-weight: 700; }
.hero__lead { max-width: 520px; color: var(--ink-2); font-size: 17px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__pricing-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.hero__pricing-link strong { color: var(--accent); }
.hero__pricing-link svg { width: 15px; height: 15px; color: var(--accent); }
.hero__ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 13.5px; color: var(--ink-2); }
.hero__ticks li { display: flex; align-items: center; gap: 6px; }
.hero__ticks svg { width: 16px; height: 16px; color: var(--accent); }

/* Mock dashboard */
.mock { border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 11px; transform: perspective(1600px) rotateY(var(--ry, -4deg)) rotateX(var(--rx, 2deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.mock__bar { display: flex; gap: 6px; padding: 12px 16px; }
.mock__bar span { width: 9px; height: 9px; border-radius: 50%; background: #F87171; }
.mock__bar span:nth-child(2) { background: #FBBF24; }
.mock__bar span:nth-child(3) { background: #34D399; }
.mock__body { display: grid; grid-template-columns: 132px 1fr; }
.mock__side { padding: 4px 10px 16px; border-right: 1px solid var(--line); }
.mock__logo { display: flex; align-items: center; margin: 4px 6px 16px; font-family: var(--font-h); font-weight: 800; font-size: 17px; color: var(--brand); }
.mock__side li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--muted); font-weight: 500; }
.mock__side li svg { width: 13px; height: 13px; }
.mock__side li.on { background: #E6F4F1; color: var(--brand); font-weight: 600; }
.mock__main { padding: 4px 18px 18px; background: #FAFCFC; }
.mock__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mock__search { flex: 1; max-width: 220px; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; background: #F1F5F4; color: #94A3B8; }
.mock__search svg { width: 12px; height: 12px; }
.mock__user { display: flex; align-items: center; gap: 8px; line-height: 1.2; }
.mock__user small { display: block; color: var(--muted); font-size: 9.5px; }
.mock__bell svg { width: 14px; height: 14px; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #1E3A8A; color: #fff; font-size: 10px; font-weight: 700; }
.mock__hello { margin-top: 16px; font-size: 16px; }
.mock__sub { color: var(--muted); font-size: 10.5px; }
.mock__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.kpi { padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: grid; gap: 3px; }
.kpi small { color: var(--muted); font-size: 9.5px; }
.kpi b { font-size: 13px; font-family: var(--font-h); }
.kpi em { font-style: normal; font-size: 9px; color: var(--muted); }
.kpi em.up { color: #059669; }
.kpi em.warn { color: #DC2626; }
.kpi__ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; margin-bottom: 4px; }
.kpi__ic svg { width: 13px; height: 13px; }
.kpi__ic.t { background: #E6F4F1; color: var(--brand); }
.kpi__ic.o { background: #FFEDE6; color: #EA580C; }
.kpi__ic.y { background: #FEF3C7; color: #D97706; }
.kpi__ic.b { background: #E0E7FF; color: #4F46E5; }
.mock__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 10px; }
.mock__card { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mock__card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mock__card-h small { color: var(--muted); font-size: 9.5px; }
.mock__card-h .link { color: var(--accent); font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 96px; padding-top: 6px; background: repeating-linear-gradient(to top, transparent 0 23px, #EEF2F1 23px 24px); }
.bars span { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(to top, var(--brand), #14B8A6); transform-origin: bottom; animation: grow .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); }
.bars span:nth-child(odd) { opacity: .55; }
@keyframes grow { from { transform: scaleY(0); } }
.orders li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid #F1F5F4; font-weight: 500; }
.orders li:last-child { border: 0; }
.pill { font-style: normal; font-size: 9px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.pill--blue { background: #E0F2FE; color: #0369A1; }
.pill--green { background: #DCFCE7; color: #15803D; }
.pill--amber { background: #FEF3C7; color: #B45309; }

/* ---------- Trusted ---------- */
.trusted { padding: 40px 0 56px; }
.trusted__sub { text-align: center; color: var(--muted); font-size: 14px; margin-top: 8px; }
.logos { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 36px; margin-top: 32px; color: #475569; filter: grayscale(1); opacity: .85; }
.wm { font-family: var(--font-h); font-weight: 800; font-size: 24px; letter-spacing: -.01em; line-height: 1; }
.wm--oval { padding: 8px 18px; border: 2.5px solid currentColor; border-radius: 50%; font-style: italic; }
.wm--pz { display: grid; text-align: center; font-style: italic; font-size: 20px; }
.wm--pz small { font-size: 22px; font-style: normal; }
.wm--jesa { font-size: 30px; font-style: italic; letter-spacing: .02em; }
.wm--kas { font-size: 17px; font-weight: 700; }
.wm--omega { font-weight: 500; font-size: 26px; }
.wm--ent { display: grid; font-weight: 700; font-size: 20px; }
.wm--ent small { font-size: 8px; letter-spacing: .2em; text-transform: uppercase; justify-self: end; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); border-radius: 48px; margin-inline: 12px; }
.section__head { margin-bottom: 44px; }
.section__head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; }
.section__head p { margin-top: 12px; color: var(--ink-2); font-size: 17px; }
.section__head p a { color: var(--accent); font-weight: 600; }
.section__head.center { text-align: center; max-width: 720px; margin-inline: auto; }
.section__head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 22px 28px; border-radius: 20px; background: linear-gradient(120deg, var(--dark), #0D3D40 60%, #0B4D4B); color: #fff; box-shadow: var(--shadow-lg); }
.stat { display: flex; align-items: center; gap: 16px; padding: 6px 18px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.14); }
.stat__ic { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); }
.stat__ic svg { width: 22px; height: 22px; }
.stat b { display: block; font-family: var(--font-h); font-size: 28px; color: #F5C84B; line-height: 1.1; }
.stat small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #CFE3E0; }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.benefit { position: relative; padding: 30px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.benefit::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.benefit__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--c); color: #fff; box-shadow: 0 10px 20px -10px var(--c); }
.benefit__ic svg { width: 24px; height: 24px; }
.benefit h3 { margin: 22px 0 10px; font-size: 21px; }
.benefit p { color: var(--muted); font-size: 15px; }
.checks { display: grid; gap: 10px; margin-top: 22px; font-size: 14.5px; color: var(--ink-2); }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--c, var(--accent)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/12px no-repeat; }

.audience { margin-top: 40px; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px dashed #C9DAD7; }
.audience h3 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-family: var(--font-b); font-weight: 700; }
.audience__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 18px; }
.audience__grid div { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: start; }
.audience__grid svg { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #E6F4F1; color: var(--brand); }
.audience__grid b { font-size: 15px; }
.audience__grid span { font-size: 13.5px; color: var(--muted); }

/* Modules */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.module { display: flex; gap: 16px; padding: 20px; border-radius: 16px; transition: background .2s, box-shadow .2s; }
.module:hover { background: #fff; box-shadow: var(--shadow); }
.module__ic { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); }
.module__ic svg { width: 24px; height: 24px; }
.module h4 { font-size: 16.5px; font-weight: 600; }
.module p { margin-top: 4px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.module__tier { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--tint); color: var(--brand); }

/* Home: compact module tiles */
.modules-lite { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.mod-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; text-align: center; font-size: 14px; font-weight: 600; transition: transform .2s, box-shadow .2s, border-color .2s; }
.mod-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 35%, #fff); }

/* Features page */
.page-hero { position: relative; padding: 72px 0 48px; text-align: center; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -40% 10% auto; height: 520px; background: radial-gradient(closest-side, rgba(14, 138, 110, .12), transparent 70%); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 820px; margin: 14px auto 0; font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; }
.page-hero__lead { max-width: 640px; margin: 18px auto 0; color: var(--ink-2); font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.feature-group.section { padding: 72px 0; }
.feature-group + .feature-group:not(.section--tint) { padding-top: 72px; }
.fmods { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.fmod { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); --c: var(--accent); }
.fmod__top { display: flex; align-items: center; justify-content: space-between; }
.fmod__top .module__tier { margin: 0; }
.fmod h3 { margin-top: 18px; font-size: 19px; }
.fmod p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.fmod .checks { margin-top: 16px; font-size: 14px; }
#compare-section .compare { margin-top: 0; }

/* Pricing */
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.toggle[hidden] { display: none; }
.toggle button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 22px; border-radius: 999px; border: 0; background: transparent; font-weight: 600; font-size: 14.5px; color: var(--ink-2); transition: background .2s, color .2s; }
.toggle button.is-on { background: var(--brand); color: #fff; }
.save { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #22C55E; color: #fff; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan--popular { border: 2px solid var(--brand); box-shadow: 0 24px 50px -24px rgba(11, 93, 91, .55); }
.plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 5px 16px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.plan h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 22px; font-weight: 700; }
.plan__tag { margin-top: 4px; font-size: 14px; color: var(--muted); min-height: 42px; }
.plan__price { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; font-family: var(--font-h); }
.plan__price .cur { font-weight: 700; font-size: 22px; }
.plan__price b { font-size: 38px; letter-spacing: -.03em; font-weight: 700; }
.plan__price small { color: var(--muted); font-family: var(--font-b); font-size: 14px; }
.plan__usd { margin-top: 2px; font-size: 12.5px; color: var(--muted); min-height: 38px; line-height: 1.5; }
.plan__usd b { color: var(--ink-2); font-weight: 600; }
.plan__usd s { margin-left: 2px; color: #94A3B8; }
.plan__was { display: flex; align-items: center; gap: 8px; margin-top: 12px; min-height: 22px; font-size: 15px; font-weight: 600; color: #94A3B8; }
.plan__was s { text-decoration-thickness: 2px; text-decoration-color: #E11D48; }
.plan__save { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #DCFCE7; color: #15803D; }
.plan__saving { color: #15803D; font-weight: 600; }
.plan__seats { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 12px; border-radius: 10px; background: var(--tint); font-size: 13.5px; font-weight: 600; color: var(--brand); }
.plan__seats svg { width: 16px; height: 16px; }
.plan .checks { flex: 1; align-content: start; margin: 20px 0 24px; font-size: 14px; }
.plan__sales { margin-top: 12px; text-align: center; font-size: 13px; font-weight: 600; color: var(--accent); }
.plan__sales:hover { text-decoration: underline; }
.plan__sales.muted { color: var(--muted); font-weight: 500; }
.plans__note { margin-top: 24px; text-align: center; font-size: 13.5px; color: var(--muted); }
.plans__note b { color: var(--ink-2); font-weight: 600; }

/* Compare table */
.compare.compare--collapsible { margin-top: 48px; padding: 0; overflow: hidden; }
.compare__toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; border: 0; background: #fff; text-align: left; }
.compare__toggle b { display: block; font-family: var(--font-h); font-size: 20px; color: var(--ink); }
.compare__toggle small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.compare__toggle:hover b { color: var(--accent); }
.compare__chev { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--tint); position: relative; transition: transform .25s; }
.compare__chev::before { content: ""; position: absolute; left: 50%; top: 45%; width: 9px; height: 9px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: translate(-50%, -50%) rotate(45deg); }
.compare.is-open .compare__chev { transform: rotate(180deg); }
.compare__body { padding: 0 28px 28px; border-top: 1px solid var(--line); }
.compare__intro { margin-top: 18px; color: var(--muted); font-size: 14.5px; }
.compare__more { margin-top: 18px; text-align: center; }
.compare__more a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14.5px; }
.compare__more svg { width: 16px; height: 16px; }
.compare { margin-top: 64px; padding: 32px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.compare__head h3 { font-size: 26px; }
.compare__head p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.compare__scroll { position: relative; margin-top: 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare__table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.compare__table thead th { position: sticky; top: 0; padding: 16px 12px; background: #fff; text-align: center; vertical-align: bottom; border-bottom: 2px solid var(--line); }
.compare__table thead th b { display: block; font-family: var(--font-h); font-size: 18px; }
.compare__table thead th span { display: block; margin-top: 2px; font-weight: 600; color: var(--brand); }
.compare__table thead th small { color: var(--muted); font-weight: 500; }
.compare__table thead th.pop { background: #E9F5F2; border-radius: 14px 14px 0 0; }
.compare__table th[scope="row"] { padding: 12px 12px 12px 4px; text-align: left; font-weight: 500; width: 40%; }
.compare__table th[scope="row"] small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.compare__table td { text-align: center; padding: 12px; border-bottom: 1px solid #F0F4F3; }
.compare__table tbody tr:not(.grp) th { border-bottom: 1px solid #F0F4F3; }
.compare__table td svg { width: 20px; height: 20px; margin: auto; }
.compare__table td.yes svg { color: #fff; background: var(--accent); border-radius: 50%; padding: 3px; stroke-width: 3; }
.compare__table td.no svg { color: #CBD5E1; }
.compare__table td.pop { background: #F4FAF8; }
.compare__table .grp th { padding: 20px 12px 10px 4px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--line); }
.compare__table tfoot td { padding-top: 20px; border: 0; }
.compare__table tfoot td.pop, .compare__table tfoot td { background: none; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, #BFD8D3 0 8px, transparent 8px 16px); }
.step { position: relative; padding: 0 8px; text-align: center; }
.step > svg { width: 68px; height: 68px; margin: 0 auto 18px; padding: 18px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--brand); position: relative; }
.step__n { position: absolute; top: -4px; left: calc(50% + 18px); z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.step h4 { font-size: 17px; }
.step p { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq .section__head { position: sticky; top: 110px; }
.faq__list { display: grid; gap: 12px; }
.faq__list details { border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: box-shadow .2s; }
.faq__list details[open] { box-shadow: var(--shadow); }
.faq__list summary { position: relative; padding: 20px 56px 20px 22px; font-weight: 600; cursor: pointer; list-style: none; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--brand); font-size: 20px; font-weight: 500; transition: transform .2s; }
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list details p { padding: 0 22px 20px; color: var(--ink-2); font-size: 15px; }

/* CTA */
.cta-wrap { padding: 72px 0 88px; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 44px 48px; border-radius: 28px; color: #fff; background: radial-gradient(600px 240px at 90% 0%, rgba(20, 184, 166, .35), transparent), linear-gradient(120deg, var(--dark), #0B4D4B); box-shadow: var(--shadow-lg); }
.cta h2 { font-size: clamp(26px, 3vw, 36px); }
.cta p { margin-top: 8px; color: #CFE3E0; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Footer */
.footer { background: var(--dark); color: #B6CCC8; padding: 64px 0 28px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__blurb { margin-top: 14px; max-width: 280px; }
.footer h5 { color: #fff; font-size: 14px; margin-bottom: 14px; font-family: var(--font-b); letter-spacing: 0; }
.footer a:not(.logo) { display: block; padding: 5px 0; }
.footer a:not(.logo):hover { color: #fff; }
.footer__base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

/* Modal */
.modal { padding: 0; border: 0; border-radius: 24px; width: min(560px, calc(100% - 32px)); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(8, 38, 43, .55); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .25s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal__card { position: relative; padding: 32px; }
.modal__card[hidden] { display: none; }
.modal__card h3 { font-size: 26px; }
.modal__sub { margin-top: 6px; color: var(--muted); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--tint); font-size: 22px; color: var(--ink-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.form-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid .opt { font-weight: 400; color: var(--muted); }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(14, 138, 110, .12); }
.form-grid label.invalid input, .form-grid label.invalid select { border-color: #DC2626; }
.modal__legal { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--muted); }
.modal__legal a { color: var(--accent); }
.modal__done { text-align: center; padding: 48px 32px; }
.modal__done p { margin: 8px 0 24px; color: var(--muted); }
.done__ic svg { width: 64px; height: 64px; margin: 0 auto 18px; padding: 16px; border-radius: 50%; background: #DCFCE7; color: #15803D; stroke-width: 2.6; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bars span, .modal[open] { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .modules { grid-template-columns: repeat(3, 1fr); }
  .modules-lite { grid-template-columns: repeat(4, 1fr); }
  .audience__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .mock { transform: none; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .stat:nth-child(3) { border-left: 0; }
  .benefits { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { display: none; }
  .step { display: grid; grid-template-columns: 68px 1fr; column-gap: 18px; text-align: left; }
  .step > svg { grid-row: span 2; margin: 0; }
  .step__n { left: 50px; }
  .faq { grid-template-columns: 1fr; gap: 0; }
  .faq .section__head { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 32px); }
  .nav__cta .btn--ghost { display: none; }
  .hero { padding-top: 40px; }
  .mock__body { grid-template-columns: 1fr; }
  .mock__side { display: none; }
  .mock__kpis { grid-template-columns: repeat(2, 1fr); }
  .mock__row { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .section--tint { border-radius: 28px; margin-inline: 0; }
  .stats { grid-template-columns: 1fr; padding: 16px; }
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; }
  .modules { grid-template-columns: 1fr; }
  .modules-lite { grid-template-columns: repeat(2, 1fr); }
  .compare__toggle { padding: 18px; }
  .compare__body { padding: 0 4px 20px; }
  .audience__grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .compare { padding: 20px 14px; }
  .logos { justify-content: center; }
  .cta { padding: 32px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Auth / onboarding pages ---------- */
body.auth { background: var(--tint); min-height: 100vh; }
.auth__bar { background: #fff; border-bottom: 1px solid var(--line); }
.auth__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.auth__bar-link { font-size: 14px; color: var(--muted); }
.auth__bar-link a, .onb__fine a, .form-grid .check a { color: var(--accent); font-weight: 600; }

.progress { display: flex; gap: 6px; margin: 32px 0 28px; counter-reset: p; }
.progress li { flex: 1; position: relative; padding-top: 14px; font-size: 12.5px; font-weight: 600; color: #94A3B8; counter-increment: p; }
.progress li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 99px; background: #DCE6E4; }
.progress li.done, .progress li.current { color: var(--brand); }
.progress li.done::before { background: var(--accent); }
.progress li.current::before { background: linear-gradient(90deg, var(--accent) 50%, #DCE6E4 50%); }
.progress li.skip { text-decoration: line-through; opacity: .6; }

.onb__grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; padding-bottom: 64px; }
.onb__card { padding: 36px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.onb__card[hidden] { display: none; }
.onb__card h1 { font-size: 30px; font-weight: 700; }
.onb__sub { margin-top: 6px; color: var(--muted); }
.onb__fine { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--muted); }
.onb__done { text-align: center; }
.onb__done .btn { margin-top: 20px; }
.proto-note { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: #FFF8E6; border: 1px solid #F8E1A0; color: #7A5A00; font-size: 14px; text-align: left; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.linkbtn:disabled { color: var(--muted); cursor: default; }

.pw { position: relative; display: block; }
.pw input { padding-right: 70px; }
.pw__toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border: 0; border-radius: 8px; background: var(--tint); font-size: 12.5px; font-weight: 600; color: var(--brand); }
.pw-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-top: -4px; font-size: 13px; color: var(--muted); }
.pw-rules li { position: relative; padding-left: 22px; }
.pw-rules li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #CBD5E1; transition: background .2s, border-color .2s; }
.pw-rules li.ok { color: #15803D; }
.pw-rules li.ok::before { border-color: #16A34A; background: #16A34A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/10px no-repeat; }
.form-grid label.invalid ~ .pw-rules li:not(.ok) { color: #DC2626; }
.field-err { font-size: 12.5px; font-weight: 500; color: #DC2626; }
.form-grid label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 14px; color: var(--ink-2); }
.form-grid label.check input, .login__row .check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.form-grid label.check.invalid span { color: #DC2626; }

.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 28px 0 8px; }
.otp input { width: 100%; height: 60px; text-align: center; font-family: var(--font-h); font-size: 26px; font-weight: 700; border: 1.5px solid var(--line); border-radius: 14px; }
.otp input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(14, 138, 110, .12); }
#verify-form .btn { margin-top: 16px; }

.onb__side { position: sticky; top: 24px; }
.summary { padding: 26px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.summary__head { display: flex; justify-content: space-between; align-items: baseline; }
.summary__head h2 { font-size: 20px; }
.summary__change { font-size: 13px; font-weight: 600; color: var(--accent); }
.summary__field { display: grid; gap: 6px; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.summary__field select { padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 12px; padding: 4px; border-radius: 12px; background: var(--tint); }
.seg[hidden] { display: none; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg button.is-on { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.summary__rows { margin: 18px 0 0; }
.summary__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #F0F4F3; font-size: 14px; }
.summary__rows dt { color: var(--muted); }
.summary__rows dd { margin: 0; font-weight: 600; text-align: right; }
.summary__rows s { color: #94A3B8; font-weight: 500; margin-right: 4px; }
.summary__mods { margin-top: 18px; }
.summary__mods h3 { font-family: var(--font-b); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.summary__mods .checks { margin-top: 10px; gap: 8px; font-size: 13.5px; }
.summary__total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; margin-top: 20px; padding-top: 16px; border-top: 2px solid var(--line); font-weight: 600; }
.summary__total b { font-family: var(--font-h); font-size: 26px; }
.summary__saving { width: 100%; margin-top: 4px; font-size: 13px; color: #15803D; }
.summary__tax { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.onb__secure { display: flex; gap: 10px; margin-top: 16px; padding: 0 6px; font-size: 13px; color: var(--muted); }
.onb__secure svg { flex: none; width: 18px; height: 18px; color: var(--accent); }

.login { display: grid; place-items: start center; padding: 64px 0; }
.login .onb__card { width: min(460px, 100%); }
.login__row { display: flex; justify-content: space-between; align-items: center; margin: -8px 0 22px; font-size: 14px; }
.login__row .check { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }

@media (max-width: 900px) {
  .onb__grid { grid-template-columns: 1fr; }
  .onb__side { position: static; }
}
@media (max-width: 680px) {
  .auth__bar-link { font-size: 13px; }
  .progress li { font-size: 0; }
  .onb__card { padding: 24px 20px; }
  .onb__card h1 { font-size: 25px; }
  .pw-rules { grid-template-columns: 1fr; }
  .otp { gap: 6px; }
  .otp input { height: 52px; font-size: 22px; }
}

/* ---------- Legal pages ---------- */
.page-hero--legal { padding-bottom: 32px; }
.legal { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; padding: 16px 0 96px; }
.legal__toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; padding-right: 4px; }
.legal__toc summary { list-style: none; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; cursor: pointer; }
.legal__toc summary::-webkit-details-marker { display: none; }
.legal__toc ol { display: grid; gap: 2px; }
.legal__toc a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); transition: background .15s, color .15s; }
.legal__toc a span { color: #94A3B8; margin-right: 2px; }
.legal__toc a:hover, .legal__toc a.is-active { background: var(--tint); color: var(--brand); }
.legal__toc a.is-active { font-weight: 600; }
.legal__other { display: inline-flex !important; align-items: center; gap: 6px; margin-top: 20px; font-weight: 600; color: var(--accent) !important; }
.legal__other svg { width: 15px; height: 15px; }
.legal__body { max-width: 760px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal__sec { padding-top: 8px; margin-bottom: 40px; scroll-margin-top: 96px; }
.legal__body h2 { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 24px; color: var(--ink); }
.legal__body h2 span, .legal__body h3 span { color: var(--accent); }
.legal__body h3 { margin: 28px 0 10px; font-size: 18px; color: var(--ink); scroll-margin-top: 96px; }
.legal__body h4 { margin: 22px 0 6px; font-family: var(--font-b); font-size: 15.5px; font-weight: 700; letter-spacing: 0; color: var(--ink); }
.legal__body p { margin: 0 0 12px; }
.legal__body a { color: var(--accent); font-weight: 500; }
.legal__list { display: grid; gap: 6px; margin: 4px 0 16px; padding-left: 4px; }
.legal__list li { position: relative; padding-left: 22px; }
.legal__list li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
mark.todo { padding: 1px 5px; border-radius: 5px; background: #FEF3C7; color: #92400E; font-weight: 600; }
@media (max-width: 960px) {
  .legal { grid-template-columns: 1fr; gap: 24px; }
  .legal__toc { position: static; max-height: none; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
  .legal__toc summary { margin: 0; }
  .legal__toc details[open] summary { margin-bottom: 10px; }
  .legal__toc summary::after { content: " ▾"; }
}

/* Auth pages: Home link + mobile menu active state */
.auth__bar-nav { display: flex; align-items: center; gap: 18px; }
.auth__home { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.auth__home:hover { color: var(--accent); }
.mobile-menu a.is-active { color: var(--accent); }
@media (max-width: 480px) { .auth__bar-nav { gap: 12px; } .auth__bar-link { font-size: 12.5px; text-align: right; } }

/* Pricing: country selector */
.pricing-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.country-pick { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 6px 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.country-pick select { height: 38px; padding: 0 30px 0 12px; border: 0; border-radius: 999px; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B5D5B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center/14px no-repeat; font: inherit; font-weight: 600; color: var(--brand); appearance: none; -webkit-appearance: none; cursor: pointer; }
@media (max-width: 680px) { .pricing-controls { width: 100%; } .country-pick { width: 100%; justify-content: space-between; } }

/* ======================= Onboarding: full flow ======================= */
.onb__grid--wide { grid-template-columns: 1fr; }
.step__kicker { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: #15803D; }
.preview-tag { margin-top: 12px; text-align: center; font-size: 12.5px; color: #92400E; }
.preview-pill { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px; background: #FEF3C7; color: #92400E; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.field-hint { margin: 0; font-size: 13px; font-weight: 400; color: var(--muted); }
.notice { padding: 12px 14px; border-radius: 12px; background: #EFF8F6; border: 1px solid #CDE7E1; font-size: 13.5px; color: var(--brand); }
.notice[hidden] { display: none; }
.notice--warn { margin: 12px 0 0; background: #FEF2F2; border-color: #FECACA; color: #B91C1C; font-weight: 600; }
.summary__locked { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--tint); font-size: 13px; color: var(--brand); }
.summary__locked[hidden] { display: none; }
.form-grid fieldset, .onb fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.onb legend { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.form-grid--tight { margin: 0; gap: 12px; }
.taxes { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.taxes[hidden] { display: none; }
.taxes legend { width: 100%; }
.taxes label.check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.taxes label.check input { width: 18px; height: 18px; accent-color: var(--brand); }

details.optional { border: 1px dashed #C9DAD7; border-radius: 14px; padding: 4px 16px; }
details.optional summary { padding: 10px 0; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink); list-style: none; }
details.optional summary::-webkit-details-marker { display: none; }
details.optional summary::before { content: "+"; display: inline-block; width: 18px; color: var(--accent); font-weight: 700; }
details.optional[open] summary::before { content: "–"; }
details.optional summary span { margin-left: 6px; font-weight: 400; color: var(--muted); font-size: 13px; }
details.optional > .form-grid { margin: 6px 0 16px; }
.logo-up { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.logo-up__preview { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--tint); color: var(--brand); font-family: var(--font-h); font-weight: 700; overflow: hidden; border: 1px solid var(--line); }
.logo-up__preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo-up .btn { cursor: pointer; }

.review { margin: 22px 0 0; }
.review div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #F0F4F3; font-size: 14.5px; }
.review dt { color: var(--muted); flex: none; }
.review dd { margin: 0; text-align: right; font-weight: 600; }
.review s { color: #94A3B8; font-weight: 500; margin-right: 4px; }
.review--compact { margin: 18px 0; }
.review--compact div { padding: 8px 0; font-size: 14px; }
.review__total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 4px; font-weight: 600; }
.review__total b { font-family: var(--font-h); font-size: 26px; }
.review__accept { margin: 18px 0 22px; gap: 10px; }

/* Payment journey */
.pay-journey {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
  margin: 18px 0 22px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #F7FBFA 0%, #fff 100%);
}
.pay-journey__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-width: 0;
  position: relative;
}
.pay-journey__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12px;
  left: calc(50% + 14px);
  width: calc(100% - 28px);
  height: 2px;
  background: #D8E5E1;
}
.pay-journey__step.is-done:not(:last-child)::after,
.pay-journey__step.is-current:not(:last-child)::after {
  background: color-mix(in srgb, var(--accent) 55%, #D8E5E1);
}
.pay-journey__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #E8F0EE;
  color: #64748B;
}
.pay-journey__step.is-done .pay-journey__num {
  background: var(--accent);
  color: #fff;
}
.pay-journey__step.is-current .pay-journey__num {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}
.pay-journey__label {
  font-size: 11px;
  line-height: 1.25;
  color: var(--muted);
  font-weight: 500;
}
.pay-journey__step.is-current .pay-journey__label,
.pay-journey__step.is-done .pay-journey__label {
  color: var(--fg, #0F172A);
  font-weight: 600;
}
.pay-stage { margin-top: 8px; }
.pay-stage__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg, #0F172A);
}
.pay-stage__label span {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.pay-flow-checklist {
  list-style: none;
  margin: 18px auto 0;
  padding: 0;
  max-width: 420px;
  text-align: left;
  display: grid;
  gap: 8px;
}
.pay-flow-checklist li {
  position: relative;
  padding: 8px 12px 8px 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  color: var(--muted);
}
.pay-flow-checklist li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 2px solid #CBD5E1;
  background: #fff;
}
.pay-flow-checklist li.is-done {
  color: var(--fg, #0F172A);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, #fff);
}
.pay-flow-checklist li.is-done::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 2px #fff;
}
.pay-flow-checklist li.is-current {
  color: var(--fg, #0F172A);
  font-weight: 600;
  border-color: #F8D57E;
  background: #FFFBEB;
}
.pay-flow-checklist li.is-current::before {
  border-color: #B45309;
  background: #F59E0B;
}
@media (max-width: 720px) {
  .pay-journey {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 6px;
  }
  .pay-journey__step:nth-child(3)::after { display: none; }
}

/* Payment */
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; }
.method { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.method:hover { border-color: #A7D3C9; }
.method.is-on { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(14, 138, 110, .1); }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method:focus-within { outline: 3px solid rgba(14, 138, 110, .35); outline-offset: 2px; }
.method b { display: block; font-size: 14.5px; }
.method small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.method__ic { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--tint) center/20px no-repeat; }
.method__ic--momo { background-color: #FEF3C7; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B45309' stroke-width='2' stroke-linecap='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.method__ic--card { background-color: #E0E7FF; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234338CA' stroke-width='2' stroke-linecap='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20M6 15h4'/%3E%3C/svg%3E"); }
.method__ic--bank { background-color: #E0F2FE; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230369A1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-6 9 6M5 10v8M9.5 10v8M14.5 10v8M19 10v8M3 21h18'/%3E%3C/svg%3E"); }
.method__ic--shrinqpay { background-color: #E6F4F1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B5D5B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7V5a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-4a2 2 0 0 0 0 4h4v2a1 1 0 0 1-1 1H5a2 2 0 0 1-2-2V6'/%3E%3C/svg%3E"); }
.method-detail { margin-top: 16px; display: grid; gap: 10px; }
.pay-secure-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.pay-secure-notice__ic {
  flex: none;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}
.pay-secure-notice__ic svg { width: 18px; height: 18px; }
.pay-secure-notice strong {
  display: block;
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--fg, inherit);
}
.pay-secure-notice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.pay-secure-notice p + p { margin-top: 8px; }
.pay-secure-notice__steps {
  display: grid;
  gap: 4px;
  margin-top: 10px !important;
}
.pay-secure-notice__steps span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}
.pay-secure-notice__steps b { color: var(--fg, inherit); font-weight: 600; }
.simulate { margin: 6px 0 18px; padding: 14px 16px; border-radius: 14px; background: #FFFBEB; border: 1px dashed #F8D57E; font-size: 13.5px; color: #78350F; }
.simulate__opts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
.simulate__opts label { display: flex; align-items: center; gap: 6px; font-weight: 500; cursor: pointer; }
.simulate__opts input { accent-color: #B45309; }
.secure-line { display: flex; align-items: center; justify-content: center; gap: 6px; }
.secure-line svg { width: 15px; height: 15px; color: var(--accent); }
.pay-simulate { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); text-align: center; }
.pay-simulate .btn { margin-bottom: 6px; }

/* Payment status */
.status { text-align: center; }
.status .review { text-align: left; }
.status__ic { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; }
.status__ic svg { width: 34px; height: 34px; }
.status__ic--ok { background: #DCFCE7; color: #15803D; }
.status__ic--wait { background: #FEF3C7; color: #B45309; }
.status__ic--bad { background: #FEE2E2; color: #B91C1C; }
.status__ic--off { background: #F1F5F9; color: #475569; }
.spinner { display: block; width: 64px; height: 64px; margin: 4px auto 20px; border-radius: 50%; border: 5px solid #DCE6E4; border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.btn-row--wrap { justify-content: flex-start; margin-top: 18px; }

/* Provisioning */
.prov-card.is-ready {
  background:
    radial-gradient(1200px 280px at 10% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    #fff;
}
.prov-hero {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.prov-hero__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: 2px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
.prov-hero__badge[hidden] { display: none; }
.prov-hero__badge svg { width: 22px; height: 22px; }
.prov-bar { height: 6px; margin: 22px 0 8px; border-radius: 99px; background: #E3ECEA; overflow: hidden; }
.prov-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #14B8A6); transition: width .45s ease; }
.prov { display: grid; gap: 8px; margin-top: 14px; }
.prov li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: #94A3B8;
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
}
.prov li b { display: block; font-size: 14.5px; font-weight: 600; }
.prov li small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; }
.prov__dot { flex: none; position: relative; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 2px solid #D5E0DE; background: #fff; }
.prov li.active {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 6%, #fff);
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
}
.prov li.active .prov__dot { border-color: #D5E0DE; border-top-color: var(--accent); animation: spin .8s linear infinite; }
.prov li.done {
  color: var(--ink-2);
  background: #F7FBFA;
  border-color: #E4EFEC;
}
.prov li.done .prov__dot {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/12px no-repeat;
}
#prov-ready {
  margin-top: 22px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  animation: provReadyIn .35s ease;
}
#prov-ready[hidden] { display: none; }
@keyframes provReadyIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.prov-panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 31, 42, .03);
}
.prov-panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.prov-panel__title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
}
.prov-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
}
.prov-summary div {
  padding: 10px 12px;
  border-radius: 12px;
  background: #F7FBFA;
  border: 1px solid #E7F0ED;
}
.prov-summary dt {
  margin: 0 0 2px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--muted);
}
.prov-summary dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}
.mod-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0; }
.mod-chips .field-hint { width: 100%; }
.mod-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.mod-chips .chip--on {
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  border-color: color-mix(in srgb, var(--accent) 28%, #CDE7E1);
  color: var(--brand);
}
.mod-chips .chip--locked { background: #F8FAFC; color: #94A3B8; }
.mod-chips .chip svg { width: 13px; height: 13px; }
.prov-actions { justify-content: flex-start; margin-top: 18px; }
@media (max-width: 640px) {
  .prov-summary { grid-template-columns: 1fr; }
  .prov-hero { gap: 12px; }
}

/* Setup wizard */
.setup__head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.setup__grid { display: grid; grid-template-columns: 200px 1fr; gap: 36px; margin-top: 24px; }
.setup__nav { display: grid; gap: 4px; align-content: start; counter-reset: s; }
.setup__nav li { counter-increment: s; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; font-weight: 500; color: #94A3B8; }
.setup__nav li::before { content: counter(s); display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #D5E0DE; font-size: 12px; font-weight: 700; }
.setup__nav li[tabindex="0"] { cursor: pointer; color: var(--ink-2); }
.setup__nav li[tabindex="0"]:hover { background: var(--tint); }
.setup__nav li.current { background: var(--tint); color: var(--brand); font-weight: 600; }
.setup__nav li.current::before { border-color: var(--accent); background: var(--accent); color: #fff; }
.setup__nav li.done::before { content: "✓"; border-color: var(--accent); color: var(--accent); }
.setup__nav li.skipped::before { content: "–"; }
.sstep[hidden] { display: none; }
.sstep h2 { font-size: 22px; }
.sstep .form-grid { margin-top: 20px; }
.sstep__actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.sstep__actions > span { display: flex; align-items: center; gap: 16px; }
.sstep--done { text-align: center; padding: 10px 0; }
.sstep--done .done__ic svg { margin-bottom: 14px; }
.checklist { display: grid; gap: 8px; max-width: 440px; margin: 22px auto 26px; text-align: left; }
.checklist li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; background: var(--tint); font-size: 14px; }
.checklist li span { color: var(--muted); font-size: 13px; }
.checklist li.ok span { color: #15803D; font-weight: 600; }
.checklist li.later span { color: #B45309; }

.seats { margin: 20px 0 16px; }
.seats__top { display: flex; justify-content: space-between; font-size: 14px; }
.seats__top span { color: var(--muted); }
.seats__bar { height: 8px; margin-top: 8px; border-radius: 99px; background: #E3ECEA; overflow: hidden; }
.seats__bar span { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .3s; }
.seats.is-full .seats__bar span { background: #DC2626; }
.seats.is-full .seats__top span { color: #DC2626; font-weight: 600; }
.invite { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 12px; align-items: end; }
.invite label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.invite input, .invite select { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 15px; font-weight: 400; background: #fff; }
.invite input:focus, .invite select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(14, 138, 110, .12); }
.invite label.invalid input { border-color: #DC2626; }
.invite input:disabled, .invite .btn:disabled { opacity: .5; cursor: not-allowed; }
#inv-err { display: block; margin-top: 6px; }
#inv-err[hidden] { display: none; }
#invite-user-dialog .modal__card { padding: 28px 28px 24px; }
#invite-user-dialog .modal__sub { margin-bottom: 16px; }
#invite-user-dialog .invite-form .form-grid { margin-top: 4px; }
#invite-user-dialog .notice { margin: 0 0 14px; }
.modal--wide { width: min(640px, calc(100% - 32px)); }
#roles-dialog .modal__card { padding: 28px 28px 24px; }
#roles-dialog .modal__sub { margin-bottom: 14px; }
.role-list {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  max-height: 220px;
  overflow: auto;
}
.role-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #F7FBFA;
}
.role-list li b { display: block; font-size: 14px; color: var(--ink); }
.role-list li small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.role-list__empty {
  justify-content: center;
  color: var(--muted);
  font-size: 13.5px;
  background: #fff !important;
}
.role-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.roles-create {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.roles-create h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
#roles-err { margin: 0 0 12px; }
.invites { display: grid; margin: 16px 0 10px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.invites li { display: grid; grid-template-columns: 1fr auto auto 64px; gap: 14px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.invites li:first-child { border-top: 0; background: #FAFCFC; }
.invites b { display: block; font-weight: 600; word-break: break-all; }
.invites small { color: var(--muted); font-size: 12.5px; }
.invites .role { font-size: 13px; color: var(--ink-2); }
.inv-state { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #FEF3C7; color: #92400E; }
.inv-state--ok { background: #DCFCE7; color: #15803D; }

.mod-toggles, .imports { display: grid; margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mod-toggles li, .imports li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; border-top: 1px solid var(--line); }
.mod-toggles li:first-child, .imports li:first-child { border-top: 0; }
.mod-toggles b, .imports b { display: block; font-size: 14.5px; }
.mod-toggles small, .imports small { display: block; font-size: 12.5px; color: var(--muted); }
.mod-toggles li.locked { background: #FAFBFC; }
.mod-toggles li.locked b { color: #94A3B8; }
.lock-pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #EEF2FF; color: #4338CA; }
.imports li > span:first-child { flex: 1; }
.imports .btn { cursor: pointer; flex: none; }
.imports .import-actions { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.imports li.is-done { background: #F7FBFA; }
.notice--ok { margin: 12px 0 0; background: #ECFDF5; border: 1px solid #A7F3D0; color: #047857; font-weight: 600; border-radius: 12px; padding: 10px 12px; }
#opening-data-dialog .modal__card { padding: 28px 28px 24px; }
#opening-data-dialog .modal__sub { margin-bottom: 12px; }
#opening-data-dialog .notice { margin: 0 0 12px; }
#opening-data-dialog textarea {
  width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  resize: vertical;
}
#opening-data-dialog textarea:focus { outline: 0; border-color: var(--accent); }
.opening-tips {
  margin: 0 0 14px;
  padding: 12px 14px 12px 32px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #F7FBFA;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.45;
}
.opening-tips li + li { margin-top: 6px; }
.import-ok { font-size: 13px; font-weight: 600; color: #15803D; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span[aria-hidden] { position: absolute; inset: 0; border-radius: 99px; background: #CBD5E1; transition: background .2s; }
.switch span[aria-hidden]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid rgba(14, 138, 110, .35); outline-offset: 2px; }

@media (max-width: 900px) {
  .setup__grid { grid-template-columns: 1fr; gap: 20px; }
  .setup__nav { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .setup__nav li { flex: none; }
}
@media (max-width: 680px) {
  .methods { grid-template-columns: 1fr; }
  .invite { grid-template-columns: 1fr; }
  .invites li { grid-template-columns: 1fr auto; }
  .invites li .role { grid-column: 1; }
  .sstep__actions { flex-wrap: wrap; }
  .review div { flex-direction: column; gap: 2px; }
  .review dd { text-align: left; }
  .btn-row .btn { width: 100%; }
}

/* ======================= Workspace dashboard ======================= */
body.app { background: #F5F8F8; }
.app__banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; padding: 9px 16px; background: #FEF3C7; color: #78350F; font-size: 13.5px; text-align: center; }
.app__banner a { font-weight: 700; text-decoration: underline; }
.app__shell { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 38px); }
.app__side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 14px; background: #fff; border-right: 1px solid var(--line); }
.app__side .logo { margin: 0 8px 22px; font-size: 22px; }
.app__nav { display: grid; gap: 2px; }
.app__nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.app__nav a svg { width: 17px; height: 17px; flex: none; color: var(--muted); }
.app__nav a:hover { background: var(--tint); }
.app__nav a.on { background: #E6F4F1; color: var(--brand); font-weight: 600; }
.app__nav a.on svg { color: var(--brand); }
.app__nav a.locked { color: #A0AEC0; }
.app__nav a.locked svg { color: #CBD5E1; }
.app__nav-h { margin: 16px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #94A3B8; }
.app__main { min-width: 0; }
.app__top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 68px; padding: 0 28px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.app__menu { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.app__menu span { width: 17px; height: 2px; border-radius: 2px; background: var(--ink); }
.app__search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 40px; border-radius: 10px; background: #F1F5F4; color: #94A3B8; }
.app__search svg { width: 16px; height: 16px; flex: none; }
.app__search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 14px; outline: 0; }
.app__org { display: flex; align-items: center; gap: 10px; margin-left: auto; line-height: 1.25; }
.app__org b { display: block; font-size: 14px; }
.app__org small { display: block; font-size: 12px; color: var(--muted); }
.app__org-logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; overflow: hidden; }
.app__org-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.app__content { padding: 28px; max-width: 1240px; }
.app__hello { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.app__hello h1, .app__h1 { font-size: 28px; }
.app__h1 { margin-bottom: 20px; }
.app__hello p { margin-top: 4px; color: var(--muted); }
.app__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.app__actions .btn svg { width: 15px; height: 15px; }
.app__actions .btn:hover svg { transform: none; }
.card { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11,31,42,.03); }
.card__h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.card__h h2 { font-size: 17px; }
.card__h small { color: var(--muted); font-size: 12.5px; }
.card .review { margin-top: 8px; }
.app .pill { font-size: 12px; padding: 3px 10px; }
.setup-card { margin-bottom: 20px; border-color: #CDE7E1; background: linear-gradient(120deg, #fff, #F2FAF8); }
.setup-card[hidden] { display: none; }
.setup-card__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.setup-card__head h2 { font-size: 18px; }
.setup-card__head p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.ring { --p: 0; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1turn), #E3ECEA 0); }
.ring span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; font-size: 12px; font-weight: 700; color: var(--brand); }
.setup-card__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 16px; }
.setup-card__list li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; }
.setup-card__list li svg { width: 16px; height: 16px; flex: none; color: #94A3B8; }
.setup-card__list li span { flex: 1; }
.setup-card__list li.ok { color: var(--muted); }
.setup-card__list li.ok svg { color: #15803D; }
.setup-card__list .linkbtn { font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi-card { padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.kpi-card small { display: block; font-size: 13px; color: var(--muted); }
.kpi-card b { display: block; margin: 6px 0 2px; font-family: var(--font-h); font-size: 24px; }
.kpi-card span { font-size: 12.5px; color: #94A3B8; }
.app__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.app__grid--billing { grid-template-columns: 1.3fr 1fr; }
.card--wide { grid-column: 1 / -1; }
.empty { display: grid; justify-items: center; gap: 6px; padding: 42px 16px; text-align: center; color: var(--muted); }
.empty svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--tint); color: var(--brand); }
.empty b { color: var(--ink); }
.empty p { max-width: 320px; font-size: 14px; }
.btn--danger { border-color: #FCA5A5; color: #B91C1C; }
.btn--danger:hover { background: #B91C1C; border-color: #B91C1C; color: #fff; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid #F0F4F3; vertical-align: top; }
.tbl td small { color: var(--muted); }
.tbl .muted { color: var(--muted); text-align: center; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: var(--shadow-lg); }
.toast[hidden] { display: none; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } .app__grid, .app__grid--billing { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .app__shell { grid-template-columns: 1fr; }
  .app__side { position: fixed; z-index: 50; top: 0; left: 0; width: 270px; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-lg); }
  body.nav-open .app__side { transform: none; }
  .app__menu { display: inline-flex; }
  .app__top { padding: 0 16px; }
  .app__content { padding: 20px 16px; }
  .app__org div { display: none; }
}
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi-card b { font-size: 20px; } .app__search { display: none; } }
.form-grid > .full { grid-column: 1 / -1; }

/* Onboarding: going back */
.back-link { display: inline-flex; align-items: center; gap: 4px; margin: -6px 0 14px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.back-link:hover { color: var(--accent); }
.back-link[hidden], .form-grid label[hidden], .form-grid p[hidden] { display: none; }
.progress li.can-go { cursor: pointer; }
.progress li.can-go:hover, .progress li.can-go:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Invite links (setup wizard + dashboard) */
.invites li { grid-template-columns: 1fr auto auto auto; }
.inv-link { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.inv-link input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #F8FAFA; font: inherit; font-size: 12.5px; color: var(--muted); }
.inv-link input:focus { outline: 0; border-color: var(--accent); }
.inv-link .btn, .inv-actions .btn { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.is-copied { background: #DCFCE7; border-color: #16A34A; color: #15803D; }
.inv-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.linkbtn--danger { color: #B91C1C; }
.pill--red { background: #FEE2E2; color: #B91C1C; }
.muted-cell { color: #94A3B8; }
.team-card { margin-top: 20px; }
.team-hint { margin-top: 14px; }
.app #invite-form { margin-top: 4px; }
#t-err { display: block; margin-top: 6px; }
#t-err[hidden] { display: none; }

/* Accept-invitation page */
.invite-card { text-align: center; }
.invite-card .form-grid, .invite-card .proto-note { text-align: left; }
.invite-card[hidden] { display: none; }
.invite-card__logo { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 18px; background: linear-gradient(135deg, var(--brand), #16A085); color: #fff; font-family: var(--font-h); font-size: 24px; font-weight: 700; }
.invite-card #inv-email { background: var(--tint); color: var(--ink-2); }
.invite-card .done__ic svg { margin-bottom: 16px; }
.invite-card .proto-note { margin-top: 16px; }
@media (max-width: 680px) {
  .invites li { grid-template-columns: 1fr auto; }
  .inv-link { flex-wrap: wrap; }
  .inv-link input { flex-basis: 100%; }
}
.app .pill, .inv-state { white-space: nowrap; }
.inv-actions { flex-wrap: wrap; gap: 8px 14px; }
#team td { vertical-align: middle; }

/* ======================= Motion ======================= */
:root { --ease-out: cubic-bezier(.2,.8,.2,1); --ease-spring: cubic-bezier(.34,1.56,.64,1); }

/* Staggered reveal */
.reveal { transition-delay: calc(var(--i, 0) * 80ms); }

/* Hero entrance (only when JS is running, so content never stays hidden) */
.js .hero__copy > * { opacity: 0; transform: translateY(18px); }
.js .hero.is-in .hero__copy > * { opacity: 1; transform: none; transition: opacity .7s ease, transform .9s var(--ease-out); }
.js .hero.is-in .hero__copy > :nth-child(2) { transition-delay: .08s; }
.js .hero.is-in .hero__copy > :nth-child(3) { transition-delay: .18s; }
.js .hero.is-in .hero__copy > :nth-child(4) { transition-delay: .28s; }
.js .hero.is-in .hero__copy > :nth-child(5) { transition-delay: .36s; }
.js .hero.is-in .hero__copy > :nth-child(6) { transition-delay: .44s; }
.js .hero .mock { opacity: 0; translate: 0 36px; scale: .96; }
.js .hero.is-in .mock {
  opacity: 1; translate: 0 0; scale: 1;
  transition: opacity .9s ease .15s, translate 1.1s var(--ease-out) .15s, scale 1.1s var(--ease-out) .15s, transform .5s var(--ease-out);
  animation: float 7s ease-in-out 1.6s infinite;
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.js .hero .kpi, .js .hero .mock__card, .js .hero .orders li { opacity: 0; transform: translateY(8px); }
.js .hero.is-in .kpi, .js .hero.is-in .mock__card, .js .hero.is-in .orders li { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s var(--ease-out); }
.js .hero.is-in .kpi:nth-child(1) { transition-delay: .45s; }
.js .hero.is-in .kpi:nth-child(2) { transition-delay: .52s; }
.js .hero.is-in .kpi:nth-child(3) { transition-delay: .59s; }
.js .hero.is-in .kpi:nth-child(4) { transition-delay: .66s; }
.js .hero.is-in .mock__card { transition-delay: .7s; }
.js .hero.is-in .orders li:nth-child(1) { transition-delay: 1s; }
.js .hero.is-in .orders li:nth-child(2) { transition-delay: 1.1s; }
.js .hero.is-in .orders li:nth-child(3) { transition-delay: 1.2s; }
.js .hero.is-in .orders li:nth-child(4) { transition-delay: 1.3s; }
.js .hero .bars span { animation-play-state: paused; }
.js .hero.is-in .bars span { animation-play-state: running; animation-delay: calc(var(--d) + .8s); }
.hero .pill { transition: transform .3s var(--ease-spring); }
.hero .orders li:hover .pill { transform: scale(1.08); }

/* Trusted-by marquee */
.logos.is-marquee { display: block; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logos__track { display: flex; align-items: center; gap: 64px; width: max-content; padding: 6px 0; animation: marquee 38s linear infinite; }
.logos.is-marquee:hover .logos__track { animation-play-state: paused; }
.logos .wm { transition: color .3s, opacity .3s; }
.logos.is-marquee:hover .wm { opacity: .55; }
.logos.is-marquee .wm:hover { opacity: 1; color: var(--brand); }
@keyframes marquee { to { transform: translateX(calc(-50% - 32px)); } }

/* Stats & cards: icon pop as they arrive */
.stat__ic, .benefit__ic { transition: transform .6s var(--ease-spring); }
.reveal:not(.in) .stat__ic, .reveal:not(.in) .benefit__ic { transform: scale(.6) rotate(-8deg); }
.benefit:hover .benefit__ic { transform: translateY(-2px) rotate(-4deg); }
.mod-tile .module__ic, .fmod .module__ic { transition: transform .35s var(--ease-spring); }
.mod-tile:hover .module__ic, .fmod:hover .module__ic { transform: scale(1.1) rotate(-4deg); }
.fmod { transition: transform .25s var(--ease-out), box-shadow .25s; }
.fmod:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* How it works: the connector draws across, then steps pop */
.steps.reveal-line::before { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out) .2s; }
.steps.reveal-line.in::before { transform: scaleX(1); }
.step > svg { transition: transform .6s var(--ease-spring), box-shadow .3s; }
.step.reveal:not(.in) > svg { transform: scale(.5); }
.step:hover > svg { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* Billing toggle: sliding thumb */
.toggle.has-thumb { position: relative; isolation: isolate; }
.toggle.has-thumb::before { content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 0; width: var(--thumb-w, 0); transform: translateX(var(--thumb-x, 0)); border-radius: 999px; background: var(--brand); box-shadow: 0 6px 16px -6px rgba(11, 93, 91, .6); transition: transform .4s var(--ease-out), width .4s var(--ease-out); }
.toggle.has-thumb button.is-on { background: transparent; }
.toggle button { transition: color .3s; }
.plan__was, .plan__usd { transition: opacity .3s; }
.plan__price b { font-variant-numeric: tabular-nums; }
.plan--popular .plan__badge { animation: badge-glow 3.2s ease-in-out infinite; }
@keyframes badge-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(14, 138, 110, .0); } 50% { box-shadow: 0 0 0 6px rgba(14, 138, 110, .14); } }

/* Header slims down on scroll */
.nav__inner { transition: height .3s var(--ease-out); }
.nav.is-scrolled .nav__inner { height: 62px; }
.nav__links a.is-active::after { animation: underline-in .35s var(--ease-out); }
@keyframes underline-in { from { transform: scaleX(0); } }

/* Primary buttons: a soft light sweep on hover */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease-out); }
.btn--primary:hover::after { transform: translateX(120%); }

/* FAQ: the +/× icon spins smoothly */
.faq__list summary::after { transition: transform .3s var(--ease-spring), background .2s; }
.faq__list details[open] p { animation: fade-up .35s var(--ease-out); }
@keyframes fade-up { from { opacity: 0; transform: translateY(-4px); } }

/* Modal & toast */
.modal::backdrop { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.toast:not([hidden]) { animation: toast-in .35s var(--ease-spring); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px); } }

/* Page-to-page cross-fade (supporting browsers) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* Onboarding: steps slide in the direction of travel */
.ostep.enter-fwd { animation: step-fwd .45s var(--ease-out); }
.ostep.enter-back { animation: step-back .45s var(--ease-out); }
@keyframes step-fwd { from { opacity: 0; transform: translateX(28px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-28px); } }
.sstep:not([hidden]) { animation: step-fwd .4s var(--ease-out); }
.progress li::before { transition: background .5s ease; }
.status__ic, .done__ic svg { animation: pop .55s var(--ease-spring) both; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
.method { transition: border-color .15s, box-shadow .15s, transform .2s var(--ease-out); }
.method:active { transform: scale(.98); }
.invites li, .mod-toggles li, .imports li { animation: fade-up .35s var(--ease-out) both; }

/* Dashboard: cards arrive in sequence, the setup ring fills */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.ring { transition: --p 1.2s var(--ease-out) .3s; }
.app__content [data-panel]:not([hidden]) > * { animation: fade-up .5s var(--ease-out) both; }
.app__content [data-panel]:not([hidden]) > :nth-child(2) { animation-delay: .06s; }
.app__content [data-panel]:not([hidden]) > :nth-child(3) { animation-delay: .12s; }
.app__content [data-panel]:not([hidden]) > :nth-child(4) { animation-delay: .18s; }
.kpi-card { animation: fade-up .5s var(--ease-out) both; transition: transform .25s var(--ease-out), box-shadow .25s; }
.kpi-card:nth-child(2) { animation-delay: .08s; } .kpi-card:nth-child(3) { animation-delay: .16s; } .kpi-card:nth-child(4) { animation-delay: .24s; }
.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.app__nav a { transition: background .2s, color .2s, transform .2s var(--ease-out); }
.app__nav a:hover { transform: translateX(2px); }

/* Respect reduced-motion preferences everywhere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .hero__copy > *, .js .hero .mock, .js .hero .kpi, .js .hero .mock__card, .js .hero .orders li { opacity: 1; transform: none; translate: none; scale: none; }
  .steps.reveal-line::before { transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
