/* SolutionMCP website. Hand-written: no framework, no web fonts, nothing from elsewhere.
   Light and dark follow the system unless someone picks one (data-theme on <html>). */

:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;

  --cyan: #12d6f4;
  --blue: #2f7cf6;
  --violet: #7a3cf2;
  --brand: linear-gradient(100deg, var(--cyan) 0%, var(--blue) 48%, var(--violet) 100%);

  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --bg-tint: #eef3ff;
  --surface: #ffffff;
  --text: #121a33;
  --text-2: #3c4660;
  --muted: #5f6a82;
  --line: #e2e7f1;
  --line-2: #d3dae8;
  --link: #2459d6;
  --accent: #2f6bf0;
  --accent-ink: #ffffff;
  --ok: #0f8a5f;
  --warn: #a85b00;
  --bad: #c43b3b;
  --code-bg: #f1f4fa;
  --shadow: 0 1px 2px rgba(18, 26, 51, .06), 0 8px 24px rgba(18, 26, 51, .06);
  --shadow-lg: 0 2px 6px rgba(18, 26, 51, .06), 0 30px 60px -12px rgba(30, 40, 90, .25);
  --glow-1: rgba(18, 214, 244, .18);
  --glow-2: rgba(122, 60, 242, .14);
  --header-bg: rgba(255, 255, 255, .82);

  --radius: 14px;
  --radius-sm: 9px;
  --container: 1180px;
  --gap: clamp(16px, 3vw, 28px);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #090e1c;
  --bg-soft: #0e1426;
  --bg-tint: #111a33;
  --surface: #111829;
  --text: #ecf0fa;
  --text-2: #c3cbe0;
  --muted: #98a3bd;
  --line: #1f2840;
  --line-2: #2b3653;
  --link: #7fb0ff;
  --accent: #3d7bff;
  --ok: #3ccf91;
  --warn: #f0a640;
  --bad: #ff7b7b;
  --code-bg: #141c31;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 30px 70px -10px rgba(0, 0, 0, .6);
  --glow-1: rgba(18, 214, 244, .14);
  --glow-2: rgba(122, 60, 242, .20);
  --header-bg: rgba(9, 14, 28, .78);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090e1c;
    --bg-soft: #0e1426;
    --bg-tint: #111a33;
    --surface: #111829;
    --text: #ecf0fa;
    --text-2: #c3cbe0;
    --muted: #98a3bd;
    --line: #1f2840;
    --line-2: #2b3653;
    --link: #7fb0ff;
    --accent: #3d7bff;
    --ok: #3ccf91;
    --warn: #f0a640;
    --bad: #ff7b7b;
    --code-bg: #141c31;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 30px 70px -10px rgba(0, 0, 0, .6);
    --glow-1: rgba(18, 214, 244, .14);
    --glow-2: rgba(122, 60, 242, .20);
    --header-bg: rgba(9, 14, 28, .78);
    color-scheme: dark;
  }
}

/* ---- Base ---------------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.9rem); font-weight: 780; letter-spacing: -.035em; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.7vw, 2.5rem); font-weight: 740; }
h3 { font-size: 1.2rem; font-weight: 680; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--mono); font-size: .88em; }
code { background: var(--code-bg); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; }
pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; font-size: .86rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
::selection { background: rgba(47, 124, 246, .25); }

.container { width: min(100% - 2 * var(--gap), var(--container)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gap), 780px); margin-inline: auto; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem); color: var(--text-2); line-height: 1.55; }
.center { text-align: center; }
.center .actions, .actions.center { justify-content: center; }
.gradient-text { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 650; background: var(--bg-tint); color: var(--accent); border: 1px solid var(--line-2); }
.pill.soon { color: var(--violet); }
:root[data-theme="dark"] .pill.soon { color: #b393ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.soon { color: #b393ff; } }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(15, 138, 95, .15); }

/* ---- Buttons ------------------------------------------------------------------------------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 11px;
  font: 650 1rem/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  color: var(--text); background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 1px 2px rgba(18, 26, 51, .05);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.button:hover { border-color: var(--accent); transform: translateY(-1px); }
.button-primary {
  color: #fff; border: 0;
  background: linear-gradient(100deg, #1fb6f2 0%, #2f6bf0 50%, #6a3cf0 100%);
  box-shadow: 0 6px 18px -6px rgba(47, 107, 240, .65), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.button-primary:hover { box-shadow: 0 10px 26px -8px rgba(47, 107, 240, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.button-small { min-height: 38px; padding: 0 14px; font-size: .92rem; border-radius: 9px; }
.button-large { min-height: 54px; padding: 0 26px; font-size: 1.06rem; border-radius: 13px; }
.button[disabled] { opacity: .6; cursor: progress; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.arrow::after { content: "→"; transition: transform .15s ease; }
a:hover .arrow::after, .button:hover.arrow::after { transform: translateX(3px); }

/* ---- Header -------------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 760; font-size: 1.22rem; letter-spacing: -.02em; flex-shrink: 0; }
.brand img { width: 32px; height: 32px; }
.brand .mcp { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { color: var(--text-2); text-decoration: none; font-weight: 560; font-size: .97rem; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover { color: var(--text); background: var(--bg-soft); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--bg-tint); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; }
.icon-button:hover { color: var(--text); border-color: var(--line-2); }
.icon-button svg { width: 19px; height: 19px; }
.menu-button { display: none; }
.theme-button .moon { display: none; }
:root[data-theme="dark"] .theme-button .sun { display: none; }
:root[data-theme="dark"] .theme-button .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-button .sun { display: none; }
  :root:not([data-theme="light"]) .theme-button .moon { display: block; }
}

@media (max-width: 980px) {
  .header-row { flex-wrap: wrap; gap: 10px; }
  .menu-button { display: inline-grid; }
  .js .site-nav { display: none; }
  .site-nav { order: 10; width: 100%; flex-direction: column; align-items: stretch; margin: 0 0 12px; padding-top: 6px; border-top: 1px solid var(--line); }
  .site-nav a { padding: 12px 10px; font-size: 1.05rem; }
  .js .site-header[data-open] .site-nav { display: flex; }
  .header-actions { margin-left: auto; }
  .header-actions .button { min-height: 40px; padding: 0 14px; font-size: .92rem; }
}
@media (max-width: 420px) {
  .brand { font-size: 1.08rem; }
  .header-actions { gap: 6px; }
  .header-actions .theme-button { display: none; }
  .header-actions .button .long { display: none; }
}
@media (min-width: 421px) { .header-actions .button .short { display: none; } }

/* ---- Sections ------------------------------------------------------------------------------ */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.section.soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--text-2); font-size: 1.12rem; }

/* ---- Hero ---------------------------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 20% 20%, var(--glow-1), transparent 70%),
    radial-gradient(45% 55% at 85% 30%, var(--glow-2), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 600px; margin-bottom: 30px; }
.hero .actions { margin-bottom: 26px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .93rem; padding: 0; margin: 0; list-style: none; }
.hero-notes li { display: inline-flex; align-items: center; gap: 7px; }
.hero-notes li::before { content: ""; width: 16px; height: 16px; flex-shrink: 0; background: var(--ok); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.4 11.2 3.2 8l-1.1 1.1 4.3 4.3 8-8-1.1-1.1z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.4 11.2 3.2 8l-1.1 1.1 4.3 4.3 8-8-1.1-1.1z'/%3E%3C/svg%3E") center/contain no-repeat; }
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); }
.page-hero .lead { max-width: 720px; }
.page-hero.center .lead { margin-inline: auto; }

/* The app's windows, as pictures. */
.shot { position: relative; }
.window {
  border-radius: 14px; overflow: hidden; background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(18, 26, 51, .06);
}
.window-bar { display: flex; gap: 7px; padding: 11px 14px; background: #2a2b2f; border-bottom: 1px solid rgba(0, 0, 0, .4); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar span:nth-child(2) { background: #febc2e; }
.window-bar span:nth-child(3) { background: #28c840; }
.shot .float {
  position: absolute; right: -4%; bottom: -10%; width: 47%;
  border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .2);
}
.shot-caption { margin-top: 18px; font-size: .88rem; color: var(--muted); text-align: center; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .shot { margin: 8px 4% 40px 0; }
}

/* ---- Apps strip ---------------------------------------------------------------------------- */

.apps-strip { padding: 26px 0 34px; border-block: 1px solid var(--line); background: var(--bg-soft); }
.apps-strip p { text-align: center; margin: 0 0 14px; color: var(--muted); font-size: .9rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .94rem; color: var(--text-2); }

/* ---- Cards and grids ----------------------------------------------------------------------- */

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--text-2); }
a.card { display: block; text-decoration: none; color: inherit; transition: transform .16s ease, border-color .16s ease; }
a.card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  color: #fff; background: var(--brand); box-shadow: 0 8px 18px -8px rgba(47, 107, 240, .7);
}
.icon svg { width: 23px; height: 23px; }
.card.soon { border-style: dashed; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--text-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand);
  -webkit-mask: radial-gradient(circle, #000 64%, transparent 66%); mask: radial-gradient(circle, #000 64%, transparent 66%);
}
.checks li::after { content: ""; position: absolute; left: 5px; top: calc(.32em + 5px); width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg); }
.checks strong { color: var(--text); }

/* Steps. */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; margin-bottom: 14px;
  font-weight: 760; color: #fff; background: var(--brand);
}
.steps p { color: var(--text-2); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Permission modes. */
.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mode { padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.mode strong { display: block; margin-bottom: 4px; }
.mode span { color: var(--text-2); font-size: .95rem; }
.mode.recommended { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 107, 240, .14); }
.split .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.mode .tag { display: block; margin-top: 2px; font-size: .72rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 860px) { .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .modes { grid-template-columns: 1fr; } }

/* Who it's for. */
.audience h3 { display: flex; align-items: center; gap: 10px; }
.audience ul { margin: 12px 0 0; padding-left: 18px; color: var(--text-2); }
.audience li { margin-bottom: 6px; }

/* Stats strip. */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fact { padding: 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.fact strong { display: block; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.2; }
.fact span { color: var(--muted); font-size: .93rem; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Code sample. */
.code-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); background: #0d1222; }
.code-card .code-title { padding: 10px 16px; font: 600 .8rem/1 var(--mono); color: #9aa6c3; background: #141b31; border-bottom: 1px solid #222c48; }
.code-card pre { margin: 0; border: 0; border-radius: 0; background: transparent; color: #dfe6f7; }
.code-card .k { color: #8fb8ff; }
.code-card .s { color: #8be3b9; }
.code-card .c { color: #6f7b99; }

/* ---- Call to action band ------------------------------------------------------------------- */

.cta {
  position: relative; overflow: hidden; border-radius: 22px; padding: clamp(36px, 6vw, 64px);
  color: #fff; background: #0c1330; isolation: isolate;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 90% at 0% 0%, rgba(18, 214, 244, .45), transparent 60%), radial-gradient(60% 90% at 100% 100%, rgba(122, 60, 242, .6), transparent 60%);
}
.cta h2 { color: #fff; max-width: 720px; }
.cta p { color: rgba(255, 255, 255, .85); max-width: 640px; font-size: 1.12rem; }
.cta .button:not(.button-primary) { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); }
.cta .button-primary { background: #fff; color: #172150; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }

/* ---- Notices ------------------------------------------------------------------------------- */

.notice { border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg-tint); padding: 22px 24px; margin: 0 0 28px; }
.notice h2, .notice h3 { font-size: 1.25rem; margin-bottom: 6px; }
.notice p:last-child { margin-bottom: 0; }
.notice-soon { border-color: rgba(122, 60, 242, .35); background: linear-gradient(120deg, rgba(18, 214, 244, .08), rgba(122, 60, 242, .1)); }
.banner { text-align: center; padding: 10px 16px; font-size: .93rem; font-weight: 560; color: #fff; background: linear-gradient(90deg, #1a8fe0, #4b4ff0, #7a3cf2); }
.banner a { color: #fff; font-weight: 700; }

/* ---- Pricing ------------------------------------------------------------------------------- */

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1060px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; padding: 26px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.plan.featured { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand) border-box; box-shadow: var(--shadow-lg); }
.plan .ribbon { position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 999px; font-size: .76rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--brand); }
.plan h3 { font-size: 1.12rem; margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: .93rem; margin-bottom: 18px; min-height: 2.8em; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price strong { font-size: 2.6rem; letter-spacing: -.03em; line-height: 1; }
.price span { color: var(--muted); font-weight: 560; }
.plan .after { color: var(--muted); font-size: .88rem; margin-bottom: 18px; min-height: 2.6em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: .96rem; color: var(--text-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.plan li.no { color: var(--muted); }
.plan li.no::before { content: "–"; color: var(--muted); }
.plan .button { width: 100%; }
.plan .button[aria-disabled="true"] { color: var(--muted); cursor: default; transform: none; border-style: dashed; }
.plans + .card { margin-top: 24px; }
.toggle { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 26px; }
.toggle button { font: 620 .95rem/1 var(--font); color: var(--text-2); padding: 10px 16px; border-radius: 9px; border: 0; background: transparent; cursor: pointer; }
.toggle button[aria-pressed="true"] { color: var(--text); background: var(--surface); box-shadow: var(--shadow); }

/* ---- Tables -------------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 1.4em; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg-soft); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.yes { color: var(--ok); font-weight: 700; }
td.no { color: var(--muted); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
code.hash { font-size: .72rem; word-break: break-all; }

/* ---- Download ------------------------------------------------------------------------------ */

.release-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 22px; }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-bottom: 48px; }
@media (max-width: 980px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card { container-type: inline-size; padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.dl-card.yours { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand) border-box; }
.dl-card h2 { font-size: 1.45rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.dl-card .yours-tag { font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.dl-files { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 16px; }
.dl-files li { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; }
.dl-what { display: flex; flex-direction: column; line-height: 1.35; }
.dl-what .muted { font-size: .82rem; overflow-wrap: anywhere; }
/* A narrow card (three across on a laptop or tablet): the button above its description. */
@container (max-width: 360px) {
  .dl-files li { grid-template-columns: 1fr; }
  .dl-files li .button { justify-self: start; }
}
.sha { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); }
.sha summary { cursor: pointer; width: max-content; }
.sha code { display: block; margin-top: 6px; font-size: .74rem; word-break: break-all; }
.requirements td:first-child { font-weight: 650; white-space: nowrap; }

/* ---- Forms --------------------------------------------------------------------------------- */

.form-card { padding: clamp(24px, 4vw, 40px); border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
label, legend { display: block; font-weight: 650; margin-bottom: 8px; color: var(--text); }
.optional { font-weight: 500; color: var(--muted); font-size: .9rem; }
.hint { display: block; font-size: .88rem; color: var(--muted); margin: -4px 0 8px; font-weight: 400; }
input[type="text"], input[type="email"], input[type="search"], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47, 107, 240, .18); }
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; margin: 0; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--bg); font-weight: 560; color: var(--text-2); cursor: pointer; user-select: none;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.choice span::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--line-2); flex-shrink: 0; transition: all .15s ease; }
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice input:checked + span { border-color: var(--accent); background: var(--bg-tint); color: var(--text); }
.choice input:checked + span::before { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.4 11.2 3.2 8l-1.1 1.1 4.3 4.3 8-8-1.1-1.1z'/%3E%3C/svg%3E") center/12px no-repeat; }
.choice input[type="radio"]:checked + span::before { background: var(--accent); box-shadow: inset 0 0 0 3px var(--bg); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.agree { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--text-2); cursor: pointer; }
.agree input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.counter { float: right; font-weight: 500; font-size: .85rem; color: var(--muted); }
.field-error { display: none; margin-top: 8px; color: var(--bad); font-size: .93rem; font-weight: 560; }
[aria-invalid="true"] ~ .field-error, .has-error .field-error { display: block; }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.form-status { margin: 0 0 18px; padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(196, 59, 59, .4); background: rgba(196, 59, 59, .08); color: var(--bad); font-weight: 560; }
.form-status[hidden] { display: none; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-done { text-align: center; padding: 20px 0; }
.form-done .big-check { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 2rem; font-weight: 800; }
.small { font-size: .9rem; }

/* ---- FAQ ----------------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-weight: 650; font-size: 1.08rem; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 0 20px; color: var(--text-2); max-width: 760px; }
.faq h2 { margin-top: 56px; font-size: 1.5rem; }

/* ---- Prose (legal, help) ------------------------------------------------------------------- */

.prose { color: var(--text-2); }
.prose h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.7rem); color: var(--text); }
.prose h2 { font-size: 1.5rem; margin-top: 2em; color: var(--text); }
.prose h3 { font-size: 1.15rem; margin-top: 1.7em; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.2em 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--bg-tint); border-radius: 0 10px 10px 0; color: var(--text-2); }
.prose blockquote p:last-child { margin: 0; }
.prose table { margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: block; overflow-x: auto; }
.prose strong { color: var(--text); }
.legal { padding-bottom: 80px; }

/* Help: the topics beside the page. */
.help { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding: 40px 0 88px; }
.help-side { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 6px; }
.help-search { margin-bottom: 14px; }
.help-search input { padding: 10px 12px; font-size: .95rem; }
.help-nav details { margin-bottom: 6px; }
.help-nav summary { cursor: pointer; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 0 6px; }
.help-nav ul { list-style: none; padding: 0; margin: 0 0 8px; }
.help-nav a, .help-home { display: block; padding: 6px 10px; border-radius: 7px; color: var(--text-2); text-decoration: none; font-size: .94rem; line-height: 1.35; }
.help-nav a:hover { background: var(--bg-soft); color: var(--text); }
.help-nav a[aria-current="page"] { background: var(--bg-tint); color: var(--accent); font-weight: 650; }
.help-home { font-weight: 650; color: var(--text); margin-bottom: 4px; }
.help-body { min-width: 0; }
.help-back { margin-bottom: 18px; font-size: .93rem; }
.topic-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.topic-list a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text-2); transition: border-color .15s ease; }
.topic-list a:hover { border-color: var(--accent); }
.topic-list strong { color: var(--text); }
.topic-list span { font-size: .93rem; }
@media (max-width: 900px) {
  .help { grid-template-columns: 1fr; padding-top: 20px; }
  .help-side { position: static; max-height: none; }
  .help-nav { display: none; }
  .help-nav.open, .help-side:focus-within .help-nav { display: block; }
  .topic-list { grid-template-columns: 1fr; }
}

/* ---- Contact ------------------------------------------------------------------------------- */

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list a { font-weight: 650; }

/* ---- Footer -------------------------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 56px 0 36px; margin-top: 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-grid h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-about p { color: var(--muted); max-width: 300px; margin-top: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-about { grid-column: 1 / -1; } }

/* ---- Motion -------------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.shown { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Google Analytics: the question, and the footer's way back to it. */
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-button:hover { color: var(--accent); }
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 14px 0;
  background: var(--surface); border-top: 1px solid var(--line-2); box-shadow: 0 -12px 32px -14px rgba(18, 26, 51, .28);
}
.consent-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; }
.consent p { margin: 0; flex: 1 1 440px; color: var(--text-2); font-size: .95rem; line-height: 1.5; }
.consent p strong { color: var(--text); }
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.consent .button { min-width: 110px; }
.consent .button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
@media (max-width: 520px) {
  .consent-actions { flex: 1 1 100%; }
  .consent-actions .button { flex: 1; }
}

@media print {
  .site-header, .site-footer, .cta, .banner, .consent { display: none; }
  body { font-size: 12pt; }
}
