/* Taora — taora.app
   Plain CSS, no framework. Tokens first, then layout, then sections. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/bricolage-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --brand: #6220ca;
  --brand-hover: #5218ad;
  --brand-ink: #4c1a9e;      /* brand used as text on light bg */
  --accent: #a78bfa;
  --ink: #1b1530;
  --text: #1b1530;
  --muted: #5a5370;
  --soft: #f8f6fc;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8f6fc;
  --line: #e8e3f3;
  --line-strong: #d8cfee;
  --tint: #efe9fb;
  --ok: #0f7a4a;
  --wa: #128c4b;
  --shadow-sm: 0 1px 2px rgba(27, 21, 48, .06), 0 2px 8px rgba(27, 21, 48, .04);
  --shadow: 0 2px 6px rgba(27, 21, 48, .05), 0 18px 48px -12px rgba(52, 22, 120, .18);
  --shadow-lg: 0 4px 10px rgba(27, 21, 48, .06), 0 40px 90px -24px rgba(52, 22, 120, .35);
  --radius: 18px;
  --radius-sm: 12px;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #7c3aed;
    --brand-hover: #8b5cf6;
    --brand-ink: #c4b5fd;
    --accent: #a78bfa;
    --text: #f2eefb;
    --muted: #b3aac9;
    --soft: #161125;
    --bg: #0e0a1a;
    --surface: #1b1530;
    --surface-2: #161125;
    --line: #2c2445;
    --line-strong: #3a3058;
    --tint: #241a40;
    --ok: #4ade80;
    --wa: #4ade80;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 18px 48px -12px rgba(0, 0, 0, .55);
    --shadow-lg: 0 4px 10px rgba(0, 0, 0, .3), 0 40px 90px -24px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--text); line-height: 1.08; letter-spacing: -.025em; margin: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--h); padding: 0 1.35rem; border-radius: 999px;
  font: 600 .975rem/1 var(--body); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px -8px rgba(98, 32, 202, .65); }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); transform: translateY(-1px); }
.btn-sm { --h: 40px; padding: 0 1rem; font-size: .9rem; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 1.25rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--text); }
.brand svg { width: 34px; height: 34px; }
.brand .wordmark { height: 23px; width: auto; color: var(--text); }
.nav-links { display: flex; gap: .25rem; margin-left: 1.5rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5rem .75rem; border-radius: 10px; }
.nav-links a:hover { color: var(--text); background: var(--tint); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.nav-cta .signin { color: var(--text); font-weight: 600; text-decoration: none; font-size: .95rem; padding: .5rem .75rem; }
.nav-cta .signin:hover { color: var(--brand-ink); }

@media (max-width: 920px) {
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .nav { height: 62px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 0; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 860px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 42% at 18% 22%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%),
    radial-gradient(40% 40% at 86% 12%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    radial-gradient(60% 50% at 50% 70%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 75%);
}
.hero::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 760px; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
}
.hero-copy { text-align: center; max-width: 860px; margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem .4rem .45rem;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong);
  font-size: .85rem; font-weight: 500; color: var(--muted); box-shadow: var(--shadow-sm);
}
.eyebrow b { background: var(--brand); color: #fff; font-weight: 600; font-size: .75rem; padding: .2rem .55rem; border-radius: 999px; }
.hero h1 { font-size: clamp(2.5rem, 6.6vw, 4.9rem); margin: 1.25rem 0 1.25rem; font-weight: 750; letter-spacing: -.04em; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand) 0%, #8b5cf6 45%, #c084fc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-color-scheme: dark) {
  .hero h1 .grad { background-image: linear-gradient(100deg, #c4b5fd 0%, #a78bfa 50%, #e9d5ff 100%); }
}
.lede { font-size: clamp(1.05rem, 1.9vw, 1.25rem); color: var(--muted); max-width: 680px; margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.hero-note { margin-top: 1rem; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.25rem; }
.hero-note span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-note svg { width: 16px; height: 16px; color: var(--ok); }

/* product cards */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(40px, 6vw, 64px); }
.app-card {
  position: relative; display: flex; flex-direction: column; gap: .7rem;
  padding: 1.4rem 1.4rem 1.25rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.app-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.app-card .top { display: flex; align-items: center; gap: .75rem; }
.app-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.app-icon svg { width: 24px; height: 24px; }
.i-books { background: linear-gradient(135deg, #6220ca, #8b5cf6); }
.i-crm { background: linear-gradient(135deg, #3b1b85, #6d28d9); }
.i-people { background: linear-gradient(135deg, #8b5cf6, #c084fc); }
.app-card h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.app-card h3 small { display: block; font: 500 .8rem/1.3 var(--body); color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.app-card p { color: var(--muted); font-size: .95rem; }
.app-card .go { margin-top: auto; padding-top: .25rem; font-weight: 600; font-size: .92rem; color: var(--brand-ink); display: inline-flex; align-items: center; gap: .35rem; }
.app-card .go svg { width: 16px; height: 16px; transition: transform .2s ease; }
a.app-card:hover .go svg { transform: translateX(3px); }
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; }
.tag-live { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.tag-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-free { background: var(--tint); color: var(--brand-ink); }
.tag-soon { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line-strong); }
.app-card .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-left: auto; }

/* hero showcase */
.showcase { position: relative; margin-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 110px); }
.showcase .browser { max-width: 1100px; margin-inline: auto; box-shadow: var(--shadow-lg); }
.showcase .float {
  position: absolute; right: max(0px, calc(50% - 600px)); bottom: clamp(16px, 3vw, 48px);
  width: min(44%, 500px); box-shadow: var(--shadow-lg);
}
.showcase .float-label {
  position: absolute; left: max(0px, calc(50% - 600px)); bottom: clamp(40px, 7vw, 110px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .75rem 1rem;
  box-shadow: var(--shadow); display: flex; gap: .7rem; align-items: center; font-size: .9rem; max-width: 300px;
}
.float-label .dot { width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--wa) 14%, transparent); color: var(--wa); display: grid; place-items: center; flex: none; }
.float-label .dot svg { width: 20px; height: 20px; }
.float-label b { display: block; font-weight: 600; }
.float-label span { color: var(--muted); font-size: .82rem; }

/* ---------- Device frames ---------- */
.browser { border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); }
.browser-bar { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser-bar i:nth-child(1) { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar .url {
  flex: 1; max-width: 340px; margin-inline: auto; height: 22px; border-radius: 6px; background: var(--surface);
  border: 1px solid var(--line); font: 500 .72rem/20px var(--body); color: var(--muted); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 8px;
}
.browser-bar .url::before { content: "🔒\FE0E  "; font-size: .65rem; }
.browser-bar .sp { width: 46px; }
.browser .screen { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.browser .screen img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }

.phone {
  position: relative; width: 290px; max-width: 78vw; aspect-ratio: 9 / 19; border-radius: 46px; padding: 11px;
  background: linear-gradient(145deg, #2a2142, #0f0b1a); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #3d3360;
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%); background: #0b0814; border-radius: 20px; z-index: 2; }
.phone-screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #f4f1fa; display: flex; flex-direction: column; color: #1b1530; }
.phone-top { padding: 52px 16px 12px; background: #fff; border-bottom: 1px solid #ebe6f5; }
.phone-top small { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #6b6483; font-weight: 600; }
.phone-top b { font: 700 1.05rem/1.2 var(--display); }
.phone-top .pill { display: inline-block; margin-left: .4rem; font: 600 .66rem/1 var(--body); color: #4c1a9e; background: #efe9fb; padding: .25rem .5rem; border-radius: 999px; vertical-align: 2px; }
.phone-doc { padding: 12px; flex: 1; overflow: hidden; }
.phone-doc img { border-radius: 8px; box-shadow: 0 6px 18px -6px rgba(27, 21, 48, .3); background: #fff; }
.phone-actions { display: grid; gap: 8px; padding: 12px 14px 22px; background: #fff; border-top: 1px solid #ebe6f5; }
.phone-actions span { display: flex; align-items: center; justify-content: center; gap: .4rem; height: 40px; border-radius: 12px; font-weight: 600; font-size: .82rem; }
.phone-actions .wa { background: #e7f6ee; color: #0c6b39; }
.phone-actions .pay { background: #6220ca; color: #fff; }
.phone-actions svg { width: 16px; height: 16px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-alt { background: var(--soft); }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font: 600 .8rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); }
.kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .kicker::after { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); margin: .9rem 0 1rem; }
.section-head p { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); }

/* product section */
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.product.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.product.flip .product-copy { order: 2; }
.product-copy { position: sticky; top: 100px; }
.product-copy .head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.1rem; }
.product-copy .head .app-icon { width: 52px; height: 52px; border-radius: 14px; }
.product-copy .head .app-icon svg { width: 28px; height: 28px; }
.product-copy .head b { display: block; font: 700 1.05rem/1.2 var(--display); }
.product-copy .head div span { font-size: .85rem; color: var(--muted); }
.product-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: 1rem; }
.product-copy > p { color: var(--muted); font-size: 1.075rem; }
.checks { display: grid; gap: .8rem; margin: 1.6rem 0 2rem; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: .7rem; align-items: start; }
.checks li svg { width: 22px; height: 22px; color: var(--brand); margin-top: 1px; }
.checks b { font-weight: 600; }
.checks span { color: var(--muted); }
.offer {
  display: flex; gap: .9rem; align-items: center; padding: 1rem 1.1rem; border-radius: 14px; margin: 1.4rem 0 0;
  background: linear-gradient(120deg, var(--tint), color-mix(in srgb, var(--accent) 16%, var(--surface)));
  border: 1px solid var(--line-strong);
}
.offer .big { font: 800 1.9rem/1 var(--display); color: var(--brand-ink); letter-spacing: -.03em; }
.offer p { font-size: .9rem; color: var(--muted); }
.offer p b { color: var(--text); display: block; font-size: 1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .6rem; }

/* tabbed screenshots */
.gallery { min-width: 0; }
.tabs { display: flex; gap: .35rem; padding: .3rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 500 .88rem/1 var(--body); padding: .7rem .9rem; border-radius: 10px; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px rgba(98, 32, 202, .7); }
.panel[hidden] { display: none; }
.panel .browser { box-shadow: var(--shadow); animation: panel-in .45s cubic-bezier(.2, .7, .2, 1); }
.panel figcaption { margin-top: .9rem; font-size: .92rem; color: var(--muted); padding-inline: .25rem; }
.panel figcaption b { color: var(--text); font-weight: 600; }
figure { margin: 0; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }

/* people */
.people {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
  padding: clamp(28px, 4vw, 48px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.people h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin: .9rem 0 .8rem; }
.people p { color: var(--muted); }
.people .cta-row { margin-top: 1.5rem; }
.people-list { display: grid; gap: .75rem; }
.people-list li { display: flex; gap: .8rem; align-items: center; padding: .9rem 1rem; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line-strong); }
.people-list svg { width: 22px; height: 22px; color: var(--brand-ink); flex: none; }
.people-list b { font-weight: 600; display: block; font-size: .95rem; }
.people-list span { font-size: .85rem; color: var(--muted); }

/* flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: step; }
.flow-line { position: absolute; left: 12.5%; right: 12.5%; top: 44px; height: 2px; z-index: 0; }
.flow-line svg { width: 100%; height: 2px; overflow: visible; }
.flow-line line { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 8; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.step { position: relative; z-index: 1; text-align: center; padding: 0 .75rem; }
.step .node {
  width: 88px; height: 88px; margin: 0 auto 1.1rem; border-radius: 26px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); color: var(--brand-ink);
  position: relative;
}
.step .node svg { width: 36px; height: 36px; }
.step .node::after {
  counter-increment: step; content: counter(step); position: absolute; top: -8px; right: -8px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 .8rem/26px var(--body);
  box-shadow: 0 0 0 4px var(--bg);
}
.section-alt .step .node::after { box-shadow: 0 0 0 4px var(--soft); }
.step h3 { font-size: 1.25rem; margin-bottom: .45rem; }
.step p { color: var(--muted); font-size: .93rem; max-width: 230px; margin-inline: auto; }
.step .in { display: inline-block; margin-top: .75rem; font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; background: var(--tint); color: var(--brand-ink); }
.flow-note { text-align: center; margin-top: 2.5rem; color: var(--muted); font-size: .95rem; }
.flow-note b { color: var(--text); }

/* why */
.why { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.why-card {
  grid-column: span 2; padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.why-card:hover { box-shadow: var(--shadow); }
.why-card.wide { grid-column: span 3; }
.why-card .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--tint); color: var(--brand-ink); margin-bottom: 1.1rem; }
.why-card .ic svg { width: 24px; height: 24px; }
.why-card .ic.wa { background: color-mix(in srgb, var(--wa) 13%, transparent); color: var(--wa); }
.why-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.why-card p { color: var(--muted); font-size: .95rem; }

/* mobile */
.mobile { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 80px); align-items: center; }
.mobile h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin: .9rem 0 1rem; }
.mobile > div > p { color: var(--muted); font-size: 1.075rem; max-width: 540px; }
.badges { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; align-items: center; }
.badges a { display: block; border-radius: 9px; transition: transform .2s ease; }
.badges a:hover { transform: translateY(-2px); }
.badges img { height: 48px; width: auto; }
.mobile .phone-wrap { position: relative; padding: 0 2rem; }
.mobile .phone-wrap::before { content: ""; position: absolute; inset: 10% -10%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 40%, transparent), transparent); z-index: -1; }
.phone-cap { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 1rem; }

/* faq */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .75rem; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.3rem; font: 600 1.05rem/1.4 var(--body);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--brand-ink); border-bottom: 2px solid var(--brand-ink);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.faq .a { padding: 0 1.3rem 1.25rem; color: var(--muted); }
.faq .a p + p { margin-top: .6rem; }

/* final cta */
.final {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 7vw, 88px) clamp(24px, 5vw, 64px); text-align: center;
  background: radial-gradient(80% 120% at 0% 0%, #6d28d9 0%, transparent 60%), radial-gradient(70% 120% at 100% 100%, #8b5cf6 0%, transparent 55%), #1b1530;
  color: #fff; isolation: isolate;
}
.final::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent);
}
.final h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); max-width: 760px; margin: 0 auto 1rem; }
.final p { color: #d9d0f0; font-size: 1.1rem; max-width: 560px; margin: 0 auto; }
.final .hero-actions { margin-top: 2rem; }
.final .btn-primary { background: #fff; color: #3b1290; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.final .btn-primary:hover { background: #f3eefe; }
.final .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.final .btn-ghost:hover { border-color: #fff; }
.final small { display: block; margin-top: 1.1rem; color: #bfb3dd; font-size: .9rem; }

/* footer */
.site-footer { padding: 64px 0 28px; border-top: 1px solid var(--line); margin-top: clamp(72px, 10vw, 120px); }
.foot { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2rem; }
.foot .about p { color: var(--muted); font-size: .92rem; margin-top: 1rem; max-width: 320px; }
.foot .story { display: block; color: var(--text); font: 600 1.05rem/1.3 var(--display); letter-spacing: -.01em; margin-bottom: .35rem; }
.foot h4 { font: 600 .8rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.foot ul { display: grid; gap: .6rem; }
.foot a { color: var(--text); text-decoration: none; font-size: .94rem; }
.foot a:hover { color: var(--brand-ink); text-decoration: underline; }
.foot .soon { font-size: .7rem; color: var(--muted); border: 1px dashed var(--line-strong); padding: .1rem .4rem; border-radius: 999px; margin-left: .3rem; }
.byline {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  justify-content: space-between; align-items: center; font-size: .88rem; color: var(--muted);
}
.byline .by { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font-weight: 500; }
.byline .by b { font-weight: 700; }
.byline .by:hover b { color: var(--brand-ink); text-decoration: underline; }
.byline .by svg { width: 16px; height: 16px; color: var(--muted); }

/* legal pages */
.legal { padding: clamp(48px, 8vw, 88px) 0 0; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); margin: .9rem 0 .75rem; }
.legal .updated { color: var(--muted); font-size: .92rem; }
.legal h2 { font-size: 1.45rem; margin: 2.4rem 0 .75rem; }
.legal p, .legal li { color: var(--muted); font-size: 1.02rem; }
.legal p + p { margin-top: .8rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .45rem; margin-top: .6rem; }
.legal strong { color: var(--text); }
.callout { margin-top: 2rem; padding: 1.2rem 1.3rem; border-radius: 16px; background: var(--tint); border: 1px solid var(--line-strong); }
.callout p { color: var(--text); }
.callout .cta-row { margin-top: 1rem; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.hero .rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .product, .product.flip { grid-template-columns: 1fr; }
  .product.flip .product-copy { order: 0; }
  .product-copy { position: static; }
  .why-card, .why-card.wide { grid-column: span 3; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot .about { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .apps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .people { grid-template-columns: 1fr; }
  .mobile { grid-template-columns: minmax(0, 1fr); }
  .mobile .phone-wrap { justify-self: center; padding: 0; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .flow-line { display: none; }
}
@media (max-width: 640px) {
  .why-card, .why-card.wide { grid-column: 1 / -1; }
  .browser-bar { height: 28px; gap: 6px; } .browser-bar i { width: 8px; height: 8px; }
  .browser-bar .url { height: 18px; line-height: 16px; font-size: .65rem; }
  .browser-bar .sp { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; }
  .final .hero-actions .btn { width: 100%; }
}
@media (max-width: 420px) {
  .flow { grid-template-columns: 1fr; }
  .brand .wordmark { height: 21px; }
  .nav-cta .btn-sm { padding: 0 .85rem; }
}


/* =====================================================================
   3D & motion layer (premium pass). Defaults are the "settled" state so
   the page looks right with no JS, no WebGL or reduced motion.
   ===================================================================== */

/* Lenis */
html.has-lenis, html.has-lenis body { height: auto; }
html.has-lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* hero: split layout with the 3D sculpture */
.hero { overflow: clip; }
.hero-glow { position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.hero-glow.g1 { width: 520px; height: 520px; right: -80px; top: 40px; background: radial-gradient(closest-side, #8b5cf6, transparent); }
.hero-glow.g2 { width: 420px; height: 420px; left: -120px; top: 360px; background: radial-gradient(closest-side, #d946ef, transparent); opacity: .3; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(16px, 3vw, 40px); align-items: center; }
.hero-grid .hero-copy { text-align: left; max-width: 620px; margin: 0; }
.hero-grid .lede { margin-inline: 0; }
.hero-grid .hero-actions, .hero-grid .hero-note { justify-content: flex-start; }
.hero-grid h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
.hero-3d { position: relative; aspect-ratio: 11 / 10; width: 100%; margin-right: calc(-1 * clamp(0px, 4vw, 60px)); }
.hero-3d::before { /* static gradient fallback, also visible while the poster loads */
  content: ""; position: absolute; inset: 8%; border-radius: 40%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent);
  filter: blur(20px);
}
.hero-3d-poster, .hero-3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-3d-poster, .hero-3d-canvas {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
}
.hero-3d-poster { object-fit: contain; animation: rise 1.1s .2s cubic-bezier(.2,.7,.2,1) both; transition: opacity .9s ease; }
.hero-3d-canvas { opacity: 0; transition: opacity 1.1s ease; }
.hero-3d.live .hero-3d-canvas { opacity: 1; }
.hero-3d.live .hero-3d-poster { opacity: 0; }
.hero-3d canvas { display: block; }

/* stacked app windows that assemble as you scroll in */
.showcase { --p: 1; perspective: 2000px; }
.stack-stage {
  position: relative; transform-style: preserve-3d; max-width: 1100px; margin-inline: auto;
  transform: rotateX(calc((1 - var(--p)) * 34deg)) rotateZ(calc((1 - var(--p)) * -9deg)) scale(calc(.84 + .16 * var(--p)));
  transform-origin: 50% 30%; will-change: transform;
}
.stack-stage .win { transition: box-shadow .3s ease; }
.stack-stage .win-back { position: relative; box-shadow: var(--shadow-lg); transform: translateZ(calc((1 - var(--p)) * -60px)); }
.showcase .stack-stage .win-mid {
  position: absolute; right: -2%; bottom: -8%; width: min(44%, 500px); box-shadow: var(--shadow-lg);
  transform: translate3d(calc((1 - var(--p)) * 40px), calc((1 - var(--p)) * -60px), calc((1 - var(--p)) * 220px + 30px));
}
.showcase .stack-stage .win-front {
  position: absolute; left: -2%; bottom: 6%; max-width: 300px; z-index: 2;
  transform: translate3d(calc((1 - var(--p)) * -50px), 0, calc((1 - var(--p)) * 320px + 60px));
}
.showcase .stack-stage::after { /* glow under the stack */
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -14%; height: 30%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 40%, transparent), transparent); filter: blur(30px);
  transform: translateZ(-120px);
}

/* screens that straighten as they arrive */
.gallery[data-scroll3d] { --p: 1; perspective: 1600px; }
.gallery[data-scroll3d] .panel .browser {
  transform: rotateX(calc((1 - var(--p)) * 20deg + var(--rx, 0deg))) rotateY(var(--ry, 0deg)) translateY(calc((1 - var(--p)) * 30px)) scale(calc(.94 + .06 * var(--p)));
  transform-origin: 50% 100%;
}
.product.flip .gallery[data-scroll3d] .panel .browser { transform-origin: 50% 100%; }

/* pointer tilt with moving glare */
[data-tilt] { --rx: 0deg; --ry: 0deg; position: relative; transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .25s ease; }
.app-card[data-tilt], .why-card[data-tilt], .people[data-tilt] { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); }
[data-tilt].tilting { transition: transform .08s linear, box-shadow .3s ease; }
[data-tilt]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.22), transparent 45%);
}
@media (prefers-color-scheme: dark) { [data-tilt]::after { background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(196,181,253,.14), transparent 45%); } }
[data-tilt].tilting::after { opacity: 1; }
.app-card[data-tilt] > *, .why-card[data-tilt] > * { transform: translateZ(18px); }
.why-card[data-tilt] .ic { transform: translateZ(34px); }
.app-card[data-tilt] .app-icon { transform: translateZ(36px); }

/* 3D phone: thickness via stacked edge shadows, turns toward you as you scroll in */
.phone-wrap[data-scroll3d] { --p: 1; perspective: 1400px; }
.phone {
  transform: rotateY(calc(-26deg * (1 - var(--p)) - 10deg + var(--ry, 0deg))) rotateX(calc(10deg * (1 - var(--p)) + 4deg + var(--rx, 0deg)));
  box-shadow:
    1px 1px 0 #2a2142, 2px 2px 0 #261d3c, 3px 3px 0 #221a36, 4px 4px 0 #1f1731, 5px 5px 0 #1c152c, 6px 6px 0 #191227,
    30px 40px 80px -20px rgba(52, 22, 120, .55), inset 0 0 0 1.5px #3d3360;
}
.phone .phone-screen { position: relative; }
.phone .phone-screen::after { /* glass reflection */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 70%, rgba(255,255,255,.08) 100%);
}

/* final CTA glow */
.final-glow { position: absolute; z-index: -1; width: 60%; height: 120%; left: 20%; top: -10%; background: radial-gradient(closest-side, rgba(167,139,250,.45), transparent); filter: blur(40px); pointer-events: none; }

/* flow line glow */
.flow-line line { filter: drop-shadow(0 0 6px rgba(167,139,250,.8)); }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .hero-copy { text-align: center; margin-inline: auto; }
  .hero-grid .lede { margin-inline: auto; }
  .hero-grid .hero-actions, .hero-grid .hero-note { justify-content: center; }
  .hero-3d { max-width: 560px; margin: 8px auto -24px; aspect-ratio: 1.15; }
}
@media (max-width: 640px) {
  .hero-3d { aspect-ratio: 1.05; margin-top: 0; }
  .showcase .stack-stage .win-mid { position: relative; right: auto; bottom: auto; width: 86%; margin: -18% 0 0 auto; }
  .showcase .stack-stage .win-front { display: none; }
  .hero-glow.g1 { width: 300px; height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase, .gallery[data-scroll3d], .phone-wrap[data-scroll3d] { --p: 1 !important; }
  [data-tilt] { transform: none !important; }
}


/* =====================================================================
   Multi-page suite: header menus, app grid, product pages, pricing
   ===================================================================== */
/* product themes */
.theme-books { --brand: #4f46e5; --brand-hover: #4338ca; --brand-ink: #3730a3; --accent: #818cf8; --tint: #eef0ff; }
.theme-crm { --brand: #9333ea; --brand-hover: #7e22ce; --brand-ink: #6b21a8; --accent: #c084fc; --tint: #f5ecff; }
.theme-people { --brand: #c026d3; --brand-hover: #a21caf; --brand-ink: #86198f; --accent: #e879f9; --tint: #fdeefe; }
@media (prefers-color-scheme: dark) {
  .theme-books { --brand: #4338ca; --brand-hover: #4f46e5; --brand-ink: #a5b4fc; --tint: #1f1f4a; }
  .theme-crm { --brand: #7e22ce; --brand-hover: #9333ea; --brand-ink: #d8b4fe; --tint: #2a1646; }
  .theme-people { --brand: #a21caf; --brand-hover: #c026d3; --brand-ink: #f0abfc; --tint: #33123a; }
}
.theme-books .btn-primary { box-shadow: 0 8px 22px -8px rgba(79,70,229,.6); }
.theme-people .btn-primary { box-shadow: 0 8px 22px -8px rgba(192,38,211,.55); }
.theme-books .hero h1 .grad, .theme-books .phero h1 .grad { background-image: linear-gradient(100deg, #4f46e5, #818cf8); }
.theme-crm .phero h1 .grad { background-image: linear-gradient(100deg, #7e22ce, #c084fc); }
.theme-people .phero h1 .grad { background-image: linear-gradient(100deg, #a21caf, #e879f9); }
@media (prefers-color-scheme: dark) {
  .theme-books .phero h1 .grad { background-image: linear-gradient(100deg, #a5b4fc, #e0e7ff); }
  .theme-crm .phero h1 .grad { background-image: linear-gradient(100deg, #d8b4fe, #f3e8ff); }
  .theme-people .phero h1 .grad { background-image: linear-gradient(100deg, #f0abfc, #fae8ff); }
}
.theme-books .hero-glow.g1 { background: radial-gradient(closest-side, #6366f1, transparent); }
.theme-people .hero-glow.g1 { background: radial-gradient(closest-side, #d946ef, transparent); }

/* details-based dropdowns (work without JS) */
.dd { position: relative; }
.dd > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; user-select: none; }
.dd > summary::-webkit-details-marker { display: none; }
.nav-links .dd > summary { color: var(--muted); font-weight: 500; font-size: .95rem; padding: .5rem .75rem; border-radius: 10px; }
.nav-links .dd > summary:hover, .nav-links .dd[open] > summary { color: var(--text); background: var(--tint); }
.dd .chev { width: 15px; height: 15px; transition: transform .2s ease; }
.dd[open] .chev { transform: rotate(180deg); }
.dd-panel {
  position: absolute; top: calc(100% + 10px); z-index: 60; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg); padding: .6rem; animation: dd-in .18s ease both;
}
@keyframes dd-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega { left: -12px; width: min(620px, 92vw); padding: .8rem; }
.mega-apps { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; }
.mega-app { display: flex; gap: .8rem; align-items: center; padding: .7rem; border-radius: 14px; text-decoration: none; color: var(--text); }
.mega-app:hover { background: var(--tint); }
.mega-app img { flex: none; border-radius: 11px; }
.mega-app b { display: block; font-weight: 600; font-size: .95rem; }
.mega-app b em { font-style: normal; font-size: .68rem; font-weight: 600; color: var(--muted); border: 1px dashed var(--line-strong); padding: .05rem .4rem; border-radius: 999px; margin-left: .3rem; vertical-align: 1px; }
.mega-app small { color: var(--muted); font-size: .82rem; }
.mega-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; border-top: 1px solid var(--line); margin-top: .5rem; padding: .7rem .5rem .2rem; font-size: .84rem; color: var(--muted); }
.mega-foot .later-label { font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.mega-foot .later { display: inline-flex; align-items: center; gap: .3rem; }
.mega-foot .later svg { width: 16px; height: 16px; }
.mega-foot .all { margin-left: auto; font-weight: 600; text-decoration: none; display: inline-flex; gap: .3rem; align-items: center; }
.mega-foot .all svg { width: 15px; height: 15px; }
.chooser { right: 0; width: 290px; }
.choice { display: flex; gap: .7rem; align-items: center; padding: .6rem; border-radius: 12px; text-decoration: none; color: var(--text); }
.choice:hover { background: var(--tint); }
.choice img { border-radius: 9px; flex: none; }
.choice b { display: block; font-weight: 600; font-size: .92rem; }
.choice small { color: var(--muted); font-size: .8rem; }
.nav-cta .dd-signin > summary.signin { padding: .5rem .6rem; border-radius: 10px; }
.nav-cta .dd-signin[open] > summary { background: var(--tint); }
.dd-start > summary.btn { gap: .4rem; }
.dd-menu { display: none; }
.menu-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); justify-content: center; color: var(--text); background: var(--surface); }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-menu { right: 0; width: min(340px, calc(100vw - 24px)); max-height: calc(100vh - 90px); overflow: auto; display: grid; gap: .1rem; }
.mobile-menu > a { display: flex; gap: .7rem; align-items: center; padding: .7rem .6rem; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 500; }
.mobile-menu > a:hover { background: var(--tint); }
.mobile-menu > a img { border-radius: 8px; }
.mm-label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .7rem .6rem .2rem; }
@media (max-width: 920px) {
  .dd-menu { display: block; }
  .nav-cta .dd-signin { display: none; }
}
@media (max-width: 360px) {
  .nav-cta .dd-start, .nav-cta > .btn-primary { display: none; }
}
@media (max-width: 560px) {
  .nav-cta .btn-sm { --h: 38px; padding: 0 .8rem; font-size: .85rem; }
  .dd-start .chooser { right: -54px; }
}

/* app colour buttons */
.btn-app { background: var(--brand); color: #fff; }
.btn-app:hover { background: var(--brand-hover); transform: translateY(-1px); }
.appx-books, .plan-books { --brand: #4f46e5; --brand-hover: #4338ca; --brand-ink: #3730a3; --ac: #6366f1; --ac2: #3730a3; }
.appx-crm, .plan-crm { --brand: #9333ea; --brand-hover: #7e22ce; --brand-ink: #6b21a8; --ac: #a855f7; --ac2: #6b21a8; }
.appx-people, .plan-people { --brand: #c026d3; --brand-hover: #a21caf; --brand-ink: #86198f; --ac: #d946ef; --ac2: #86198f; }
@media (prefers-color-scheme: dark) {
  .appx-books, .plan-books { --brand: #4338ca; --brand-ink: #a5b4fc; }
  .appx-crm, .plan-crm { --brand: #7e22ce; --brand-ink: #d8b4fe; }
  .appx-people, .plan-people { --brand: #a21caf; --brand-ink: #f0abfc; }
}

/* home: app grid */
.apps-section { padding-top: clamp(48px, 7vw, 96px); }
.appgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.appx {
  position: relative; display: flex; flex-direction: column; gap: .55rem; padding: 1.5rem; border-radius: 22px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.appx::before { content: ""; position: absolute; inset: 0 0 auto; height: 120px; background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 22%, transparent), transparent 70%); pointer-events: none; }
.appx:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--ac) 40%, var(--line)); }
.appx-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .4rem; }
.appx-top img { border-radius: 15px; box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--ac2) 70%, transparent); }
.appx h3 { font-size: 1.45rem; }
.appx-tag { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--brand-ink); }
.appx > p:not(.appx-tag) { color: var(--muted); font-size: .97rem; }
.appx-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .9rem; }
.later-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.later-row .later-label { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: .3rem; }
.later-card { flex: 1 1 220px; display: flex; gap: .75rem; align-items: center; padding: .9rem 1rem; border-radius: 16px; border: 1px dashed var(--line-strong); background: var(--surface-2); color: var(--muted); }
.later-card b { display: block; color: var(--text); font-weight: 600; font-size: .95rem; }
.later-card small { font-size: .83rem; }
.later-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--tint); color: var(--brand-ink); flex: none; }
.later-ic svg { width: 21px; height: 21px; }
#suite .showcase { margin-top: 0; }

/* product hero */
.phero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 80px); isolation: isolate; overflow: clip; }
.phero::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 700px; z-index: -1; pointer-events: none; opacity: .45;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 60% at 60% 30%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 60% 30%, #000, transparent 75%);
}
.phero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.phero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin: 1rem 0 1.1rem; letter-spacing: -.04em; font-weight: 750; }
.phero h1 .grad { -webkit-background-clip: text; background-clip: text; color: transparent; background-image: linear-gradient(100deg, var(--brand), var(--accent)); }
.phero .lede { margin: 0; text-align: left; }
.phero .hero-actions, .phero .hero-note { justify-content: flex-start; }
.crumb { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 500; color: var(--muted); text-decoration: none; margin-bottom: 1.2rem; }
.crumb svg { width: 15px; height: 15px; transform: rotate(180deg); }
.crumb:hover { color: var(--brand-ink); }
.plock { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.plock img { border-radius: 14px; box-shadow: 0 12px 26px -12px rgba(52,22,120,.6); }
.plock b { display: block; font: 700 1.15rem/1.2 var(--display); }
.plock small { color: var(--muted); font-size: .88rem; }
.pstack { --p: 1; perspective: 1800px; position: relative; padding: 4% 0 10%; }
.pstack-stage { position: relative; transform-style: preserve-3d;
  transform: rotateY(calc(-14deg * (1 - var(--p)) - 8deg + var(--ry, 0deg))) rotateX(calc(10deg * (1 - var(--p)) + 6deg + var(--rx, 0deg)));
  transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.pstack-stage.tilting { transition: transform .08s linear; }
.pstack .pw-back { width: 88%; box-shadow: var(--shadow-lg); transform: translateZ(-40px); }
.pstack .pw-front { position: absolute; width: 66%; right: 0; bottom: -6%; box-shadow: var(--shadow-lg); transform: translateZ(calc(70px + (1 - var(--p)) * 90px)); }
.pchip { position: absolute; left: 4%; bottom: -2%; display: flex; gap: .7rem; align-items: center; padding: .7rem .95rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .88rem; transform: translateZ(140px); max-width: 260px; }
.pchip .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--brand-ink); flex: none; }
.pchip .dot svg { width: 19px; height: 19px; }
.pchip b { display: block; font-weight: 600; }
.pchip span { color: var(--muted); font-size: .8rem; }
.pstack::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; height: 30%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 40%, transparent), transparent); filter: blur(30px); }

/* features grid */
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.fgrid-3 { grid-template-columns: repeat(3, 1fr); }
.feat { padding: 1.4rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.feat:hover { box-shadow: var(--shadow); }
.feat .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--brand-ink); margin-bottom: 1rem; }
.feat .ic svg { width: 23px; height: 23px; }
.feat h3 { font-size: 1.1rem; margin-bottom: .45rem; letter-spacing: -.015em; }
.feat p { color: var(--muted); font-size: .92rem; }
.feat[data-tilt] { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); }
.feat[data-tilt] > * { transform: translateZ(16px); }
.gallery-wide { max-width: 1100px; margin-inline: auto; }
.gallery-wide .tabs { max-width: 760px; margin-inline: auto; margin-bottom: 1.2rem; }
.gallery-wide .panel figcaption { text-align: center; }

/* people: coming-soon art */
.soon-art { position: relative; aspect-ratio: 1.1; display: grid; place-items: center; perspective: 1200px; }
.soon-tile { width: 46%; transform: perspective(1000px) rotateX(calc(10deg + var(--rx))) rotateY(calc(-16deg + var(--ry))); border-radius: 28%; }
.soon-tile img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(134,25,143,.4)); }
.soon-card { position: absolute; display: flex; gap: .55rem; align-items: center; padding: .65rem .9rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; font-size: .9rem; animation: bob 6s ease-in-out infinite; }
.soon-card svg { width: 20px; height: 20px; color: var(--brand-ink); }
.soon-card.c1 { left: 4%; top: 18%; } .soon-card.c2 { right: 2%; top: 40%; animation-delay: -2s; } .soon-card.c3 { left: 14%; bottom: 12%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* pricing */
.pricing-hero { padding-bottom: 0; }
.pricing-hero h1 { margin-inline: auto; }
.pricing-hero .lede { text-align: center; margin-inline: auto; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: .8rem; padding: 1.6rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.plan::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--ac), var(--ac2)); }
.plan[data-tilt] { transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); }
.plan-top { display: flex; gap: .8rem; align-items: center; }
.plan-top img { border-radius: 13px; }
.plan-top h2 { font-size: 1.35rem; }
.plan-top small { color: var(--muted); font-size: .85rem; }
.plan-price { font: 800 2.6rem/1 var(--display); letter-spacing: -.04em; margin-top: .4rem; }
.plan-price span { font: 500 1rem/1 var(--body); color: var(--muted); letter-spacing: 0; }
.plan-sub { color: var(--muted); font-size: .93rem; }
.plan .checks { margin: .4rem 0 .6rem; gap: .55rem; }
.plan .checks li { font-size: .93rem; }
.plan .checks svg { color: var(--brand); }
.plan .btn { margin-top: auto; }
.plan-more { text-align: center; font-size: .88rem; font-weight: 600; text-decoration: none; }
.talk { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between; align-items: center; padding: 1.5rem 1.7rem; border-radius: 22px; background: linear-gradient(120deg, var(--tint), color-mix(in srgb, var(--accent) 14%, var(--surface))); border: 1px solid var(--line-strong); }
.talk h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.talk p { color: var(--muted); }

@media (max-width: 1020px) {
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .phero-grid { grid-template-columns: 1fr; }
  .phero .phero-copy { max-width: 640px; }
  .pstack { max-width: 640px; margin-inline: auto; width: 100%; }
}
@media (max-width: 860px) {
  .appgrid, .plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .fgrid-3 { grid-template-columns: repeat(2, 1fr); }
  .mega-apps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fgrid, .fgrid-3 { grid-template-columns: 1fr; }
  .pchip { display: none; }
  .phero .hero-actions .btn { width: auto; flex: 1; }
  .talk { padding: 1.2rem; }
}


/* ---------- pricing v2: toggle, plans, add-ons ---------- */
.nav-cta > a.signin { white-space: nowrap; }
@media (max-width: 920px) { .nav-cta > a.signin { display: none; } }
.billing-toggle { display: inline-flex; gap: .25rem; padding: .3rem; margin-top: 1.8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); }
.billing-toggle .bt { border: 0; background: transparent; color: var(--muted); font: 600 .95rem/1 var(--body); padding: .75rem 1.2rem; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; transition: background-color .2s ease, color .2s ease; }
.billing-toggle .bt.on { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px rgba(98,32,202,.7); }
.billing-toggle .save { font-size: .72rem; font-weight: 700; padding: .25rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.billing-toggle .bt.on .save { background: rgba(255,255,255,.22); color: #fff; }
.plans { align-items: stretch; }
.plan-bundle { --brand: #6220ca; --brand-hover: #5218ad; --brand-ink: #4c1a9e; --ac: #7c3aed; --ac2: #c026d3; }
@media (prefers-color-scheme: dark) { .plan-bundle { --brand: #7c3aed; --brand-ink: #c4b5fd; } }
.plan-best { border: 2px solid color-mix(in srgb, var(--ac) 70%, var(--line)); box-shadow: var(--shadow-lg); }
@media (min-width: 861px) { .plan-best { transform: perspective(1100px) translateY(-10px) rotateX(var(--rx)) rotateY(var(--ry)); } }
.plan .best { position: absolute; top: 16px; right: 16px; font: 700 .72rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: .45rem .7rem; border-radius: 999px; color: #fff; background: linear-gradient(90deg, var(--ac), var(--ac2)); }
.bundle-ic { display: inline-flex; }
.bundle-ic img { border-radius: 10px; }
.bundle-ic img + img { margin-left: -12px; box-shadow: 0 0 0 3px var(--surface); }
.plan-price { display: flex; align-items: baseline; gap: .15rem; }
.plan-price .cur { font: 700 1.6rem/1 var(--display); }
.plan-price .amt { font: 800 3.2rem/1 var(--display); letter-spacing: -.04em; }
.plan-price .per { font: 500 .95rem/1 var(--body); color: var(--muted); margin-left: .2rem; }
.plan-bill { font-size: .9rem; color: var(--text); font-weight: 500; }
.plan-alt { font-size: .84rem; color: var(--muted); margin-top: -.5rem; }
.plan-trial { margin-top: -.2rem; }
.plans-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 1.4rem; }
.addons { margin-top: clamp(40px, 6vw, 64px); }
.addons h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.addon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.addon { display: flex; flex-direction: column; gap: .8rem; padding: 1.3rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.addon > div { display: block; }
.addon .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--brand-ink); }
.addon .ic svg { width: 23px; height: 23px; }
.addon b { display: block; font-weight: 600; margin-bottom: .2rem; }
.addon p { color: var(--muted); font-size: .92rem; }
.addon-price { margin-top: auto; font: 800 1.6rem/1.1 var(--display); color: var(--text) !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; }
.addon-price small { font: 500 .9rem/1 var(--body); color: var(--muted); }
.addon-price span { font: 500 .9rem/1 var(--body); color: var(--muted); }
.addon-price em { flex-basis: 100%; font: 500 .8rem/1.3 var(--body); font-style: normal; color: var(--muted); }
.addon-price.soon { font-size: 1.15rem; }

/* product pages: pricing band */
.price-band-wrap { padding-block: clamp(40px, 6vw, 72px); }
.price-band { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 24px;
  background: linear-gradient(120deg, var(--tint), color-mix(in srgb, var(--accent) 16%, var(--surface))); border: 1px solid var(--line-strong); }
.price-band h2 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin: .5rem 0 .4rem; letter-spacing: -.04em; }
.price-band h2 small { font: 500 1rem/1 var(--body); color: var(--muted); letter-spacing: 0; margin-left: .3rem; }
.price-band p { color: var(--muted); max-width: 560px; }
.pb-bundle { margin-top: .5rem; font-size: .92rem; }
.pb-cta { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }

/* contact + legal */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.6rem; }
.contact-card, .contact-form { padding: 1.5rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.legal .contact-card h2, .legal .contact-form h2 { margin: 0 0 .2rem; font-size: 1.35rem; }
.legal .muted { color: var(--muted); font-size: .92rem; }
.contact-card dl { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1rem; margin: 1.2rem 0 0; }
.contact-card dt { font-weight: 600; color: var(--text); font-size: .9rem; }
.contact-card dd { margin: 0; color: var(--muted); }
.contact-form { display: grid; gap: .85rem; }
.contact-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .88rem; color: var(--text); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 400 1rem/1.4 var(--body); color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; padding: .7rem .85rem; width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--brand); }
.contact-form .btn { justify-self: start; }
.legal-line { margin-top: .9rem; font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) {
  .addon-grid, .contact-grid { grid-template-columns: 1fr; }
  .plans .plan-best { order: -1; }
}
.pricing-hero h1 .grad { white-space: nowrap; }
