/* Astra Space AI: astraspace.in
   Morph design. Light, single theme by choice. All colours and faces come from the tokens below. */
:root {
  --bg: #FBFCFC;
  --surface: #FFFFFF;
  --surface-2: #EEF3F2;
  --ink: #0B1312;
  --muted: #56655F;
  --line: #E1E8E6;
  --accent: #0FB5A6;          /* brand teal (logo star) */
  --accent-ink: #08877B;      /* teal dark enough for text on white */
  --warm: #F06A2C;            /* brand orange (logo companion star), slightly deepened for text */
  --on-accent: #FFFFFF;
  --btn: #0B1312;
  --on-btn: #FFFFFF;
  --band: #0B1312;
  --on-band: #EEF5F3;
  --wa: #25D366;

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Albert Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r: 16px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; color: var(--ink); }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn); color: var(--on-btn); padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

.in {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: 18px; max-width: 58ch; margin: 0 0 40px; color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 22px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.word { font-family: var(--f-display); font-weight: 700; letter-spacing: .16em; font-size: 17px; color: var(--accent-ink); white-space: nowrap; }
.word small { font-size: 10.5px; letter-spacing: .14em; color: var(--warm); margin-left: 6px; font-weight: 600; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 900px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 999px;
  padding: 12px 20px; font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1; white-space: nowrap;
  font-family: var(--f-body); transition: transform .15s ease, filter .15s, background .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--btn); color: var(--on-btn); }
.btn.accent { background: var(--accent); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface); }
.btn.sm { padding: 9px 15px; font-size: 14px; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- hero: form morphs into chat ---------- */
.hero { padding-block: 36px 88px; }
.hero .in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 1; letter-spacing: -.035em; font-weight: 800; margin: 18px 0 22px; }
.hero h1 .to { color: var(--accent); }
.clicks { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.clicks li {
  font-family: var(--f-mono); font-size: 12.5px; padding: 5px 10px; border-radius: 8px; background: var(--surface-2);
  color: var(--muted); position: relative; transition: opacity .3s;
}
.clicks li::after {
  content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; background: var(--warm);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.clicks li.x { opacity: .55; }
.clicks li.x::after { transform: scaleX(1); }
.hero p.sub { font-size: 19px; color: var(--muted); max-width: 48ch; margin: 0 0 28px; }
.morph { position: relative; min-height: 470px; }
.form-card, .chat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 30px 60px -36px rgba(11, 19, 18, .35); }
.form-card { position: absolute; left: 0; top: 0; width: 78%; padding: 18px; transition: transform .6s ease, opacity .6s ease; }
.form-card .ft { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.form-card .ft b { font-family: var(--f-display); color: var(--ink); font-size: 16px; }
.fld {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; font-size: 13px; color: var(--muted);
  display: flex; justify-content: space-between; overflow: hidden; max-height: 60px;
  transition: max-height .45s ease, opacity .35s ease, margin .45s ease, padding .45s ease, border-color .3s;
}
.fld i { font-style: normal; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink); }
.fld.gone { max-height: 0; opacity: 0; margin-bottom: 0; padding-block: 0; border-color: transparent; }
.form-card .submit { background: var(--surface-2); border-radius: 10px; padding: 10px; text-align: center; font-weight: 600; font-size: 14px; color: var(--muted); }
.clickcount { font-family: var(--f-mono); font-size: 12px; color: var(--warm); font-variant-numeric: tabular-nums; }
.chat-card { position: absolute; right: 0; bottom: 0; width: 74%; display: flex; flex-direction: column; overflow: hidden; }
.cc-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cc-head img { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.cc-head b { display: block; font-size: 14px; line-height: 1.2; font-family: var(--f-display); }
.cc-head span { font-size: 12px; color: var(--accent-ink); }
.cc-log { display: flex; flex-direction: column; gap: 7px; padding: 12px; min-height: 250px; }
.morph.done .form-card { transform: translate(-6%, -4%) scale(.92); opacity: .25; }
.example { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.morph .example { position: absolute; right: 0; bottom: -26px; }
@media (max-width: 900px) { .hero .in { grid-template-columns: 1fr; } .morph { min-height: 500px; } }
@media (max-width: 520px) { .form-card { width: 92%; } .chat-card { width: 90%; } }

/* ---------- chat bubbles ---------- */
.b { max-width: 86%; padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; animation: bin .35s ease both; overflow-wrap: anywhere; }
.b.g { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; }
.b.n { align-self: flex-start; background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 4px; }
.b .t { display: block; font-family: var(--f-mono); font-size: 9.5px; opacity: .65; margin-top: 2px; text-align: right; }
.b.sys { align-self: center; background: transparent; border: 1px dashed var(--line); color: var(--muted); font-size: 11.5px; font-family: var(--f-mono); border-radius: 999px; padding: 4px 10px; }
.b a { color: inherit; font-weight: 600; }
.b .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 7px 12px; border-radius: 999px; background: var(--btn); color: var(--on-btn); text-decoration: none; font-size: 13px; }
.b .go svg { width: 15px; height: 15px; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 11px 13px; background: var(--surface-2); border-radius: 14px; border-bottom-left-radius: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bin { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* ---------- sections ---------- */
.sec { padding-block: 96px; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec.band { background: var(--band); color: var(--on-band); border-top: 0; }
.sec.band h2, .sec.band h3 { color: var(--on-band); }
.sec.band .lede { color: color-mix(in srgb, var(--on-band) 72%, transparent); }
.sec.band .eyebrow { color: var(--accent); }
.sec h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; margin: 14px 0 16px; max-width: 20ch; }

/* channels */
.chan-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .chan-wrap { grid-template-columns: 1fr; } }
.points { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.points li::before { content: ""; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); background-image: radial-gradient(circle at 50% 50%, var(--accent) 0 4px, transparent 5px); }
.points b { display: block; font-family: var(--f-display); font-size: 17px; }
.points span { color: var(--muted); font-size: 15px; }
.chan-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chan-tabs button {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font-size: 14px; font-family: var(--f-body); font-weight: 600; position: relative; overflow: hidden;
}
.chan-tabs button svg { width: 16px; height: 16px; }
.chan-tabs button[aria-selected="true"] { border-color: var(--accent); background: var(--surface-2); }
.chan-tabs .prog { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--accent); width: 0; }
.chan-tabs button[aria-selected="true"] .prog { animation: prog 4.6s linear forwards; }
@keyframes prog { to { width: 100%; } }
.soon-dot { font-family: var(--f-mono); font-size: 9.5px; color: var(--warm); letter-spacing: .06em; }
.chan-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .4); min-height: 330px; display: flex; flex-direction: column; }
.ch-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ch-h svg { width: 20px; height: 20px; }
.ch-h .pill { margin-left: auto; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--muted); }
.ch-b { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ch-b .b { animation: none; }
.subject { font-weight: 600; font-size: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.wave { display: flex; align-items: center; gap: 3px; height: 44px; margin: 4px 0 8px; }
.wave i { flex: 1; max-width: 6px; border-radius: 3px; background: var(--accent); animation: wave 1.1s ease-in-out infinite; }
@keyframes wave { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.cap { font-size: 14.5px; line-height: 1.5; }
.cap b { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); font-weight: 500; display: block; }
.lang { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.lang span { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); }
.lang span[lang="hi"] { font-family: "Tiro Devanagari Hindi", serif; }
.lang .example { background: none; padding: 0; margin-left: auto; font-size: 10.5px; }

/* agent constellation */
.const { position: relative; margin-top: 8px; }
.const svg { width: 100%; height: auto; display: block; overflow: visible; }
.const .edge { stroke: color-mix(in srgb, var(--on-band) 18%, transparent); stroke-width: 1.5; fill: none; transition: stroke .3s, stroke-width .3s; }
.const .edge.on { stroke: var(--warm); stroke-width: 2.5; }
.const .sp circle { fill: var(--band); stroke: var(--accent); stroke-width: 2; transition: fill .3s, stroke .3s; }
.const .sp.on circle { fill: var(--warm); stroke: var(--warm); }
.const .br circle.b0 { fill: var(--accent); opacity: .18; }
.const .br circle.b1 { fill: var(--band); stroke: var(--accent); stroke-width: 2.5; }
.const .br.on circle.b1 { stroke: var(--warm); }
.const text { font-family: var(--f-body); fill: var(--on-band); }
.const text.nm { font-size: 14px; font-weight: 600; }
.const text.bn { font-size: 17px; font-weight: 700; font-family: var(--f-display); }
.const text.sub { font-family: var(--f-mono); font-size: 10.5px; fill: color-mix(in srgb, var(--on-band) 60%, transparent); letter-spacing: .04em; }
.const .core-ring { fill: none; stroke: var(--accent); stroke-opacity: .35; stroke-width: 1.5; transform-origin: center; transform-box: fill-box; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.const .pkt { fill: var(--warm); filter: drop-shadow(0 0 6px var(--warm)); }
.const-cap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; padding: 14px 18px;
  border-radius: var(--r); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
}
.const-cap .q { font-size: 15.5px; flex: 1 1 280px; min-width: 0; }
.const-cap .route { font-family: var(--f-mono); font-size: 12px; color: var(--warm); letter-spacing: .04em; }
.const-list { display: none; }
@media (max-width: 700px) { .const svg { display: none; } .const-list { display: grid; gap: 12px; } }
.const-list div { border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r); padding: 14px 16px; }
.const-list b { font-family: var(--f-display); font-size: 17px; }
.const-list ul { margin: 6px 0 0; padding-left: 18px; font-size: 14.5px; }
.guard-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.guard-row span { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); }

/* integrations marquee */
.mq { display: grid; gap: 12px; margin-top: 8px; overflow: hidden; padding-block: 4px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-row { display: flex; width: max-content; gap: 12px; animation: mq 46s linear infinite; }
.mq-row.rev { animation-direction: reverse; animation-duration: 54s; }
.mq:hover .mq-row, .mq:focus-within .mq-row { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(calc(-50% - 6px)); } }
.logo-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; transition: transform .2s, border-color .2s; }
.logo-chip:hover { transform: translateY(-2px); border-color: var(--accent); }
.logo-chip .lg { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.logo-chip .lg svg { width: 16px; height: 16px; }
.logo-chip .lg.lm { font-family: var(--f-mono); font-size: 10px; font-weight: 600; }
.logo-chip b { font-size: 14.5px; font-weight: 600; }
.logo-chip i { font-style: normal; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.logo-chip i.soon { color: var(--warm); }
.logo-chip i.model { color: var(--muted); }
.mq-legend { display: flex; gap: 18px; margin-top: 20px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.mq-legend .s { color: var(--warm); }

/* trust */
.sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 960px) { .sgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .sgrid { grid-template-columns: 1fr; } }
.scard { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.scard h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.scard p { margin: 0; font-size: 14.5px; color: color-mix(in srgb, var(--on-band) 70%, transparent); }
.demo { border-radius: calc(var(--r) - 6px); background: rgba(0, 0, 0, .25); padding: 12px; font-family: var(--f-mono); font-size: 12.5px; min-height: 118px; color: var(--on-band); overflow: hidden; position: relative; }
.demo .k { color: color-mix(in srgb, var(--on-band) 55%, transparent); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.scr { display: block; font-size: 14px; letter-spacing: .02em; min-height: 1.5em; word-break: break-all; }
.scr.enc { color: var(--accent); }
.lock-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11.5px; }
.lock-row svg { width: 14px; height: 14px; flex: none; }
.honest .b { font-family: var(--f-body); max-width: 100%; animation: none; }
.audit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.audit li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; animation: bin .3s ease both; font-size: 11.5px; }
.audit li span:first-child { opacity: .6; font-variant-numeric: tabular-nums; }
.appr { font-family: var(--f-body); font-size: 14px; }
.appr .st { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11px; color: var(--warm); margin-top: 6px; }
.appr .st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.appr .st.ok { color: var(--accent); }
.appr .st.ok::before { animation: none; }
@keyframes blink { 50% { opacity: .25; } }
.appr .acts { display: flex; gap: 6px; margin-top: 10px; }
.appr .acts button { border: 1px solid rgba(255, 255, 255, .2); background: transparent; border-radius: 8px; padding: 5px 10px; font-size: 12.5px; font-family: var(--f-body); font-weight: 600; color: var(--on-band); }
.appr .acts button.yes { background: var(--on-band); color: var(--band); border-color: transparent; }
.pc-msg { font-family: var(--f-body); font-size: 13.5px; line-height: 1.4; padding: 7px 10px; border-radius: 10px; border-bottom-right-radius: 3px; background: var(--accent); color: var(--on-accent); margin-left: auto; max-width: 92%; width: fit-content; animation: bin .3s ease both; }
.pc-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; font-size: 11.5px; }
.pc-steps li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start; opacity: .35; transition: opacity .3s; }
.pc-steps li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; margin-top: 1px; box-sizing: border-box; }
.pc-steps li.ok, .pc-steps li.no { opacity: 1; }
.pc-steps li.ok::before { content: "✓"; border: 0; background: var(--accent); color: #fff; font-size: 9px; display: grid; place-items: center; font-weight: 700; }
.pc-steps li.no::before { content: "✕"; border: 0; background: var(--warm); color: #fff; font-size: 9px; display: grid; place-items: center; font-weight: 700; }
.pc-steps li b { font-weight: 600; }
.pc-res { margin-top: 10px; font-family: var(--f-body); font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px; min-height: 2.2em; opacity: 0; transition: opacity .3s; }
.pc-res.show { opacity: 1; }
.pc-res.allow { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.pc-res.deny { background: color-mix(in srgb, var(--warm) 22%, transparent); color: #FF9A6B; }
.tenants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tenants div { border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; padding: 8px 6px; text-align: center; font-family: var(--f-body); font-size: 12px; }
.tenants svg { width: 16px; height: 16px; display: block; margin: 0 auto 4px; color: var(--accent); animation: keyspin 6s ease-in-out infinite; }
.tenants div:nth-child(2) svg { animation-delay: -2s; }
.tenants div:nth-child(3) svg { animation-delay: -4s; }
@keyframes keyspin { 0%, 80%, 100% { transform: rotate(0); } 88% { transform: rotate(-20deg); } 94% { transform: rotate(12deg); } }

/* pricing */
.pr-ctrl { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; background: var(--surface); max-width: 100%; overflow-x: auto; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--btn); color: var(--on-btn); }
.seg button em { font-style: normal; font-family: var(--f-mono); font-size: 10px; color: var(--warm); margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative; min-width: 0; transition: transform .2s, border-color .2s; }
.plan:hover { transform: translateY(-3px); border-color: var(--accent); }
.plan h3 { font-size: 18px; font-weight: 700; }
.plan .amt { font-family: var(--f-display); font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .amt small { font-family: var(--f-body); font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .bill { font-size: 12.5px; color: var(--muted); min-height: 2.6em; font-family: var(--f-mono); line-height: 1.4; }
.plan .bill s { opacity: .6; }
.plan .lead { font-size: 14.5px; font-weight: 600; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14px; color: var(--muted); flex: 1; align-content: start; }
.plan ul li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; }
.plan ul li::before { content: ""; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; border: 2px solid var(--accent); }
.plan ul li.plus { color: var(--ink); font-weight: 500; }
.plan ul li.plus::before { background: var(--accent); }
.plan .btn { justify-content: center; margin-top: 6px; }
.pr-foot { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* closing + contact */
.big { font-size: clamp(40px, 6.4vw, 92px); line-height: .98; letter-spacing: -.04em; font-weight: 800; font-family: var(--f-display); margin: 0 0 28px; max-width: 14ch; }
.big span { color: var(--accent); }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .ct-grid { grid-template-columns: 1fr; } }
.ct-list { display: grid; gap: 12px; }
.ct-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
@media (max-width: 560px) { .ct-item { grid-template-columns: 40px minmax(0, 1fr); } .ct-acts { grid-column: 1 / -1; } }
.ct-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-ink); }
.ct-ic svg { width: 22px; height: 22px; }
.ct-k { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ct-v { font-family: var(--f-display); font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ct-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.qr-card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); padding: 22px; display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 320px; justify-self: center; width: 100%; }
.qr-card img { width: 100%; max-width: 220px; height: auto; border-radius: 10px; background: #fff; padding: 8px; box-shadow: 0 0 0 1px var(--line); }
.qr-card b { display: block; font-family: var(--f-display); font-size: 17px; }
.qr-card span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

/* footer */
.programs { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-block: 28px; border-top: 1px solid var(--line); }
.programs .ours { display: flex; align-items: center; gap: 10px; }
.programs .ours img { width: 52px; height: 52px; border-radius: 12px; }
.programs .ours .word { font-size: 22px; }
.programs .divider { width: 1px; align-self: stretch; background: var(--line); }
.nv-badge { display: block; height: 48px; width: auto; }
.programs p { margin: 0; font-size: 13.5px; color: var(--muted); flex: 1 1 280px; min-width: 0; }
.foot { padding-block: 24px 110px; font-size: 13px; color: var(--muted); display: flex; gap: 8px 22px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.legal { font-size: 11.5px; line-height: 1.5; max-width: 110ch; margin: 4px 0 0; flex-basis: 100%; }

/* chat widget */
.dock { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.launcher { display: flex; align-items: center; gap: 10px; border: 0; background: var(--btn); color: var(--on-btn); padding: 7px 16px 7px 7px; border-radius: 999px; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .5); font-family: var(--f-body); font-weight: 600; font-size: 14.5px; position: relative; }
.launcher img { width: 34px; height: 34px; border-radius: 50%; }
.launcher::after { content: ""; position: absolute; left: 7px; top: 7px; width: 34px; height: 34px; border-radius: 50%; animation: ping 2.6s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.panel { width: min(380px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5); display: flex; flex-direction: column; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); }
.p-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.p-head img { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.p-head b { display: block; font-size: 14.5px; line-height: 1.2; font-family: var(--f-display); }
.p-head span { font-size: 12px; color: var(--muted); }
.p-head .x { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; padding: 2px 6px; }
.p-log { display: flex; flex-direction: column; gap: 7px; padding: 12px; overflow-y: auto; min-height: 160px; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.chips button { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 6px 11px; font-size: 12.5px; font-family: var(--f-body); }
.chips button:hover { border-color: var(--accent); }
.p-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.p-form input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; }
.p-form button { border: 0; background: var(--btn); color: var(--on-btn); border-radius: 10px; padding: 0 14px; font-weight: 600; font-family: var(--f-body); }
.p-foot { padding: 0 14px 10px; font-size: 11.5px; color: var(--muted); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); top: calc(76px + env(safe-area-inset-top, 0px)); z-index: 60; background: var(--btn); color: var(--on-btn); padding: 10px 16px; border-radius: 12px; font-size: 14px; max-width: calc(100% - 32px); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); }

/* 404 */
.nf { min-height: 70vh; display: grid; align-content: center; gap: 18px; padding-block: 64px; }
.nf h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.03em; font-weight: 800; line-height: 1.02; }
.nf p { color: var(--muted); font-size: 18px; margin: 0; max-width: 50ch; }

@media (prefers-reduced-motion: reduce) {
  .b, .audit li, .pc-msg { animation: none; }
  .typing i, .wave i, .launcher::after, .const .core-ring, .tenants svg, .appr .st::before { animation: none; }
  .mq-row { animation: none; flex-wrap: wrap; width: auto; }
  .mq-row .dup { display: none; }
  .chan-tabs button[aria-selected="true"] .prog { animation: none; width: 100%; }
  .btn, .plan, .logo-chip { transition: none; }
}
