/* Liquid Glass, dark. Translucent layers over a soft ambient backdrop. */
:root {
  --bg: #08090b;
  --text: #eceef1;
  --muted: #9aa0a8;
  --accent: #e0a458;
  --accent-top: #f0c277;
  --accent-low: #c88f45;
  --gold: #f0ca95;
  --danger: #ee8b7b;
  --ok: #7fd18b;
  --ok-soft: rgba(127, 209, 139, 0.12);
  --ok-rim: rgba(127, 209, 139, 0.45);

  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  --glass-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  --rim: rgba(255, 255, 255, 0.11);
  --hairline: rgba(255, 255, 255, 0.08);
  --blur: blur(26px) saturate(175%);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, 0 -1px 0 rgba(255, 255, 255, 0.03) inset, 0 14px 36px rgba(0, 0, 0, 0.38);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
/* Ambient light the glass picks up. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 45vmax at 85% -10%, rgba(224, 164, 88, 0.20), transparent 60%),
    radial-gradient(55vmax 45vmax at -10% 105%, rgba(88, 118, 210, 0.16), transparent 60%),
    radial-gradient(40vmax 30vmax at 50% 50%, rgba(255, 255, 255, 0.025), transparent 70%);
}
a { color: inherit; }
/* Component display rules must not override the hidden attribute. */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }

/* glass surface */
.glass, header, .card, .plan, .steps li, .reqs, .choice, .disclaimer, .cookie, dialog.login {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--rim);
  box-shadow: var(--shadow);
}

/* floating toolbar */
header { position: sticky; top: 12px; z-index: 10; width: calc(100% - 32px); max-width: 960px; margin: 12px auto 0; border-radius: 999px; }
header .wrap { max-width: none; display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 8px 0 24px; }
.brand { text-decoration: none; font-weight: 300; letter-spacing: 0.4em; font-size: 13px; text-transform: uppercase; color: var(--gold); }
nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
nav a { text-decoration: none; color: var(--muted); transition: color 0.15s; }
nav a:hover { color: var(--text); }
nav a[hidden] { display: none; }
@media (max-width: 640px) { nav .hide-sm { display: none; } }
/* language switch, filled by site.js */
.lang { display: flex; padding: 2px; border-radius: 999px; border: 1px solid var(--rim); background: rgba(255, 255, 255, 0.04); }
nav .lang a { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; line-height: 1.6; color: var(--muted); }
nav .lang a:hover { color: var(--text); }
nav .lang a[aria-current] { color: #1b1307; background: linear-gradient(180deg, var(--accent-top), var(--accent-low)); }

/* buttons: one height, one radius, sentence case */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px; border-radius: 999px;
  font: 600 15px/1 var(--font); letter-spacing: 0; text-transform: none; text-decoration: none;
  color: #1b1307; cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, var(--accent-top), var(--accent-low));
  border: 0; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 -1px 0 rgba(0, 0, 0, 0.12) inset, 0 6px 18px rgba(224, 164, 88, 0.28);
  transition: box-shadow 0.15s, transform 0.12s, filter 0.15s, background 0.15s;
}
.btn:hover { filter: brightness(1.06); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 -1px 0 rgba(0, 0, 0, 0.12) inset, 0 8px 24px rgba(224, 164, 88, 0.4); }
.btn:active { transform: scale(0.97); }
.btn.small { height: 34px; padding: 0 16px; font-size: 13px; }
.btn.ghost {
  color: var(--text);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--rim);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, 0 4px 14px rgba(0, 0, 0, 0.25);
}
.btn.ghost:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.09)); filter: none; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; filter: none; transform: none; }
.btn.ghost:disabled { background: var(--glass); }
.btn.google { width: 100%; height: 48px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--text); }

/* hero */
.hero { position: relative; text-align: center; padding: 120px 0 96px; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; left: 50%; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.hero::before { top: 50%; width: 560px; height: 560px; border: 1px solid rgba(224, 164, 88, 0.08); }
.hero::after { top: 50%; width: 460px; height: 460px; border: 1px solid rgba(224, 164, 88, 0.15); }
.hero .wrap { position: relative; z-index: 1; }
/* Tank hero. The photo fills the stage; hero.js draws it on top as a 3D room (depth map) with the tank cut out in it.
   The barrel points at the viewer from the centre, so the copy lives in the two empty wall zones beside the tank. */
.hero--tank {
  height: clamp(680px, 58vw, 100vh); margin-top: -76px; padding: 0; text-align: left;
  display: flex; align-items: center;
  background: #08090b url("/ferrum/img/tank.jpg?v=5") 50% 50% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 94%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 94%, transparent 100%);
}
.hero--tank::before { display: none; }
.hero--tank::after {
  content: ""; position: absolute; inset: 0; width: auto; height: auto; border: 0; border-radius: 0; transform: none; z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 9, 11, 0.7), rgba(8, 9, 11, 0.25) 16%, rgba(8, 9, 11, 0) 30%, rgba(8, 9, 11, 0) 56%,
      rgba(8, 9, 11, 0.35) 70%, rgba(8, 9, 11, 0.7) 82%, rgba(8, 9, 11, 0.93) 93%, #08090b 100%),
    radial-gradient(ellipse 85% 75% at 50% 52%, rgba(8, 9, 11, 0) 55%, rgba(8, 9, 11, 0.55) 100%);
}
.hero--tank .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s; }
.hero--tank .hero-canvas.on { opacity: 1; }
.hero--tank .wrap {
  max-width: none; width: 100%; z-index: 2; height: 100%; padding: 104px clamp(24px, 4.5vw, 72px) 34px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center;
}
.hero--tank .hero-side { display: flex; flex-direction: column; align-items: center; max-width: 820px; }
.hero--tank h1 { margin: 12px 0 0; font-size: clamp(34px, 3.8vw, 56px); max-width: none; text-wrap: balance; text-shadow: 0 2px 28px rgba(0, 0, 0, 0.7); }
.hero--tank .lead { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: #c9ced5; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.8); }
.hero--tank .cta { flex-direction: row; align-items: center; justify-content: center; gap: 12px; }
.hero--tank { touch-action: pan-y; }
@media (max-width: 900px) {
  /* same layout as the desktop one: title on top, the tank in the middle, the offer at the bottom */
  .hero--tank { height: max(680px, 192vw); margin-top: -70px; background-size: 208vw auto; }
  .hero--tank .wrap { padding: 78px 20px 26px; }
  /* a portrait frame sees more than the photo has: the stretched edges fade into the page colour above and below it */
  .hero.hero--tank::after { display: block; background: linear-gradient(180deg, #08090b 0, rgba(8, 9, 11, 0.92) 8%, rgba(8, 9, 11, 0.7) 17%, rgba(8, 9, 11, 0.38) 27%, rgba(8, 9, 11, 0) 38%, rgba(8, 9, 11, 0) 50%, rgba(8, 9, 11, 0.5) 58%, rgba(8, 9, 11, 0.85) 65%, #08090b 72%); }
  .hero--tank h1 { font-size: clamp(32px, 9.5vw, 44px); text-shadow: 0 2px 22px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.6); }
  .hero--tank .lead { font-size: 14px; margin-bottom: 12px; }
  .hero--tank .hero-side { max-width: 420px; }
  .hero--tank .cta { flex-direction: column; gap: 10px; }
}
/* One hangar behind the page (scene.js): a fixed layer the sections sit on, dimmed in the middle where the text is. */
.scene-stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 0.9s ease; background: #08090b; }
.scene-stage.on { opacity: 1; }
.scene-stage img { position: absolute; top: 0; max-width: none; will-change: transform; }
.scene-stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 9, 11, 0.1), rgba(8, 9, 11, 0.5) 28%, rgba(8, 9, 11, 0.5) 72%, rgba(8, 9, 11, 0.1)),
    radial-gradient(ellipse 95% 85% at 50% 50%, rgba(8, 9, 11, 0), rgba(8, 9, 11, 0.3));
}
.eyebrow { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }
h1 { font-weight: 300; font-size: clamp(34px, 6vw, 56px); line-height: 1.1; letter-spacing: -0.015em; margin: 20px auto 20px; max-width: 14em; }
.lead { color: var(--muted); font-size: 18px; max-width: 34em; margin: 0 auto 36px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hint { margin-top: 20px; font-size: 13px; color: var(--muted); }
/* Hero link to the VirusTotal report of the published .dmg (/ferrum/virustotal, worker.js). */
/* Its own block under the hero, so the hero (and its rings) keeps its height: just below the outer ring, close to the next section. */
.trust { text-align: center; margin-top: 36px; }
.trust + section { padding-top: 44px; }
@media (max-width: 640px) { .trust { margin-top: 0; } .trust + section { padding-top: 40px; } }
.vt-badge { display: inline-flex; align-items: center; gap: 14px; padding: 12px 24px 12px 12px; text-align: left; text-decoration: none; color: var(--text); border: 1px solid var(--rim); border-radius: 20px; background: var(--glass); box-shadow: var(--shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.vt-badge__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; color: var(--ok); background: var(--ok-soft); border: 1px solid var(--ok-rim); }
.vt-badge__text { display: grid; gap: 3px; }
.vt-badge__text b { font-size: 16px; font-weight: 600; }
.vt-badge__text small { font-size: 13px; color: var(--muted); }
.vt-badge:hover { border-color: var(--ok-rim); box-shadow: var(--shadow), 0 0 28px rgba(127, 209, 139, 0.14); transform: translateY(-1px); }
.vt-badge:focus-visible { outline: 2px solid var(--ok); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .vt-badge:hover { transform: none; } }

/* sections */
section { padding: 72px 0; }
h2 { font-weight: 300; font-size: 30px; letter-spacing: -0.01em; margin-bottom: 8px; }
.sub { color: var(--muted); margin-bottom: 36px; }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; border-radius: 22px; padding: 22px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 12px; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 14px; }
.steps b { display: block; font-weight: 600; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 14px; }
.steps li { position: relative; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; }
.steps li::before { transition: letter-spacing 0.25s ease; }
.steps li:hover { transform: translateY(-3px); border-color: rgba(224, 164, 88, 0.45); box-shadow: var(--shadow), 0 0 32px rgba(224, 164, 88, 0.14); }
.steps li:hover::before { letter-spacing: 0.3em; }
.steps li:hover span { color: #c3c8cf; }
/* Every step is a link. The last one is the same door as the hero's "Try 72 hours free", so it carries the accent. */
.steps li a { display: block; color: inherit; text-decoration: none; }
.steps li a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.steps li a::before { content: "\2192"; position: absolute; top: 18px; right: 22px; color: var(--muted); font-size: 18px; transition: transform 0.25s ease, color 0.25s ease; }
.steps li:hover a::before { transform: translateX(4px); color: var(--accent); }
.steps li:last-child { border-color: rgba(224, 164, 88, 0.3); }
.steps li:last-child a::before { color: var(--accent); }
.steps li a:focus-visible { outline: none; }
.steps li:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .steps li:hover { transform: none; } }

.reqs { list-style: none; padding: 0; border-radius: 22px; overflow: hidden; }
.reqs li { display: flex; justify-content: space-between; gap: 16px; padding: 15px 22px; }
.reqs li + li { border-top: 1px solid var(--hairline); }
.reqs span:first-child { color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.plan { border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.plan.best { border-color: rgba(224, 164, 88, 0.55); box-shadow: var(--shadow), 0 0 0 1px rgba(224, 164, 88, 0.12), 0 0 48px rgba(224, 164, 88, 0.10); }
.plan h3 { font-weight: 400; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.price { font-size: 46px; font-weight: 300; letter-spacing: -0.02em; }
.price small { font-size: 15px; color: var(--muted); letter-spacing: 0; }
.plan p { color: var(--muted); font-size: 14px; margin-bottom: 20px; flex: 1; }
.plan p.billed { margin-bottom: 8px; flex: 0; }
.plan .perks { flex: 1; align-content: start; }
.hint a[data-youtube], .sub a[data-youtube] { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.badge { font-size: 11px; font-weight: 600; color: var(--accent); background: rgba(224, 164, 88, 0.12); border: 1px solid rgba(224, 164, 88, 0.4); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }

.disclaimer { margin-top: 24px; padding: 16px 22px; border-radius: 18px; color: var(--muted); font-size: 13px; box-shadow: none; }

details { border-bottom: 1px solid var(--hairline); }
summary { cursor: pointer; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding: 0 0 18px; max-width: 40em; }

footer { margin-top: 24px; padding: 40px 0 56px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-direction: column; gap: 14px; }
footer nav { gap: 20px; flex-wrap: wrap; font-size: 13px; }
footer .social { display: flex; gap: 14px; }
footer .social a { display: inline-flex; padding: 6px; margin: -6px; border-radius: 8px; color: var(--muted); transition: color 0.15s; }
footer .social a:hover { color: var(--accent); }
footer .social svg { width: 20px; height: 20px; fill: currentColor; }

/* legal pages */
.doc { padding: 72px 24px 96px; }
.doc h1 { font-size: 36px; margin: 0 0 8px; max-width: none; }
.doc h2 { font-size: 18px; font-weight: 600; margin: 36px 0 8px; }
.doc p, .doc li { color: #bcc1c8; margin-bottom: 10px; }
.doc ul { padding-left: 20px; }
.doc .updated { color: var(--muted); font-size: 13px; }
.notice { margin: 24px 0; padding: 14px 18px; border: 1px solid rgba(224, 164, 88, 0.4); border-radius: 16px; color: var(--accent); font-size: 14px; background: rgba(224, 164, 88, 0.06); }
.notice[hidden] { display: none; }

/* cookie banner */
.cookie { position: fixed; z-index: 30; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 16px 18px 16px 22px; border-radius: 24px; font-size: 13px; color: var(--muted); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: var(--text); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 640px) { .cookie { flex-direction: column; align-items: stretch; border-radius: 22px; } .cookie-actions .btn { flex: 1; } }

/* login modal */
dialog.login { margin: auto; width: min(400px, calc(100vw - 32px)); padding: 36px 28px 24px; color: var(--text); border-radius: 28px; text-align: center; background: linear-gradient(180deg, rgba(40, 42, 48, 0.78), rgba(20, 21, 25, 0.78)); }
dialog.login::backdrop { background: rgba(5, 6, 7, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog.login h2 { font-size: 24px; margin-bottom: 8px; }
.login-note { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.login-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--muted); font-size: 13px; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--rim); }
.login-form { text-align: left; }
.login-form[hidden] { display: none; }
.login-form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.login-form input { width: 100%; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--rim); background: rgba(255, 255, 255, 0.06); color: var(--text); font: inherit; font-size: 16px; }
.login-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.login-form input[aria-invalid="true"] { border-color: var(--danger); }
.login-form input#login-code { letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.login-form .btn { width: 100%; height: 46px; margin-top: 4px; }
.field-msg { min-height: 18px; margin: 4px 0 6px; font-size: 13px; color: var(--danger); }
.login-hint { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; }
.login-form .login-hint:first-child { margin: 0 0 12px; font-size: 14px; color: var(--text); }
.login-spam { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.4; text-align: center; color: var(--text); background: rgba(224, 164, 88, 0.10); border: 1px solid rgba(224, 164, 88, 0.30); }
.login-links { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.linkbtn:disabled { cursor: default; text-decoration: none; opacity: 0.7; }
.login-error { margin-top: 14px; color: var(--danger); font-size: 13px; }
.login-error[hidden] { display: none; }
.login-legal { margin-top: 18px; font-size: 12px; color: var(--muted); }
dialog.login .close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); border: 0; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
dialog.login .close:hover { color: var(--text); background: rgba(255, 255, 255, 0.14); }

/* account and checkout: grouped glass sections */
.acct { padding: 56px 24px 96px; }
.acct h1 { font-weight: 300; font-size: 34px; margin: 0 0 6px; max-width: none; }
.who { color: var(--muted); margin-bottom: 28px; }
.lead2 { color: var(--muted); margin-bottom: 20px; }
.card { border-radius: 24px; padding: 8px 24px; margin-bottom: 16px; }
.card > h2 { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 16px 0 4px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; min-height: 64px; }
.row + .row, .row + .pays, .card-head + .row, .pays li + li { border-top: 1px solid var(--hairline); }
.row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-text b { font-weight: 600; }
.row-text span, .hint2 { color: var(--muted); font-size: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 14px; }
.card-head h2 { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.badge-s { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; font-size: 12px; font-weight: 600; border-radius: 999px; border: 1px solid var(--rim); background: rgba(255, 255, 255, 0.05); color: var(--muted); }
.badge-s[data-tone="ok"] { color: var(--accent); border-color: rgba(224, 164, 88, 0.5); background: rgba(224, 164, 88, 0.1); }
.badge-s[data-tone="warn"] { color: var(--danger); border-color: rgba(238, 139, 123, 0.5); background: rgba(238, 139, 123, 0.1); }
#status-lines { padding: 4px 0 8px; }
#status-lines p { margin: 0 0 4px; }
#status-lines p:first-child { font-size: 17px; }
#status-lines p + p { color: var(--muted); font-size: 14px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 0 6px; }
.actions [hidden] { display: none; }
.card .hint2 { margin: 6px 0 18px; }
.cmd-box { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; }
.cmd-box[hidden] { display: none; }
.cmd-box .btn { flex: none; }
@media (max-width: 640px) { .cmd-box { display: grid; } }
.card .cmd { flex: 1; min-width: 0; margin: 0; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); font: 12px ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; word-break: break-all; user-select: all; }
.pays { list-style: none; padding: 0; }
.pays li { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; padding: 14px 0; font-size: 14px; }
.pays li span:last-child { text-align: right; color: var(--muted); }
.bonuses { list-style: none; margin: 4px 0 0; padding: 0; color: var(--muted); font-size: 14px; }
.bonuses li { padding: 2px 0; }
.bonuses[hidden] { display: none; }
.pays .empty { display: block; color: var(--muted); padding: 16px 0 20px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 16px; }
.choice { display: grid; align-content: start; row-gap: 4px; text-align: left; font: inherit; color: var(--text); border-radius: 22px; padding: 20px 18px; cursor: pointer; }
.choice[aria-checked="true"] { border-color: rgba(224, 164, 88, 0.65); box-shadow: var(--shadow), 0 0 0 1px rgba(224, 164, 88, 0.2); }
.c-badge { font-size: 11px; font-weight: 600; color: var(--accent); background: rgba(224, 164, 88, 0.12); border: 1px solid rgba(224, 164, 88, 0.4); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.c-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.c-name { white-space: nowrap; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.c-price { font-size: 32px; font-weight: 300; }
.c-price small { font-size: 14px; color: var(--muted); }
.c-note { font-size: 13px; color: var(--muted); }
.agree { display: flex; gap: 14px; align-items: center; cursor: pointer; margin: 20px 0 16px; font-size: 14px; color: var(--muted); }
.agree + .agree { margin-top: 0; }
/* macOS-style switch for every checkbox */
input[type="checkbox"] { -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 44px; height: 26px; margin: 0; border-radius: 999px; cursor: pointer; background: rgba(255, 255, 255, 0.10); border: 1px solid var(--rim); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) inset; transition: background 0.2s, border-color 0.2s; }
input[type="checkbox"]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(180deg, #ffffff, #d9dce0); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45); transition: transform 0.2s cubic-bezier(0.3, 0.7, 0.4, 1); }
input[type="checkbox"]:checked { background: linear-gradient(180deg, var(--accent-top), var(--accent-low)); border-color: rgba(255, 255, 255, 0.25); }
input[type="checkbox"]:checked::after { transform: translateX(18px); }
input[type="checkbox"]:active::after { width: 24px; }
input[type="checkbox"]:checked:active::after { transform: translateX(14px); }
input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { input[type="checkbox"]::after { transition: none; } }

@media (max-width: 760px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans, .choices { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 64px; }
  .hero::before, .hero::after { display: none; }
  .pays li { grid-template-columns: 1fr 1fr; }
  .pays li span:nth-child(3) { display: none; }
  .row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
/* Users who turn transparency off get solid surfaces. */
@media (prefers-reduced-transparency: reduce) {
  .glass, header, .card, .plan, .steps li, .reqs, .choice, .disclaimer, .cookie, dialog.login, .btn.ghost { background: #16181c; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.pays.sum li { grid-template-columns: 1fr auto; }
.pays.sum li span:last-child { color: var(--text); }

/* checkout: payment region and methods (ticket 022) */
.region { display: flex; align-items: center; justify-content: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.region-label { color: var(--muted); font-size: 14px; }
/* question, charge note, terms and Pay buttons below the plans; scrolled to after a plan is picked, clear of the sticky header */
.pay-box { margin-top: 36px; scroll-margin-top: 96px; }
.pay-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--rim); }
.seg-item { height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 14px/1 var(--font); cursor: pointer; transition: color 0.15s, background 0.15s; }
.seg-item:hover { color: var(--text); }
.seg-item[aria-checked="true"] { color: #1b1307; background: linear-gradient(180deg, var(--accent-top), var(--accent-low)); }
.methods { display: grid; gap: 10px; padding: 8px 0 14px; }
.method { display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left; font: inherit; color: var(--text); padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--hairline); cursor: pointer; }
.method[aria-checked="true"] { border-color: rgba(224, 164, 88, 0.65); background: rgba(224, 164, 88, 0.06); }
.m-dot { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--muted); }
.method[aria-checked="true"] .m-dot { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 9px var(--accent); }
.m-text { display: grid; gap: 2px; }
.m-text b { font-weight: 600; font-size: 15px; }
.m-text span { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .region { flex-direction: column; align-items: stretch; } .seg { display: flex; } .seg-item { flex: 1; } }

/* pricing: one column per plan, charged amount under the per-month price (ticket 023) */
#pricing .wrap { max-width: 1120px; }
#pricing h2, #pricing .sub { text-align: center; }
#pricing .disclaimer { max-width: 1040px; margin-left: auto; margin-right: auto; }
#pricing h2 { font-size: clamp(30px, 4vw, 40px); }
/* Four plans need more room than .wrap: the grid is centred on the page and may be wider than the text column. */
.plans { grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: center; width: calc(100vw - 48px); max-width: 1180px; margin: 12px 0 0 50%; translate: -50% 0; padding-top: 18px; }
.plans .plan { position: relative; padding: 32px 22px 26px; border-radius: 28px; gap: 0; text-align: center; transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s; }
.plans .plan:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); }
.plans .plan.best { padding: 44px 24px 32px; border-color: rgba(224, 164, 88, 0.7);
  background: linear-gradient(180deg, rgba(224, 164, 88, 0.14), rgba(224, 164, 88, 0.03) 45%, rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow), 0 0 0 1px rgba(224, 164, 88, 0.18), 0 24px 80px rgba(224, 164, 88, 0.18); }
.plans .plan.best:hover { border-color: rgba(240, 194, 119, 0.9); }
.plans .plan.popular { padding-top: 44px; border-color: rgba(255, 255, 255, 0.28); box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.plans .plan.popular .plan-tag { color: #16181c; background: linear-gradient(180deg, #f4f5f7, #b9bdc4); box-shadow: 0 6px 20px rgba(255, 255, 255, 0.12); }
.plan-tag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; padding: 6px 16px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #1b1307; background: linear-gradient(180deg, var(--accent-top), var(--accent-low)); box-shadow: 0 6px 20px rgba(224, 164, 88, 0.35); }
.plans .plan-head { flex-direction: column; justify-content: flex-start; gap: 10px; min-height: 52px; }
.plans .plan h3 { white-space: nowrap; }
.plans .plan.best h3 { color: var(--gold); }
.plans .price { margin: 22px 0 6px; font-size: 48px; line-height: 1; white-space: nowrap; }
.plans .best .price { font-size: 54px; background: linear-gradient(180deg, #fff3df, var(--accent-top)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plans .price small { margin-left: 4px; font-size: 16px; }
.plans .best .price small { -webkit-text-fill-color: var(--muted); }
.plan .billed { flex: none; margin: 0 0 24px; min-height: 1.5em; color: var(--muted); font-size: 14px; }
.plan .billed span { color: var(--text); }
.perks { list-style: none; margin: 0 0 28px; padding: 22px 0 0; border-top: 1px solid var(--hairline); display: grid; gap: 10px; text-align: left; font-size: 14px; color: var(--muted); }
.perks li { display: flex; gap: 10px; align-items: baseline; }
.perks li::before { content: "✓"; flex: none; color: var(--accent); font-weight: 700; }
.best .perks li { color: var(--text); }
.plans .plan .btn { width: 100%; height: 50px; font-size: 16px; }
#plans .plan { cursor: pointer; }
#plans .plan.selected { border-color: rgba(224, 164, 88, 0.85); box-shadow: var(--shadow), 0 0 0 2px rgba(224, 164, 88, 0.45), 0 24px 80px rgba(224, 164, 88, 0.18); }
@media (prefers-reduced-motion: reduce) { .plans .plan { transition: none; } .plans .plan:hover { transform: none; } }

/* referral program (ticket 016) */
.ref-lead { margin: 0 0 12px; }
.ref-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 14px; border: 1px dashed rgba(224, 164, 88, 0.45); background: rgba(224, 164, 88, 0.05); }
.ref-link { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 15px/1.3 ui-monospace, "SF Mono", Menlo, monospace; }
.ref-box.locked { cursor: pointer; border-color: var(--rim); background: rgba(255, 255, 255, 0.03); }
.ref-box.locked .ref-link { color: var(--muted); }
.ref-box.locked .btn { opacity: 0.6; }
#ref-msg:empty { display: none; }
#ref-stats { margin-bottom: 8px; }
.ref-form { display: flex; gap: 10px; padding: 8px 0 4px; }
.ref-form[hidden] { display: none; }
.field { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--rim); background: rgba(255, 255, 255, 0.05); color: var(--text); font: 500 15px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.field::placeholder { letter-spacing: 0; text-transform: none; color: var(--muted); font-family: var(--font); }
.field:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); max-width: 760px; gap: 24px; } }
/* phones: longest first, popular second (24, 12, 6, 1 months) */
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; max-width: 440px; gap: 28px; } .plans .plan.best { order: -2; } .plans .plan.popular { order: -1; } .plans .plan:first-child { order: 1; } }

/* refund flow on the account page (refund.js) */
/* Steps scroll the card to the top: keep its head below the sticky header. */
#refund { scroll-margin-top: 84px; }
.rf { padding: 4px 0 8px; }
.rf > p { margin: 0 0 8px; }
.rf-title { font-size: 16px; font-weight: 600; margin: 14px 0 6px; }
.rf-q + .rf-q { margin-top: 6px; }
.rf .hint2 { margin: 0 0 6px; }
.rf .methods { padding: 6px 0 4px; gap: 8px; }
.rf .method { padding: 11px 14px; }
.rf .m-text b { font-weight: 500; }
.rf-tips { padding-left: 20px; margin: 4px 0 8px; color: #bcc1c8; font-size: 14px; }
.rf-tips li + li { margin-top: 6px; }
.rf-tips a, .rf > p a { color: var(--accent); text-underline-offset: 3px; }
.rf-offers { display: grid; gap: 10px; padding: 4px 0; }
.rf-offer { display: grid; gap: 4px; justify-items: start; padding: 14px 16px; border-radius: 16px; background: rgba(224, 164, 88, 0.05); border: 1px solid rgba(224, 164, 88, 0.3); }
.rf-offer span { color: var(--muted); font-size: 14px; }
.rf-offer .btn { margin-top: 6px; }
.rf-fields { display: grid; gap: 8px; margin: 10px 0 0; }
.rf .pays.sum { margin: 4px 0 8px; }
.rf textarea.input { margin-top: 10px; }
.rf-error { color: var(--danger); }
.input { width: 100%; min-height: 40px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--rim); background: rgba(255, 255, 255, 0.05); color: var(--text); font: 15px/1.4 var(--font); }
textarea.input { resize: vertical; }
select.input { -webkit-appearance: none; appearance: none; }
.input::placeholder { color: var(--muted); }
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* install guide */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; font-size: 13px; }
.toc a { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--rim); background: rgba(255, 255, 255, 0.04); color: var(--muted); }
.toc a:hover { color: var(--text); }
.doc ol { padding-left: 22px; }
.doc code { font: 13px ui-monospace, "SF Mono", Menlo, monospace; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); word-break: break-word; }
.doc [id] { scroll-margin-top: 84px; }

/* phones */
@media (max-width: 480px) {
  .wrap, .doc, .acct { padding-left: 16px; padding-right: 16px; }
  header { width: calc(100% - 16px); top: 8px; margin-top: 8px; }
  header .wrap { padding: 0 6px 0 18px; }
  nav { gap: 14px; }
  section { padding: 52px 0; }
  .hero { padding: 64px 0 48px; }
  .lead { font-size: 16px; margin-bottom: 28px; }
  h2 { font-size: 26px; }
  .sub { margin-bottom: 24px; }
  .steps { grid-template-columns: 1fr; }
  .reqs li { padding: 14px 18px; }
  .reqs span:last-child { text-align: right; }
  .plans .plan { padding: 22px 20px; }
  .doc { padding-top: 48px; padding-bottom: 64px; }
  .doc h1, .acct h1 { font-size: 30px; }
  .acct { padding-top: 40px; padding-bottom: 64px; }
  .card { padding: 8px 18px; border-radius: 20px; }
  .agree { align-items: flex-start; }
  #pay-btn, .actions .btn, #signin-btn { width: 100%; }
  .ref-box { flex-direction: column; align-items: stretch; padding: 12px; }
  .ref-link { white-space: normal; overflow-wrap: anywhere; }
  .pays.sum li { gap: 16px; }
  .pays.sum li span:last-child { text-align: right; }
  footer { padding: 32px 0 40px; }
  footer nav { gap: 14px 18px; }
}

/* Over the continuous hangar the footer has no edge: a soft shade under its text instead of a hairline. */
html.stage footer { background: linear-gradient(180deg, rgba(8, 9, 11, 0), rgba(8, 9, 11, 0.55) 55%); }
/* The glass sits on a moving picture now, so it blurs less (the blur is the costly part of every scrolled frame). */
html.stage { --blur: blur(10px); }
@media (max-width: 760px) { html.stage { --blur: blur(6px); } }

/* Footer "Contact" popover (site.js). */
.contact-pop { position: absolute; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 16px; background: rgba(18, 20, 24, 0.94); border: 1px solid var(--rim); box-shadow: var(--shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); font-size: 13px; color: var(--text); white-space: nowrap; }
.contact-pop b { font-weight: 600; user-select: all; }
.contact-pop a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.contact-pop a:hover { color: var(--text); }
@media (max-width: 520px) { .contact-pop { flex-wrap: wrap; white-space: normal; max-width: calc(100vw - 24px); } }
