/* Public site: landing, pricing, docs, legal, login. Builds on tokens.css. */

.gut { padding-inline: max(16px, 4vw); }
.max { max-width: 1240px; margin-inline: auto; }
main:focus { outline: none; }
html { scroll-padding-top: 80px; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.site-links { display: flex; gap: 22px; font-size: 14.5px; color: var(--ink-2); }
.site-links a { text-decoration: none; padding: 6px 0; }
.site-links a:hover, .site-links a[aria-current="page"] { color: var(--ink); }
.site-links a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--ink); font-weight: 600; }
.site-nav-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site-signin { font-size: 14.5px; text-decoration: none; color: var(--ink-2); padding: 8px 6px; }
.site-signin:hover { color: var(--ink); }
.site-menu {
  display: none; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); cursor: pointer; place-items: center;
}
.site-menu svg { width: 22px; height: 22px; }
.site-menu .close { display: none; }
.site-menu[aria-expanded="true"] .open { display: none; }
.site-menu[aria-expanded="true"] .close { display: inline; }
.site-menu-panel {
  position: absolute; left: 12px; right: 12px; top: 68px; padding: 10px;
  background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.site-menu-panel nav { display: grid; }
.site-menu-panel nav a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.site-menu-panel nav a:hover { background: var(--sunken); }
.site-menu-foot { display: grid; gap: 12px; margin-top: 8px; padding: 12px 4px 4px; border-top: 1px solid var(--line); }
.site-menu-theme { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; color: var(--ink-2); font-size: 14px; }
@media (max-width: 900px) {
  .site-links, .site-signin, .site-nav-r > .theme-toggle { display: none; }
  .site-menu { display: grid; }
  .site-nav-in { gap: 12px; }
}
@media (max-width: 420px) { .site-cta { display: none; } }
@media (min-width: 901px) { .site-menu-panel { display: none !important; } }

.site-flash { padding-top: 12px; }
.site-flash-item { margin: 0 auto 8px; padding: 10px 14px; border-radius: 10px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.site-flash-item.is-danger { background: var(--risk-bg); color: var(--risk); }

/* ---------- footer ---------- */
.site-foot { position: relative; isolation: isolate; border-top: 1px solid var(--line); padding-block: 28px clamp(96px, 11vw, 150px); font-size: 14px; color: var(--ink-2); }
/* a low edge of cloud tops along the bottom of the page (same file darkened in dark mode) */
.site-foot::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/sky/cloud-edge.webp") center bottom / max(100%, 1100px) auto no-repeat; filter: var(--clouds-filter); }
.site-foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.site-foot .brand { font-size: 16px; }
.site-foot .brand svg { width: 24px; height: 24px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-foot nav a { text-decoration: none; padding: 10px 0; }
.site-foot nav a:hover { color: var(--ink); }
.site-foot-fine { margin: 0 0 0 auto; font-family: var(--sans); font-size: 12px; color: var(--ink-3); }
@media (max-width: 760px) { .site-foot-fine { margin-left: 0; flex-basis: 100%; } }

/* ---------- shared section chrome ---------- */
.blk { padding-block: clamp(72px, 10vw, 128px); }
.blk.tight { padding-top: 0; }
/* Section header: the title with its paragraph directly underneath, one column. */
.head { display: grid; gap: 18px; max-width: 760px; margin-bottom: 48px; }
.head p { color: var(--ink-2); font-size: 18px; margin: 0; max-width: 58ch; }
/* .flip mirrors a section's two-column content; phones keep one column. */
@media (min-width: 861px) {
  .flip .kept { justify-content: flex-end; }
  .h .nowrap { white-space: nowrap; }
}
@media (min-width: 961px) {
  .flip .acc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .flip .acc > :first-child { order: 2; }
}
h2.h { font-size: clamp(34px, 4.6vw, 60px); line-height: 1; letter-spacing: -.045em; font-weight: 750; margin: 10px 0 0; text-wrap: balance; }
.stroke { position: relative; white-space: nowrap; z-index: 0; }
.stroke::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .1em; height: max(2px, .045em); z-index: -1;
  background: currentColor; transform-origin: left center;
  animation: draw 1.1s .35s var(--ease) both;
}
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.panel { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: 20px 22px; }
.soon { font: 500 11px var(--sans); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }

/* ---------- landing hero ---------- */
.hero { position: relative; padding-block: 56px 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
h1.display { font-size: clamp(40px, calc((100vw - 240px) * .062), 76px); line-height: .92; letter-spacing: -.055em; font-weight: 800; margin: 22px 0; text-wrap: balance; }
/* Sized so the longest word, "remembered.", fits its column: the hero column on desktop, the full width below 980px. */
@media (max-width: 980px) { h1.display { font-size: clamp(36px, calc((100vw - 32px) / 7.4), 84px); } }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 36ch; margin: 0 0 30px; line-height: 1.5; }
.lede strong { color: var(--ink); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.stage { position: relative; aspect-ratio: 1.08 / 1; width: 100%; min-height: 340px; }
@media (max-width: 980px) { .stage { aspect-ratio: auto; height: min(118vw, 560px); } }
.brain-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.brain-canvas:active { cursor: grabbing; }
.src {
  position: absolute; left: 0; top: 0; transform: translateY(-50%);
  display: flex; align-items: center; gap: 8px; padding: 3px 9px 3px 5px; border-radius: 999px;
  font: 11.5px var(--sans); color: var(--ink-2); white-space: nowrap; pointer-events: none; will-change: transform;
  background: color-mix(in srgb, var(--paper) 78%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.src i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--line); }
.src.later { color: var(--ink-3); }
.src.later i { opacity: .6; }
.src small { font-size: 10.5px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; }
.ask { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); width: min(440px, 92%); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; pointer-events: none; }
.q { display: flex; align-items: center; gap: 10px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); border-radius: 14px; padding: 12px 14px; font-size: 15px; min-height: 48px; }
.q svg { flex: none; width: 17px; height: 17px; color: var(--ink-3); }
/* the caret follows the typed text; a long query scrolls left like a real input */
.q .qline { flex: 1; min-width: 0; display: flex; align-items: center; }
.q .txt { flex: 0 1 auto; min-width: 0; white-space: pre; overflow: hidden; }
.q .cmd { font: 13px var(--mono); color: var(--ink-3); }
.caret { flex: none; display: inline-block; width: 2px; height: 1.1em; background: var(--ink); vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.q .topic { font: 10.5px var(--sans); color: var(--paper); background: var(--ink); padding: 2px 7px; border-radius: 999px; white-space: nowrap; transition: opacity .3s; }
.res { display: grid; gap: 8px; }
.res-card { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: 11px 14px; font-size: 14px; line-height: 1.45; transition: opacity .45s, transform .45s var(--ease); }
.res-card.off { opacity: 0; transform: translateY(8px); }
.res-card .stamp { margin-bottom: 4px; font-size: 11px; }
@media (max-width: 560px) { .res .res-card:nth-child(n+2) { display: none; } .ask { bottom: 2%; } .q .topic { display: none; } }

/* ---------- sky: tonal gradient, contour lines and a photographic cloud bank ---------- */
:root { --sky-top: #FFFFFF; --sky-mid: #EDEDED; --sky-low: #F4F4F4; --contour: rgba(10, 10, 10, .05); --clouds-filter: brightness(1.12) contrast(1.05); --mountains-filter: none; }
:root[data-theme="dark"] { --sky-top: #0A0A0A; --sky-mid: #161616; --sky-low: #101010; --contour: rgba(245, 245, 245, .045); --clouds-filter: brightness(.2) contrast(1.15); --mountains-filter: brightness(.45) contrast(1.15); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --sky-top: #0A0A0A; --sky-mid: #161616; --sky-low: #101010; --contour: rgba(245, 245, 245, .045); --clouds-filter: brightness(.2) contrast(1.15); --mountains-filter: brightness(.45) contrast(1.15); } }
.hero { isolation: isolate; }
.sky { position: absolute; inset: -64px 0 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 58%, var(--sky-low) 86%, var(--paper) 100%); }
.sky-defs { position: absolute; width: 0; height: 0; }
/* Contour lines sit under the clouds (z-index 0 vs 1) and fade out toward the bottom, where the cloud bank is,
   so they never show through its thinner edges. Masks: the line art, a horizontal fade, a vertical fade. */
.contours { position: absolute; inset: 0; z-index: 0; background: var(--contour);
  --fade-x: linear-gradient(90deg, rgba(0, 0, 0, .3), #000 60%);
  --fade-y: linear-gradient(#000 35%, transparent 72%);
  -webkit-mask: url("../img/sky-contours.svg") center / cover no-repeat, var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in, source-in;
  mask: url("../img/sky-contours.svg") center / cover no-repeat, var(--fade-x), var(--fade-y);
  mask-composite: intersect; }
@media (max-width: 980px) { .contours { --fade-x: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)); -webkit-mask-position: 70% 0, 0 0, 0 0; mask-position: 70% 0, 0 0, 0 0; } }
/* A photographic cloud bank (transparent WebP, grayscale). The back copy is mirrored, higher and fainter for depth;
   both fade out at the bottom into the page. Dark mode dims the same photo into night cloud. */
.clouds { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 62%;
  background: url("../img/sky/clouds.webp") center bottom / max(100%, 1100px) auto no-repeat;
  filter: var(--clouds-filter);
  -webkit-mask: linear-gradient(to bottom, #000 72%, transparent); mask: linear-gradient(to bottom, #000 72%, transparent); }
.clouds-back { bottom: 14%; height: 58%; transform: scaleX(-1); opacity: .45; }
@media (max-width: 980px) { .clouds { height: 38%; background-size: max(100%, 900px) auto; } .clouds-back { display: none; } }
.sky-final { inset: 0; background: linear-gradient(180deg, var(--surface) 0%, var(--sky-mid) 100%); }
.sky-final .clouds { z-index: 2; height: 45%; background-position: 70% bottom; opacity: .9; }
/* mountains rise behind the steps on the right; their base sinks into the panel's cloud bank */
.sky-final .mountains { position: absolute; z-index: 1; right: -2%; top: 0; bottom: 0; width: min(68%, 1000px);
  background: url("../img/sky/mountains.webp") right 70% / cover no-repeat; filter: var(--mountains-filter); }
@media (max-width: 900px) { .sky-final .mountains { width: 100%; right: 0; top: auto; height: 250px; background-position: 85% 70%; background-size: cover; } }
@media (forced-colors: active) { .sky { display: none; } }

/* ---------- source strip ---------- */
.strip { border-block: 1px solid var(--line); padding-block: 18px; }
.strip-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; font-size: 15px; color: var(--ink-2); }
.strip-in .lab { font: 12px var(--sans); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.strip-in .p { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink); }
.strip-in .p i { width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.strip-in .p.later { color: var(--ink-2); font-weight: 500; }
.strip-in .plat::before { width: 18px; height: 18px; }
.strip-in .ans { margin-left: auto; }
@media (max-width: 760px) { .strip-in .ans { margin-left: 0; } }

/* ---------- how it works ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; }
@media (max-width: 900px) { .flow { grid-template-columns: minmax(0, 1fr); } .flow .arrow { transform: rotate(90deg); margin: 8px auto; } }
.chat { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: 18px 20px; }
.chat-top { display: flex; justify-content: space-between; font: 12px var(--sans); color: var(--ink-3); padding-bottom: 12px; border-bottom: 1px dashed var(--line); margin-bottom: 12px; }
.msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; padding: 7px 0; }
.av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 600 13px var(--sans); color: var(--paper); background: var(--ink-2); }
.who { font-size: 13.5px; font-weight: 600; }
.who time { font: 11px var(--sans); color: var(--ink-3); margin-left: 8px; }
.msg p { grid-column: 2; margin: 0; font-size: 15px; }
.msg.noise p { color: var(--ink-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 60%, transparent); }
/* kept phrases: bold with a 1px rule that draws in */
.hlk { font-weight: 650; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 1px; }
.flow.play .hlk { animation: sweep 1s var(--ease) both; }
.flow.play .hlk.d2 { animation-delay: .5s; }
.flow.play .hlk.d3 { animation-delay: 1s; }
@keyframes sweep { from { background-size: 0 1px; } to { background-size: 100% 1px; } }
.arrow { display: grid; place-items: center; color: var(--ink-3); }
.arrow svg { width: 44px; height: 44px; }
.record { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: 22px 22px 18px; }
.record .kind { display: inline-block; font: 11px var(--sans); letter-spacing: .08em; background: var(--ink); color: var(--paper); padding: 3px 8px; border-radius: 6px; margin-bottom: 12px; }
.record .sum { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.35; letter-spacing: -.015em; margin: 0 0 16px; font-weight: 550; }
.record dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0; border-top: 1px solid var(--line); padding-top: 14px; }
.record dt { font: 11.5px var(--sans); color: var(--ink-3); padding-top: 1px; }
.record dd { margin: 0; font: 12.5px var(--sans); }
.kept { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.kept b { color: var(--ink); }

/* ---------- ask anywhere ---------- */
.any { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
@media (max-width: 960px) { .any { grid-template-columns: minmax(0, 1fr); } }
.convo { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: 22px; display: grid; gap: 14px; align-content: start; }
.convo-top { display: flex; justify-content: space-between; font: 12px var(--sans); color: var(--ink-3); }
.bub { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: 15px; }
.bub.me { justify-self: end; background: var(--sunken); border-bottom-right-radius: 6px; font-family: var(--mono); font-size: 14px; }
.bub.ai { padding: 14px 16px; max-width: 100%; box-shadow: inset 2px 0 0 var(--ink); border-radius: 2px 12px 12px 2px; background: var(--sunken); }
.bub.ai .t { font-weight: 600; margin-bottom: 6px; display: block; }
.cite { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 5px; font: 500 10.5px var(--sans); background: var(--ink); color: var(--paper); border-radius: 5px; vertical-align: 2px; margin-left: 2px; }
.surfaces { display: grid; gap: 12px; align-content: start; }
.surf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 16px 18px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.surf .dot { grid-row: span 2; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.surf .dot svg { width: 18px; height: 18px; }
.surf b { font-size: 15.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.surf code { font-size: 12.5px; color: var(--ink-2); background: none; box-shadow: none; padding: 0; }
.surf span.d { font-size: 14px; color: var(--ink-2); }

/* ---------- privacy facts ---------- */
.acc { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px; align-items: start; }
@media (max-width: 960px) { .acc { grid-template-columns: minmax(0, 1fr); } }
.cmds { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); overflow: hidden; }
.cmds-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cmds-top span { font: 12px var(--sans); color: var(--ink-3); }
.cmd-row { display: grid; grid-template-columns: minmax(150px, auto) minmax(0, 1fr); gap: 4px 18px; align-items: baseline; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.cmd-row:last-child { border-bottom: 0; }
.cmd-row code { font-size: 13px; background: none; box-shadow: none; padding: 0; color: var(--ink); font-weight: 500; }
.cmd-row span { color: var(--ink-2); }
@media (max-width: 520px) { .cmd-row { grid-template-columns: minmax(0, 1fr); } }
.facts { display: grid; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fact svg { width: 20px; height: 20px; color: var(--ink); margin-top: 3px; }
.fact b { display: block; font-size: 16px; }
.fact span { color: var(--ink-2); font-size: 14.5px; }

/* ---------- plans (landing + pricing) ---------- */
/* ---------- pricing: hero on the sky, three tiers with the popular one inverted ---------- */
.pricing-hero { position: relative; isolation: isolate; text-align: center; padding-block: clamp(56px, 8vw, 104px) clamp(88px, 11vw, 140px); }
.pricing-hero h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: .96; letter-spacing: -.055em; font-weight: 800; margin: 14px auto 18px; max-width: 14ch; text-wrap: balance; }
.pricing-hero p { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 54ch; margin: 0 auto; }
.pricing-hero .stamp { justify-content: center; margin-top: 20px; }
.pricing-hero .sky { inset: -64px 0 0; }
.pricing-hero .clouds { height: 70%; }
.tiers-wrap { position: relative; z-index: 1; margin-top: clamp(-72px, -6vw, -40px); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); max-width: 1100px; margin: 0 auto; align-items: stretch; }
@media (max-width: 900px) { .tiers { grid-template-columns: minmax(0, 1fr); max-width: 520px; row-gap: 30px; } }
.tier { position: relative; display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 2.6vw, 34px); border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -24px rgba(0, 0, 0, .25); color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.tier:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 26px 50px -26px rgba(0, 0, 0, .3); }
.tier header h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.tier header p { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); min-height: 2.9em; }
.tier-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.tier-price strong { font-size: clamp(48px, 5vw, 64px); line-height: 1; letter-spacing: -.05em; font-weight: 800; font-variant-numeric: tabular-nums; }
.tier-price span { font-size: 14px; color: var(--ink-2); }
.tier form { margin: 0; }
.tier .tier-cta { width: 100%; min-height: 50px; white-space: normal; text-align: center; line-height: 1.25; }
/* A status, not a control: full-contrast text in an outline, never styled as a disabled button. */
.tier-current { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; margin: 0; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font-weight: 600; font-size: 15px; text-align: center; line-height: 1.25; }
.tier-current svg { width: 16px; height: 16px; flex: none; }
.tier-current-note { font-weight: 500; font-size: 14.5px; }
.pricing-hero .pricing-current { margin-top: 14px; font-size: 15px; }
.tier-list { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 14.5px; }
.tier-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; }
.tier-list svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--sunken); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.tier-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong), 0 6px 16px -8px rgba(0, 0, 0, .35); }
/* The popular tier is inverted: a black card in light mode, a white card in dark mode. Tokens are
   redefined locally so buttons, lines and text inside it all flip together. */
.tier.featured { background: var(--tier-bg); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .55); transform: translateY(-14px); }
.tier.featured:hover { transform: translateY(-18px); box-shadow: 0 36px 70px -28px rgba(0, 0, 0, .6); }
@media (max-width: 900px) { .tier.featured { transform: none; } .tier.featured:hover { transform: translateY(-4px); } }
.tier.featured { --tier-bg: #0A0A0A; --ink: #F5F5F5; --ink-2: #B5B5B5; --ink-3: #8F8F8F; --line: #2A2A2A; --line-strong: #737373; --sunken: #1C1C1C;
  --btn: #F5F5F5; --on-btn: #0A0A0A; --sweep: #0A0A0A; --sweep-soft: #262626; --paper: #0A0A0A; }
:root[data-theme="dark"] .tier.featured { --tier-bg: #F5F5F5; --ink: #0A0A0A; --ink-2: #525252; --ink-3: #636363; --line: #E0E0E0; --line-strong: #858585; --sunken: #EDEDED;
  --btn: #0A0A0A; --on-btn: #FFFFFF; --sweep: #FFFFFF; --sweep-soft: #E5E5E5; --paper: #F5F5F5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .tier.featured { --tier-bg: #F5F5F5; --ink: #0A0A0A; --ink-2: #525252; --ink-3: #636363; --line: #E0E0E0; --line-strong: #858585; --sunken: #EDEDED;
  --btn: #0A0A0A; --on-btn: #FFFFFF; --sweep: #FFFFFF; --sweep-soft: #E5E5E5; --paper: #F5F5F5; } }
.tier.featured .tier-badge { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tiers-note { text-align: center; margin: 28px 0 0; font-size: 13.5px; color: var(--ink-3); }
.compare-wrap .compare { text-align: center; }
.compare-wrap .compare > p { margin-inline: auto; max-width: 64ch; }
.compare-wrap .table-wrap { max-width: 1100px; margin: 24px auto 0; text-align: left; }
.compare-wrap .compare { margin-top: 64px; }
.compare .note { margin-top: 10px; }
.faq-title { font-size: 26px; letter-spacing: -.02em; margin: 64px 0 0; }
.faq-title + .faq { margin-top: 18px; }

/* ---------- final CTA: an inverted panel with a few ledger ticks ---------- */
.final { padding-block: clamp(72px, 10vw, 128px) clamp(48px, 6vw, 80px); }
.final-panel {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 620px);
  align-content: center; min-height: clamp(560px, 46vw, 680px); padding: clamp(32px, 5vw, 64px); border-radius: 24px;
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
}
.final-panel .eyebrow { color: var(--ink-3); }
.final-title { font-size: clamp(40px, 6vw, 80px); line-height: .95; letter-spacing: -.05em; font-weight: 800; margin: 14px 0 18px; text-wrap: balance; }
.final-title span { box-shadow: inset 0 -.07em 0 var(--ink); }
.final-copy p { font-size: 18px; color: var(--ink-2); margin: 0 0 28px; max-width: 42ch; }
.final-steps { list-style: none; margin: 40px 0 0; padding: 20px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  border-top: 1px solid var(--line); }
@media (max-width: 640px) { .final-steps { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; } }
.final-steps li { display: grid; gap: 6px; align-content: start; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 640px) { .final-steps li { grid-template-columns: 36px minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--line); } .final-steps li:last-child { border-bottom: 0; } }
.final-steps b { font: 500 12px var(--sans); color: var(--ink-3); }
.final-steps strong { display: block; color: var(--ink); font-weight: 600; }
.final-steps code { font-size: .92em; }
/* a strip of ledger ticks along the top edge: faint chatter with a few kept marks */
.final-ticks { position: absolute; inset: 0 0 auto; height: 44px; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 17px, var(--line-strong) 17px 18px, transparent 18px 31px, var(--line) 31px 32px, transparent 32px 46px);
  -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent); }
.final-ticks i { position: absolute; top: 0; width: 2px; height: 30px; background: var(--ink); opacity: .9; }
.final-ticks i:nth-child(1) { left: 12%; } .final-ticks i:nth-child(2) { left: 31%; height: 22px; opacity: .6; }
.final-ticks i:nth-child(3) { left: 58%; } .final-ticks i:nth-child(4) { left: 74%; height: 18px; opacity: .5; }
.final-ticks i:nth-child(5) { left: 91%; }
/* the pricing page's closing row */
.final-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.final-row p { font-size: 20px; color: var(--ink-2); max-width: 40ch; margin: 0; }
@media (max-width: 900px) { .final-panel { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: 230px; border-radius: 18px; } }

/* ---------- inner pages (pricing, docs, legal) ---------- */
.page-head { padding-block: 64px 36px; }
.page-head h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: .98; letter-spacing: -.05em; font-weight: 800; margin: 14px 0 16px; text-wrap: balance; }
.page-head p { font-size: 19px; color: var(--ink-2); max-width: 56ch; margin: 0; }
.page-head .stamp { margin-top: 18px; }

.compare { margin-top: 56px; }
.compare h2 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 6px; }
.compare > p { color: var(--ink-2); margin: 0 0 18px; }
.compare .table td:not(:first-child), .compare .table th:not(:first-child) { text-align: center; }
.compare .no { color: var(--ink-3); }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; margin-top: 56px; }
.faq h3 { font-size: 16px; margin: 0 0 4px; }
.faq p { margin: 0; color: var(--ink-2); font-size: 15px; }
.faq > div { padding: 16px 0; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .faq { grid-template-columns: minmax(0, 1fr); } }

.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-bottom: 96px; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .toc { display: none; } }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14px; }
.toc p { font: 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.toc a { display: block; color: var(--ink-2); text-decoration: none; padding: 6px 0 6px 12px; border-left: 1px solid var(--line); }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.prose { max-width: 72ch; }
.prose > section { padding-top: 16px; margin-bottom: 40px; }
.prose h2 { font-size: 26px; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 12px; text-wrap: balance; }
.prose h3 { font-size: 17px; margin: 24px 0 6px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin: 0 0 14px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--ink); }
.prose .legal-note { font-size: 14px; padding: 12px 14px; border-radius: 10px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); margin-bottom: 28px; }
.numbered { list-style: none; padding: 0 !important; counter-reset: s; display: grid; gap: 4px; }
.numbered li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); margin: 0 !important; }
.numbered li::before { content: counter(s, decimal-leading-zero); font: 600 12px var(--sans); color: var(--ink); padding-top: 4px; }
.pipeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 8px; }
@media (max-width: 640px) { .pipeline { grid-template-columns: minmax(0, 1fr); } }
.pipeline div { padding: 14px 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pipeline .n { font: 600 11.5px var(--sans); color: var(--ink); }
.pipeline b { display: block; margin: 2px 0 2px; }
.pipeline span:last-child { font-size: 14px; color: var(--ink-2); }
.cmd-table { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); overflow: hidden; margin: 8px 0 14px; }

/* ---------- sign-in ---------- */
.provider-list { list-style: none; margin: 18px 0 14px; padding: 0; display: grid; gap: 10px; }
.provider-btn { justify-content: center; gap: 10px; }
.provider-btn .plat { color: inherit; }
.provider-btn .plat::before { width: 14px; height: 14px; }
.not-configured { display: block; margin-top: 4px; text-align: center; font: 11.5px var(--sans); color: var(--ink-3); }
.login-note { font-size: 14px; }
.login-fine { font-size: 12.5px; color: var(--ink-3) !important; }
.stack-form { display: grid; gap: 16px; margin-top: 18px; }
.stack-form .help { font-size: 12.5px; color: var(--ink-3); }
.stack-form .error { font-size: 13px; color: var(--risk); font-weight: 600; }
.stack-form .optional { font-weight: 400; color: var(--ink-3); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--risk); }

/* ---------- login ---------- */
.login-wrap { min-height: calc(100vh - 64px - 120px); display: grid; place-items: center; padding-block: 56px; }
.login-card { width: min(460px, 100%); padding: 28px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.login-card h1 { font-size: 30px; letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 10px; }
.login-card p { color: var(--ink-2); margin: 0 0 16px; }
.login-card .kv { display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; background: var(--sunken); margin: 0 0 18px; overflow-wrap: anywhere; }
.login-card .kv b { font-size: 13px; }
.login-card .kv code { background: none; box-shadow: none; padding: 0; font-size: 12.5px; }

@media (prefers-reduced-motion: reduce) {
  .stroke::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* code samples in the docs (API & MCP) */
.prose pre.code { margin: 0 0 16px; padding: 12px 14px; overflow-x: auto; border-radius: 10px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); font: 13px/1.55 var(--mono); color: var(--ink); white-space: pre; }
.prose pre.code code { background: none; box-shadow: none; padding: 0; font: inherit; color: inherit; }
.prose pre.code:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Slack install consent */
.consent { padding-bottom: 64px; }
.consent > * { max-width: 72ch; }
.consent-form { display: grid; gap: 18px; justify-items: start; margin-top: 8px; padding: 20px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.consent-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; color: var(--ink); cursor: pointer; }
.consent-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.consent-check a { color: var(--ink); }
.consent-error { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: var(--risk-bg); color: var(--risk); font-weight: 500; }
.consent-note { color: var(--ink-2); }
/* Two columns on wide screens: the explanation, and a sticky install card. */
.consent-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 56px; align-items: start; }
.consent-split > * { max-width: none; }
.consent-split .prose { max-width: 66ch; }
@media (max-width: 960px) { .consent-split { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.install-card { position: sticky; top: 96px; overflow: hidden; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 960px) { .install-card { position: static; } }
/* The two marks joined by a dotted link, on a halftone field (same art as the dashboard corners). */
.install-visual { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 40px 24px; border-bottom: 1px solid var(--line); background: var(--sunken); }
.install-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--ink) 14%, transparent);
  -webkit-mask: url("../img/halftone-top-right.svg") right top / 300px no-repeat; mask: url("../img/halftone-top-right.svg") right top / 300px no-repeat; }
.install-mark { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 18px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px color-mix(in srgb, var(--ink) 10%, transparent); }
.install-mark img { width: 36px; height: 36px; }
.install-link { display: flex; gap: 6px; }
.install-link i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: install-pulse 1.6s ease-in-out infinite; }
.install-link i:nth-child(2) { animation-delay: .2s; }
.install-link i:nth-child(3) { animation-delay: .4s; }
@keyframes install-pulse { 0%, 100% { opacity: .25; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .install-link i { animation: none; opacity: .6; } }
.install-body { display: grid; gap: 16px; padding: 22px 24px 24px; }
.install-body h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.install-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.install-steps li { counter-increment: step; display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: baseline; font-size: 15px; color: var(--ink-2); }
.install-steps li::before { content: counter(step); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font: 600 11.5px var(--sans); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); transform: translateY(3px); }
.install-steps b { color: var(--ink); font-weight: 600; }
.install-label { margin: 4px 0 -6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.install-scopes { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.install-scopes li { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: baseline; }
.install-scopes li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--ok); transform: translateY(-1px); }
.install-form { display: grid; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.install-button { justify-self: stretch; justify-content: center; }
.install-body .consent-note { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.consent-title { margin: 0; font-size: 20px; }
.consent-form p { margin: 0; color: var(--ink-2); }
.consent-fieldset { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; border: 0; }
.consent-fieldset legend { width: 100%; margin-bottom: 6px; padding: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.consent-radio { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; color: var(--ink); cursor: pointer; }
.consent-radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.consent-field { display: grid; gap: 6px; width: 100%; max-width: 420px; }
.consent-field span { font-size: 13px; font-weight: 600; color: var(--ink); }
.consent-field input { min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; box-shadow: inset 0 0 0 1px var(--line-strong); }
.consent-field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

/* 404: the mountain sits on top of the card */
.lost-card { width: min(520px, 100%); overflow: hidden; }
.lost-art { line-height: 0; margin: -28px -28px 6px; }
.lost-art img { width: 100%; height: auto; }
