/*
 * The public pages (pricing, features, download, about, terms and the rest) in the landing page's
 * clothes: the same dark field with drifting glass forms, a glass navigation pill that keeps its
 * buttons and loses its background as you scroll, and cards of the same glass. One sheet, so every
 * page reads the same and a change lands everywhere. Type is set for reading: 17px body on a wide
 * measure, full page width with safe margins, and headings that scale with the viewport.
 */

:root {
  --site-bg: #070a12;
  --site-text: #e6ecf5;
  --site-muted: #aeb9ca;
  --site-dim: #8b96a8;
  --site-accent: #5ba4e6;
  --site-accent-2: #a99cf9;
  --site-ok: #34d399;
  --site-warn: #f2b544;
  --site-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(178, 178, 178, 0.045));
  --site-glass-border: rgba(255, 255, 255, 0.16);
  --site-radius: 22px;
  --site-pad: clamp(18px, 4vw, 64px);
}

html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--site-bg); }
body { color: var(--site-text); font: 17px/1.7 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bg .blob, .cta { animation: none !important; transition: none !important; } }

/* ---------- the field ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; contain: strict; background:
  radial-gradient(60% 50% at 18% 22%, rgba(91, 164, 230, 0.26), transparent 60%),
  radial-gradient(50% 45% at 82% 70%, rgba(139, 124, 246, 0.24), transparent 60%),
  radial-gradient(35% 35% at 55% 90%, rgba(79, 209, 197, 0.16), transparent 60%), var(--site-bg); }
.bg .blob { position: absolute; border-radius: 50%; filter: blur(34px); opacity: 0.45; mix-blend-mode: screen; transform: translateZ(0); animation: blob-drift 26s ease-in-out infinite alternate; }
.bg .b1 { width: 46vw; height: 46vw; left: -8vw; top: -8vw; background: radial-gradient(circle at 35% 35%, #7dbcf3, #2b6cb0 60%, transparent 75%); }
.bg .b2 { width: 38vw; height: 38vw; right: -6vw; top: 24vh; background: radial-gradient(circle at 40% 40%, #a99cf9, #5b46a8 60%, transparent 75%); animation-duration: 32s; animation-delay: -8s; }
.bg .b3 { width: 30vw; height: 30vw; left: 30vw; bottom: -10vw; background: radial-gradient(circle at 45% 40%, #7fe0d6, #2c8f86 60%, transparent 75%); animation-duration: 38s; animation-delay: -16s; }
@keyframes blob-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(4vw, -3vw, 0) scale(1.08); } }
.bg .sparkles { position: absolute; inset: 0; opacity: 0.55; background-image:
  radial-gradient(1.5px 1.5px at 12% 18%, rgba(207, 227, 255, 0.8), transparent), radial-gradient(1px 1px at 28% 62%, rgba(207, 227, 255, 0.6), transparent),
  radial-gradient(1.5px 1.5px at 44% 30%, rgba(207, 227, 255, 0.7), transparent), radial-gradient(1px 1px at 58% 78%, rgba(207, 227, 255, 0.5), transparent),
  radial-gradient(2px 2px at 66% 14%, rgba(207, 227, 255, 0.7), transparent), radial-gradient(1px 1px at 78% 48%, rgba(207, 227, 255, 0.6), transparent),
  radial-gradient(1.5px 1.5px at 88% 84%, rgba(207, 227, 255, 0.7), transparent), radial-gradient(1px 1px at 92% 22%, rgba(207, 227, 255, 0.5), transparent); }
.bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>"); }

/* ---------- page frame: the full width, with safe margins ---------- */
.pg { position: relative; min-height: 100dvh; isolation: isolate; }
.in { width: 100%; max-width: none; margin: 0; padding: 14px var(--site-pad) 64px; }
@media (min-width: 1800px) { .in { padding-left: max(var(--site-pad), calc((100% - 1720px) / 2)); padding-right: max(var(--site-pad), calc((100% - 1720px) / 2)); } }

/* ---------- navigation: a glass pill that keeps its buttons and loses its background on scroll ---------- */
header.site-nav, header { position: sticky; top: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 10px 14px 10px 18px; border-radius: 999px;
  background: var(--site-glass); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease; }
header.scrolled { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
header.scrolled nav a, header.scrolled .mark { background: rgba(7, 10, 18, 0.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.12); }
header.scrolled .mark { padding: 6px 12px 6px 6px; border-radius: 999px; }
.mark { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; transition: background 0.3s, padding 0.3s; border: 1px solid transparent; }
.logo { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, #5ba4e6, #3567b5); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 20px; box-shadow: 0 4px 12px rgba(91, 164, 230, 0.45); }
.word { font-size: 19px; font-weight: 800; letter-spacing: 0.14em; }
.word i { font-style: normal; color: var(--site-accent); }
nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav a { color: var(--site-muted); text-decoration: none; padding: 9px 15px; border-radius: 999px; font-size: 15px; font-weight: 600; border: 1px solid transparent; transition: color 0.15s, background 0.15s; white-space: nowrap; }
nav a:hover, nav a[aria-current] { color: #fff; background: rgba(255, 255, 255, 0.09); }
.cta, nav a.cta { display: inline-block; background: linear-gradient(180deg, #8cc4f5, #5ba4e6); color: #06111d; font-weight: 700; padding: 11px 20px; border-radius: 999px; text-decoration: none; font-size: 15.5px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); transition: transform 0.15s, filter 0.15s; }
header.scrolled nav a.cta { background: linear-gradient(180deg, #8cc4f5, #5ba4e6); border-color: transparent; }
.cta:hover { filter: brightness(1.06); transform: translateY(-1px); }
.cta.ghost { background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(178, 178, 178, 0.06)); color: #fff; border: 1px solid rgba(255, 255, 255, 0.22); }
nav a.cta { margin-left: 12px; }
@media (max-width: 860px) {
  header { top: 8px; padding: 8px 10px 8px 12px; }
  nav a:not(.cta) { display: none; }
  nav a.cta { margin-left: 0; }
}

/* ---------- type ---------- */
h1 { font-size: clamp(40px, 5.6vw, 70px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; margin: clamp(40px, 8vh, 84px) 0 14px; padding-bottom: 0.14em; max-width: 22ch;
  background: linear-gradient(120deg, #fff 40%, #a9c7ec); -webkit-background-clip: text; background-clip: text; color: transparent; text-wrap: balance; }
h1 span { background: linear-gradient(120deg, #7dbcf3, #a99cf9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; color: #b7c2d9; max-width: 68ch; margin: 0 0 26px; text-wrap: pretty; }
h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.2; color: #fff; margin: 52px 0 12px; letter-spacing: -0.02em; text-wrap: balance; }
h2::before { content: ""; display: block; width: 26px; height: 2px; background: var(--site-accent); margin-bottom: 12px; opacity: 0.8; }
h3 { font-size: 20px; color: #fff; margin: 26px 0 8px; }
p, li, dd { max-width: 76ch; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
a { color: var(--site-accent); }
b, strong { color: #fff; font-weight: 600; }
code { font: 600 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(255, 255, 255, 0.07); padding: 2px 6px; border-radius: 6px; }
blockquote { margin: 18px 0 0; }
small, .fine { font-size: 14.5px; color: var(--site-dim); }

/* ---------- cards, grids, tables, faq ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; margin-top: 20px; }
.card, .plan, .faq details, .tile, .step { background: var(--site-glass); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--site-glass-border); border-radius: var(--site-radius); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.32); }
.card { padding: 22px 24px; }
.card b { display: block; color: #fff; font-weight: 650; font-size: 18px; margin-bottom: 6px; }
.card span, .card p { color: var(--site-muted); font-size: 15.5px; line-height: 1.65; }
.row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 18px; font-size: 15.5px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(178, 178, 178, 0.03)); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; overflow: hidden; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.08); vertical-align: top; }
th { color: #fff; font-weight: 650; background: rgba(255, 255, 255, 0.04); }
tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.faq details { padding: 14px 20px; margin-top: 10px; }
.faq summary { cursor: pointer; color: #fff; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--site-accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 4px; color: var(--site-muted); }
.faq dt { color: #fff; font-weight: 600; margin-top: 16px; }
.faq dd { margin: 4px 0 0; color: var(--site-muted); }

/* ---------- pricing ---------- */
.plans-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.term-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); gap: 3px; }
.term-switch button { border: 0; background: transparent; color: var(--site-muted); font: inherit; font-size: 15px; font-weight: 650; padding: 8px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.term-switch button[aria-pressed="true"] { background: #fff; color: #06111d; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.term-switch .save { font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--site-ok); }
.term-switch button[aria-pressed="true"] .save { color: #0b7a4b; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr)); gap: 16px; margin-top: 22px; align-items: stretch; }
.plan { position: relative; padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.plan.featured { border-color: rgba(125, 188, 243, 0.6); box-shadow: 0 0 0 1px rgba(125, 188, 243, 0.25), 0 22px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.plan.soon { opacity: 0.78; }
.plan .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: #0d1220; border: 1px solid; white-space: nowrap; }
.plan .badge.popular { color: #7dbcf3; border-color: rgba(125, 188, 243, 0.7); }
.plan .badge.value { color: var(--site-ok); border-color: rgba(52, 211, 153, 0.7); }
.plan .badge.soon { color: var(--site-warn); border-color: rgba(242, 181, 68, 0.7); }
.plan .badge.offer { color: #fff; background: linear-gradient(120deg, #f2b544, #f27b44); border-color: transparent; }
.plan h3 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.plan .tag { color: var(--site-muted); font-size: 15px; line-height: 1.5; min-height: 3.1em; margin: 0; }
.plan .kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--site-dim); }
.plan .price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 6px 0 0; }
.plan .amount { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; color: #fff; line-height: 1; }
.plan .per { color: var(--site-muted); font-size: 15px; }
.plan .full { color: var(--site-dim); text-decoration: line-through; font-size: 16px; }
.plan .sub { color: var(--site-dim); font-size: 13.5px; margin: 0; min-height: 1.4em; }
.plan .saves { color: var(--site-ok); font-size: 13px; font-weight: 700; }
.plan .offer-msg { font-size: 13.5px; color: var(--site-warn); margin: 0; }
.plan .go { display: block; text-align: center; margin-top: 8px; }
.plan .features { list-style: none; padding: 0; margin: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 12px; display: grid; gap: 7px; }
.plan .features li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; line-height: 1.4; color: var(--site-text); margin: 0; max-width: none; }
.plan .features li.off { color: var(--site-dim); }
.plan .features li::before { content: "✓"; color: var(--site-ok); font-weight: 800; flex: 0 0 16px; }
.plan .features li.off::before { content: "–"; color: var(--site-dim); }
.plan .features li .note { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--site-dim); white-space: nowrap; }
.plan .features li .soon-pill { margin-left: auto; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--site-warn); }
.trial-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 18px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(242, 181, 68, 0.5); background: linear-gradient(90deg, rgba(242, 181, 68, 0.16), rgba(242, 181, 68, 0.03) 70%); color: var(--site-text); font-size: 15.5px; text-decoration: none; }
.trial-line:hover { border-color: #f2b544; text-decoration: none; }
.trial-line b { color: #f2b544; }
.trial-badge { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #f2b544; }
.trial-line > span:nth-child(2) { flex: 1 1 260px; }
.trial-go { font-weight: 700; color: #f2b544; white-space: nowrap; }
.plans-note { margin-top: 18px; font-size: 15px; color: var(--site-muted); }
.compare th:first-child, .compare td:first-child { min-width: 240px; }
.compare td.yes { color: var(--site-ok); font-weight: 800; text-align: center; }
.compare td.yes small { display: block; font-size: 11px; font-weight: 600; color: var(--site-muted); }
.compare td.no { color: var(--site-dim); text-align: center; }
.compare th.c { text-align: center; }
.plans-loading { color: var(--site-dim); font-size: 15px; margin-top: 18px; }

/* ---------- footer ---------- */
footer { margin-top: 80px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: var(--site-dim); font-size: 14.5px; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
footer b { color: #e6ecf5; font-weight: 600; }
footer a { color: var(--site-muted); }
footer a:hover { color: #fff; }
.currency-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--site-muted); }
.currency-pick select { font: inherit; font-weight: 650; color: #fff; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 7px 30px 7px 12px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a9b4c4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.currency-pick select:hover, .currency-pick select:focus { border-color: rgba(91, 164, 230, 0.7); outline: none; }
.currency-pick option { background: #141a24; color: #fff; }
