/* Crystal website — shared styles */
:root {
  --bg: #05070f;
  --bg-2: #0b1021;
  --ink: #eef9ff;
  --muted: #8ba0ba;
  --faint: #5f7391;
  --card: rgba(17, 26, 49, 0.62);
  --card-strong: rgba(24, 36, 68, 0.78);
  --line: rgba(139, 160, 186, 0.2);
  --teal: #16d9ff;
  --blue: #5b8cff;
  --violet: #9d5cff;
  --coral: #ff7f6a;
  --amber: #ffb347;
  --grad: linear-gradient(100deg, #16d9ff 0%, #6f8cff 50%, #9d5cff 100%);
  --grad-warm: linear-gradient(100deg, #ffb347, #ff7f6a);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 560px at 85% -8%, rgba(157, 92, 255, 0.2), transparent 62%),
    radial-gradient(900px 600px at 5% -5%, rgba(22, 217, 255, 0.12), transparent 60%),
    radial-gradient(800px 600px at 50% 112%, rgba(255, 127, 106, 0.07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px; background: #fff; color: #000;
  padding: 10px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(5, 7, 15, 0.7);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.28rem; letter-spacing: -0.02em; }
.brand img, .logo-img { width: 34px; height: 34px; border-radius: 22.5%; flex: none; }
.nav-links { display: flex; gap: 6px; margin-left: 12px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; color: var(--muted);
  font-size: 0.95rem; font-weight: 500; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--card); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--card-strong); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; margin: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  color: #04101c; background: var(--grad);
  box-shadow: 0 10px 30px -10px rgba(90, 162, 255, 0.7);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -10px rgba(90, 162, 255, 0.85); }
.btn-ghost { color: var(--ink); background: var(--card); border-color: var(--line); }
.btn-ghost:hover { background: var(--card-strong); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-danger { color: #ffb4a8; background: rgba(245, 111, 88, 0.1); border-color: rgba(245, 111, 88, 0.35); }
.btn-danger:hover { background: rgba(245, 111, 88, 0.18); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
  font-size: 0.85rem; font-weight: 600; letter-spacing: .02em;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 40em; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); margin: 22px 0 22px; letter-spacing: -0.035em; }
.hero .lead { margin-bottom: 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; color: var(--faint); font-size: 0.9rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 16px; height: 16px; color: var(--teal); }

.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(8px, 2vw, 24px); }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); margin: 20px 0 18px; letter-spacing: -0.03em; }

/* ---------- Phone mockup ---------- */
.phone-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.glow {
  position: absolute; width: 440px; height: 440px; border-radius: 50%;
  background: conic-gradient(from 200deg, #7ee8da, #6f84ff, #9d5cff, #ff7f6a, #ffb347, #7ee8da);
  filter: blur(90px); opacity: 0.38; animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.phone {
  position: relative; width: 292px; height: 600px; border-radius: 48px; padding: 11px;
  background: linear-gradient(160deg, #2c3a5e, #0b1021 60%);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.8), inset 0 0 0 1.5px rgba(255, 255, 255, 0.18);
  transform: rotate(3deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: rotate(3deg) translateY(-12px); } }
.screen {
  width: 100%; height: 100%; border-radius: 38px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #0d1330, #05070f); display: flex; flex-direction: column;
}
.island { position: absolute; top: 10px; left: 50%; width: 88px; height: 25px; background: #000; border-radius: 20px; transform: translateX(-50%); z-index: 3; }
.status { height: 46px; flex: none; }
.tabs { display: flex; gap: 6px; padding: 0 14px; }
.tab { font-size: 11px; padding: 6px 11px; border-radius: 9px; color: var(--faint); background: rgba(255,255,255,.05); font-family: var(--mono); }
.tab.on { color: #fff; background: rgba(90,162,255,.22); box-shadow: inset 0 0 0 1px rgba(90,162,255,.4); }
.code { padding: 14px 14px 0; font-family: var(--mono); font-size: 10.4px; line-height: 1.8; color: #cfd3ff; flex: 1; overflow: hidden; }
.code .ln { color: #4b4f84; display: inline-block; width: 18px; margin-right: 8px; text-align: right; user-select: none; }
.k { color: #c49bff; } .f { color: #5ec8ff; } .s { color: #7ff0c5; } .n { color: #f6ad3c; } .c { color: #6a6fa6; font-style: italic; }
.hl { background: rgba(63,224,181,.13); display: block; margin: 0 -14px; padding: 0 14px; border-left: 2px solid var(--teal); }
.ai-sheet {
  margin: 0 10px 12px; padding: 12px; border-radius: 22px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
}
.ai-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.ai-row i { width: 20px; height: 20px; border-radius: 7px; background: var(--grad); display: grid; place-items: center; }
.ai-row i svg { width: 12px; height: 12px; color: #04101c; }
.ai-prompt { font-size: 12px; color: #fff; background: rgba(255,255,255,.07); border-radius: 12px; padding: 9px 11px; }
.ai-actions { display: flex; gap: 8px; margin-top: 9px; }
.ai-actions b { flex: 1; text-align: center; font-size: 11px; padding: 7px; border-radius: 10px; font-weight: 600; }
.ai-actions .ok { background: var(--grad); color: #04101c; }
.ai-actions .no { background: rgba(255,255,255,.08); color: var(--muted); }
.chip-float {
  position: absolute; z-index: 5; padding: 10px 14px; border-radius: 16px; font-size: 0.85rem; font-weight: 600;
  background: rgba(11, 16, 33, 0.85); border: 1px solid var(--line);
  backdrop-filter: blur(12px); display: flex; align-items: center; gap: 9px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.7);
}
.chip-float svg { width: 18px; height: 18px; }
.chip-float.a { left: -6px; top: 90px; color: var(--teal); }
.chip-float.b { right: -10px; bottom: 120px; color: var(--amber); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; position: relative; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.22); background: var(--card-strong); }
.card h3 { font-size: 1.28rem; margin: 18px 0 10px; }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(95,240,198,.22), rgba(90,162,255,.22));
  border: 1px solid rgba(255,255,255,.16);
}
.icon svg { width: 25px; height: 25px; color: var(--teal); }
.icon.warm { background: linear-gradient(140deg, rgba(246,173,60,.24), rgba(245,111,88,.24)); }
.icon.warm svg { color: var(--amber); }
.icon.vio { background: linear-gradient(140deg, rgba(139,123,255,.28), rgba(90,162,255,.2)); }
.icon.vio svg { color: #b4a8ff; }

.band {
  border: 1px solid var(--line); border-radius: 30px; padding: clamp(28px, 5vw, 56px);
  background: linear-gradient(135deg, rgba(76,141,255,.16), rgba(139,123,255,.12) 50%, rgba(245,111,88,.12));
}
.steps { counter-reset: s; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.step::before {
  counter-increment: s; content: counter(s); width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; color: #04101c; background: var(--grad);
}
.step h3 { font-size: 1.2rem; margin: 4px 0 6px; }
.step p { color: var(--muted); margin: 0; }

.langs { display: flex; flex-wrap: wrap; gap: 10px; }
.lang {
  padding: 10px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-weight: 600; font-size: .95rem; font-family: var(--mono);
}
.lang.main { background: var(--grad); color: #04101c; border-color: transparent; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.rev .split-art { order: -1; }
.split h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 16px 0 16px; }
.split p { color: var(--muted); font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: var(--ink); align-items: flex-start; }
.ticks svg { width: 22px; height: 22px; flex: none; color: var(--teal); margin-top: 1px; }
.art-card {
  border-radius: 28px; border: 1px solid var(--line); padding: 26px;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.7);
}

.compare { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); background: rgba(255,255,255,.03); }
.compare td:first-child { font-weight: 600; width: 28%; }
.compare td.us { color: #fff; background: rgba(63,224,181,.07); }
.compare td.them { color: var(--muted); }

.cta {
  text-align: center; border-radius: 34px; padding: clamp(40px, 7vw, 84px) 24px;
  border: 1px solid var(--line); position: relative; overflow: hidden;
  background:
    radial-gradient(500px 260px at 20% 0%, rgba(63,224,181,.2), transparent 70%),
    radial-gradient(500px 300px at 90% 100%, rgba(245,111,88,.2), transparent 70%),
    var(--card);
}
.cta h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 16px; }
.cta p { color: var(--muted); font-size: 1.12rem; max-width: 34em; margin: 0 auto 30px; }
.cta .hero-actions { justify-content: center; }

/* ---------- FAQ ---------- */
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; transition: background .2s; }
details.faq[open] { background: var(--card-strong); }
details.faq summary { cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--teal); transition: transform .2s; line-height: 1; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .ans { padding: 0 24px 22px; color: var(--muted); }
details.faq .ans p:last-child { margin-bottom: 0; }

.mail-pill {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  font-weight: 600; font-size: 1.1rem; transition: background .2s, transform .15s;
}
.mail-pill:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.mail-pill svg { width: 22px; height: 22px; color: var(--teal); }

/* ---------- Legal prose ---------- */
.prose h2 { font-size: 1.5rem; margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.3em; }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { color: var(--faint); font-size: .95rem; }

/* ---------- Auth ---------- */
.auth-wrap { display: grid; place-items: center; padding: clamp(36px, 7vw, 90px) 0; }
.auth-card {
  width: min(460px, 100% - 40px); padding: 36px; border-radius: 28px;
  background: linear-gradient(170deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  border: 1px solid var(--line); box-shadow: 0 50px 100px -40px rgba(0,0,0,.8);
}
.auth-card .logo-lg { width: 72px; height: 72px; border-radius: 22.5%; margin: 0 auto 18px; }
.auth-card h1 { font-size: 1.9rem; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 24px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--line); margin-bottom: 22px; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 11px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; transition: all .2s; }
.seg button[aria-selected="true"] { background: var(--card-strong); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.input, .select {
  width: 100%; padding: 14px 16px; border-radius: 14px; font: inherit; color: var(--ink);
  background: rgba(0,0,0,.28); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--faint); }
.input:focus, .select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(76,141,255,.2); }
.select option { background: #0b1021; }
.auth-card .btn { width: 100%; margin-top: 6px; }
.link-btn { background: none; border: 0; color: var(--teal); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.auth-foot { text-align: center; margin: 18px 0 0; color: var(--faint); font-size: .92rem; }
.notice { padding: 13px 16px; border-radius: 14px; font-size: .93rem; margin-bottom: 18px; border: 1px solid; }
.notice.err { background: rgba(245,111,88,.12); border-color: rgba(245,111,88,.4); color: #ffc2b8; }
.notice.ok { background: rgba(63,224,181,.1); border-color: rgba(63,224,181,.4); color: #aef5de; }
.notice.warn { background: rgba(246,173,60,.1); border-color: rgba(246,173,60,.4); color: #ffd9a0; }
[hidden] { display: none !important; }

/* ---------- Account ---------- */
.acct-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 44px 0 26px; }
.acct-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.acct-head p { color: var(--muted); margin: 6px 0 0; }
.avatar { width: 64px; height: 64px; border-radius: 22px; background: var(--grad); color: #04101c; display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; flex: none; }
.who { display: flex; align-items: center; gap: 18px; }
.acct-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 20px; scrollbar-width: none; }
.acct-tabs::-webkit-scrollbar { display: none; }
.acct-tabs button {
  border: 1px solid var(--line); background: var(--card); color: var(--muted); padding: 11px 20px; border-radius: 999px;
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all .2s;
}
.acct-tabs button[aria-selected="true"] { background: var(--grad); color: #04101c; border-color: transparent; }
.panel { padding-bottom: 80px; }
.plan-card { background: linear-gradient(135deg, rgba(76,141,255,.22), rgba(139,123,255,.2) 55%, rgba(245,111,88,.18)); }
.plan-card:hover { transform: none; }
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.plan-name { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 6px; }
.meter { height: 14px; border-radius: 999px; background: rgba(0,0,0,.32); overflow: hidden; margin: 18px 0 12px; border: 1px solid var(--line); }
.meter > i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.meter.warn > i { background: var(--grad-warm); }
.stat-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .95rem; flex-wrap: wrap; }
.big { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.kv { display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 600; text-align: right; word-break: break-word; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.switch:last-of-type { border-bottom: 0; }
.switch b { display: block; font-weight: 600; }
.switch small { color: var(--muted); }
.toggle { position: relative; width: 52px; height: 32px; flex: none; }
.toggle input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; z-index: 2; }
.toggle span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.14); transition: background .2s; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.toggle input:checked + span { background: var(--teal); }
.toggle input:checked + span::after { transform: translateX(20px); }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.12), rgba(255,255,255,.05)); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 10px; color: transparent !important; }
@keyframes shimmer { to { background-position: -200% 0; } }
.row-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  padding: 14px 22px; border-radius: 16px; background: #131c3a; border: 1px solid var(--line); font-weight: 600;
  transition: all .3s; z-index: 80; box-shadow: 0 20px 50px -10px rgba(0,0,0,.7);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 36px; margin-top: 40px; background: rgba(3, 5, 11, 0.6); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.foot-grid h4 { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.foot-grid a { display: block; color: var(--muted); padding: 5px 0; transition: color .2s; }
.foot-grid a:hover { color: var(--ink); }
.foot-grid p { color: var(--muted); max-width: 22em; font-size: .96rem; }
.foot-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: .9rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .split.rev .split-art { order: 0; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .phone-stage { min-height: 520px; }
}
@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .nav-links, .nav-cta { display: none; }
  .nav.open .nav-inner { flex-wrap: wrap; height: auto; padding: 12px 0 18px; }
  .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; order: 3; margin: 8px 0 0; }
  .nav.open .nav-links a { padding: 14px 16px; font-size: 1.05rem; }
  .nav.open .nav-cta { display: flex; width: 100%; order: 4; margin: 6px 0 0; }
  .nav.open .nav-cta .btn { flex: 1; }
}
@media (max-width: 620px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .chip-float { display: none; }
  .compare th, .compare td { padding: 14px; font-size: .92rem; }
  .compare td:first-child { width: 34%; }
  .auth-card { padding: 26px 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

.foot-grid .brand { display: flex; padding: 0; }

/* ---------- Additions ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: rgba(22,217,255,.1); border: 1px solid rgba(22,217,255,.28); color: #bff4ff; }
.tx { list-style: none; margin: 8px 0 0; padding: 0; }
.tx li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.tx li:last-child { border-bottom: 0; }
.tx small { display: block; color: var(--faint); }
.tx b.pos { color: var(--teal); } .tx b.neg { color: var(--coral); }
.code-input { text-align: center; font-family: var(--mono); font-size: 1.7rem; letter-spacing: .5em; padding-left: calc(16px + .5em); }
.hint { color: var(--faint); font-size: .85rem; margin: 7px 0 0; }
.models { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.model { padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: .9rem; }
.model.off { opacity: .45; }
.stat-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.stat-pair div { background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.stat-pair b { display: block; font-size: 1.35rem; letter-spacing: -.02em; }
.stat-pair span { color: var(--muted); font-size: .85rem; }

dialog.dlg { width: min(460px, 100% - 32px); border: 1px solid var(--line); border-radius: 24px; padding: 28px; background: #0b1021; color: var(--ink); box-shadow: 0 50px 100px -30px #000; }
dialog.dlg::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
dialog.dlg h3 { font-size: 1.4rem; margin-bottom: 10px; }
dialog.dlg p { color: var(--muted); }

html { overflow-x: clip; }
.hero { overflow-x: clip; }
@media (max-width: 620px) { .glow { width: 300px; height: 300px; } }

/* ---------- Real-UI mockups (mirror the app's Code and Chat screens) ---------- */
.pm-head { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.modes { display: flex; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--line); flex: 1; }
.modes span { flex: 1; text-align: center; font-size: 10px; padding: 5px 0; border-radius: 7px; color: var(--muted); }
.modes span.on { background: rgba(22,217,255,.18); color: #fff; box-shadow: inset 0 0 0 1px rgba(22,217,255,.45); }
.pm-lang { font: 10px var(--mono); padding: 6px 10px; border-radius: 9px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--ink); }
.pm-actions { display: flex; gap: 8px; padding: 10px 12px 0; }
.pm-actions span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 7px 12px; border-radius: 10px; }
.pm-actions svg { width: 13px; height: 13px; }
.pm-actions .ask { color: var(--ink); background: rgba(157,92,255,.18); border: 1px solid rgba(157,92,255,.4); }
.pm-actions .run { color: #04101c; background: var(--teal); margin-left: auto; }
.pm-label { display: flex; justify-content: space-between; padding: 12px 14px 0; font: 10px var(--mono); color: var(--muted); }
.pm-label .auto { color: #5ff0c6; letter-spacing: .08em; }
.pm-out { margin: 0 12px 10px; padding: 10px 12px; border-radius: 14px; background: rgba(0,0,0,.4); border: 1px solid var(--line); font: 11px/1.7 var(--mono); color: #cfe9ff; }
.pm-out b { display: block; font-size: 9px; letter-spacing: .12em; color: var(--faint); margin-bottom: 4px; }
.pm-tabs { display: flex; justify-content: space-around; padding: 10px 6px 16px; border-top: 1px solid var(--line); background: rgba(11,16,33,.9); }
.pm-tabs span { font-size: 10px; color: var(--faint); }
.pm-tabs span.on { color: var(--teal); font-weight: 700; }
.screen .code { flex: 1; }

.starter-demo { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 16px; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.starter-demo span { flex: 1; padding: 10px 12px; color: var(--muted); font-size: .95rem; }
.starter-demo b { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: var(--grad); color: #04101c; font-size: .92rem; }
.starter-demo svg { width: 16px; height: 16px; }

.chat-demo { display: grid; gap: 12px; }
.chat-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chat-top i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(157,92,255,.2); color: #c8aaff; flex: none; }
.chat-top i svg { width: 20px; height: 20px; }
.chat-top div { flex: 1; min-width: 0; }
.chat-top strong { display: block; }
.chat-top span { display: block; color: var(--faint); font-size: .8rem; }
.chat-top em { font-style: normal; font-size: .8rem; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line); white-space: nowrap; }
.msg { padding: 12px 15px; border-radius: 16px; font-size: .95rem; max-width: 92%; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.msg small { display: block; color: var(--faint); font-size: .75rem; margin-bottom: 3px; font-weight: 600; }
.msg.u { margin-left: auto; background: rgba(22,217,255,.14); border-color: rgba(22,217,255,.35); }
.composer-demo { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 16px; background: rgba(0,0,0,.3); border: 1px solid var(--line); color: var(--faint); }
.composer-demo span { flex: 1; }
.composer-demo b { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #04101c; }
.composer-demo svg { width: 16px; height: 16px; }

.diff-demo{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:rgba(0,0,0,.3);font-family:var(--mono);font-size:.82rem}
.diff-h{padding:9px 14px;border-bottom:1px solid var(--line);color:var(--muted);display:flex;justify-content:space-between}
.diff-h span{color:var(--faint)}
.dl{padding:7px 14px;white-space:pre-wrap;word-break:break-word}
.dl.del{background:rgba(255,90,90,.12);color:#ff9b9b}
.dl.add{background:rgba(60,220,140,.12);color:#7ff0b5}
.diff-actions{display:flex;gap:10px;justify-content:flex-end;padding:10px 12px;border-top:1px solid var(--line);font-family:var(--sans,inherit)}
.diff-actions span{padding:8px 14px;border-radius:10px;font-weight:600;font-size:.85rem;border:1px solid var(--line);color:var(--muted)}
.diff-actions .apply{background:var(--grad);color:#04101c;border-color:transparent}

/* Setup form, plan cards and developer tools */
.setup-form { margin: 0 0 20px; padding: 18px; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 16px; }
.setup-form h3 { margin: 0 0 6px; }
.plan-price { font-size: 1.6rem; font-weight: 700; margin: 6px 0 10px; }
.plan-price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.plan-edit textarea.input { min-height: 120px; resize: vertical; font-family: inherit; }
.plan-edit .row2 { display: grid; grid-template-columns: 1fr 120px; gap: 12px; }
.check { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; color: var(--muted); font-size: .95rem; }
[hidden] { display: none !important; }

/* Small labels used on the account plan card */
.mini { margin: 16px 0 0; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.mini[hidden] { display: none; }

/* App Store buttons before the app has a public link */
[data-appstore][aria-disabled="true"] { opacity: .65; cursor: default; filter: saturate(.6); }

/* Terms checkbox on the sign-up form */
.check span { font-weight: 400; line-height: 1.4; }
.check a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.check input[type="checkbox"] { accent-color: var(--teal); width: 18px; height: 18px; flex: none; }

/* "Buy in the app" line on plan cards: the website itself never sells anything */
.buy-note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--teal); }


/* ---------- App tour: flat phone mockups of the real screens ---------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 24px; justify-items: center; margin-top: 38px; }
.shot { margin: 0; text-align: center; }
.shot figcaption { margin-top: 16px; font-weight: 600; }
.shot figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; margin-top: 4px; }
.phone.flat { width: 250px; height: 520px; transform: none; animation: none; border-radius: 42px; padding: 9px; }
.phone.flat .screen { border-radius: 34px; background: #070b1d; font-size: 10px; color: #eef3ff; }
.phone.flat .island { width: 72px; height: 20px; top: 8px; }
.ms-status { height: 36px; flex: none; display: flex; align-items: flex-end; padding: 0 22px 4px; font-weight: 600; font-size: 10px; }
.ms-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 12px 6px; }
.ms-circle { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.09); display: grid; place-items: center; flex: none; }
.ms-circle svg { width: 13px; height: 13px; }
.ms-circle.grad, .ms-pill { background: var(--grad); color: #04101c; }
.ms-pill { padding: 6px 11px; border-radius: 99px; font-weight: 700; font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-chip { padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.08); font-weight: 600; font-size: 9px; white-space: nowrap; }
.ms-chip.on { background: rgba(22,217,255,.2); color: #8fe9ff; }
.ms-seg { display: flex; margin: 2px 12px 6px; padding: 3px; border-radius: 99px; background: rgba(255,255,255,.07); }
.ms-seg b { flex: 1; text-align: center; padding: 6px 0; border-radius: 99px; font-size: 9.5px; color: #9fb0cf; font-weight: 600; }
.ms-seg b.on { background: var(--grad); color: #04101c; }
.ms-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 6px 12px 8px; }
.ms-logo { width: 54px; height: 54px; border-radius: 15px; overflow: hidden; margin: 6px auto 0; box-shadow: 0 0 26px rgba(80,150,255,.45); }
.ms-logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); display: block; }
.ms-h { text-align: center; font-size: 15px; font-weight: 800; margin: 2px 0 0; }
.ms-sub { text-align: center; color: #8ba0ba; font-size: 9px; margin-top: -4px; }
.ms-row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 14px; background: #101a35; border: 1px solid rgba(255,255,255,.06); }
.ms-row i { width: 26px; height: 26px; border-radius: 9px; background: rgba(22,217,255,.16); display: grid; place-items: center; color: #7fe3ff; flex: none; font-style: normal; font-size: 12px; }
.ms-row b { display: block; font-size: 10px; }
.ms-row small { color: #8ba0ba; font-size: 8.5px; }
.ms-composer { margin: 0 10px 8px; padding: 9px 10px; border-radius: 20px; background: #101a35; border: 1px solid rgba(22,217,255,.25); box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.ms-composer p { margin: 0 0 8px; color: #7d8fb0; font-size: 10px; }
.ms-composer div { display: flex; align-items: center; gap: 6px; }
.ms-composer .send { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); }
.ms-composer .plus { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; font-weight: 700; }
.ms-tabs { display: flex; justify-content: space-around; align-items: center; margin: 0 10px 8px; padding: 5px; border-radius: 99px; background: rgba(20,30,58,.95); border: 1px solid rgba(22,217,255,.22); }
.ms-tabs span { width: 34px; height: 30px; border-radius: 99px; display: grid; place-items: center; color: #8ba0ba; }
.ms-tabs span.on { background: var(--grad); color: #04101c; }
.ms-tabs svg { width: 15px; height: 15px; }
.ms-cell { border-radius: 18px; background: #101a35; border: 1px solid rgba(22,217,255,.4); padding: 8px; box-shadow: 0 0 16px rgba(22,217,255,.15); }
.ms-cell .hd { display: flex; align-items: center; gap: 6px; padding: 0 2px 6px; color: #8ba0ba; font-family: var(--mono); font-size: 8.5px; }
.ms-cell .hd em { margin-left: auto; font-style: normal; background: rgba(255,200,40,.15); color: #ffd35c; padding: 2px 7px; border-radius: 99px; font-weight: 700; }
.ms-code { background: rgba(0,0,0,.28); border-radius: 12px; padding: 8px 9px; font-family: var(--mono); font-size: 9px; line-height: 1.7; color: #cfd8ff; }
.ms-out { margin-top: 6px; background: rgba(0,0,0,.34); border-radius: 12px; padding: 7px 9px; font-family: var(--mono); font-size: 8.5px; color: #8ef0c4; line-height: 1.6; }
.ms-dock { display: flex; align-items: center; gap: 5px; margin: 0 10px 6px; padding: 5px; border-radius: 99px; background: rgba(20,30,58,.95); border: 1px solid rgba(22,217,255,.22); box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.ms-run { padding: 0 11px; height: 30px; border-radius: 99px; background: var(--grad); color: #04101c; font-weight: 800; display: flex; align-items: center; gap: 5px; font-size: 10px; }
.ms-dock .plusb { width: 28px; height: 28px; border-radius: 50%; background: rgba(22,217,255,.16); color: #7fe3ff; display: grid; place-items: center; font-weight: 800; }
.ms-dock .g { flex: 1; text-align: center; font-size: 8px; color: #8ba0ba; font-weight: 600; }
.ms-dock .g svg { display: block; width: 13px; height: 13px; margin: 0 auto 2px; }
.ms-win { flex: 1; border-radius: 20px; background: rgba(0,0,0,.34); border: 1px solid rgba(255,255,255,.07); padding: 9px 10px; font-family: var(--mono); font-size: 8.8px; line-height: 1.75; overflow: hidden; }
.ms-win .dots { display: flex; gap: 4px; margin-bottom: 6px; }
.ms-win .dots i { width: 7px; height: 7px; border-radius: 50%; background: #ff6b6b; } .ms-win .dots i:nth-child(2) { background: #ffd24d; } .ms-win .dots i:nth-child(3) { background: #55e08b; }
.ms-win .p { color: #5fd9ff; } .ms-win .e { color: #ffb347; }
.ms-input { margin: 0 10px 8px; padding: 7px 8px 7px 12px; border-radius: 99px; background: #101a35; border: 1px solid rgba(22,217,255,.25); display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 9.5px; color: #5fd9ff; }
.ms-input .send { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); }
.ms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.ms-tile { border-radius: 16px; padding: 9px; background: #101a35; }
.ms-cover { aspect-ratio: 1; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 6px; }
.ms-cover svg { width: 26px; height: 26px; }
.ms-tile b { font-size: 10px; display: block; } .ms-tile small { color: #8ba0ba; font-size: 8px; }
.ms-prov { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ms-prov div { border-radius: 15px; padding: 9px; background: #101a35; border: 1px solid rgba(255,255,255,.07); }
.ms-prov i { display: block; width: 26px; height: 26px; border-radius: 50%; margin-bottom: 6px; }
.ms-prov b { display: block; font-size: 10px; } .ms-prov small { color: #8ba0ba; font-size: 8px; }
.ms-more { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.ms-more div { border-radius: 18px; background: #101a35; text-align: center; padding: 14px 6px; font-weight: 600; font-size: 10px; }
.ms-more i { display: block; width: 36px; height: 36px; border-radius: 12px; margin: 0 auto 7px; }
@media (max-width: 980px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .shots { grid-template-columns: 1fr; } }


/* Floating bars: the bar and the message box overlay the page, which keeps scrolling visibly underneath them. */
.phone.flat .screen { position: relative; }
.phone.flat .ms-top { position: relative; z-index: 3; background: linear-gradient(180deg, rgba(7,11,29,.92), rgba(7,11,29,0)); }
.phone.flat .ms-seg { position: relative; z-index: 3; }
.phone.flat .ms-tabs {
  position: absolute; left: 10px; right: 10px; bottom: 8px; margin: 0; z-index: 4;
  background: rgba(24,34,64,.5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(22,217,255,.28);
}
.phone.flat .ms-composer, .phone.flat .ms-dock {
  position: absolute; left: 10px; right: 10px; bottom: 56px; margin: 0; z-index: 4;
  background: rgba(20,30,60,.58); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.phone.flat .ms-input { position: absolute; left: 10px; right: 10px; bottom: 8px; margin: 0; z-index: 4; background: rgba(20,30,60,.7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.phone.flat .ms-body { padding-bottom: 130px; }
.ms-diff { border-radius: 14px; background: #101a35; overflow: hidden; font-family: var(--mono); font-size: 8.5px; line-height: 1.7; }
.ms-diff .h { display: flex; justify-content: space-between; padding: 7px 10px; font-family: var(--font); font-weight: 700; font-size: 9.5px; }
.ms-diff .a { background: rgba(60,220,140,.14); color: #7ff0b5; padding: 0 10px; white-space: nowrap; overflow: hidden; }
.ms-diff .d { background: rgba(255,90,90,.14); color: #ff9b9b; padding: 0 10px; white-space: nowrap; overflow: hidden; }
.ms-diff .k { padding: 0 10px; color: #8ba0ba; white-space: nowrap; overflow: hidden; }
.ms-step { display: flex; align-items: center; gap: 7px; font-size: 9.5px; padding: 3px 2px; }
.ms-step b { width: 12px; text-align: center; color: #55e08b; }
.ms-table { border-radius: 14px; overflow: hidden; background: rgba(0,0,0,.28); font-family: var(--mono); font-size: 8.5px; }
.ms-table div { display: grid; grid-template-columns: 1.2fr 1fr 1fr; padding: 5px 9px; }
.ms-table div:first-child { background: rgba(22,217,255,.14); font-weight: 700; color: #8fe9ff; }
.ms-table div:nth-child(even) { background: rgba(255,255,255,.04); }
.ms-slider { margin: 4px 0; } .ms-slider span { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 8.5px; }
.ms-slider i { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); margin-top: 6px; position: relative; }
.ms-slider i::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 62%; border-radius: 4px; background: var(--grad); }
.ms-slider i::after { content: ""; position: absolute; left: 62%; top: -4px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5); }

/* App-tour additions: chat bubbles and code block, community search, welcome questions, personalised learning */
.ms-user { align-self: flex-end; margin-left: auto; max-width: 82%; padding: 8px 12px; border-radius: 16px; background: linear-gradient(135deg,#16d9ff,#6a7cff); color: #04101c; font-size: 9.5px; font-weight: 600; }
.ms-ai { margin-top: 8px; padding: 9px 10px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.07); font-size: 9px; line-height: 1.45; color: #dfe8fb; }
.ms-ai p { margin: 0 0 6px; } .ms-ai code { font-family: ui-monospace, Menlo, monospace; color: #8fe9ff; }
.ms-cb { margin: 6px 0; border-radius: 9px; overflow: hidden; background: #0d1020; border: 1px solid rgba(255,255,255,.08); }
.ms-cbh { display: flex; justify-content: space-between; padding: 4px 8px; background: rgba(255,255,255,.06); font-size: 7px; font-weight: 700; letter-spacing: .08em; color: #8b9ab6; }
.ms-cbh span:last-child { color: #6fd6ff; letter-spacing: 0; }
.ms-cbc { padding: 7px 8px; font-family: ui-monospace, Menlo, monospace; font-size: 8px; line-height: 1.5; color: #dbe5f5; white-space: nowrap; }
.ms-cbc .k { color: #b399ff; } .ms-cbc .n { color: #8dd1fa; } .ms-cbc .c { color: #73947f; } .ms-cbc .f { color: #6fd6ff; }
.ms-meta { font-size: 7.5px; color: #8b9ab6; margin-top: 2px; }
.ms-search { display: flex; align-items: center; gap: 6px; margin: 2px 12px 7px; padding: 8px 11px; border-radius: 13px; background: #101a35; border: 1px solid rgba(22,217,255,.35); box-shadow: 0 0 10px rgba(22,217,255,.18); font-size: 9px; color: #8ba0ba; }
.ms-chips { display: flex; gap: 5px; margin: 0 12px 8px; overflow: hidden; }
.ms-hero { margin: 0 12px 9px; height: 74px; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(135deg,#6a7cff,#16d9ff); color: #fff; }
.ms-hero small { font-size: 7px; font-weight: 800; letter-spacing: .1em; opacity: .85; } .ms-hero b { font-size: 12px; }
.ms-opt { display: flex; align-items: center; gap: 8px; margin: 0 12px 7px; padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(22,217,255,.18); font-size: 9.5px; }
.ms-opt.on { border-color: #16d9ff; background: rgba(22,217,255,.12); }
.ms-opt i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(22,217,255,.16); font-style: normal; font-size: 11px; }
.ms-opt small { display: block; color: #8ba0ba; font-size: 7.5px; }
.ms-q { margin: 14px 14px 10px; text-align: center; font-size: 14px; font-weight: 800; line-height: 1.2; } .ms-qs { margin: -4px 18px 12px; text-align: center; font-size: 8.5px; color: #9fb0cf; }
.ms-made { margin: 0 12px 9px; padding: 10px; border-radius: 14px; background: rgba(22,217,255,.1); font-size: 8.5px; line-height: 1.45; color: #cfe0f7; } .ms-made b { display: block; font-size: 10px; color: #fff; margin-bottom: 3px; }

/* Numbers band, comparison rows, pricing */
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.numbers div { text-align: center; padding: 20px 12px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.numbers b { display: block; font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.numbers span { color: var(--muted); font-size: .9rem; }
.vs { display: grid; gap: 14px; }
.vs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vs-row > div { padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.vs-row > div:last-child { border-color: rgba(22,217,255,.4); background: rgba(22,217,255,.07); }
.vs-row small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.vs-row > div:last-child small { color: #7fe3ff; }
.vs-row p { margin: 0; }
@media (max-width: 640px) { .vs-row { grid-template-columns: 1fr; } }
.price { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 2px; }
.price small { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.plan li { position: relative; padding-left: 24px; color: var(--muted); font-size: .95rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: #7fe3ff; font-weight: 800; }
.plan.featured { border-color: rgba(22,217,255,.5); box-shadow: 0 0 0 1px rgba(22,217,255,.25), 0 20px 60px -30px rgba(22,217,255,.5); }
.tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: var(--grad); color: #04101c; }
.pill-list { display: flex; flex-wrap: wrap; gap: 9px; }
.pill-list span { padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: .9rem; }
.small-note { color: var(--muted); font-size: .88rem; text-align: center; margin-top: 18px; }


/* Real app screenshots inside the same floating / flat phone frames */
.phone .screen > img.app-shot { display: block; flex: 1 1 auto; min-height: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.has-shot .island { display: none; }
@media (min-width: 900px) { .shots.real { grid-template-columns: repeat(4, 1fr); } }

.art-card.art-phone { display: grid; place-items: center; padding: 34px 20px; }

/* ===== Aurora glass: the website wears the same look as the app ===== */
:root {
  --bg: #04060d;
  --card: rgba(255, 255, 255, 0.055);
  --card-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #1fe0ff;
  --companion: #4d73ff;
  --grad: linear-gradient(100deg, #1fe0ff 0%, #4d73ff 100%);
  --radius: 26px;
  --radius-sm: 20px;
  --rounded: ui-rounded, "SF Pro Rounded", var(--font);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 24px 60px -34px rgba(0, 0, 0, 0.75);
}
body {
  background:
    radial-gradient(70% 46% at 86% -6%, rgba(77, 115, 255, 0.30), transparent 70%),
    radial-gradient(60% 42% at 6% -2%, rgba(31, 224, 255, 0.20), transparent 68%),
    radial-gradient(70% 44% at 50% 108%, rgba(157, 92, 255, 0.17), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
h1, h2, h3, h4, .brand span { font-family: var(--rounded); }

/* The bar floats, like the app's tab bar. */
.nav {
  top: 12px; margin: 12px auto 0; width: min(var(--max), 100% - 24px);
  border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 999px;
  background: rgba(14, 19, 36, 0.55);
  backdrop-filter: saturate(180%) blur(26px); -webkit-backdrop-filter: saturate(180%) blur(26px);
  box-shadow: var(--glass-shadow);
}
.nav .wrap { width: 100%; }
.nav-inner { height: 60px; padding: 0 12px 0 18px; }
.nav-links a { border-radius: 999px; padding: 8px 14px; }
.nav-links a[aria-current="page"] { background: var(--grad); color: #031018; font-weight: 600; }
@media (max-width: 960px) { .nav { border-radius: 28px; } .nav-inner { height: 56px; flex-wrap: wrap; } .nav.open .nav-inner { height: auto; padding-bottom: 12px; } }

/* Frosted glass cards. */
.card, details.faq, .cta, .step, .plan, .vs, .shot figcaption, .stat {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.card:hover { border-color: rgba(255, 255, 255, 0.26); background: var(--card-strong); }
details.faq { border-radius: var(--radius-sm); }
details.faq[open] { background: var(--card-strong); }
details.faq summary::after { color: var(--accent); }
.cta {
  background:
    radial-gradient(520px 280px at 15% 0%, rgba(31, 224, 255, 0.20), transparent 70%),
    radial-gradient(520px 300px at 90% 100%, rgba(77, 115, 255, 0.24), transparent 70%),
    var(--card);
}

/* Buttons are capsules: a gradient for the main action, glass for the rest. */
.btn-primary { background: var(--grad); color: #031018; box-shadow: 0 12px 32px -12px rgba(31, 224, 255, 0.65); }
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(31, 224, 255, 0.8); }
.btn-ghost { background: var(--card); border-color: var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* Small labels read as the app's quiet overlines. */
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.76rem; font-weight: 700; }
.eyebrow i { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.lang { background: var(--card); border-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

.footer { border-top: 1px solid var(--line); background: rgba(8, 11, 22, 0.5); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: rgba(14, 19, 36, 0.95); }
  .card, details.faq, .cta { background: rgba(24, 32, 58, 0.9); }
}
