/* AstroChat app page on mantrasapp.com/astrochat/ — copied from the AstroChat
   repo's website/assets/css/site.css; kept separate from the Mantras site.css.
   AstroChat marketing site — one hand-written stylesheet.
   Two grounds, as in the app: night (navy, lavender copy, yellow accent) and
   day (lavender-white, navy copy, indigo accent). Mobile first. */

:root {
  --night: #161B48;
  --night-deep: #171C3B;
  --night-text: #ADB1FF;
  --yellow: #F8EF7A;
  --indigo: #4F58FF;
  --indigo-soft: #7C83FF;
  --lip: #3D47FF;
  --day: #EFEFFF;
  --surface: #FFFFFF;
  --ink: #171C3B;
  --muted: #5A5D7E;           /* #6E7191 darkened a step for AA on the day ground */
  --muted-raw: #6E7191;
  --green: #1C9900;
  --star: #FED500;
  --user-ink: #4245FF;
  --border: #D6D6E8;
  --error: #D93A40;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(23, 28, 59, .06), 0 8px 24px rgba(23, 28, 59, .07);
  --font: "Plus Jakarta Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6;
  color: var(--ink); background: var(--night-deep); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.75rem, 4.4vw, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.day :focus-visible { outline-color: var(--indigo); }
code, pre, kbd { font-family: var(--mono); font-size: .9em; }
ul.clean { list-style: none; margin: 0; padding: 0; }
.sr-only { position: absolute !important; 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(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* ------------------------------------------------------------------ grounds */
.night {
  position: relative; isolation: isolate; color: var(--night-text);
  background: linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
}
.night h1, .night h2, .night h3, .night strong { color: #fff; }
.night a:not(.btn) { color: var(--yellow); }
.stars::before, .stars::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 140px 90px, rgba(255,255,255,.8) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 260px 170px, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 80px 220px, rgba(255,255,255,.6) 50%, transparent 52%),
    radial-gradient(1px 1px at 210px 260px, rgba(255,255,255,.7) 50%, transparent 52%);
  background-size: 300px 300px; opacity: .55;
}
.stars::after {
  background-size: 470px 470px; background-position: 120px 60px; opacity: .35;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .15; } to { opacity: .6; } }
.glow::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 720px; height: 720px; right: -240px; top: -160px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(79, 88, 255, .45), transparent);
}
.day { background: linear-gradient(180deg, var(--day), #FBFBFF); color: var(--ink); }
.white { background: #fff; color: var(--ink); }
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { font-size: 1.1rem; }
.day .section-head p, .white .section-head p { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--indigo);
}
.night .eyebrow { color: var(--yellow); }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 36em; }
.accent { color: var(--yellow); }
.day .accent { color: var(--indigo); }

/* ------------------------------------------------------------------ buttons */
.btn {
  --bg: var(--indigo); --fg: #fff; --edge: var(--lip);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border: 0; border-radius: 999px;
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  color: var(--fg); background: var(--bg);
  box-shadow: 0 5px 0 var(--edge); transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--edge); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; filter: grayscale(.4) opacity(.65); transform: none; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .92rem; box-shadow: 0 3px 0 var(--edge); }
.btn-yellow { --bg: var(--yellow); --fg: var(--ink); --edge: #D9CF4E; }
.btn-light { --bg: #fff; --fg: var(--ink); --edge: #C9CBF2; }
.btn-ghost {
  --bg: transparent; --fg: #fff; box-shadow: none; border: 1.5px solid rgba(173, 177, 255, .5);
}
.btn-ghost:hover { border-color: var(--night-text); background: rgba(255,255,255,.04); }
.day .btn-ghost, .white .btn-ghost { --fg: var(--ink); border-color: var(--border); }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }

/* ------------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; color: #fff;
  background: rgba(22, 27, 72, .82); backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid rgba(173,177,255,.12);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: transparent; border: 1px solid rgba(173,177,255,.3); color: #fff; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-menu { display: none; }
.nav-menu.open {
  display: block; position: absolute; left: 0; right: 0; top: 64px; padding: 12px 16px 20px;
  background: var(--night); border-bottom: 1px solid rgba(173,177,255,.15);
}
.nav-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nav-menu a:not(.btn) {
  display: block; padding: 12px 10px; border-radius: 10px; color: var(--night-text);
  text-decoration: none; font-weight: 600;
}
.nav-menu a:not(.btn):hover, .nav-menu a:not(.btn)[aria-current="page"] { color: #fff; background: rgba(255,255,255,.06); }
.nav-menu .btn { margin-top: 8px; width: 100%; }
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav-menu, .nav-menu.open { display: block; position: static; padding: 0; background: none; border: 0; }
  .nav-menu ul { display: flex; align-items: center; gap: 6px; }
  .nav-menu a:not(.btn) { padding: 8px 14px; }
  .nav-menu .btn { margin: 0 0 0 10px; width: auto; }
}

/* --------------------------------------------------------------------- hero */
.hero { padding: 48px 0 80px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 72px 0 112px; } .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin-bottom: .35em; }
.hero .lede { margin-bottom: 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; font-size: .92rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 460px; }
@media (min-width: 960px) { .hero-visual { min-height: 560px; } }
.wheel {
  position: absolute; width: min(600px, 130%); max-width: none; aspect-ratio: 1; opacity: .9;
  left: 50%; top: 50%; translate: -50% -50%; animation: spin 140s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.orb { position: absolute; border-radius: 50%; pointer-events: none; }
.orb-a { width: 340px; height: 340px; background: radial-gradient(closest-side, rgba(79,88,255,.55), transparent); }
.orb-b { width: 14px; height: 14px; right: 12%; top: 14%; background: var(--yellow); box-shadow: 0 0 24px 6px rgba(248,239,122,.55); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* -------------------------------------------------------- phone + chat look */
.phone {
  position: relative; width: min(330px, 100%); border-radius: 40px; padding: 10px;
  background: linear-gradient(160deg, #2A3070, #11143a); box-shadow: 0 40px 80px -20px rgba(0,0,0,.6), inset 0 0 0 1.5px rgba(173,177,255,.25);
}
.phone-screen { border-radius: 31px; overflow: hidden; background: linear-gradient(180deg, var(--day), #FEFEFF); color: var(--ink); }
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px;
  border-bottom: 1px solid #E6E6F0; background: rgba(255,255,255,.6);
}
.chat-head img { width: 36px; height: 36px; border-radius: 50%; }
.chat-title { font-weight: 800; font-size: 1rem; line-height: 1.2; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(28,153,0,.15); }
.pill {
  margin-left: auto; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.pill.empty { background: transparent; color: var(--error); box-shadow: inset 0 0 0 1.5px var(--error); }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; }
.bubble {
  max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: .9rem; line-height: 1.5;
  overflow-wrap: anywhere;
}
.bubble p { margin: 0 0 .6em; }
.bubble p:last-child { margin: 0; }
.bubble ul { margin: 0 0 .6em; padding-left: 1.1em; }
.bubble.astro { align-self: flex-start; background: var(--indigo); color: #fff; border-bottom-left-radius: 6px; }
.bubble.astro strong { color: var(--yellow); }
.bubble.me { align-self: flex-end; background: #fff; color: var(--user-ink); border-bottom-right-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.08); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 34px; padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font: 600 .82rem/1.3 var(--font);
  text-align: left;
}
button.chip { cursor: pointer; transition: background .15s, color .15s; }
button.chip:hover { background: var(--ink); color: #fff; }
button.chip[disabled] { opacity: .5; cursor: not-allowed; background: #fff; color: var(--ink); }
.composer { display: flex; align-items: center; gap: 8px; padding: 10px 12px 14px; }
.composer-field {
  flex: 1; min-height: 44px; display: flex; align-items: center; padding: 0 16px; border-radius: 999px;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); color: var(--muted); font-size: .88rem;
}
.send {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--indigo); color: #fff; box-shadow: 0 3px 0 var(--lip); cursor: pointer;
}
.send svg { width: 20px; height: 20px; }
.send[disabled] { background: #9A9AB5; box-shadow: 0 3px 0 #85859f; cursor: not-allowed; }
.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .5; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 30% { opacity: 1; transform: translateY(-3px); } }

/* ------------------------------------------------------------------ stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border-radius: var(--radius); overflow: hidden; background: rgba(173,177,255,.18); }
.stats > div { padding: 22px 18px; background: var(--night-deep); }
.stats b { display: block; font-size: clamp(1.5rem, 4vw, 2.1rem); color: #fff; letter-spacing: -.02em; line-height: 1.1; }
.stats span { font-size: .88rem; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats-band { padding-top: 8px; }

/* ------------------------------------------------------------------- cards */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; padding: 26px 24px; border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow); border: 1px solid rgba(214,214,232,.6);
}
.card p { color: var(--muted); margin: 0; }
.card p + p { margin-top: .7em; }
.night .card { background: rgba(255,255,255,.04); border-color: rgba(173,177,255,.16); box-shadow: none; }
.night .card p { color: var(--night-text); }
.icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px;
  background: var(--day); color: var(--indigo);
}
.icon svg { width: 24px; height: 24px; }
.night .icon { background: rgba(79,88,255,.22); color: var(--yellow); }
.card-feature { grid-column: 1 / -1; }
@media (min-width: 980px) { .card-feature { grid-column: span 2; } }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  background: rgba(248,239,122,.18); color: #7A6F00; border: 1px solid rgba(200,190,40,.45); vertical-align: middle;
}
.night .badge { color: var(--yellow); border-color: rgba(248,239,122,.4); background: rgba(248,239,122,.1); }
.badge-indigo { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.card .badge { margin-left: 6px; }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 30px; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--day) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%234F58FF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.night .tick-list li::before { background-color: rgba(79,88,255,.3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23F8EF7A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* split layout */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split.rev > :first-child { order: 2; } }
.mini-chat { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 26px; background: linear-gradient(180deg, var(--day), #fff); box-shadow: 0 30px 60px -24px rgba(0,0,0,.5); }

/* languages */
.langs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lang {
  display: inline-flex; flex-direction: column; align-items: center; min-width: 108px; padding: 12px 16px;
  border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(173,177,255,.2);
}
.lang b { font-size: 1.15rem; color: #fff; font-weight: 600; }
.lang span { font-size: .78rem; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px;
  margin-bottom: 16px; border-radius: 50%; background: var(--indigo); color: #fff; font-weight: 800; box-shadow: 0 4px 0 var(--lip);
}
.step p { color: var(--muted); margin: 0; }

/* price chips (app) */
.price-trio { display: grid; gap: 16px; }
@media (min-width: 760px) { .price-trio { grid-template-columns: repeat(3, 1fr); } }
.price-chip { padding: 26px 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-align: center; }
.price-chip b { display: block; font-size: 2.4rem; letter-spacing: -.03em; color: var(--user-ink); line-height: 1.1; }
.price-chip span { color: var(--muted); }
.night .price-chip { background: rgba(255,255,255,.05); box-shadow: none; border: 1px solid rgba(173,177,255,.2); }
.night .price-chip b { color: var(--yellow); }
.night .price-chip span { color: var(--night-text); }

/* code */
.code {
  border-radius: var(--radius); overflow: hidden; background: #0F1235; border: 1px solid rgba(173,177,255,.2);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); text-align: left;
}
.code-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(173,177,255,.15); overflow-x: auto; scrollbar-width: thin; }
.code-bar .lights { display: flex; gap: 6px; margin-right: 8px; }
.code-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: rgba(173,177,255,.3); }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; color: #E3E5FF; font-size: .84rem; line-height: 1.65; tab-size: 2; }
.tab {
  flex: none; padding: 7px 12px; border-radius: 8px; border: 0; background: transparent; color: var(--night-text);
  font: 600 .82rem/1 var(--font); cursor: pointer;
}
.tab[aria-selected="true"] { background: rgba(79,88,255,.35); color: #fff; }
.tab:hover { color: #fff; }
.tok-k { color: #F8EF7A; } .tok-s { color: #9EF0C0; } .tok-c { color: #7F84C8; font-style: italic; }
.code-note { margin: 12px 0 0; font-size: .82rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tech {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(173,177,255,.22); color: #fff;
}
.tech svg { width: 16px; height: 16px; color: var(--yellow); }
.day .tech, .white .tech { background: #fff; color: var(--ink); border-color: var(--border); }
.day .tech svg, .white .tech svg { color: var(--indigo); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--indigo); border-bottom: 2.5px solid var(--indigo); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* cta band */
.cta-band { text-align: center; }
.cta-band .cta-row { justify-content: center; }
.cta-band img { margin: 0 auto 20px; border-radius: 28px; }

/* ----------------------------------------------------------------- pricing */
.toggle { display: inline-flex; padding: 5px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); gap: 4px; }
.toggle button {
  border: 0; padding: 10px 18px; border-radius: 999px; background: transparent; color: var(--ink);
  font: 700 .92rem/1 var(--font); cursor: pointer;
}
.toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.toggle .save { color: var(--green); font-size: .78rem; margin-left: 4px; }
.toggle button[aria-pressed="true"] .save { color: var(--yellow); }
.plans { display: grid; gap: 18px; margin-top: 36px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { display: flex; flex-direction: column; padding: 28px 22px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); border: 1.5px solid transparent; }
.plan.popular { border-color: var(--indigo); box-shadow: 0 20px 50px -20px rgba(79,88,255,.45); position: relative; }
.plan.popular .badge { position: absolute; top: -12px; left: 22px; }
.plan h3 { font-size: 1.3rem; margin: 0 0 4px; }
.plan .tagline { color: var(--muted); font-size: .9rem; min-height: 2.9em; margin: 0 0 14px; }
.amount { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.amount small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.amount-sub { min-height: 1.5em; margin: 4px 0 16px; font-size: .85rem; color: var(--green); font-weight: 600; }
.plan .tick-list { margin: 18px 0 24px; font-size: .92rem; flex: 1; }
.plan .meta { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--day); font-size: .88rem; }
.plan .meta b { color: var(--ink); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9rem; }
.compare th, .compare td { padding: 12px 14px; text-align: center; border-bottom: 1px solid #ECECF5; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { position: sticky; top: 0; background: var(--ink); color: #fff; font-weight: 700; }
.compare tbody th { font-weight: 600; color: var(--ink); }
.compare .yes { color: var(--green); font-weight: 800; }
.compare .no { color: #A0A2BC; }
.compare caption { text-align: left; padding: 14px; color: var(--muted); caption-side: bottom; font-size: .82rem; }

/* -------------------------------------------------------------------- forms */
.form-card { padding: 28px 20px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
@media (min-width: 640px) { .form-card { padding: 36px; } }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label, .legend { font-weight: 700; font-size: .92rem; color: var(--ink); }
.opt { font-weight: 500; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border);
  background: #fff; color: var(--ink); font: 500 1rem/1.4 var(--font); appearance: none; -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
select.input {
  padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%23171C3B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center/18px no-repeat;
}
textarea.input { min-height: 120px; resize: vertical; }
.input:hover { border-color: #B9BBD6; }
.input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(79,88,255,.18); }
.input[aria-invalid="true"] { border-color: var(--error); }
.hint { font-size: .82rem; color: var(--muted); }
.err { font-size: .84rem; color: var(--error); font-weight: 600; min-height: 0; }
.err:empty { display: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.radio-cards { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .radio-cards { grid-template-columns: repeat(4, 1fr); } }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.radio-card span {
  display: grid; gap: 2px; height: 100%; padding: 14px; border-radius: 14px; border: 1.5px solid var(--border); background: #fff; font-size: .82rem; color: var(--muted);
}
.radio-card b { color: var(--ink); font-size: .98rem; }
.radio-card input:checked + span { border-color: var(--indigo); background: #F4F4FF; box-shadow: 0 0 0 3px rgba(79,88,255,.18); }
.radio-card input:focus-visible + span { outline: 3px solid var(--indigo); outline-offset: 2px; }
.seg { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--border); font-weight: 600; font-size: .9rem; }
.seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--indigo); outline-offset: 2px; }
.checks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--indigo); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: .92rem; }
.form-status.error { background: #FDECEC; color: #9C1C22; }
.form-status.info { background: #F1F1FF; color: var(--ink); }
.thanks { text-align: center; padding: 20px 4px; }
.thanks .icon { margin: 0 auto 16px; width: 64px; height: 64px; border-radius: 50%; background: #E9F8E4; color: var(--green); }
.thanks ol { text-align: left; max-width: 460px; margin: 18px auto 24px; color: var(--muted); }

/* place autocomplete */
.ac { position: relative; }
.ac-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 280px; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(23,28,59,.18); border: 1px solid var(--border);
}
.ac-list li { padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: .9rem; line-height: 1.35; color: var(--ink); }
.ac-list li[aria-selected="true"], .ac-list li:hover { background: var(--day); }
.ac-list li small { display: block; color: var(--muted); font-size: .76rem; }

/* --------------------------------------------------------------- try / demo */
.try-layout { display: grid; gap: 36px; align-items: start; }
@media (min-width: 980px) { .try-layout { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.demo {
  display: flex; flex-direction: column; height: min(720px, calc(100svh - 96px)); min-height: 520px;
  border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, var(--day), #FEFEFF);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); color: var(--ink);
}
.demo .chat-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px; }
.demo .bubble { font-size: .95rem; max-width: 88%; }
.demo .composer { border-top: 1px solid #E6E6F0; background: #fff; }
.demo textarea {
  flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 11px 16px; border-radius: 22px; border: 1.5px solid var(--border);
  font: 500 .95rem/1.4 var(--font); color: var(--ink); background: #fff;
}
.demo textarea:focus { outline: none; border-color: var(--indigo); }
.demo textarea:disabled { background: #F4F4F8; }
.app-card {
  align-self: stretch; padding: 20px; border-radius: 18px; text-align: center; color: var(--night-text);
  background: linear-gradient(180deg, var(--night), var(--night-deep));
}
.app-card h3 { color: #fff; margin-bottom: 6px; }
.app-card p { font-size: .9rem; margin-bottom: 14px; }
.sys { align-self: center; max-width: 92%; padding: 10px 14px; border-radius: 12px; background: #FFF7D6; color: #5C4A00; font-size: .86rem; text-align: center; }
.sys.error { background: #FDECEC; color: #9C1C22; }
.sys button { margin-top: 8px; }
.linkish { background: none; border: 0; padding: 0; color: var(--indigo); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ------------------------------------------------------------------ prose */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose p, .prose li { color: #33365A; }
.draft { padding: 14px 18px; border-radius: 12px; background: #FFF7D6; color: #5C4A00; font-weight: 600; margin-bottom: 28px; }
.crumbs { font-size: .85rem; margin-bottom: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.page-hero { padding: 56px 0 64px; }
@media (min-width: 900px) { .page-hero { padding: 80px 0 88px; } }

/* ----------------------------------------------------------------- footer */
.site-footer { padding: 56px 0 32px; font-size: .92rem; border-top: 1px solid rgba(173,177,255,.12); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .foot-brand { grid-column: auto; } }
.foot-brand p { max-width: 320px; margin-top: 12px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:not(.btn):not(.brand) { color: var(--night-text); text-decoration: none; }
.site-footer a:not(.btn):not(.brand):hover { color: #fff; text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(173,177,255,.12); font-size: .84rem; }

/* reveal on scroll — only when JS marks the page, so no-JS shows everything */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 16px; } .mt-2 { margin-top: 32px; } .mt-3 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .wheel, .stars::after, .orb-b { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.stats dd { margin: 0; }
.cta-lede { margin: 0 auto 28px; }
.cta-row.centered { justify-content: center; }
/* white widgets sitting on the night ground */
.night .form-card, .night .demo { color: var(--ink); }
.night .form-card h2, .night .form-card h3, .night .form-card strong, .night .demo h2 { color: var(--ink); }
.night .form-card a:not(.btn), .night .demo a:not(.btn) { color: var(--indigo); }
.form-card :focus-visible, .demo :focus-visible, .white :focus-visible { outline-color: var(--indigo); }
.h3-size { font-size: 1.35rem; margin-bottom: 4px; }
.chat-title { margin: 0; }
.demo-chips { padding: 0 14px 10px; }
.demo-chips:empty { display: none; }
.demo-foot { margin: 0; padding: 0 14px 12px; background: #fff; text-align: center; font-size: .82rem; }
.nf-wheel { margin: 0 auto 8px; opacity: .85; animation: spin 140s linear infinite; }
@media (min-width: 800px) { .stats.stats-2 { grid-template-columns: repeat(2, 1fr); } }
.day .section-head .eyebrow, .white .section-head .eyebrow, .day .eyebrow, .white .eyebrow { color: var(--user-ink); }

/* Store screenshots row (mantrasapp.com/astrochat/ only) */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 36px; }
.shots img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 860px) { .shots { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
