/* The sales site (app/site/templates), always light (the owner's choice, whatever the device's theme). Ninetayl's
   palette comes from brand.json through base.html: --primary indigo (text, links, icons, active states), --ink near-black
   (dark backgrounds), --cream (light backgrounds), --accent vermilion ONLY for CTAs (.btn-primary) and small accents. */
/* Plus Jakarta Sans (SIL Open Font License, static/site/fonts/OFL.txt): served from our own server, no third party */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/static/site/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  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: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/static/site/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --bg: #FFFDF8; --bg-alt: var(--cream, #F6F0E4); --card: #ffffff; --text: #17153A; --muted: #5A5772; --line: #E7DFCF;
  --soft: color-mix(in srgb, var(--primary) 10%, transparent);
  --ai: linear-gradient(110deg, #FFB224, #FF7A3D, #FF2D6F, #F06BF0, #B57BFF, #5AA9FF, #3DC8F5);
  --radius: 16px; --shadow: 0 1px 2px rgb(15 23 42 / .04), 0 8px 24px -12px rgb(15 23 42 / .12);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.125rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 780px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--card); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 60%, transparent); outline-offset: 2px; border-radius: 6px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--primary); margin-bottom: .75rem; }
.eyebrow.light { color: #a5b4fc; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.lead.center { margin-left: auto; margin-right: auto; }
.grad { background: linear-gradient(100deg, var(--primary), var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.1rem;
       border-radius: 10px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
       transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 50px; padding: .8rem 1.4rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px var(--accent); }   /* CTAs: vermilion */
.btn-primary:hover { background: var(--accent-dark, var(--accent)); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-light { background: rgb(255 255 255 / .08); color: #fff; border-color: rgb(255 255 255 / .2); }
.btn-light:hover { background: rgb(255 255 255 / .16); }
.btn-outline { border-color: var(--line); color: var(--text); background: var(--card); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--cream); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* header */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px);
       border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; color: var(--text); text-decoration: none !important; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links > a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links > a:hover { color: var(--text); background: var(--bg-alt); text-decoration: none; }
.nav-links > a[aria-current="page"] { color: var(--text); font-weight: 650; }
.nav-cta { margin-left: auto; display: flex; gap: 8px; }
.nav-cta-mobile, .nav-toggle { display: none; }
@media (max-width: 1040px) {
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; background: none; border: 0; color: var(--text); width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; cursor: pointer; }
  .nav-links { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px;
               background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 14px 8px; font-size: 1.05rem; }
  .nav-cta-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
}

/* sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.tight { padding-top: 24px; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--ink); color: #e2e8f0; }
.section.dark h2 { color: #fff; }
.section.dark .lead { color: #94a3b8; }
.page-head { padding: clamp(56px, 8vw, 96px) 0 24px; }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%),
        radial-gradient(900px 500px at 0% 0%, color-mix(in srgb, var(--primary) 35%, transparent), transparent 60%), var(--ink); color: #e2e8f0; }
.hero-grid { display: grid; gap: 48px; align-items: center; padding: clamp(56px, 8vw, 104px) 16px; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1fr 1.15fr; padding-left: 24px; padding-right: 24px; } }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #a5b4fc; }
.hero .lead { color: #cbd5e1; }
.hero .grad { background: linear-gradient(100deg, #a5b4fc, var(--accent)); -webkit-background-clip: text; background-clip: text; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero-note { font-size: .875rem; color: #94a3b8; }

/* the dashboard drawing */
.mock { border-radius: 14px; background: #fff; color: #0f172a; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .08);
        overflow: hidden; font-size: 12px; transform: perspective(1600px) rotateY(-4deg) rotateX(2deg); transition: transform .4s ease; }
.mock:hover { transform: none; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mock-bar span:nth-child(1) { background: #f87171; } .mock-bar span:nth-child(2) { background: #fbbf24; } .mock-bar span:nth-child(3) { background: #34d399; }
.mock-bar em { margin-left: 10px; font-style: normal; color: #64748b; background: #fff; border-radius: 6px; padding: 2px 10px; font-size: 11px; }
.mock-body { display: grid; grid-template-columns: 44px 1fr; min-height: 300px; }
.mock-side { background: var(--ink); padding: 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.mock-side i { height: 24px; border-radius: 6px; background: #1e293b; }
.mock-side i.on { background: var(--primary); }
.mock-main { padding: 14px; display: grid; gap: 12px; background: #f8fafc; }
.mock-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.mock-chip { background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 2px 10px; color: #475569; }
.mock-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mock-kpis div { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; }
.mock-kpis small { color: #64748b; font-size: 10px; }
.mock-kpis strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.mock-kpis em { font-style: normal; font-size: 10px; color: #059669; }
.mock .pos { color: #059669; } .mock .neg { color: #dc2626; } .mock .good { color: #059669; font-weight: 600; } .mock .warn { color: #d97706; font-weight: 600; }
.mock-chart { display: flex; align-items: flex-end; gap: 6px; height: 72px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px; }
.mock-chart span { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 45%, #fff)); }
.mock-table { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.mock-row { display: grid; grid-template-columns: 2fr 1fr 1fr .8fr 1fr; gap: 6px; padding: 7px 10px; border-top: 1px solid #f1f5f9; font-variant-numeric: tabular-nums; }
.mock-row span:not(:first-child) { text-align: right; }
.mock-row span:first-child { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.mock-th { border-top: 0; color: #64748b; font-size: 10px; background: #f8fafc; }
@media (max-width: 560px) { .mock { font-size: 10px; transform: none; } .mock-kpis { grid-template-columns: repeat(2, 1fr); } .mock-row { grid-template-columns: 1.6fr 1fr 1fr; } .mock-row span:nth-child(2), .mock-row span:nth-child(4) { display: none; } }
.demo-frame { max-width: 960px; margin: 40px auto 0; }
.demo-frame .mock { transform: none; }

/* cards */
.cards { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 760px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-top: 14px; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--soft); color: var(--primary); }
.icon.red { background: color-mix(in srgb, #ef4444 12%, transparent); color: #dc2626; }
.feature { transition: transform .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.feature.ai { border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--ai) border-box; }
.icon.ai { background: var(--ai); color: #fff; }

.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.1fr 1fr; } }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--soft); }
.ticks li::after { content: ""; position: absolute; left: 4px; top: calc(.2em + 4px); width: 12px; height: 12px; background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.plan-h { margin: 22px 0 -8px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ticks.small { gap: 8px; font-size: .92rem; }
.ticks li.no { color: var(--muted); opacity: .7; }
.ticks li.no::before { background: color-mix(in srgb, var(--muted) 14%, transparent); }
.ticks li.no::after { background: var(--muted);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }
.ticks .off { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--primary); }
.stat span { color: var(--muted); font-size: .9rem; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 20px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 6px; }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 8px; }
.steps span { color: var(--muted); }

.faq { margin-top: 32px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

.cta-band { background: linear-gradient(110deg, var(--primary), var(--ink)); color: #fff; padding: 56px 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin-bottom: .25em; color: #fff; }
.cta-band p { margin: 0; color: rgb(255 255 255 / .85); }

/* pricing */
.billing-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line); margin-top: 16px; }
.billing-toggle button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.save { font-size: .75rem; color: #059669; background: color-mix(in srgb, #10b981 14%, transparent); padding: 2px 8px; border-radius: 999px; margin-left: 4px; }
.plans { display: grid; gap: 20px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.plan h2 { font-size: 1.4rem; margin-bottom: .2em; }
.plan-tag { min-height: 3em; margin-bottom: 0; }
.plan-hot { border: 2px solid var(--primary); box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--primary) 60%, transparent); }
.plan-badge { position: absolute; top: -13px; left: 28px; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 2px; font-variant-numeric: tabular-nums; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-note { color: var(--muted); font-size: .875rem; min-height: 1.4em; margin-bottom: 20px; }
.plan-h { margin: 26px 0 12px; font-size: .95rem; font-weight: 700; }
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.highlights li { position: relative; padding-left: 30px; display: grid; gap: 2px; }
.highlights li .mark { position: absolute; left: 0; top: 1px; }
.highlights li .mark svg { width: 20px; height: 20px; }
.highlights b { font-size: .95rem; }
.highlights span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.see-all { margin: 40px 0 0; }
.btn-sm { min-height: 34px; padding: .35rem .8rem; font-size: .8rem; border-radius: 8px; }

/* Compare every package (Triple Whale-like): sticky plan header, collapsible groups, info tips, Pro column tinted */
#feature-comparison { scroll-margin-top: 72px; }
#feature-comparison h2 { margin-bottom: 24px; }
.compare-wrap { margin-top: 8px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; }
.compare th, .compare td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: center; font-size: .95rem; vertical-align: middle; }
.compare thead th { position: sticky; top: 64px; z-index: 5; background: var(--bg-alt); border-bottom: 1px solid var(--line); padding-top: 20px; padding-bottom: 18px; }
.compare thead th.feat-col { text-align: left; font-weight: 600; width: 40%; }
.th-name { display: block; font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; text-align: left; }
.compare thead th:not(.feat-col) { text-align: left; }
.compare td { text-align: left; font-weight: 600; }
.compare .hot { background: color-mix(in srgb, var(--primary) 8%, var(--bg-alt)); }
.compare thead th.hot { border-radius: 14px 14px 0 0; }
.compare th[scope="row"] { text-align: left; font-weight: 600; padding-left: 28px; }
.compare .group th { text-align: left; padding: 0; border-bottom: 1px solid var(--line); }
.group-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: none; border: 0; cursor: pointer;
  padding: 26px 4px 18px 0; color: var(--text); font: inherit; font-size: 1.3rem; font-weight: 500; text-align: left; }
.pm { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); flex: none; }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--text); transform: translate(-50%, -50%); }
.pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s ease; }
.group-toggle[aria-expanded="true"] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
tbody.collapsed tr:not(.group) { display: none; }
.mark { display: inline-flex; }
.mark.yes { color: var(--primary); }
.mark.no { color: color-mix(in srgb, var(--muted) 45%, transparent); }
.compare .price-row td, .compare .price-row th { font-weight: 700; border-bottom: 0; }
.tip { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-left: 4px; border: 1px solid var(--muted); border-radius: 50%;
  font: 600 10px/1 ui-sans-serif, system-ui; font-style: normal; color: var(--muted); cursor: help; position: relative; vertical-align: 1px; }
.tip:hover::after, .tip:focus::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 20;
  width: max-content; max-width: 280px; padding: 8px 10px; border-radius: 8px; background: var(--ink); color: #f8fafc; font: 400 12.5px/1.45 ui-sans-serif, system-ui;
  text-align: left; box-shadow: 0 8px 24px -8px rgb(0 0 0 / .4); white-space: normal; }
@media (max-width: 760px) {
  .compare-wrap { overflow-x: auto; }
  .compare { min-width: 620px; }
  .compare thead th { top: 0; }
  .compare th[scope="row"] { padding-left: 8px; }
  .group-toggle { font-size: 1.1rem; }
}

/* about / prose */
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose p, .prose li { color: var(--muted); }
.person { text-align: center; }
.avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.4rem;
  color: #fff; background: var(--primary); }

/* contact */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 46px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--soft); }
.form textarea { resize: vertical; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: #059669; } .form-msg.err { color: #dc2626; }
.contact-side { display: grid; gap: 16px; }
.contact-side .card p { margin: 6px 0 12px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 24px; background: var(--bg); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid > div { display: flex; flex-direction: column; gap: 8px; }
.footer-logo img { height: 90px; width: auto; }
.logo .wordmark { height: 21px; width: auto; }   /* the name as drawn in the logo (static/brand/ninetayl-wordmark-*.svg) */
.footer-grid a:not(.logo) { color: var(--muted); font-size: .92rem; }
.footer-h { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ================= Home (home.html + home.js): Triple Whale-like, scroll-driven ================= */
:root { --sand: var(--cream, #F6F0E4); --sand-2: #EDE4D3;   /* cream surfaces */
         --aqua: color-mix(in srgb, var(--primary) 9%, #fff); --tint: #FBF7EF; --nav-h: 64px; }
.up { color: #059669; } .down { color: #dc2626; }
.notch { position: absolute; left: 22%; bottom: -17px; width: 0; height: 0; border-left: 30px solid transparent; border-right: 30px solid transparent;
         border-top: 18px solid var(--sand); z-index: 2; }
.notch.top { top: -1px; bottom: auto; border-top-color: var(--sand); }

/* reveal on scroll (only with JS, never with reduced motion) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .cards [data-reveal]:nth-child(2), .js .h-facts-row [data-reveal]:nth-child(3), .js .h-flow [data-reveal]:nth-child(2) { transition-delay: .08s; }
.js .cards [data-reveal]:nth-child(3), .js .h-facts-row [data-reveal]:nth-child(4), .js .h-flow [data-reveal]:nth-child(3) { transition-delay: .16s; }
.js .h-facts-row [data-reveal]:nth-child(5), .js .h-flow [data-reveal]:nth-child(4) { transition-delay: .24s; }

/* hero */
.h-hero { position: relative; background: radial-gradient(900px 420px at 90% 0%, color-mix(in srgb, var(--primary) 7%, transparent), transparent 70%), radial-gradient(800px 420px at 0% 10%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 70%), var(--sand); }
.h-hero-grid { display: grid; gap: 40px; align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 104px); }
@media (min-width: 1000px) { .h-hero-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.h-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); }
.h-hero h1 .soft { background: linear-gradient(100deg, var(--primary), var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-stage { background: linear-gradient(135deg, var(--sand-2), var(--aqua)); border-radius: 26px; padding: clamp(20px, 4vw, 44px); }
.h-actions { position: relative; height: 290px; }
.h-action { position: absolute; inset: 0; background: var(--card); color: var(--text); border-radius: 16px; padding: 20px; box-shadow: 0 30px 60px -30px rgb(15 23 42 / .35), 0 0 0 1px var(--line);
            display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.h-action.is-active { opacity: 1; transform: none; pointer-events: auto; }
.h-action.is-leaving { opacity: 0; transform: translateY(-18px) scale(.98); }
.h-action header { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.h-action header b { flex: 1; min-width: 0; }
.h-action header em { font-style: normal; font-size: .75rem; color: var(--muted); }
.h-logo { width: 26px; height: 26px; border-radius: 8px; flex: none; background: var(--soft); }
.h-logo.g { background: conic-gradient(#4285F4 0 25%, #34A853 0 50%, #FBBC04 0 75%, #EA4335 0); }
.h-logo.ai { background: var(--ai); } .h-logo.kw { background: linear-gradient(135deg, var(--accent), var(--primary)); } .h-logo.p { background: #10b981; }
.h-label { margin: 0; font-size: .8rem; color: var(--muted); }
.h-big { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--sand-2); color: var(--text); border-radius: 12px; padding: 12px 16px; }
.h-big strong { font-size: 1.9rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.h-big span { font-weight: 700; font-size: 1.1rem; } .h-big .up { color: #059669; } .h-big .down { color: #dc2626; }
.h-why { margin: 0; font-size: .85rem; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.h-why i { font-style: normal; background: var(--ai); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.h-action footer, .h-confirm { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.h-btn { font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); background: var(--card); }
.h-btn.ok { background: #059669; border-color: #059669; color: #fff; }
.h-spark { display: flex; align-items: flex-end; gap: 5px; height: 46px; }
.h-spark span { flex: 1; height: var(--h); border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, #10b981, color-mix(in srgb, #10b981 35%, transparent)); }
.h-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.h-dots button { width: 28px; height: 6px; border-radius: 999px; border: 0; padding: 0; background: color-mix(in srgb, var(--text) 18%, transparent); cursor: pointer; }
.h-dots button[aria-selected="true"] { background: var(--primary); }

/* integrations strip */
.h-strip { padding: 44px 0 20px; }
.marquee { 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); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 56px; padding: 14px 28px; margin: 0; list-style: none; }
.marquee li { font-size: 1.3rem; font-weight: 750; letter-spacing: -0.01em; color: color-mix(in srgb, var(--text) 45%, transparent); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* pinned sections (home.js sets --p 0..1 and .is-active on the step) */
[data-scrolly] { position: relative; }
.h-pin { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: flex-start; padding-top: clamp(28px, 7vh, 80px); overflow: hidden; }

.h-problem { height: 330vh; }
.h-problem .lead { margin-bottom: 0; }
.h-track-wrap { margin-top: clamp(24px, 4vh, 48px); padding-left: max(16px, calc((100vw - 1180px) / 2 + 24px)); }
.h-track { display: flex; gap: 20px; padding: 0 24px 0 0; margin: 0; list-style: none; width: max-content; transform: translate3d(calc(var(--x, 0) * -1px), 0, 0); will-change: transform; }
.h-step { width: min(300px, 78vw); flex: none; opacity: .4; transition: opacity .45s ease; }
.h-step.is-active, .h-step.was { opacity: 1; }
.h-step.was { opacity: .75; }
.h-step h3 { margin: 16px 0 6px; } .h-step p { color: var(--muted); font-size: .92rem; margin: 0; }
.h-tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #be123c; background: #ffe4e6; border-radius: 6px; padding: 3px 8px; margin-bottom: 10px; }
.h-card { height: 170px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); overflow: hidden; }
.h-step.is-active .h-card { box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 40%, transparent), var(--shadow); }
.h-card-t { margin: 0 0 6px; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.h-alert { margin: 0; font-size: .8rem; font-weight: 700; color: #dc2626; }
.h-line { color: #ef4444; margin-top: 10px; stroke-dasharray: 400; stroke-dashoffset: 400; }
.h-step.is-active .h-line, .h-step.was .h-line { animation: draw 1.4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.h-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.h-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.h-list li:last-child { border-bottom: 0; }
.h-chat { display: flex; flex-direction: column; gap: 8px; }
.h-chat .b { margin: 0; font-size: .8rem; padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: var(--bg-alt); border: 1px solid var(--line); align-self: flex-start; max-width: 90%; }
.h-chat .b.r { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: var(--soft); }
.h-progress { height: 3px; border-radius: 3px; background: var(--line); margin-top: 28px; overflow: hidden; }
.h-progress span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--primary); }

/* how it works (dark) */
.h-how { height: 420vh; background: var(--tint); color: var(--text); }
.h-how h2 { color: var(--text); max-width: 720px; font-size: clamp(1.5rem, 2.8vw, 2.3rem); }
.h-tabs { list-style: none; margin: clamp(16px, 3vh, 28px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.h-tab { background: var(--card); color: var(--text); padding: 16px 26px 16px 30px; opacity: .5; transition: opacity .4s ease, transform .4s ease;
         clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); }
.h-tab:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); border-radius: 12px 0 0 12px; padding-left: 18px; }
.h-tab:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14px 50%); border-radius: 0 12px 12px 0; }
.h-tab.is-active { opacity: 1; transform: translateY(-4px); background: var(--aqua); }
.h-tab .ic { display: inline-flex; width: 28px; height: 28px; border-radius: 8px; background: var(--primary); color: #fff; align-items: center; justify-content: center; padding: 5px; }
.h-tab b { display: block; margin-top: 10px; } .h-tab p { margin: 4px 0 0; font-size: .8rem; color: var(--muted); }
.h-panels { position: relative; height: clamp(250px, 42vh, 430px); margin-top: clamp(16px, 3vh, 28px); border-radius: 22px; overflow: hidden;
            background: radial-gradient(circle at 50% 120%, var(--aqua), var(--card) 70%); border: 1px solid var(--line); box-shadow: var(--shadow); }
.h-panel { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; transform: scale(.96) translateY(14px);
           transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.h-panel.is-active { opacity: 1; transform: none; }
.h-panel-mock { width: min(640px, 100%); transform: scale(.9); }
.h-panel-mock .mock { transform: none; }
.h-orbit { position: relative; width: 340px; height: 340px; max-width: 100%; }
.h-orbit::before, .h-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--primary) 35%, transparent); }
.h-orbit::before { inset: 6%; animation: spin 50s linear infinite; } .h-orbit::after { inset: 28%; border-style: solid; border-color: color-mix(in srgb, var(--primary) 12%, transparent); }
.h-orbit .core { position: absolute; inset: 50% auto auto 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--primary); color: #fff; z-index: 1;
                 display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 800; animation: pulse 3s ease-in-out infinite; }
.h-orbit .sat { position: absolute; top: 50%; left: 50%; z-index: 1; transform: rotate(calc(var(--i) * 60deg)) translate(min(150px, 36vw)) rotate(calc(var(--i) * -60deg)) translate(-50%, -50%);
                background: var(--card); color: var(--text); border: 1px solid var(--line); font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
                animation: float 4s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
.h-panel.is-active .h-orbit .sat { box-shadow: 0 10px 24px -12px rgb(15 23 42 / .25); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { translate: 0 -7px; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--primary) 8%, transparent), 0 0 0 26px color-mix(in srgb, var(--primary) 4%, transparent); } 50% { box-shadow: 0 0 0 18px color-mix(in srgb, var(--primary) 10%, transparent), 0 0 0 36px color-mix(in srgb, var(--primary) 4%, transparent); } }
.h-verdicts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: min(460px, 100%); }
.h-verdicts li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; padding: 10px 14px; font-size: .9rem; }
.h-verdicts li em { font-style: normal; color: #64748b; font-size: .8rem; }
.h-verdicts.light li { border: 1px solid var(--line); background: var(--card); color: var(--text); }
.v { font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.v.win { background: #d1fae5; color: #047857; } .v.keep { background: #dbeafe; color: #1d4ed8; } .v.wait { background: #fef3c7; color: #b45309; } .v.arch { background: #fee2e2; color: #b91c1c; }
.h-change { background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 16px; padding: 20px; width: min(420px, 100%); display: grid; gap: 14px; }
.h-change .h-card-t { color: #64748b; }
.h-ba { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.h-ba div { flex: 1; background: var(--bg-alt); border-radius: 12px; padding: 10px 14px; } .h-ba div:last-child { background: var(--aqua); }
.h-ba small { display: block; font-size: .72rem; opacity: .7; } .h-ba strong { font-size: 1.6rem; }
.h-ba > span { font-size: 1.4rem; color: var(--primary); }
.h-sched { margin: 0; font-size: .85rem; color: var(--muted); }
.h-change .h-btn.ok { background: #059669; color: #fff; border-color: #059669; }
@media (max-width: 860px) {
  .h-tabs { grid-template-columns: repeat(2, 1fr); }
  .h-tab, .h-tab:first-child, .h-tab:last-child { clip-path: none; border-radius: 10px; padding: 10px 12px; }
  .h-tab p { display: none; } .h-tab b { margin-top: 6px; }
  .h-panel-mock { transform: scale(.82); }
}

/* facts */
.h-facts { background: var(--tint); color: var(--text); padding: 0 0 clamp(64px, 9vw, 104px); }
.h-facts-row { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .h-facts-row { grid-template-columns: 1.3fr repeat(4, 1fr); } }
.h-facts h2 { color: var(--text); font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.h-fact strong { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; background: linear-gradient(100deg, var(--primary), var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-fact .u { font-size: 1.2rem; font-weight: 700; color: var(--accent); margin-left: 4px; }
.h-fact p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }

/* feature tabs */
.h-features { background: var(--sand); }
.ftabs { margin-top: 40px; }
.ftab-list { display: flex; flex-wrap: wrap; gap: 6px; background: var(--sand-2); padding: 6px; border-radius: 14px; }
.ftab-list button { position: relative; overflow: hidden; flex: 1 1 140px; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-weight: 650; font-size: .92rem; cursor: pointer; }
.ftab-list button[aria-selected="true"] { background: var(--card); color: var(--primary); box-shadow: var(--shadow); }
.ftab-list button i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.ftabs.playing .ftab-list button[aria-selected="true"] i { animation: tabfill 7s linear forwards; }
@keyframes tabfill { to { width: 100%; } }
.ftab-panel { display: grid; gap: 32px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 44px); margin-top: 14px; animation: fadein .5s ease; }
@media (min-width: 900px) { .ftab-panel { grid-template-columns: 1fr 1.1fr; } }
.ftab-panel[hidden] { display: none; }
.ftab-panel h3 { font-size: 1.5rem; } .ftab-panel p { color: var(--muted); }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fv { background: var(--sand); border-radius: 18px; padding: 22px; display: grid; gap: 14px; }
.pnl-bar { display: flex; height: 40px; border-radius: 10px; overflow: hidden; font-size: .75rem; font-weight: 700; color: #fff; }
.pnl-bar span { width: var(--w); background: var(--c); display: flex; align-items: center; justify-content: center; }
.fv-camps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fv-camps li { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 12px; font-size: .88rem; }
.fv-camps em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.pace { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; } .pace i { display: block; height: 100%; width: var(--w); background: #10b981; border-radius: 8px; }
.pace.over i { background: #ef4444; }
.fv-title { margin: 0; font-size: .88rem; color: var(--muted); } .fv-title b { color: var(--text); }
.fv-build { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: .88rem; }
.fv-build li { padding: 8px 10px; border-radius: 10px; background: var(--card); color: var(--muted); border: 1px solid var(--line); }
.fv-build li.d { color: var(--text); } .fv-build li.d::before { content: "✓ "; color: #059669; font-weight: 800; }
.fv-build li.n { border-color: var(--primary); color: var(--primary); font-weight: 650; }

/* team */
.h-team { background: var(--bg); color: var(--text); }

.h-team-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .h-team-grid { grid-template-columns: 1fr 1fr; } }
.h-flow { position: relative; list-style: none; margin: 0; padding: 0 0 0 44px; display: grid; gap: 34px; }
.h-flow::before, .h-flow::after { content: ""; position: absolute; left: 13px; top: 8px; width: 2px; background: var(--line); bottom: 8px; }
.h-flow::after { background: var(--primary); bottom: auto; height: calc(var(--p, 0) * (100% - 16px)); }
.h-flow li { position: relative; }
.h-flow .h-tag { position: absolute; left: -44px; top: 0; width: 28px; height: 28px; padding: 0; margin: 0; display: flex; align-items: center; justify-content: center;
                 border-radius: 50%; background: var(--sand-2); color: var(--primary); font-size: .8rem; z-index: 1; }
.h-flow b { font-size: 1.05rem; } .h-flow p { margin: 4px 0 0; color: var(--muted); }

/* trust */
.h-trust { background: var(--sand); padding-top: 0; }
.h-trust .card { background: var(--sand-2); border: 0; box-shadow: none; }

/* final call */
.h-final { position: relative; padding: clamp(80px, 11vw, 140px) 0; color: var(--text); background: linear-gradient(160deg, var(--sand-2), var(--aqua)); }

.center-row { justify-content: center; }

/* reduced motion / no JS: nothing pinned, everything one after the other */
@media (prefers-reduced-motion: reduce) {
  .h-problem, .h-how { height: auto; } .h-pin { position: static; height: auto; padding: 72px 0; }
  .h-track { width: auto; flex-wrap: wrap; transform: none; padding-right: 16px; } .h-step { opacity: 1; }
  .h-panels { height: auto; display: grid; gap: 12px; padding: 16px; } .h-panel { position: static; opacity: 1; transform: none; }
  .h-tab { opacity: 1; } .marquee-track, .h-orbit::before, .h-orbit .core, .h-orbit .sat { animation: none; } .h-progress { display: none; }
}
html:not(.js) .h-problem, html:not(.js) .h-how { height: auto; }
html:not(.js) .h-pin { position: static; height: auto; padding: 72px 0; }
html:not(.js) .h-track { flex-wrap: wrap; width: auto; } html:not(.js) .h-step, html:not(.js) .h-tab { opacity: 1; }
html:not(.js) .h-panels { height: auto; display: grid; gap: 12px; padding: 16px; } html:not(.js) .h-panel { position: static; opacity: 1; transform: none; }

/* ================= Product / Solutions / About (light, same family as the home) ================= */
.p-hero { position: relative; background: radial-gradient(900px 420px at 90% 0%, color-mix(in srgb, var(--primary) 7%, transparent), transparent 70%),
          radial-gradient(800px 420px at 0% 10%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 70%), var(--sand);
          padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); }
.p-hero h1 .soft, .mission .soft { background: linear-gradient(100deg, var(--primary), var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mission { font-size: clamp(1.5rem, 3.1vw, 2.5rem); line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; max-width: 980px; margin: 0; text-wrap: pretty; }
.notch.top.alt { border-top-color: var(--bg-alt); }

.chev-row { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(4, 1fr); }
.chev-row li { background: var(--sand-2); padding: 24px 30px 26px 34px; min-height: 210px; display: flex; flex-direction: column;
               clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%); }
.chev-row li:first-child { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); border-radius: 18px 0 0 18px; padding-left: 24px; }
.chev-row li:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 16px 50%); border-radius: 0 18px 18px 0; }
.chev-row .k { font-size: .85rem; color: var(--muted); }
.chev-row b { margin-top: auto; font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.02em; background: linear-gradient(100deg, var(--primary), var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chev-row p { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) { .chev-row { grid-template-columns: 1fr 1fr; } .chev-row li, .chev-row li:first-child, .chev-row li:last-child { clip-path: none; border-radius: 16px; padding: 20px; min-height: 0; } }
@media (max-width: 520px) { .chev-row { grid-template-columns: 1fr; } }

.story { display: grid; gap: 24px; }
@media (min-width: 900px) { .story { grid-template-columns: .8fr 1.2fr; gap: 56px; } }
.story p { font-size: 1.08rem; color: var(--muted); }

.tl-section { overflow: hidden; }
.tl-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.tl-nav { display: flex; gap: 8px; }
.tl-nav button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--primary); font-size: 1.1rem; cursor: pointer; }
.tl-nav button:disabled { opacity: .4; cursor: default; }
.tl { overflow-x: auto; scrollbar-width: none; margin-top: 28px; cursor: grab; outline-offset: -3px; }
.tl::-webkit-scrollbar { display: none; }
.tl-track { list-style: none; margin: 0; display: flex; gap: 18px; width: max-content; position: relative;
            padding: 0 max(16px, calc(50vw - 170px)) 8px; }
.tl-track::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); }
.tl-item { width: 320px; flex: none; position: relative; padding-top: 30px; cursor: pointer; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); }
.tl-when { display: block; font-size: 1.6rem; font-weight: 750; letter-spacing: -0.02em; color: color-mix(in srgb, var(--text) 30%, transparent); margin-bottom: 14px; transition: color .3s; }
.tl-card { border-radius: 18px; padding: 22px; background: var(--sand-2); min-height: 170px; opacity: .7; transition: opacity .3s, background-color .3s, box-shadow .3s, transform .3s; }
.tl-card .ic { display: inline-flex; width: 32px; height: 32px; padding: 6px; border-radius: 9px; background: var(--primary); color: #fff; }
.tl-card b { display: block; margin-top: 14px; font-size: 1.05rem; } .tl-card p { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }
.tl-item.on .tl-when { color: var(--text); }
.tl-item.on::before { border-color: var(--primary); background: var(--primary); box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 18%, transparent); }
.tl-item.on .tl-card { opacity: 1; background: var(--card); box-shadow: 0 0 0 2px var(--primary), var(--shadow); transform: translateY(-4px); }
@media (max-width: 640px) { .tl-item { width: 260px; } .tl-track { padding: 0 max(16px, calc(50vw - 130px)) 8px; } }

.company-line { margin-top: 28px; text-align: center; }

.pillnav { position: sticky; top: var(--nav-h); z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pillnav-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.pillnav-row::-webkit-scrollbar { display: none; }
.pillnav-t { font-weight: 650; margin-right: 8px; white-space: nowrap; }
.pillnav a { white-space: nowrap; font-size: .85rem; font-weight: 600; color: var(--muted); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.pillnav a:hover { text-decoration: none; color: var(--text); }
.pillnav a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.p-sec { padding: clamp(64px, 8vw, 104px) 0; scroll-margin-top: calc(var(--nav-h) + 56px); }
.p-sec.alt { background: var(--tint); }
.p-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .p-split { grid-template-columns: 1fr 1fr; gap: 64px; } .p-split.rev > :first-child { order: 2; } }
.p-visual .mock { transform: none; }
.tagc { font-size: .72rem; padding: 3px 8px; border-radius: 999px; }
.tagc.c1 { background: #fef3c7; color: #b45309; } .tagc.c2 { background: #e0e7ff; color: #4338ca; } .tagc.c3 { background: #d1fae5; color: #047857; }

.aud-cards { display: grid; gap: 18px; }
@media (min-width: 860px) { .aud-cards { grid-template-columns: repeat(3, 1fr); } }
.aud { display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text);
       transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.aud:hover { text-decoration: none; transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.aud b { font-size: 1.2rem; margin-top: 6px; } .aud p { margin: 0; color: var(--muted); }
.aud em { font-style: normal; font-weight: 650; color: var(--primary); margin-top: auto; padding-top: 8px; }
.plan-fit { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); max-width: 420px; justify-self: center; width: 100%; }
.plan-fit-name { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0; background: linear-gradient(100deg, var(--primary), var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-fit-price { font-size: 2.2rem; font-weight: 800; margin: 14px 0 18px; } .plan-fit-price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan-fit-more { display: block; text-align: center; margin-top: 12px; }

/* Ninetayl accent: the highlighted words of the big titles in vermilion (the only red besides the CTAs) */
.h-hero h1 .soft, .p-hero h1 .soft, .mission .soft { background: none; -webkit-text-fill-color: currentColor; color: var(--accent); }

/* ================= Phones (≤ 640 px) ================= */
.cmp-switch { display: none; }
@media (max-width: 700px) {
  /* Compare every package: one plan at a time, chosen above the table */
  .cmp-switch { display: flex; gap: 6px; padding: 6px; margin-bottom: 12px; border-radius: 14px; background: var(--sand-2); position: sticky; top: 72px; z-index: 6; }
  .cmp-switch button { flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-weight: 650; color: var(--muted); cursor: pointer; }
  .cmp-switch button[aria-pressed="true"] { background: var(--card); color: var(--primary); box-shadow: var(--shadow); }
  .compare-wrap { overflow: visible; }
  .compare { min-width: 0; }
  .compare [data-p] { display: none; }
  .compare[data-show="0"] [data-p="0"], .compare[data-show="1"] [data-p="1"], .compare[data-show="2"] [data-p="2"] { display: table-cell; }
  .compare thead { display: none; }
  .compare thead th.feat-col { width: auto; }
  .compare th[scope="row"] { width: 64%; }
}
@media (max-width: 640px) {
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .lead { font-size: 1.05rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  /* hero: the action cards get the room they need */
  .h-actions { height: 330px; }
  .h-action { padding: 16px; }
  .h-big strong { font-size: 1.6rem; }
  .h-stage { padding: 16px; border-radius: 20px; }
  /* how it works: smaller drawings that fit the panel */
  /* how it works: the pinned screen must hold title + steps + panel: one row of compact steps, the panel takes the rest */
  .h-how h2 { font-size: 1.3rem; margin-bottom: 0; }
  .h-how .h-pin { padding-top: 20px; }
  .h-how .h-pin > .wrap { display: flex; flex-direction: column; flex: 1; min-height: 0; padding-bottom: 16px; }
  .h-tabs { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
  .h-tab, .h-tab:first-child, .h-tab:last-child { padding: 8px 4px; text-align: center; border-radius: 10px; }
  .h-tab .ic { width: 24px; height: 24px; padding: 4px; }
  .h-tab b { font-size: .78rem; margin-top: 4px; }
  .h-tab.is-active { transform: none; }
  .h-panels { flex: 1; min-height: 0; height: auto; max-height: 440px; margin-top: 12px; }
  .h-panel { padding: 14px; }
  .h-panel-mock { width: 640px; flex: none; transform: scale(.5); }
  .h-orbit { width: 280px; height: 280px; }
  .h-orbit .sat { transform: rotate(calc(var(--i) * 60deg)) translate(112px) rotate(calc(var(--i) * -60deg)) translate(-50%, -50%);
                  font-size: .7rem; padding: 5px 9px; }
  .h-orbit .core { width: 70px; height: 70px; margin: -35px 0 0 -35px; font-size: 1.7rem; }
  .h-verdicts li { grid-template-columns: auto 1fr; gap: 4px 10px; padding: 9px 12px; }
  .h-verdicts li em { grid-column: 2; font-size: .75rem; }
  .h-change { padding: 16px; } .h-ba strong { font-size: 1.3rem; }
  .h-track { padding-right: 40px; }
  .h-step { width: min(280px, 80vw); }
  .h-facts-row { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .h-facts-row h2 { grid-column: 1 / -1; }
  .ftab-list button { flex: 1 1 45%; font-size: .85rem; }
  .ftab-panel { padding: 18px; }
  .fv-camps li { grid-template-columns: 1fr auto; } .fv-camps .pace { grid-column: 1 / -1; grid-row: 2; }
  .fv-build { grid-template-columns: 1fr; }
  .mission { font-size: 1.45rem; }
  .p-sec { padding: 56px 0; }
  .plan-fit { padding: 22px; }
  .footer-grid { gap: 28px; }
}
