/* Mandalytics site. Same brand as the reports: Exo 2 headings, Merriweather Sans body, navy #1c2f6d and teal #5ac5c0.
   Dark "night sky" look with glowing accents: teal and violet for flow, saffron gold for the tasks you act on.
   The mandala (assets/mandala.svg, made by scripts/mandala.py) is Mandala + Analytics: everything flows from the centre. */
@font-face { font-family: "Exo 2"; src: url(fonts/exo2.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url(fonts/merriweather-sans.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url(fonts/merriweather-sans-italic.woff2) format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }

:root {
  --bg: #070b1a; --bg-2: #0a1024; --surface: #0e1530; --surface-2: #131c3d; --ink: #f3f6fc; --muted: #c9d1e4; --faint: #9aa6c2;
  --line: rgb(173 190 255 / .12); --line-strong: rgb(173 190 255 / .22);
  --navy: #1c2f6d; --brand: #5ac5c0; --violet: #8b7cf6; --gold: #f5b754;
  --primary: #8fd9d5; --primary-ink: #06222a; --primary-soft: rgb(90 197 192 / .12); --brand-deep: #5ac5c0; --logo-ink: #eef2fb;
  --action: #f5c26b; --action-bg: rgb(245 183 84 / .07); --action-line: rgb(245 183 84 / .35);
  --good: #4ade80; --bad: #f87171; --good-bg: rgb(74 222 128 / .12); --bad-bg: rgb(248 113 113 / .13);
  --hero-ink: #ffffff; --hero-muted: #c3cde3;
  --flow: linear-gradient(100deg, #5ac5c0 0%, #8b7cf6 55%, #f5b754 100%);
  --glow: 0 0 0 1px rgb(90 197 192 / .35), 0 8px 32px rgb(90 197 192 / .25);
  --display: "Exo 2", "Segoe UI", Arial, sans-serif;
  --body: "Merriweather Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 16px; --shadow: 0 1px 0 rgb(255 255 255 / .04) inset, 0 12px 40px rgb(0 0 0 / .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; margin: 0; text-wrap: balance; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 21px; font-weight: 600; }
p, figcaption { text-wrap: pretty; }
li, dd, dt, summary, td, th, label, .lead, .help, .sub, .small, .notice, .form-msg { text-wrap: balance; }
p { margin: 0; }
a { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
.narrow { max-width: 760px; }
.eyebrow { font: 600 13px/1.3 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--brand-deep); }
.lead { font-size: 19px; color: var(--muted); max-width: 62ch; }
.icon { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 600 16px/1.2 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #6fd8d2, #5ac5c0 45%, #4aa9c9); color: #04232a; box-shadow: 0 0 0 1px rgb(255 255 255 / .18) inset, 0 8px 28px rgb(90 197 192 / .4); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgb(255 255 255 / .3) inset, 0 10px 38px rgb(90 197 192 / .6); }
.btn-ghost { border-color: var(--line-strong); color: inherit; background: rgb(255 255 255 / .03); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: rgb(139 124 246 / .6); box-shadow: 0 0 24px rgb(139 124 246 / .25); }
.btn-navy { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
.btn-navy:hover { border-color: var(--brand); box-shadow: var(--glow); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(7 11 26 / .72); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.mlogo { height: 24px; width: auto; display: block; }
.mlogo .mlg-t { fill: var(--logo-ink); } .mlogo .mlg-i { fill: var(--brand); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.menu-btn { display: none; }
@media (max-width: 880px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--primary-soft); color: var(--primary); font: 600 15px var(--body); cursor: pointer; }
}

/* hero */
.hero { position: relative; color: var(--hero-ink); overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 70% at 78% 40%, rgb(139 124 246 / .28), transparent 70%),
    radial-gradient(50% 60% at 95% 85%, rgb(90 197 192 / .22), transparent 70%),
    radial-gradient(40% 50% at 10% 0%, rgb(28 47 109 / .9), transparent 70%), var(--bg); }
.hero::before { content: ""; position: absolute; z-index: -1; width: min(1100px, 120vw); aspect-ratio: 1; right: -18%; top: 50%; translate: 0 -50%;
  background: url(mandala.svg) center / contain no-repeat; opacity: .38; animation: turn 240s linear infinite;
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--bg)); }
@keyframes turn { to { rotate: 360deg; } }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 72px 88px; }
.hero .eyebrow { color: var(--brand); }
.hero h1 { font-size: clamp(36px, 5.6vw, 60px); margin-top: 14px; letter-spacing: -0.02em; }
.hero h1 .accent, .grad { background: var(--flow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--hero-muted); margin-top: 20px; font-size: clamp(17px, 1.6vw, 20px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-cta .btn-ghost { color: #fff; }
.hero-fine { margin-top: 16px; font-size: 14.5px; color: var(--hero-muted); }
.nos { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 15px; }
.nos li { display: inline-flex; align-items: center; gap: 8px; }
.nos .icon { width: 18px; height: 18px; color: var(--brand); }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 48px 64px; gap: 36px; } .hero::before { right: auto; left: 50%; top: 72%; translate: -50% -50%; opacity: .28; } }

/* video */
.video { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: #0f1d3a; box-shadow: 0 0 0 1px rgb(173 190 255 / .18), 0 30px 80px rgb(0 0 0 / .55), 0 0 90px rgb(139 124 246 / .28); aspect-ratio: 16 / 10; }
.video img, .video video { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, rgb(15 29 58 / 0) 40%, rgb(15 29 58 / .65) 100%); font: 600 16px var(--body); text-decoration: none; }
.video-play .disc { width: 76px; height: 76px; border-radius: 50%; background: var(--brand); color: #04232a; display: grid; place-items: center; box-shadow: 0 0 0 10px rgb(90 197 192 / .18), 0 0 50px rgb(90 197 192 / .7); transition: transform .2s ease; }
.video-play:hover .disc { transform: scale(1.06); }
.video-play .disc svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.video-play .label { position: absolute; bottom: 16px; left: 16px; right: 16px; text-align: left; text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
.video figcaption { position: absolute; left: 0; right: 0; bottom: 0; }

/* sections */
section.block { padding-block: 88px; }
section.block { position: relative; }
section.block.alt { background: radial-gradient(70% 60% at 50% 0%, rgb(28 47 109 / .45), transparent 70%), var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 44px; }
.sec-head.center { text-align: center; margin-inline: auto; justify-items: center; }
@media (max-width: 640px) { section.block { padding-block: 64px; } }

/* strip of promises */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.promise, .task-card, .chat, .plan, .faq details, .form-card, .panel, .tile, .who-card { background: linear-gradient(180deg, rgb(255 255 255 / .045), rgb(255 255 255 / .01)), var(--surface); box-shadow: 0 1px 0 rgb(255 255 255 / .06) inset; }
.promise { background: linear-gradient(180deg, rgb(255 255 255 / .045), rgb(255 255 255 / .01)), var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; }
.promise .ic, .who-card .ic { width: 48px; height: 48px; border-radius: 12px; background: rgb(90 197 192 / .12); color: var(--brand); box-shadow: 0 0 0 1px rgb(90 197 192 / .3) inset, 0 0 24px rgb(90 197 192 / .25); display: grid; place-items: center; }
.promise p { color: var(--muted); }
.promise { transition: border-color .25s ease, box-shadow .25s ease; }
.promise:hover, .who-card:hover { border-color: rgb(90 197 192 / .4); box-shadow: 0 1px 0 rgb(255 255 255 / .06) inset, 0 0 40px rgb(90 197 192 / .12); }
@media (max-width: 860px) { .promises { grid-template-columns: minmax(0, 1fr); } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; display: grid; gap: 10px; align-content: start; padding-top: 64px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font: 700 20px var(--display); background: var(--surface-2); color: var(--brand); box-shadow: 0 0 0 1px rgb(90 197 192 / .5) inset, 0 0 24px rgb(90 197 192 / .35); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: 58px; right: -16px; height: 2px; background: linear-gradient(90deg, var(--brand), transparent); }
.steps p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } .steps li:not(:last-child)::after { display: none; } }

/* report preview */
.preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.preview-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.preview-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
.preview-list .icon { color: var(--brand-deep); margin-top: 3px; }
.preview-list strong { display: block; font-family: var(--display); font-size: 18px; }
.preview-list span { color: var(--muted); }
.task-card { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; }
.task-card .tl { font: 800 13px/1 var(--display); letter-spacing: .12em; color: var(--brand-deep); }
.task-card h3 { font-size: 22px; }
.task-card .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--body); padding: 7px 11px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.chip { color: var(--primary); }
.chip.crit { background: var(--bad-bg); color: var(--bad); }
.task-card .why { color: var(--muted); font-size: 15.5px; }
.fixbox { background: var(--action-bg); border: 1px solid var(--action-line); border-radius: 12px; padding: 18px 20px; display: grid; gap: 10px; }
.fixbox h4 { color: var(--action); font-size: 16px; }
.fixbox ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15.5px; }
.fixbox .get { font-size: 15px; border-top: 1px dashed var(--action-line); padding-top: 10px; }
.fixbox .get b { color: var(--action); }
.url-diff { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; overflow-wrap: anywhere; }
.url-diff mark { background: rgb(90 197 192 / .2); color: #9fe6e2; padding: 0 2px; border-radius: 3px; }
@media (max-width: 960px) { .preview { grid-template-columns: minmax(0, 1fr); } }

/* AI search */
.ai { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.chat { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; }
.bubble { padding: 14px 16px; border-radius: 14px; font-size: 15.5px; }
.bubble.q { background: linear-gradient(135deg, #3b3f9e, #6a5ad8); color: #fff; box-shadow: 0 6px 24px rgb(139 124 246 / .35); justify-self: end; max-width: 85%; border-bottom-right-radius: 4px; }
.bubble.a { background: var(--bg-2); border: 1px solid var(--line); max-width: 92%; border-bottom-left-radius: 4px; }
.engines { display: flex; flex-wrap: wrap; gap: 8px; }
.engine { display: grid; grid-template-columns: auto auto; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; background: var(--surface); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.yes { background: var(--good); box-shadow: 0 0 10px var(--good); } .dot.no { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
@media (max-width: 960px) { .ai { grid-template-columns: minmax(0, 1fr); } }

/* audience */
.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.who-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .25s ease, box-shadow .25s ease; display: grid; gap: 8px; align-content: start; }
.who-card h3 { font-size: 18px; }
.who-card p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 960px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .who { grid-template-columns: minmax(0, 1fr); } }

/* comparison */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15.5px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 600 15px var(--display); background: var(--bg-2); }
.compare tbody th { font-weight: 600; color: var(--muted); }
.compare .us { background: rgb(90 197 192 / .1); font-weight: 600; box-shadow: 1px 0 0 rgb(90 197 192 / .35) inset, -1px 0 0 rgb(90 197 192 / .35) inset; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.yes-t { color: var(--good); } .no-t { color: var(--faint); }

/* pricing */
.billing { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); gap: 4px; margin-bottom: 32px; }
.billing button { min-height: 42px; padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 15px var(--body); cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); box-shadow: 0 0 0 1px rgb(90 197 192 / .45) inset, 0 0 18px rgb(90 197 192 / .2); }
.billing .save { font-size: 12.5px; color: var(--good); margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan.featured { border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--flow) border-box; box-shadow: 0 0 60px rgb(139 124 246 / .25), 0 0 30px rgb(90 197 192 / .2); }
.plan .tag { position: absolute; top: -13px; left: 26px; background: var(--flow); color: #06121f; box-shadow: 0 0 20px rgb(139 124 246 / .5); font: 700 12.5px/1 var(--body); padding: 7px 12px; border-radius: 999px; letter-spacing: .03em; }
.plan h3 { font-size: 22px; }
.plan .for { color: var(--muted); font-size: 15px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price .amt { font: 700 46px/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price .per { color: var(--muted); font-size: 15px; }
.price-note { font-size: 13.5px; color: var(--faint); min-height: 1.4em; margin-top: -10px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15.5px; }
.plan li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.plan li .icon { width: 18px; height: 18px; color: var(--brand-deep); margin-top: 4px; }
.plan .btn { margin-top: auto; width: 100%; }
.pricing-fine { margin-top: 28px; color: var(--muted); font-size: 15px; text-align: center; }
@media (max-width: 960px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin-inline: auto; } }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 600 17px var(--display); display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--body); color: var(--brand-deep); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 18px; color: var(--muted); display: grid; gap: 10px; }

/* final cta */
.final { position: relative; color: #fff; text-align: center; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line);
  background: radial-gradient(50% 80% at 50% 100%, rgb(139 124 246 / .3), transparent 70%), radial-gradient(40% 60% at 50% 100%, rgb(90 197 192 / .25), transparent 70%), var(--bg); }
.final::before { content: ""; position: absolute; z-index: -1; width: 900px; aspect-ratio: 1; left: 50%; top: 100%; translate: -50% -50%;
  background: url(mandala.svg) center / contain no-repeat; opacity: .3; animation: turn 300s linear infinite reverse;
  mask-image: radial-gradient(closest-side, transparent 30%, #000 60%, transparent 100%); }
.final .wrap { position: relative; padding-block: 104px; display: grid; gap: 18px; justify-items: center; }
.final p { color: var(--hero-muted); max-width: 56ch; font-size: 18px; }

/* footer */
.site-footer { padding-block: 44px; font-size: 14.5px; color: var(--muted); background: var(--bg); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }

/* simple pages (legal, start) */
.page { padding-block: 56px 88px; }
.page h1 { font-size: clamp(32px, 4.5vw, 44px); margin-bottom: 12px; }
.prose { display: grid; gap: 16px; }
.prose h2 { font-size: 24px; margin-top: 20px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.draft-note { background: var(--action-bg); border: 1px solid var(--action-line); color: var(--action); border-radius: 12px; padding: 14px 16px; font-size: 15px; }

/* sign-up form */
.signup { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
.form-card { border: 1px solid var(--line-strong); border-radius: 18px; padding: 28px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 15.5px; }
.field .help { font-size: 14px; color: var(--muted); }
.field input { min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: 16px var(--body); }
.field select { min-height: 48px; padding: 10px 40px 10px 14px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--ink); font: 16px var(--body); appearance: none;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235ac5c0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
.field select:focus, .field input:focus { border-color: var(--brand); outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 0; }
.field .err { color: var(--bad); font-size: 14px; min-height: 1.2em; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.plan-pick { display: grid; gap: 10px; }
.plan-pick label { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; font-weight: 500; }
.plan-pick label:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.plan-pick input { width: 18px; height: 18px; accent-color: var(--brand); }
.plan-pick .pp { font-family: var(--display); font-weight: 700; white-space: nowrap; }
.plan-pick .help { display: block; font-weight: 400; }
.form-msg { font-size: 15px; padding: 12px 14px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.form-msg[hidden] { display: none; }
.aside-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.aside-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }
.aside-list .icon { color: var(--brand-deep); margin-top: 2px; }
@media (max-width: 860px) { .signup { grid-template-columns: minmax(0, 1fr); } }

/* app pages (admin, manage) */
.app { padding-block: 36px 72px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.app h1 { font-size: clamp(28px, 4vw, 36px); }
.app h2 { font-size: 22px; }
.app .sub { color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 4px; }
.tile .lab { font-size: 14px; color: var(--muted); }
.tile .v { font: 700 30px/1.1 var(--display); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel { border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 14px; }
.panel h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.panel h2 small { font: 400 14px var(--body); color: var(--muted); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data th, .data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data th { font-weight: 600; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.data tr:last-child td { border-bottom: 0; }
.data .num { text-align: right; font-variant-numeric: tabular-nums; }
.data .small { font-size: 13px; color: var(--muted); }
.status { display: inline-block; font: 600 12.5px/1 var(--body); padding: 5px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
.status.active, .status.ok, .status.sent { background: var(--good-bg); color: var(--good); }
.status.trialing { background: rgb(90 197 192 / .14); color: var(--brand); }
.status.past_due, .status.failed { background: var(--bad-bg); color: var(--bad); }
.status.canceled, .status.paused, .status.logged { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--primary); font: 600 14px var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.linkbtn:disabled { color: var(--faint); cursor: default; }
.notice { padding: 14px 16px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.notice.err { background: var(--bad-bg); color: var(--bad); }
.chips-edit { display: grid; gap: 8px; }
.row-edit { display: flex; gap: 8px; }
.row-edit input { flex: 1; min-width: 0; }
.field textarea { min-height: 160px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: 15px/1.6 var(--body); resize: vertical; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.saved { color: var(--good); font-size: 14.5px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 15.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
#who { min-width: 0; overflow-wrap: anywhere; text-align: right; font-size: 14.5px; }
.kv dd { overflow-wrap: anywhere; min-width: 0; }
.panel h2 { overflow-wrap: anywhere; }
.data td { overflow-wrap: anywhere; }
@media (max-width: 560px) { .panel { padding: 18px 16px; } .data th, .data td { padding: 10px 8px; } }
.nw { white-space: nowrap; }
.page, .app { background: radial-gradient(50% 320px at 85% 0%, rgb(139 124 246 / .14), transparent), radial-gradient(40% 280px at 10% 0%, rgb(90 197 192 / .1), transparent); }
.steps p, .promise p, .who-card p, .sec-head p, .final p, .hero-fine, .pricing-fine, .why, .bubble, .plan .for, .price-note { text-wrap: balance; }
/* comparison table: equal columns and evenly broken lines */
table.compare { table-layout: fixed; }
.compare th, .compare td { text-wrap: balance; }
.compare thead th:first-child, .compare tbody th { width: 16%; }
.compare .th-logo { height: 17px; width: auto; display: block; }
.compare th, .compare td { vertical-align: middle; }
/* comparison table: one weight, one text colour; headings are small capitals so they stand apart without bold */
.compare th, .compare td, .compare .us { font-weight: 400; color: var(--ink); }
.compare thead th, .compare tbody th { font: 500 12.5px/1.4 var(--body); text-transform: uppercase; letter-spacing: .09em; color: var(--brand); }
.compare tbody th { color: var(--muted); }
.compare td { font-size: 16px; }
.when { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 16px; }
@media (max-width: 640px) { .when { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .when .field:last-child { grid-column: 1 / -1; } }
