/* SQL Studio Gateway store — palette and shapes of the app icon: deep blue gradient, glossy database,
   dark editor window with traffic lights, green play button. */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --bg-card: #ffffff;
  --ink: #0e1626;
  --ink-2: #2b3445;
  --muted: #5d6779;
  --line: #e2e8f2;
  --line-strong: #cbd5e4;
  --blue-950: #061a4a;
  --blue-900: #0a2a74;
  --blue-700: #1652d9;
  --blue-600: #1f66f2;
  --blue-500: #3b82ff;
  --blue-100: #e7efff;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-700: #15803d;
  --red-600: #d92d20;
  --red-50: #fef3f2;
  --amber-50: #fffaeb;
  --amber-600: #b54708;
  --editor: #0f172a;
  --editor-bar: #1b2539;
  --editor-line: #273349;
  --focus: 0 0 0 3px rgba(31, 102, 242, .28);
  --shadow-sm: 0 1px 2px rgba(14, 22, 38, .06), 0 1px 3px rgba(14, 22, 38, .08);
  --shadow-md: 0 8px 24px rgba(14, 22, 38, .08), 0 2px 6px rgba(14, 22, 38, .06);
  --shadow-lg: 0 30px 60px -20px rgba(6, 26, 74, .45), 0 18px 36px -18px rgba(0, 0, 0, .4);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1c;
    --bg-soft: #0f1628;
    --bg-card: #121a2e;
    --ink: #e8edf6;
    --ink-2: #c9d2e1;
    --muted: #97a3b8;
    --line: #222d45;
    --line-strong: #31405e;
    --blue-100: #15244a;
    --blue-700: #5b93ff;
    --blue-600: #6a9dff;
    --red-50: #2a1416;
    --red-600: #ff7a6e;
    --amber-50: #2a2010;
    --amber-600: #f5b65b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; }
a { color: var(--blue-700); text-underline-offset: 2px; }
a:hover { color: var(--blue-600); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); letter-spacing: -.015em; }
code, kbd, pre { font-family: var(--mono); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── language ── */
body:not(.en) [lang="en"], body.en [lang="it"] { display: none !important; }

/* ── header ── */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header.on-hero { background: rgba(6, 26, 74, .55); border-bottom-color: rgba(255, 255, 255, .08); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand img { border-radius: 7px; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.brand b { font-weight: 600; color: var(--blue-700); }
.on-hero .brand, .on-hero .brand b { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 10px; border-radius: 8px; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); background: var(--bg-soft); }
.on-hero .site-nav a { color: rgba(255, 255, 255, .78); }
.on-hero .site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.lang-switch { display: inline-flex; margin-left: 8px; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.lang-switch button { background: none; border: 0; color: var(--muted); padding: 4px 10px; font: 600 13px/1.6 var(--font); cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--bg-soft); color: var(--ink); }
.on-hero .lang-switch { border-color: rgba(255, 255, 255, .25); }
.on-hero .lang-switch button { color: rgba(255, 255, 255, .7); }
.on-hero .lang-switch button[aria-pressed="true"] { background: rgba(255, 255, 255, .16); color: #fff; }
@media (max-width: 560px) { .site-nav a.nav-optional { display: none; } .brand span { font-size: 16px; } }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-buy { color: #fff; background: linear-gradient(180deg, var(--green-500), var(--green-600) 60%, var(--green-700)); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 20px -6px rgba(22, 163, 74, .55); }
.btn-buy:hover { color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 12px 26px -6px rgba(22, 163, 74, .65); }
.btn-buy[disabled] { opacity: .7; cursor: progress; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.btn-plain { color: var(--ink); border-color: var(--line-strong); background: var(--bg-card); }
.btn-plain:hover { color: var(--ink); background: var(--bg-soft); }
.btn-block { width: 100%; }
.play { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .22); }
.play::before { content: ""; margin-left: 2px; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; display: none; }
.is-busy .spinner { display: inline-block; }
.is-busy .play { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── hero ── */
.hero { position: relative; overflow: hidden; color: #fff; margin-top: -61px; padding: 120px 0 96px;
  background:
    radial-gradient(900px 520px at 85% 15%, rgba(67, 161, 255, .55), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(31, 102, 242, .45), transparent 60%),
    linear-gradient(160deg, var(--blue-950) 0%, var(--blue-900) 45%, #1546c9 100%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-grid > *, .buy > *, .features > *, .how > * { min-width: 0; }
@media (max-width: 960px) { .hero { padding: 104px 0 72px; } .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-700); }
.hero .eyebrow { color: #bcd6ff; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.hero h1 { color: #fff; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 20px; font-weight: 700; }
.hero h1 .grad { background: linear-gradient(90deg, #ffffff, #9cc8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: rgba(234, 241, 255, .86); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; margin: 0 0 30px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: rgba(234, 241, 255, .78); font-size: 14px; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: rgba(34, 197, 94, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%2322c55e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* the icon, drawn: database cylinder behind a dark editor window with a green play button */
.art { position: relative; min-height: 380px; }
.db { position: absolute; left: 0; top: 0; width: 46%; aspect-ratio: 1 / 1.05; }
.db span { position: absolute; left: 0; right: 0; height: 30%; border-radius: 50% / 34%;
  background: linear-gradient(90deg, #6f8fb8 0%, #e9f1fb 28%, #ffffff 40%, #b9c9dd 70%, #5b77a0 100%); box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .45); }
.db span::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, #dbe6f4 55%, #9fb3cc 100%); }
.db span:nth-child(1) { top: 0; }
.db span:nth-child(2) { top: 26%; }
.db span:nth-child(3) { top: 52%; }
.window { position: relative; margin: 72px 0 0 18%; border-radius: 14px; overflow: hidden; background: var(--editor); color: #e2e8f0; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .08); }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: var(--editor-bar); border-bottom: 1px solid var(--editor-line); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.dot:nth-child(2) { background: #febc2e; }
.dot:nth-child(3) { background: #28c840; }
.window-tab { margin-left: 12px; padding: 3px 10px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: #a9b6cc; font: 12px/1.6 var(--mono); }
.window-body { display: grid; grid-template-columns: 34% 1fr; min-height: 250px; }
.window-tree { padding: 14px 12px; border-right: 1px solid var(--editor-line); font: 12px/2 var(--mono); color: #93a3bd; }
.window-tree div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window-tree i { display: inline-block; width: 10px; height: 8px; margin-right: 6px; border-radius: 2px; background: #f5b83d; vertical-align: 0; }
.window-tree .t2 { padding-left: 14px; }
.window-tree .t3 { padding-left: 28px; }
.window-tree .sel { color: #fff; background: rgba(59, 130, 255, .22); border-radius: 4px; }
.window-tree .tb i { background: #6ea8ff; }
.code { margin: 0; padding: 16px 18px; font: 13.5px/1.75 var(--mono); white-space: pre; overflow: hidden; color: #e2e8f0; }
.code .k { color: #7cb3ff; }
.code .s { color: #f8b26a; }
.code .n { color: #7ee2a8; }
.code .c { color: #6b7a93; }
.code .p { color: #22c55e; }
.code .cursor { display: inline-block; width: 8px; height: 16px; margin-left: 2px; vertical-align: -3px; background: #e2e8f0; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.play-big { position: absolute; right: -14px; bottom: -18px; width: 86px; height: 86px; border-radius: 22px; display: grid; place-items: center;
  background: linear-gradient(180deg, #4ade80, var(--green-600) 55%, var(--green-700)); box-shadow: 0 14px 30px -8px rgba(22, 163, 74, .7), 0 1px 0 rgba(255, 255, 255, .4) inset; }
.play-big::before { content: ""; margin-left: 6px; border-left: 30px solid #fff; border-top: 19px solid transparent; border-bottom: 19px solid transparent; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2)); }
@media (max-width: 960px) { .art { min-height: 0; } .db { width: 34%; } .window { margin: 56px 0 0 12%; } }
@media (max-width: 560px) { .window-tree { display: none; } .window-body { grid-template-columns: 1fr; } .window { margin-left: 8%; } .play-big { width: 64px; height: 64px; border-radius: 18px; } .play-big::before { border-left-width: 22px; border-top-width: 14px; border-bottom-width: 14px; } }

/* ── trust strip ── */
.trust { border-bottom: 1px solid var(--line); background: var(--bg); }
.trust ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 12px; padding: 20px 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.35; }
.trust li + li { border-left: 1px solid var(--line); }
.trust svg { flex: none; width: 26px; height: 26px; color: var(--blue-700); }
.trust strong { display: block; color: var(--ink); font-size: 15px; }
@media (max-width: 860px) { .trust ul { grid-template-columns: 1fr 1fr; } .trust li:nth-child(3) { border-left: 0; } .trust li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .trust ul { grid-template-columns: 1fr; } .trust li + li { border-left: 0; border-top: 1px solid var(--line); } }

/* ── sections ── */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -.025em; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
@media (max-width: 640px) { .section { padding: 64px 0; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.feature h3 { font-size: 17px; margin: 14px 0 6px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: #fff; background: linear-gradient(150deg, var(--blue-500), var(--blue-900)); box-shadow: 0 6px 14px -6px rgba(22, 82, 217, .6); }
.ico svg { width: 22px; height: 22px; }
.ico.green { background: linear-gradient(150deg, #4ade80, var(--green-700)); box-shadow: 0 6px 14px -6px rgba(22, 163, 74, .6); }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: how; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }
.how li { list-style: none; position: relative; padding: 26px 24px 24px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); }
.how li::before { counter-increment: how; content: counter(how); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 14px; background: var(--blue-100); color: var(--blue-700); font-weight: 700; }
.how h3 { margin: 0 0 6px; font-size: 17px; }
.how p { margin: 0; color: var(--muted); font-size: 15px; }
.how ol, ol.how { margin: 0; padding: 0; }

/* ── purchase ── */
.buy { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .buy { grid-template-columns: minmax(0, 1fr); } .summary { order: -1; position: static; } }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md); }
.card-pad { padding: 30px; }
@media (max-width: 560px) { .card-pad { padding: 22px 18px; } }
.card h3 { margin: 0 0 4px; font-size: 20px; }
.card .sub { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.summary { position: sticky; top: 84px; overflow: hidden; }
.summary-top { padding: 26px 28px 22px; color: #fff; background: radial-gradient(500px 220px at 100% 0%, rgba(67, 161, 255, .6), transparent 70%), linear-gradient(150deg, var(--blue-950), var(--blue-700)); }
.summary-top .product { display: flex; align-items: center; gap: 14px; }
.summary-top img { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.summary-top h3 { color: #fff; margin: 0; font-size: 19px; }
.summary-top .kind { margin: 2px 0 0; color: rgba(234, 241, 255, .8); font-size: 14px; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 2px; }
.price strong { font: 700 44px/1 var(--font-display); letter-spacing: -.03em; color: #fff; }
.price > span { color: rgba(234, 241, 255, .85); font-size: 14px; }
.summary-body { padding: 22px 28px 26px; }
.ticks { margin: 0 0 20px; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 6px 0 6px 30px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: rgba(22, 163, 74, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
.secure { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.secure svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--green-600); }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; margin: 0 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.total strong { color: var(--ink); font-size: 18px; }

/* ── form ── */
.form-section { margin: 0 0 26px; padding: 0 0 26px; border: 0; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section legend { padding: 0; margin: 0 0 14px; font: 600 13px/1.4 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.field { margin: 0 0 14px; min-width: 0; }
.row .field { margin-bottom: 14px; }
.field label, .label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--bg); color: var(--ink); font: 16px/1.4 var(--font); transition: border-color .15s ease, box-shadow .15s ease; appearance: none; -webkit-appearance: none; }
.field textarea { min-height: 150px; resize: vertical; }
.field select { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%235d6779' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: var(--focus); }
.field .hint { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.field .error-text, .check .error-text { display: none; margin: 6px 0 0; color: var(--red-600); font-size: 13px; font-weight: 500; }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: var(--red-600); }
.is-invalid input:focus, .is-invalid select:focus, .is-invalid textarea:focus { box-shadow: 0 0 0 3px rgba(217, 45, 32, .2); }
.is-invalid .error-text { display: block; }
.phone { position: relative; }
.phone .dial { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; pointer-events: none; }
.phone input { padding-left: 62px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 13px; background: var(--bg-soft); border: 1px solid var(--line); margin: 0 0 18px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; margin: 0; border-radius: 9px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 15px; }
.segmented input:checked + label { background: var(--bg-card); color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + label { box-shadow: var(--focus); }
.business-only { display: none; }
.is-business .business-only { display: block; }
.is-business .row.business-only { display: grid; }
.check { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green-600); cursor: pointer; }
.check label { cursor: pointer; }
.check.is-invalid label { color: var(--red-600); }
.check .error-text { grid-column: 2; margin-top: -4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: none; margin: 0 0 20px; padding: 14px 16px; border-radius: 12px; background: var(--red-50); color: var(--red-600); border: 1px solid color-mix(in srgb, var(--red-600) 30%, transparent); font-size: 14.5px; }
.form-alert.show { display: block; }
.form-alert.info { background: var(--amber-50); color: var(--amber-600); border-color: color-mix(in srgb, var(--amber-600) 30%, transparent); }
.form-alert.ok { background: rgba(22, 163, 74, .08); color: var(--green-700); border-color: rgba(22, 163, 74, .3); }
.fine { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.noscript { padding: 16px; border-radius: 12px; background: var(--amber-50); color: var(--amber-600); }

/* ── FAQ ── */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 40px 20px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* ── closing band ── */
.band { padding: 72px 0; color: #fff; text-align: center; background: radial-gradient(600px 300px at 50% 0%, rgba(67, 161, 255, .5), transparent 70%), linear-gradient(160deg, var(--blue-950), var(--blue-700)); }
.band h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 12px; }
.band p { margin: 0 auto 26px; max-width: 40em; color: rgba(234, 241, 255, .85); font-size: 18px; }

/* ── footer ── */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ── status pages (thank you, download, support) ── */
.status { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 56px 0; background: radial-gradient(800px 400px at 50% -10%, var(--blue-100), transparent 70%), var(--bg); }
.status-card { width: 100%; max-width: 620px; margin: 0 auto; padding: 40px; text-align: center; }
.status-card.wide { max-width: 760px; text-align: left; }
@media (max-width: 560px) { .status-card { padding: 28px 20px; } }
.status-card h1 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.15; margin: 18px 0 10px; }
.status-card p { color: var(--muted); }
.status-card .lead { font-size: 17px; }
.badge-ico { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; color: #fff; background: linear-gradient(150deg, var(--blue-500), var(--blue-900)); box-shadow: 0 12px 26px -10px rgba(22, 82, 217, .7); }
.badge-ico svg { width: 34px; height: 34px; }
.badge-ico.green { background: linear-gradient(150deg, #4ade80, var(--green-700)); box-shadow: 0 12px 26px -10px rgba(22, 163, 74, .7); }
.badge-ico.amber { background: linear-gradient(150deg, #fbbf24, #b45309); box-shadow: 0 12px 26px -10px rgba(180, 83, 9, .6); }
.badge-ico.red { background: linear-gradient(150deg, #f87171, #b42318); box-shadow: 0 12px 26px -10px rgba(180, 35, 24, .6); }
.state { display: none; }
[data-state="valid"] .state-valid, [data-state="used"] .state-used, [data-state="expired"] .state-expired,
[data-state="revoked"] .state-revoked, [data-state="notfound"] .state-notfound, [data-state="window"] .state-window,
[data-state="waiting"] .state-waiting, [data-state="paid"] .state-paid, [data-state="pending"] .state-pending,
[data-state="unknown"] .state-unknown, [data-state="problem"] .state-problem,
[data-state="form"] .state-form, [data-state="sent"] .state-sent,
[data-state="lookup"] .state-lookup, [data-state="license"] .state-license { display: block; }
.facts { display: grid; gap: 0; margin: 24px 0; padding: 0; text-align: left; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; font-size: 14.5px; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; word-break: break-word; }
.next { margin: 26px 0 0; padding: 0; list-style: none; text-align: left; }
.next li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 10px 0; color: var(--ink-2); font-size: 15px; }
.next li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); font-weight: 700; font-size: 14px; }
.loader { width: 44px; height: 44px; margin: 8px auto 0; border-radius: 50%; border: 3px solid var(--blue-100); border-top-color: var(--blue-600); animation: spin .9s linear infinite; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 26px 0 0; }

/* ── documents: guide, terms, privacy ── */
.doc-page { background: var(--bg); }
.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 80px; }
.doc-narrow { display: block; max-width: 860px; }
@media (max-width: 1000px) { .doc { grid-template-columns: 1fr; gap: 24px; } }
.toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; padding-right: 8px; }
.toc-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 1.4; border-left: 2px solid transparent; }
.toc a:hover { background: var(--bg-soft); color: var(--ink); }
.toc a.active { color: var(--blue-700); background: var(--blue-100); border-left-color: var(--blue-700); }
@media (max-width: 1000px) { .toc { position: static; max-height: none; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); } }

.prose { min-width: 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.03em; }
.prose .lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.prose h2 { font-size: 27px; line-height: 1.2; margin: 60px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.prose section:first-of-type > h2:first-child { border-top: 0; padding-top: 0; }
.prose h3 { font-size: 20px; margin: 36px 0 10px; scroll-margin-top: 80px; }
.prose h4 { font-size: 16.5px; margin: 26px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose li > ul, .prose li > ol { margin: 6px 0; }
.prose strong { color: var(--ink); }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); font-size: .86em; word-break: break-word; }
.prose pre { position: relative; margin: 0 0 20px; padding: 16px 18px; border-radius: 12px; background: var(--editor); color: #e2e8f0; overflow-x: auto; font-size: 13.5px; line-height: 1.65; box-shadow: var(--shadow-sm); border: 1px solid #1e293b; }
.prose pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; word-break: normal; }
.prose kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; background: var(--bg-card); color: var(--ink); font-size: .82em; text-align: center; }
.table-wrap { margin: 0 0 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-soft); color: var(--ink); font-weight: 600; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td code { white-space: nowrap; }
.callout { margin: 0 0 20px; padding: 14px 18px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--blue-600) 28%, transparent); background: color-mix(in srgb, var(--blue-600) 7%, var(--bg)); font-size: 15.5px; }
.callout.warn { border-color: color-mix(in srgb, var(--amber-600) 35%, transparent); background: var(--amber-50); }
.callout.ok { border-color: rgba(22, 163, 74, .35); background: rgba(22, 163, 74, .07); }
.callout > :last-child { margin-bottom: 0; }
ol.steps { list-style: none; padding: 0; counter-reset: step; }
ol.steps > li { position: relative; margin: 0 0 18px; padding: 0 0 0 46px; counter-increment: step; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); font: 700 14px/1 var(--font); }
ol.steps > li > strong:first-child { display: block; margin-bottom: 4px; }
figure.diagram { margin: 0 0 22px; }
figure.diagram pre { margin: 0; }
figure.diagram figcaption { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.prose dl { margin: 0 0 18px; }
.prose dt { font-weight: 600; color: var(--ink); margin-top: 12px; }
.prose dd { margin: 4px 0 0 0; }
.prose details { margin: 0 0 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; }
.prose summary { cursor: pointer; font-weight: 600; color: var(--ink); }

@media print {
  .site-header, .toc, .site-footer, .lang-switch { display: none !important; }
  .doc { display: block; padding: 0; }
  .prose pre { white-space: pre-wrap; box-shadow: none; }
  body { font-size: 11pt; }
  a { color: inherit; }
}

/* Extra users: number stepper, summary lines, manage page */
.stepper { display: flex; align-items: stretch; gap: 8px; max-width: 220px; }
.stepper input { text-align: center; }
.stepper button { flex: none; width: 46px; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--bg); color: var(--ink); font: 600 20px/1 var(--font); cursor: pointer; }
.stepper button:hover { border-color: var(--muted); }
.stepper button:focus-visible { outline: none; box-shadow: var(--focus); }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 0 0 10px; color: var(--muted); font-size: 14.5px; }
.renewal { margin: -6px 0 16px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.line[hidden], .renewal[hidden], .facts div[hidden] { display: none; }
.manage-page form { margin-top: 8px; }
.manage-page .only-unlimited, .manage-page .only-subscription { display: none; }
.manage-page.is-unlimited .only-unlimited, .manage-page.has-subscription .only-subscription { display: block; }
.manage-page.is-unlimited .only-new, .manage-page.has-subscription .only-new, .manage-page.is-unlimited .only-subscription { display: none; }

/* Admin area */
.btn-small { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.admin .site-nav { display: flex; align-items: center; gap: 16px; }
.admin-main { padding: 32px 0 64px; }
.admin-main .state { display: none; }
.admin-main[data-state="loading"] .state-loading, .admin-main[data-state="login"] .state-login, .admin-main[data-state="dashboard"] .state-dashboard { display: block; }
.admin-loading { color: var(--muted); }
.admin-title { margin: 0 0 18px; font-size: 30px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 20px; }
.admin-stats .stat { padding: 16px 18px; }
.admin-stats .stat span { display: block; color: var(--muted); font-size: 13.5px; }
.admin-stats .stat strong { font: 700 26px/1.2 var(--font-display); color: var(--ink); }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.admin-toolbar input, .admin-toolbar select { flex: 1 1 260px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink); font: 15px/1.4 var(--font); }
.admin-toolbar select { flex: 0 1 220px; }
.admin-lic { padding: 22px 24px; margin: 0 0 16px; }
.admin-lic.revoked { border-color: var(--red-600); }
.admin-lic h2 { margin: 0; font-size: 20px; }
.admin-lic h3 { margin: 18px 0 8px; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.admin-lic-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: flex-start; }
.admin-key { margin: 4px 0 0; color: var(--muted); font-size: 14px; user-select: all; }
.admin-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--bg-soft); color: var(--muted); }
.admin-badge.ok { background: rgba(22, 163, 74, .12); color: var(--green-600); }
.admin-badge.warn { background: var(--red-50); color: var(--red-600); }
.admin-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 24px; margin: 14px 0 0; }
.admin-facts div { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 14px; min-width: 0; }
.admin-facts dt { flex: 0 0 140px; color: var(--muted); }
.admin-facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.mono, .admin-facts dd.mono { font-family: var(--mono); font-size: 13px; }
.admin-inst { margin: 10px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.admin-inst.blocked, .admin-inst.released, .admin-inst.inactive { opacity: .75; }
.admin-inst-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-inst .btn { margin-top: 12px; }
.admin-warn { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--amber-50); color: var(--amber-600); font-size: 14px; }
.admin-subs { margin: 0; padding-left: 20px; font-size: 14px; }
.admin-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.fine.left { text-align: left; }
@media (max-width: 560px) { .admin-lic { padding: 18px 16px; } .admin-facts dt { flex-basis: 110px; } }
