/* Mac Shield — website
   Palette, type and materials come from the app (Sources/SaveMyMacApp/Design.swift and
   Celestial.swift): midnight navy, celestial blue and silver, Manrope headings, DM Sans text. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/DMSans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --night: #070d1a;
  --bg: #0d1528;
  --surface: #17223a;
  --raised: #243752;
  --border: #30425e;
  --hairline: rgba(255, 255, 255, 0.09);
  --glass: rgba(23, 34, 58, 0.62);
  --ink: #f0f6ff;
  --muted: #a7b7d0;
  --soft: #ccdaed;
  --accent: #5fa9f6;
  --sky: #b2deff;
  --sky-2: #d2efff;
  --mint: #8ae2c6;
  --gold: #ffdd8d;
  --rose: #e394bc;
  --danger: #ffacaf;
  --red: #ff6b6b;
  --display: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --text: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page: min(1160px, calc(100vw - 32px));
  color-scheme: dark;
}
@media (min-width: 700px) { :root { --page: min(1160px, calc(100vw - 64px)); } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--night); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  isolation: isolate;
}
/* The night sky: two quiet star layers and a celestial glow, all static CSS. */
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before {
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(210, 239, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 9%, rgba(210, 239, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 84% 31%, rgba(210, 239, 255, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 31% 57%, rgba(210, 239, 255, 0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 52% 76%, rgba(210, 239, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 83%, rgba(210, 239, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 88%, rgba(210, 239, 255, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 41% 34%, rgba(210, 239, 255, 0.35) 50%, transparent 51%);
  background-size: 420px 420px;
  opacity: 0.8;
}
body::after {
  background:
    radial-gradient(60vw 50vh at 78% -6%, rgba(32, 74, 117, 0.55), transparent 70%),
    radial-gradient(50vw 50vh at -10% 30%, rgba(18, 54, 80, 0.45), transparent 70%),
    radial-gradient(70vw 60vh at 50% 115%, rgba(29, 66, 115, 0.35), transparent 70%);
}
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  body::before, body::after { display: none; }
}

img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
/* A <picture> takes no box, so its image is the layout item; its <source>s must not be. */
picture > source { display: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: rgba(95, 169, 246, 0.35); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
code { font: 0.9em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(255, 255, 255, 0.07); padding: 0.12em 0.4em; border-radius: 6px; overflow-wrap: anywhere; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--sky); color: #0d1528; padding: 10px 14px; border-radius: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Type ---------- */
.eyebrow { font: 600 13px/1.3 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); margin: 0 0 18px; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.eyebrow.red { color: #ff9c9c; }
.display { font-family: var(--display); font-weight: 650; font-size: clamp(40px, 6.4vw, 84px); line-height: 1; letter-spacing: -0.045em; margin: 0; text-wrap: balance; }
.headline { font-family: var(--display); font-weight: 650; font-size: clamp(32px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.title { font-family: var(--display); font-weight: 650; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.15; letter-spacing: -0.025em; margin: 0; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); max-width: 36em; margin: 22px 0 0; }
.lede strong { color: var(--ink); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.gradient-ink { background: linear-gradient(100deg, #fff 0%, var(--sky-2) 40%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (forced-colors: active) { .gradient-ink { color: CanvasText; background: none; } }
.text-link { color: var(--sky); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.page { width: var(--page); margin: 0 auto; }
section { position: relative; }
.chapter { padding: clamp(72px, 10vw, 136px) 0 0; }
.chapter > .page > .lede { margin-bottom: clamp(32px, 4vw, 52px); }
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: 14px; border: 0;
  font: 600 16px/1.2 var(--text); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform 160ms var(--ease), background-color 200ms, box-shadow 200ms, opacity 200ms;
}
.btn:active { transform: scale(0.97); transition-duration: 80ms; }
.btn-primary {
  color: #10304e;
  background: linear-gradient(90deg, var(--sky-2), #aad4fc);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 10px 30px -10px rgba(122, 190, 255, 0.55);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 14px 36px -10px rgba(122, 190, 255, 0.8); }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-small { --h: 38px; padding: 0 15px; font-size: 14px; border-radius: 11px; }
.btn[disabled], .btn.is-disabled { opacity: 0.55; cursor: default; }
.btn .arrow { transition: transform 200ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
@media (forced-colors: active) { .btn { border: 1px solid ButtonText; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-cta.left { justify-content: flex-start; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(7, 13, 26, 0.72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--hairline); }
.nav-inner { width: var(--page); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.brand img:first-child { width: 30px; height: 30px; }
.brand .wordmark { width: auto; height: 21px; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; transition: color 160ms, background-color 160ms; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary span, .nav-menu summary span::before, .nav-menu summary span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform 200ms var(--ease), opacity 200ms; }
.nav-menu summary span::before, .nav-menu summary span::after { content: ""; position: absolute; left: 0; }
.nav-menu summary span::before { top: -6px; }
.nav-menu summary span::after { top: 6px; }
.nav-menu[open] summary span { background: transparent; }
.nav-menu[open] summary span::before { transform: translateY(6px) rotate(45deg); }
.nav-menu[open] summary span::after { transform: translateY(-6px) rotate(-45deg); }
.nav-menu nav { position: absolute; right: 0; top: 52px; min-width: 220px; display: grid; padding: 8px; border-radius: 16px; background: rgba(13, 21, 40, 0.97); border: 1px solid var(--border); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.6); }
.nav-menu nav a { text-decoration: none; padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.nav-menu nav a:hover { background: rgba(255, 255, 255, 0.06); }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 520px) {
  .nav-inner { gap: 10px; }
  .nav-cta .btn-ghost { display: none; }
  .brand .wordmark { height: 19px; }
}

/* ---------- Home hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; color: var(--muted); font-size: 14px; }
.hero-meta span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--mint); vertical-align: 2px; }
.hero-visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(95, 169, 246, 0.42), rgba(29, 66, 115, 0.18) 55%, transparent 72%); filter: blur(8px); }
.hero-shield { position: relative; width: 62%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)); animation: float 9s ease-in-out infinite; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(178, 222, 255, 0.16); }
.orbit-1 { inset: 6%; }
.orbit-2 { inset: 0; border-style: dashed; border-color: rgba(178, 222, 255, 0.1); animation: spin 120s linear infinite; }
.orbit-3 { inset: 18%; border-color: rgba(178, 222, 255, 0.12); }
.orbit-1::after, .orbit-3::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--sky-2); box-shadow: 0 0 12px 3px rgba(178, 222, 255, 0.55); }
.orbit-1::after { top: 12%; right: 13%; }
.orbit-3::after { bottom: 4%; left: 30%; width: 5px; height: 5px; }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: min(220px, 56vw); margin: 0 auto; }
}

/* An example Smart Check result, labelled as one. */
.sample { margin: clamp(48px, 7vw, 80px) auto 0; max-width: 820px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(36, 55, 82, 0.75), rgba(13, 21, 40, 0.85)); border: 1px solid var(--hairline); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06); overflow: hidden; }
.sample-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); border-bottom: 1px solid var(--hairline); }
.sample-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(255, 221, 141, 0.6); }
.sample-body { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 24px; align-items: start; }
.sample-score { display: grid; justify-items: center; align-content: center; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(178, 222, 255, 0.24), rgba(23, 55, 91, 0.6) 60%, #0a1930); box-shadow: inset 0 0 0 2px rgba(178, 222, 255, 0.35), 0 0 40px -6px rgba(95, 169, 246, 0.5); text-align: center; }
.sample-score b { font: 600 56px/1 var(--display); letter-spacing: -0.04em; }
.sample-score span { font-size: 13px; color: var(--soft); }
.sample-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sample-list li { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hairline); font-size: 15px; color: var(--muted); line-height: 1.5; }
.sample-list b { color: var(--ink); margin-right: 4px; }
.sev { display: block; width: fit-content; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky); }
.sev-high { color: #ffb27a; }
.sample-note { margin: 0; padding: 0 24px 18px; }
@media (max-width: 640px) {
  .sample-body { grid-template-columns: 1fr; padding: 18px; }
  .sample-score { width: 132px; margin: 0 auto; }
  .sample-score b { font-size: 44px; }
  .sample-note { padding: 0 18px 16px; }
}

/* ---------- Home sections ---------- */
.check-grid { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.check-grid li { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto 1fr; column-gap: 16px; align-items: start; padding: 20px; border-radius: 18px; background: var(--glass); border: 1px solid var(--hairline); }
.check-grid img { grid-row: span 2; width: 64px; height: 64px; }
.check-grid b { font: 600 17px/1.3 var(--display); margin-top: 4px; }
.check-grid span { font-size: 15px; color: var(--muted); line-height: 1.45; margin-top: 4px; }
@media (max-width: 900px) { .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .check-grid { grid-template-columns: 1fr; } }

.tiers { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 20px; align-items: stretch; }
.tier { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--glass); border: 1px solid var(--hairline); display: flex; flex-direction: column; align-items: flex-start; }
.tier .btn { margin-top: auto; }
.tier-pro { background: linear-gradient(160deg, rgba(29, 66, 115, 0.6), rgba(19, 36, 63, 0.75) 50%, rgba(21, 55, 77, 0.6)); border-color: rgba(178, 222, 255, 0.22); box-shadow: 0 30px 70px -30px rgba(95, 169, 246, 0.45); }
.tier-name { margin: 0; font: 600 14px/1 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); }
.tier-pro .tier-name { color: var(--gold); }
.tier-price { margin: 14px 0 6px; font: 650 40px/1.1 var(--display); letter-spacing: -0.03em; }
.tier-price span { font-size: 17px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.tier-price .tier-or { margin: 0 6px; }
.trial-note { margin: 14px 0 0; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }

.checks { list-style: none; margin: 20px 0 26px; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--soft); font-size: 15.5px; line-height: 1.5; }
.checks li b { color: var(--ink); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 8px; border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg); }
.checks.pro li::before, .tier-pro .checks li::before, .plan-pro .checks li::before { border-color: var(--gold); }

.ws-group + .ws-group { margin-top: 36px; }
.ws-label { margin: 0 0 14px; font: 500 15px/1.3 var(--text); color: var(--muted); }
.ws-label span { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; color: var(--sky); margin-right: 8px; }
.ws-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ws-card { height: 100%; display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; text-decoration: none; background: var(--glass); border: 1px solid var(--hairline); transition: transform 220ms var(--ease), border-color 200ms, background-color 200ms; }
.ws-card:hover { transform: translateY(-2px); border-color: rgba(178, 222, 255, 0.28); background: rgba(36, 55, 82, 0.7); }
.ws-card img { width: 60px; height: 60px; }
.ws-card b { display: block; font: 600 17px/1.25 var(--display); }
.ws-card .small { display: block; margin-top: 3px; line-height: 1.4; }
.ws-red:hover { border-color: rgba(255, 140, 140, 0.4); }

.spotlight .split { padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: radial-gradient(circle at 18% 50%, rgba(255, 90, 90, 0.16), transparent 50%), var(--glass); border: 1px solid rgba(255, 150, 150, 0.16); }
.spot-art { width: min(260px, 100%); margin: 0 auto; filter: drop-shadow(0 24px 40px rgba(255, 60, 60, 0.28)); }

.principles { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.principles li { padding: 24px; border-radius: 18px; background: var(--glass); border: 1px solid var(--hairline); }
.principles h3 { margin: 0 0 8px; font: 600 18px/1.3 var(--display); }
.principles p { margin: 0; color: var(--muted); font-size: 15.5px; }

.cta-band { margin-top: clamp(80px, 11vw, 140px); padding: clamp(40px, 6vw, 64px) 0; border-top: 1px solid var(--hairline); background: linear-gradient(180deg, rgba(29, 66, 115, 0.22), transparent); }
.cta-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.cta-inner .hero-cta { margin: 0; }
.cta-inner p { margin: 8px 0 0; }
.cta-shield { width: 88px; height: 88px; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; text-align: left; gap: 18px; } .cta-shield { width: 64px; height: 64px; } }

/* ---------- Footer ---------- */
.footer { margin-top: 0; padding: 56px 0 40px; border-top: 1px solid var(--hairline); background: rgba(7, 13, 26, 0.7); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer h2 { margin: 0 0 12px; font: 700 12px/1 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); }
.footer nav a { display: block; width: fit-content; padding: 5px 0; color: var(--muted); text-decoration: none; font-size: 15px; }
.footer nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-brand p { margin-top: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Subpages ---------- */
.sub-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(28px, 4vw, 48px); }
.prose { max-width: 760px; }
.prose h2 { font: 650 clamp(22px, 2.2vw, 28px)/1.2 var(--display); letter-spacing: -0.02em; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--soft); }
.prose a { color: var(--sky); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose b, .prose strong { color: var(--ink); }
.legal, .support { padding-bottom: 24px; }
.support section + section { margin-top: 8px; }
.two-col { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: 56px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.notfound { margin-bottom: 40px; }

.table-wrap { overflow-x: auto; margin: 20px 0; border-radius: 16px; border: 1px solid var(--hairline); background: var(--glass); }
.table-wrap:focus-visible { outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--hairline); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font: 700 12px/1.3 var(--text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); background: rgba(255, 255, 255, 0.03); }
tbody th { color: var(--ink); font-weight: 600; }
td { color: var(--soft); }
.data-table tbody th { width: 34%; }
.compare { min-width: 680px; }
.compare tbody th { width: 24%; }
.compare td:last-child { color: #ffe9b8; }

/* ---------- Feature pages ---------- */
.feature-hero { padding: clamp(36px, 6vw, 80px) 0 clamp(24px, 4vw, 40px); }
.feature-hero-grid { display: grid; grid-template-columns: minmax(180px, 0.42fr) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.feature-art { position: relative; display: grid; place-items: center; }
.feature-art::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(95, 169, 246, 0.35), transparent 70%); }
.is-red .feature-art::before { background: radial-gradient(circle, rgba(255, 80, 80, 0.32), transparent 70%); }
.feature-art img { position: relative; width: min(280px, 100%); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5)); }
.feature-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 72px); align-items: start; }
.feature-body { padding-top: 8px; }
.feature-body h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tier-card { position: sticky; top: 88px; padding: 22px; border-radius: 20px; background: var(--glass); border: 1px solid var(--hairline); }
.tier-card h2 { margin: 0; }
.tier-card .checks { margin: 14px 0 20px; }
.tier-card .small { margin: 0 0 14px; }
.pro-tag, .free-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font: 700 12px/1 var(--text); letter-spacing: 0.08em; text-transform: uppercase; vertical-align: middle; }
.pro-tag { color: #1d1606; background: linear-gradient(90deg, #ffe8b0, var(--gold)); }
.free-tag { color: #08251c; background: linear-gradient(90deg, #b5f0dc, var(--mint)); }
.feature-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.feature-pager a { display: grid; gap: 2px; padding: 18px 20px; border-radius: 16px; text-decoration: none; background: var(--glass); border: 1px solid var(--hairline); transition: border-color 200ms; }
.feature-pager a:last-child { text-align: right; }
.feature-pager a:hover { border-color: rgba(178, 222, 255, 0.3); }
.feature-pager b { font: 600 18px/1.3 var(--display); }
@media (max-width: 900px) {
  .feature-layout { grid-template-columns: 1fr; }
  .tier-card { position: static; order: -1; }
}
@media (max-width: 640px) {
  .feature-hero-grid { grid-template-columns: 1fr; }
  .feature-art img { width: 180px; }
  .feature-art { justify-items: start; }
  .feature-art::before { inset: 0 auto 0 0; width: 180px; }
}
.features-index { padding-bottom: 8px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; justify-items: center; }
.notice { margin: 0 0 24px; padding: 12px 18px; border-radius: 12px; background: rgba(95, 169, 246, 0.14); border: 1px solid rgba(95, 169, 246, 0.3); color: var(--sky-2); font-weight: 500; }
.notice[hidden] { display: none; }
.billing-toggle { display: inline-flex; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--hairline); margin: 0 0 28px; }
.billing-toggle label { cursor: pointer; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--muted); transition: background-color 180ms, color 180ms; }
.billing-toggle .save { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--mint); }
#billing-yearly:checked ~ .billing-toggle label[for="billing-yearly"],
#billing-monthly:checked ~ .billing-toggle label[for="billing-monthly"] { background: var(--raised); color: var(--ink); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.6); }
#billing-yearly:focus-visible ~ .billing-toggle label[for="billing-yearly"],
#billing-monthly:focus-visible ~ .billing-toggle label[for="billing-monthly"] { outline: 2px solid var(--sky); outline-offset: 2px; }
#billing-yearly:checked ~ .plans .price-monthly, #billing-yearly:checked ~ .plans .plan-monthly,
#billing-monthly:checked ~ .plans .price-yearly, #billing-monthly:checked ~ .plans .plan-yearly { display: none; }
.plans { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; }
.plan { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--glass); border: 1px solid var(--hairline); display: flex; flex-direction: column; }
.plan .btn { margin-top: auto; }
.plan-pro { background: linear-gradient(160deg, rgba(29, 66, 115, 0.6), rgba(19, 36, 63, 0.75) 50%, rgba(21, 55, 77, 0.6)); border-color: rgba(178, 222, 255, 0.22); box-shadow: 0 30px 70px -30px rgba(95, 169, 246, 0.45); }
.plan-name { margin: 0; font: 650 22px/1.2 var(--display); }
.plan-price { margin: 14px 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 4px; }
.plan-price b { font: 650 52px/1 var(--display); letter-spacing: -0.04em; }
.plan-price span { color: var(--muted); font-size: 17px; }
.plan-price .per { flex-basis: 100%; font-size: 14px; margin-top: 6px; }
.plan .small { margin: 10px 0 0; }
.plan-facts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 920px; width: 100%; }
.plan-facts li { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.plan-facts b { color: var(--ink); display: block; }
.plan-facts a { color: var(--sky); }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } .plan-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .plan-facts { grid-template-columns: 1fr; } }
.faq { max-width: 820px; }
.faq .headline { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font: 600 18px/1.4 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 26px/1 var(--text); color: var(--sky); transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--soft); max-width: 64ch; }
.faq a { color: var(--sky); }

/* ---------- Download ---------- */
.download-panel { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: var(--glass); border: 1px solid var(--hairline); }
.download-panel img { width: clamp(110px, 16vw, 160px); height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)); }
.download-panel p { margin: 10px 0 0; }
.badge-pill { display: inline-block; padding: 4px 12px; margin-bottom: 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--sky); background: rgba(95, 169, 246, 0.14); border: 1px solid rgba(95, 169, 246, 0.25); }
@media (max-width: 640px) { .download-panel { grid-template-columns: 1fr; } }
.steps { margin-top: 56px; }
.step-list { list-style: none; counter-reset: step; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step-list li { counter-increment: step; padding: 22px; border-radius: 18px; background: var(--glass); border: 1px solid var(--hairline); display: grid; gap: 6px; }
.step-list li::before { content: counter(step, decimal-leading-zero); font: 600 13px/1 var(--text); color: var(--sky); letter-spacing: 0.1em; }
.step-list b { font: 600 18px/1.3 var(--display); }
.step-list span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .step-list { grid-template-columns: 1fr; } }
.checksum { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; color: var(--soft); padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
details summary { cursor: pointer; }
.prose details { margin-top: 16px; }
.prose details summary { color: var(--sky); font-weight: 600; }

/* ---------- Help ---------- */
.help-card { margin-top: 48px; padding: 28px; border-radius: 22px; background: var(--glass); border: 1px solid var(--hairline); }
.help-card .btn { margin-top: 16px; }
.help-card .small { margin-top: 16px; }
.changelog article { padding: 24px 0; border-bottom: 1px solid var(--hairline); }
.changelog time { color: var(--muted); font-size: 14px; margin-right: 8px; }
.changelog h2 { margin-top: 10px; }

/* ---------- Checkout, welcome and account ---------- */
.account { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(28px, 5vw, 72px); align-items: start; padding: clamp(40px, 7vw, 96px) 0 24px; }
.account-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.account-points li { position: relative; padding-left: 28px; color: var(--soft); }
.account-points li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px; border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg); }
.account-points b { color: var(--ink); }
.account-card { padding: clamp(24px, 3vw, 36px); border-radius: 26px; background: linear-gradient(160deg, rgba(36, 55, 82, 0.8), rgba(13, 21, 40, 0.9)); border: 1px solid rgba(178, 222, 255, 0.16); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.account-card > img { width: 56px; height: 56px; margin-bottom: 14px; }
.account-card .title { margin-bottom: 6px; }
.account-card #description { margin: 0 0 20px; }
.message { min-height: 1.2em; margin: 14px 0 0; color: var(--sky); font-weight: 500; }
.message:empty { margin: 0; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
#content > .btn { margin: 6px 10px 0 0; }
#content > .text-link { display: inline-block; margin-top: 16px; }
/* On phones the action comes first: an emailed link should land on its confirmation. */
@media (max-width: 900px) { .account { grid-template-columns: 1fr; } .account-card { order: -1; } }
.account-form { display: grid; gap: 8px; }
.account-form label { font-size: 14px; font-weight: 600; color: var(--soft); margin-top: 8px; }
.account-form input, .account-form select, .account-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(7, 13, 26, 0.6); font-size: 16px; }
.account-form textarea { min-height: 140px; resize: vertical; }
.account-form input:focus, .account-form select:focus, .account-form textarea:focus { outline: 2px solid var(--sky); outline-offset: 1px; border-color: transparent; }
.account-form .btn { margin-top: 14px; }
.plan-choice { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan-choice legend { font-size: 14px; font-weight: 600; color: var(--soft); margin-bottom: 8px; }
.plan-option { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: rgba(7, 13, 26, 0.45); cursor: pointer; transition: border-color 160ms, background-color 160ms; }
.plan-option:has(input:checked) { border-color: var(--accent); background: rgba(95, 169, 246, 0.12); }
.plan-option input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.plan-option b { font: 600 17px/1.3 var(--display); display: block; }
.plan-option .small { display: block; }
.plan-option .price { font: 650 20px/1 var(--display); }
.disclosure { margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hairline); font-size: 14px; color: var(--soft); line-height: 1.5; }
.license-key { margin: 6px 0 0; padding: 16px; border-radius: 14px; background: rgba(7, 13, 26, 0.7); border: 1px solid rgba(178, 222, 255, 0.25); font: 600 15px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; user-select: all; }
.facts { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; color: var(--soft); }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); margin-bottom: 18px; }
.tabs button { border: 0; cursor: pointer; padding: 10px 6px; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.tabs button[aria-pressed="true"] { background: var(--raised); color: var(--ink); }
.device-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.device-list li { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hairline); }
.device-list b { display: block; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .ws-card:hover { transform: none; }
}
@media print {
  body::before, body::after, .nav, .footer, .cta-band { display: none; }
  body { background: #fff; color: #000; }
}
