/*
 * MacWashing site. Dark graphite and glass, like the app (app/App/Sources/Theme/Theme.swift).
 * No external fonts or CDNs; strict CSP (no inline styles), so every variation is a class.
 */

/* ---------- Tokens ---------- */

:root {
  color-scheme: dark;

  --bg: #0b0c10;
  --sheet: #191b21;
  --text: #f3f4f6;
  --muted: rgba(243, 244, 246, 0.66);
  --faint: rgba(243, 244, 246, 0.5);

  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.06);
  --glass-3: rgba(255, 255, 255, 0.085);
  --stroke: rgba(255, 255, 255, 0.075);
  --stroke-2: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.07);
  --track: rgba(255, 255, 255, 0.08);

  --junk: #5bd6e8;
  --large: #ffb45e;
  --uninstaller: #a897ff;
  --disk: #74de9c;
  --privacy: #ff7b72;
  --warning: #ffc98a;
  --danger: #d93c3f;
  --danger-text: #ff938b;

  /* Current section accent; tone-* classes switch it. */
  --accent: var(--junk);
  --t1: #7fe4f2;
  --t2: #2c98c2;
  --on-accent: #0b0c10;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --gutter: clamp(16px, 4vw, 32px);
  --max: 1160px;
  --header-h: 64px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tone-junk { --accent: var(--junk); --t1: #7fe4f2; --t2: #2c98c2; }
.tone-large { --accent: var(--large); --t1: #ffcf85; --t2: #e8862c; }
.tone-uninstaller { --accent: var(--uninstaller); --t1: #c3b7ff; --t2: #7a63ee; }
.tone-disk { --accent: var(--disk); --t1: #a2ebb4; --t2: #2fa66a; }
.tone-privacy { --accent: var(--privacy); --t1: #ff9c94; --t2: #e0433f; }

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

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Graphite lit by accent glows, like the app window (top-right 20%, bottom-left 6%). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 720px at 88% -8%, rgba(91, 214, 232, 0.17), transparent 68%),
    radial-gradient(900px 600px at 6% 108%, rgba(168, 151, 255, 0.07), transparent 70%),
    radial-gradient(700px 480px at 20% 104%, rgba(91, 214, 232, 0.05), transparent 70%),
    var(--bg);
}

main {
  flex: 1 0 auto;
  display: block;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--junk);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: rgba(91, 214, 232, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--sheet);
  color: var(--text);
  border: 1px solid var(--stroke-2);
}

.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

/* ---------- Utilities ---------- */

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: calc(780px + 2 * var(--gutter));
}

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.faint {
  color: var(--faint);
}

.small {
  font-size: 14px;
  line-height: 1.5;
}

.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack > * {
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.actions-center {
  justify-content: center;
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section-tight {
  padding-block: clamp(24px, 4vw, 48px);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}

.section-head .lead {
  margin-top: 16px;
}

.kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.1;
}

.display {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.06;
}

.lead {
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
}

.page-title {
  margin-bottom: 24px;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* Icons are SVG masks painted with currentColor. */
.icon {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  background-color: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}

.icon-junk { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2.5' width='16' height='19' rx='3.5'/%3E%3Ccircle cx='12' cy='13.5' r='4.8'/%3E%3Cpath d='M11 6.2h6'/%3E%3Ccircle cx='7.6' cy='6.2' r='.6' fill='%23000'/%3E%3Cpath d='M9.2 14.6c1.8-1.2 3.6 1.2 5.6 0'/%3E%3C/svg%3E"); }
.icon-large { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.5 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5'/%3E%3Cpath d='M13.5 3 19 8.5V11'/%3E%3Cpath d='M13.5 3v5.5H19'/%3E%3Ccircle cx='16' cy='16' r='3.2'/%3E%3Cpath d='m18.4 18.4 2.6 2.6'/%3E%3C/svg%3E"); }
.icon-uninstaller { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='7' height='7' rx='2'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='2'/%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='2'/%3E%3Crect x='13.5' y='13.5' width='7' height='7' rx='2'/%3E%3C/svg%3E"); }
.icon-disk { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6.5' width='19' height='11' rx='3'/%3E%3Cpath d='M6.5 12h6'/%3E%3Ccircle cx='17' cy='12' r='1' fill='%23000'/%3E%3C/svg%3E"); }
.icon-privacy { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 13V6a1.5 1.5 0 0 1 3 0v5'/%3E%3Cpath d='M11 11V4.5a1.5 1.5 0 0 1 3 0V11'/%3E%3Cpath d='M14 11V6a1.5 1.5 0 0 1 3 0v6'/%3E%3Cpath d='M17 10a1.5 1.5 0 0 1 3 0v4.5a7.5 7.5 0 0 1-7.5 7.5h-.7a7 7 0 0 1-5.5-2.7l-3-3.9a1.6 1.6 0 0 1 2.4-2.1L8 15.6'/%3E%3C/svg%3E"); }
.icon-startup { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v8'/%3E%3Cpath d='M6.4 6.6a8 8 0 1 0 11.2 0'/%3E%3C/svg%3E"); }
.icon-helper { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8.5 10.5V7.5a3.5 3.5 0 0 1 7 0v3'/%3E%3Cpath d='M12 14.5v2'/%3E%3C/svg%3E"); }
.icon-rules { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h9M17 7h3M4 17h3M11 17h9'/%3E%3Ccircle cx='15' cy='7' r='2'/%3E%3Ccircle cx='9' cy='17' r='2'/%3E%3C/svg%3E"); }
.icon-shield { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 19 6v5.2c0 4.7-3.1 8.2-7 9.8-3.9-1.6-7-5.1-7-9.8V6z'/%3E%3Cpath d='m9 12 2.2 2.2L15.5 10'/%3E%3C/svg%3E"); }
.icon-folder { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5A2.5 2.5 0 0 1 5.5 5h3.7l2 2.2h7.3A2.5 2.5 0 0 1 21 9.7v7.8a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 17.5z'/%3E%3Cpath d='m9.5 13.3 1.8 1.8 3.4-3.4'/%3E%3C/svg%3E"); }
.icon-eye { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.icon-trash { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M9.5 7V4.5h5V7'/%3E%3Cpath d='m6 7 1 13h10l1-13'/%3E%3Cpath d='M10 11v5.5M14 11v5.5'/%3E%3C/svg%3E"); }
.icon-app { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Cpath d='M3 8.5h18'/%3E%3Cpath d='M9 14.5a3 3 0 1 0 1-2.2'/%3E%3Cpath d='M9.3 11.2v1.6h1.6'/%3E%3C/svg%3E"); }
.icon-mac { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4.5' width='16' height='11' rx='1.8'/%3E%3Cpath d='M2 19.5h20'/%3E%3C/svg%3E"); }
.icon-check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' stroke-width='2.6'/%3E%3C/svg%3E"); }
.icon-download { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11'/%3E%3Cpath d='m7 10.5 5 5 5-5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E"); }
.icon-arrow { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E"); }

/* Gradient icon tile, as in the app's sidebar. */
.tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--t1), var(--t2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 16px -6px var(--t2);
  color: #fff;
}

.tile .icon {
  width: 20px;
  height: 20px;
}

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

.btn {
  --btn-h: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-h);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--glass-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 28px -12px var(--accent);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 36px -12px var(--accent);
}

.btn-secondary {
  background: var(--glass-2);
  border-color: var(--stroke-2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--glass-3);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 10px 28px -14px var(--danger);
}

.btn-danger:hover:not(:disabled) {
  filter: brightness(1.1);
}

/* Sign in with Apple: white button, black logo (Apple's style for dark backgrounds). */
.btn-apple {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.btn-apple::before {
  content: "";
  flex: none;
  width: 17px;
  height: 20px;
  margin-top: -3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn-apple:hover:not(:disabled) {
  background: #f1f1f3;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  --btn-h: 34px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
}

.btn-lg {
  --btn-h: 52px;
  padding: 0 26px;
  border-radius: 15px;
  font-size: 17px;
}

.btn-download::before {
  content: "";
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11'/%3E%3Cpath d='m7 10.5 5 5 5-5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11'/%3E%3Cpath d='m7 10.5 5 5 5-5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--junk);
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  text-underline-offset: 3px;
}

.btn-link:hover {
  text-decoration: underline;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 12, 16, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 4px 10px rgba(91, 214, 232, 0.25));
}

.nav-desktop {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.nav-desktop a,
.footer-nav a {
  padding: 6px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}

.nav-desktop a:hover,
.footer-nav a:hover {
  color: var(--text);
  background: var(--glass);
  text-decoration: none;
}

.nav-desktop a[aria-current="page"],
.footer-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--glass-2);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.header-end .btn[aria-current="page"] {
  border-color: rgba(255, 255, 255, 0.22);
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--glass);
}

.lang-opt {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

a.lang-opt:hover {
  color: var(--text);
  text-decoration: none;
}

.lang-opt[aria-current="true"] {
  background: var(--glass-3);
  color: var(--text);
}

/* Mobile menu: <details>, works without JavaScript. */
.nav-mobile {
  display: none;
  margin-left: auto;
}

.nav-mobile > summary {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--glass);
  cursor: pointer;
  list-style: none;
}

.nav-mobile > summary::-webkit-details-marker {
  display: none;
}

.burger {
  width: 20px;
  height: 20px;
  background-color: var(--text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nav-mobile[open] .burger {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18' stroke-width='2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18' stroke-width='2'/%3E%3C/svg%3E");
}

.nav-mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 12px var(--gutter) 20px;
  border-bottom: 1px solid var(--line);
  background: #111217;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
  animation: drop 0.22s var(--ease);
}

.nav-mobile-panel nav {
  display: flex;
  flex-direction: column;
}

.nav-mobile-panel nav a {
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
}

.nav-mobile-panel nav a[aria-current="page"] {
  color: var(--junk);
}

.nav-mobile-end {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.nav-mobile-end .btn {
  flex: 1;
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@media (max-width: 860px) {
  .nav-desktop,
  .header-end {
    display: none;
  }

  .nav-mobile {
    display: block;
  }
}

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

.site-footer {
  margin-top: 40px;
  padding-block: 40px;
  border-top: 1px solid var(--line);
  background: rgba(11, 12, 16, 0.5);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr auto;
  align-items: start;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: -12px;
}

.footer-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.site-footer-minimal {
  padding-block: 24px;
  text-align: center;
}

@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-end {
    align-items: flex-start;
  }
}

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

.hero {
  position: relative;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(32px, 5vw, 56px);
  text-align: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.8s var(--ease) both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 14px var(--accent);
}

.hero-title {
  max-width: 1100px;
  font-size: clamp(36px, 6vw, 74px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.grad {
  display: inline-block;
  background: linear-gradient(100deg, #b4f1f9 0%, var(--junk) 38%, #a897ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

.hero-lead {
  max-width: 700px;
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.download-meta {
  margin-top: 14px;
  color: var(--faint);
  font-size: 14px;
}

.download-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-cta .download-meta {
  margin-top: 12px;
}

.trial-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 7px 14px;
  border: 1px solid color-mix(in srgb, var(--disk) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--disk) 9%, transparent);
  color: #b6f0c8;
  font-size: 14px;
  font-weight: 550;
}

.trial-pill .icon {
  width: 16px;
  height: 16px;
  color: var(--disk);
}


@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* ---------- Trial band ---------- */

.trial-band {
  --accent: var(--disk);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(116, 222, 156, 0.13), transparent 70%),
    radial-gradient(500px 300px at 100% 100%, rgba(91, 214, 232, 0.08), transparent 70%),
    var(--glass);
}

.trial-amount {
  display: flex;
  flex-direction: column;
}

.trial-amount .kicker {
  margin-bottom: 4px;
}

.trial-number {
  background: linear-gradient(120deg, #c8f5d6, var(--disk) 45%, var(--junk));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(64px, 10vw, 128px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  white-space: nowrap;
}

.trial-copy .section-title {
  font-size: clamp(24px, 2.8vw, 32px);
  margin-bottom: 12px;
}

.trial-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.trial-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 550;
}

.trial-points .icon {
  width: 16px;
  height: 16px;
  color: var(--disk);
}

@media (max-width: 720px) {
  .trial-band {
    grid-template-columns: 1fr;
  }
}

/* ---------- Check lists ---------- */

.checks {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.checks li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 12px;
  height: 12px;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' stroke-width='2.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' stroke-width='2.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.more {
  margin-top: clamp(72px, 10vw, 128px);
}

.more-title {
  margin-bottom: 24px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.more .lead {
  margin-bottom: 32px;
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mini-card {
  padding: 24px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: var(--glass);
}

.mini-card h4 {
  margin: 16px 0 8px;
  font-size: 17px;
  font-weight: 650;
}

.mini-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--glass-2);
  color: var(--text);
}

.mini-icon .icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 860px) {
  .mini-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Plans ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-inline: auto;
}

.plans-1 {
  max-width: 380px;
}

.plans-2 {
  max-width: 780px;
}

.plans-3 {
  max-width: 1040px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.plan-name {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.plan-price {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: var(--muted);
  font-size: 15px;
}

.plan .checks {
  margin: 12px 0 20px;
}

.plan > .btn {
  margin-top: auto;
}

.plan-trial {
  --accent: var(--disk);
  border-color: color-mix(in srgb, var(--disk) 28%, transparent);
  background:
    radial-gradient(400px 220px at 0% 0%, rgba(116, 222, 156, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.buy-note {
  margin-top: 28px;
}

.plans + .actions,
.pgrid + .actions {
  margin-top: 36px;
}

.pricing-empty {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  max-width: 880px;
  margin-inline: auto;
}

.empty-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 36px;
}

@media (max-width: 720px) {
  .pricing-empty {
    grid-template-columns: 1fr;
  }
}

.page-hero {
  padding-bottom: clamp(24px, 4vw, 40px);
}

.page-hero .lead {
  margin-top: 16px;
}

/* Year / Month / Lifetime switch over the plan cards (views/pricing.ts): radio buttons and sibling selectors, no JS. */
.pgrid {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pgrid-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pswitch {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin-bottom: 32px;
  padding: 4px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--glass);
}

.pswitch label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s;
}

.pswitch label:hover {
  color: var(--text);
}

.pswitch-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.45s var(--ease);
}

.pgrid-2 .pswitch-pill { width: calc((100% - 8px) / 2); }
.pgrid-1 .pswitch-pill { width: calc(100% - 8px); }
.pi-1:checked ~ .pswitch .pswitch-pill { transform: translateX(100%); }
.pi-2:checked ~ .pswitch .pswitch-pill { transform: translateX(200%); }

.pi-0:checked ~ .pswitch .pl-0,
.pi-1:checked ~ .pswitch .pl-1,
.pi-2:checked ~ .pswitch .pl-2 {
  color: var(--text);
}

.pi-0:focus-visible ~ .pswitch .pl-0,
.pi-1:focus-visible ~ .pswitch .pl-1,
.pi-2:focus-visible ~ .pswitch .pl-2 {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pswitch-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--disk) 16%, transparent);
  color: var(--disk);
  font-size: 11px;
  font-weight: 650;
}

.pgrid > .plans {
  display: none;
  width: 100%;
}

.pi-0:checked ~ .pg-0,
.pi-1:checked ~ .pg-1,
.pi-2:checked ~ .pg-2 {
  display: grid;
  animation: rise 0.45s var(--ease) both;
}

.plan-price small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: 0;
}

.plan-sub {
  color: var(--faint);
  font-size: 14px;
}

.plan-save {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--disk) 16%, transparent);
  color: var(--disk);
  font-size: 12px;
  font-weight: 650;
  vertical-align: 2px;
}

.plan .btn {
  margin-top: auto;
}

.plan .plan-sub + .btn {
  margin-top: 18px;
}

.pgrid-legal {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.pgrid-legal a {
  color: var(--muted);
}

.pricing-trial {
  max-width: 400px;
  margin: 28px auto 0;
}

@media (max-width: 560px) {
  .pswitch label {
    padding: 0 12px;
    font-size: 14px;
  }

  .pswitch-badge {
    display: none;
  }
}

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

.faq {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background-color: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6' stroke-width='2.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6' stroke-width='2.2'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s var(--ease);
}

.faq-item[open] > summary::after {
  transform: rotate(180deg);
}

.faq-item.closing > summary::after {
  transform: none;
}

.faq-item > p {
  transition: opacity 0.28s var(--ease);
}

.faq-item.closing > p {
  opacity: 0;
}

.faq-item > summary:hover {
  color: #fff;
}

.faq-item > p {
  padding: 0 4px 22px;
  color: var(--muted);
  max-width: 68ch;
}

/* ---------- Final CTA ---------- */

.final-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 64px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(700px 360px at 50% -10%, rgba(91, 214, 232, 0.2), transparent 70%),
    radial-gradient(500px 300px at 100% 110%, rgba(168, 151, 255, 0.1), transparent 70%),
    var(--glass);
  text-align: center;
}

.final-icon {
  width: 112px;
  height: 112px;
  margin-bottom: 20px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}

.final-cta .lead {
  margin: 12px 0 32px;
}

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

.download-icon {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
}

.download-main {
  margin-top: 32px;
}

.release-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin-top: 28px;
}

.release-facts dt {
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-facts dd {
  font-weight: 600;
}

.download-details {
  display: grid;
  gap: 16px;
}

.release-notes {
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.sha {
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  word-break: break-all;
  user-select: all;
}

.download-details .checks {
  margin-top: 4px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}

.step {
  padding: 24px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: var(--glass);
}

.step h3 {
  margin: 16px 0 6px;
  font-size: 17px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--t1), var(--t2));
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Error page ---------- */

.error-page {
  display: flex;
  align-items: center;
  min-height: 62vh;
}

.error-code {
  background: linear-gradient(180deg, rgba(243, 244, 246, 0.9), rgba(243, 244, 246, 0.12));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(96px, 18vw, 180px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.error-page .lead {
  margin: 16px auto 32px;
  max-width: 560px;
}

/* ---------- Cards and forms (auth, account, app sign-in) ---------- */

.card {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.028));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}

.card-title {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 650;
}

.auth {
  width: 100%;
  max-width: calc(440px + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(40px, 8vw, 88px) var(--gutter);
}

.auth .page-title {
  text-align: center;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 550;
  color: var(--text);
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="url"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--stroke-2);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3A4A7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

select option {
  background: var(--sheet);
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: rgba(243, 244, 246, 0.36);
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--junk);
  background-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(91, 214, 232, 0.22);
}

input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

input[aria-invalid="true"],
.field:has(.field-error) input,
.field:has(.field-error) select,
.field:has(.field-error) textarea {
  border-color: color-mix(in srgb, var(--privacy) 70%, transparent);
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--junk);
}

.hint {
  color: var(--faint);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.field-error {
  color: var(--danger-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.notice {
  padding: 12px 16px;
  border: 1px solid var(--stroke-2);
  border-radius: 12px;
  background: var(--glass-2);
  font-size: 15px;
  line-height: 1.5;
}

.notice-error {
  border-color: rgba(255, 123, 114, 0.35);
  background: rgba(255, 123, 114, 0.1);
  color: #ffd3cf;
}

.notice-success {
  border-color: rgba(116, 222, 156, 0.35);
  background: rgba(116, 222, 156, 0.1);
  color: #cdf5da;
}

.notice-info {
  border-color: rgba(91, 214, 232, 0.35);
  background: rgba(91, 214, 232, 0.09);
  color: #d0f5fb;
}

.notice a {
  color: inherit;
  text-decoration: underline;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--faint);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Account: vertical tabs + content. */
.account {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(32px, 5vw, 56px);
}

.account-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.15s, color 0.15s;
}

.account-nav a:hover {
  background: var(--glass);
  color: var(--text);
  text-decoration: none;
}

.account-nav a[aria-current="page"] {
  background: var(--glass-3);
  color: var(--text);
  font-weight: 600;
}

.account-nav form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.account-nav form button:not(.btn) {
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.account-nav form button:not(.btn):hover {
  background: var(--glass);
  color: var(--text);
}

.account-nav form .btn-link {
  padding: 9px 12px;
  color: var(--muted);
}

.account-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.account-main > .page-title {
  margin-bottom: 4px;
}

@media (max-width: 760px) {
  .account {
    grid-template-columns: 1fr;
  }

  .account-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .account-nav::-webkit-scrollbar {
    display: none;
  }

  .account-nav a {
    flex: none;
    white-space: nowrap;
  }

  .account-nav form {
    flex: none;
    margin: 0 0 0 auto;
    padding: 0 0 0 8px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .account-nav form button:not(.btn) {
    white-space: nowrap;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--glass);
}

.stat-label {
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.stat-sub {
  color: var(--muted);
  font-size: 13px;
}

progress.meter {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
  color: var(--junk);
}

progress.meter::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--track);
}

progress.meter::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--junk), color-mix(in srgb, var(--junk) 55%, transparent));
}

progress.meter::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--junk), color-mix(in srgb, var(--junk) 55%, transparent));
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-overflow-scrolling: touch;
}

table.table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}

.table th,
.table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: middle;
}

.table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table td {
  border-top: 1px solid var(--line);
}

.table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.table td form {
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
  white-space: nowrap;
}

.badge-ok {
  border-color: rgba(116, 222, 156, 0.3);
  background: rgba(116, 222, 156, 0.12);
  color: #a9eec0;
}

.badge-muted {
  border-color: var(--stroke-2);
  background: var(--glass-2);
  color: var(--muted);
}

.badge-warn {
  border-color: rgba(255, 201, 138, 0.3);
  background: rgba(255, 180, 94, 0.12);
  color: var(--warning);
}

.badge-danger {
  border-color: rgba(255, 123, 114, 0.35);
  background: rgba(255, 123, 114, 0.12);
  color: var(--danger-text);
}

.danger-zone {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(217, 60, 63, 0.4);
  border-radius: var(--radius-lg);
  background: rgba(217, 60, 63, 0.06);
}

.danger-zone .card-title,
.danger-zone h2,
.danger-zone h3 {
  margin-bottom: 0;
  color: var(--danger-text);
}

/* "Continue in MacWashing as ..." */
.appauth {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.appauth-icon {
  width: 112px;
  height: 112px;
  margin-bottom: 8px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
}

.appauth-title {
  font-size: clamp(22px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.appauth-email {
  padding: 6px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--glass-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 550;
  overflow-wrap: anywhere;
}

.appauth .actions,
.appauth form {
  width: 100%;
}

/* ---------- Landing: live windows and compositions ---------- */
/* After the owner-approved prototype: a hero over a live System Junk window, then one composition per section of
   the app. The windows themselves are mw.css / mw.js; landing.js mounts and scales them. */

.lp-hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
}

.lp-hero > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.8s var(--ease) both;
}

.lp-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 380px;
  width: 1400px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(91, 214, 232, 0.16), transparent);
  pointer-events: none;
  z-index: -1;
}

.lp-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
  color: var(--faint);
  font-size: 14px;
}

.lp-trust b {
  margin-right: 4px;
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* A stage keeps the window's 1100 × 720 shape at any width. While landing.js decides, it is a placeholder: the
   screenshot blurred beyond reading under a shimmer. Then the live window fades in over it (.is-live, same box, no
   layout shift) or the blur clears to the sharp screenshot (.is-sharp). If landing.js never runs although scripts
   are on, the blur clears by itself after 6 s; without scripts nojs.css shows the sharp screenshot. */
.lp-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  aspect-ratio: 1100 / 720;
  text-align: left;
}

.lp-scaler {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 1100px;
  height: 720px;
  transform-origin: 0 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s 0.5s;
}

.lp-shot {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: var(--sheet);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  transition: opacity 0.5s var(--ease);
}

.lp-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Placeholder: nothing readable, edges hidden by the scale. */
  filter: blur(28px) saturate(1.15);
  transform: scale(1.12);
  transition: filter 0.7s var(--ease), transform 0.7s var(--ease);
}

body:not(.lp-js) .lp-shot img {
  animation: lp-unblur 0.7s 6s var(--ease) forwards;
}

@keyframes lp-unblur {
  to { filter: none; transform: none; }
}

/* Skeleton shimmer: a soft, accent-tinted band sweeping across the placeholder. */
.lp-shimmer {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 12px;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.06) 42%,
    color-mix(in srgb, var(--accent) 14%, transparent) 50%, rgba(255, 255, 255, 0.06) 58%, transparent 70%);
  background-size: 250% 100%;
  animation: lp-shimmer 1.8s linear infinite;
  transition: opacity 0.5s var(--ease);
}

@keyframes lp-shimmer {
  from { background-position: 120% 0; }
  to { background-position: -20% 0; }
}

body:not(.lp-js) .lp-shimmer {
  animation: lp-shimmer 1.8s linear 3, lp-fade-out 0.5s 6s forwards;
}

@keyframes lp-fade-out {
  to { opacity: 0; }
}

.lp-stage.is-sharp .lp-shot img {
  filter: none;
  transform: none;
}

.lp-stage.is-sharp .lp-shimmer,
.lp-stage.is-live .lp-shimmer {
  opacity: 0;
  animation: none;
}

.lp-stage.is-live .lp-scaler {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--ease);
}

.lp-stage.is-live .lp-shot {
  opacity: 0;
}

.lp-stage-hero {
  margin-top: clamp(40px, 6vw, 64px);
}

.lp-stage-hero::after {
  content: "";
  position: absolute;
  inset: auto 8% -30px;
  height: 60px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent);
  z-index: -1;
}

/* Hints talk about the live window, so they show only next to one. */
.lp-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--faint);
  font-size: 14px;
  text-align: center;
}

.lp-stage.is-live + .lp-hint {
  display: flex;
}

.lp-hint i {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.lp-sec {
  position: relative;
  padding-block: clamp(72px, 10vw, 128px) clamp(32px, 4vw, 56px);
  /* The accent glows are wider than the screen; clip (not hidden) keeps the sticky copy working. */
  overflow-x: clip;
}

.lp-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lp-kicker.center {
  justify-content: center;
}

.lp-title {
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.lp-sec .lead {
  max-width: 38em;
  margin-top: 18px;
}

.lp-sec .center .lead {
  margin-inline: auto;
}

.lp-points {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.lp-points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
}

.lp-check {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* System Junk: bento */
.lp-module {
  margin-top: clamp(48px, 7vw, 88px);
}

.lp-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.lp-bx {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.lp-bx h3 {
  margin: 14px 0 4px;
  font-size: 16px;
}

.lp-bx p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.lp-bx-big {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(91, 214, 232, 0.16), transparent 60%), rgba(255, 255, 255, 0.03);
}

.lp-bx-wide {
  grid-column: span 2;
}

.lp-bx .lp-num-xl {
  color: var(--text);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.lp-num-xl + p {
  margin-top: 10px;
}

.lp-num-xl small {
  margin-left: 0.15em;
  font-size: 0.42em;
  font-weight: 700;
  opacity: 0.8;
}

.lp-stack {
  display: flex;
  height: 10px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.lp-stack i {
  height: 100%;
  transform-origin: left;
  transition: transform 1.2s var(--ease);
}

.lp-stack i:nth-child(1) { width: 47.5%; background: #8bebff; }
.lp-stack i:nth-child(2) { width: 39.2%; background: #ffcf85; transition-delay: 0.1s; }
.lp-stack i:nth-child(3) { width: 8%; background: #c3b7ff; transition-delay: 0.2s; }
.lp-stack i:nth-child(4) { width: 5.3%; background: #fff; transition-delay: 0.3s; }
.lp-js .lp-bento:not(.in) .lp-stack i { transform: scaleX(0); }

.lp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.lp-legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lp-legend li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8bebff;
}

.lp-legend li:nth-child(2)::before { background: #ffcf85; }
.lp-legend li:nth-child(3)::before { background: #c3b7ff; }
.lp-legend li:nth-child(4)::before { background: #fff; }

.lp-btile {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.35);
}

.lp-btile svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-btile-cache { background: linear-gradient(135deg, #ffb36b, #ee6a35); }
.lp-btile-xcode { background: linear-gradient(135deg, #72b8ff, #2b66e6); }
.lp-btile-inst { background: linear-gradient(135deg, #c6cdd8, #6f7888); }
.lp-btile-left { background: linear-gradient(135deg, #c8aeff, #7a56e8); }
.lp-btile-logs { background: linear-gradient(135deg, #9aaec4, #4b5d73); }

.lp-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(255, 180, 94, 0.16);
  color: var(--warning);
  font-size: 12px;
  font-weight: 600;
}

.lp-pill + p {
  margin-top: 12px;
}

/* Large Files: sticky copy, tilted window */
.lp-split::before {
  content: "";
  position: absolute;
  right: -10%;
  top: 10%;
  width: 900px;
  height: 900px;
  background: radial-gradient(closest-side, rgba(255, 180, 94, 0.12), transparent);
  pointer-events: none;
  z-index: -1;
}

.lp-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.lp-split-copy {
  position: sticky;
  top: calc(var(--header-h) + 48px);
}

.lp-persp {
  perspective: 1600px;
}

.lp-tilt {
  transform: rotateY(-14deg) rotateX(6deg) translateZ(0);
  transform-origin: 0 50%;
  transition: transform 1.2s var(--ease);
}

.lp-tilt.flat {
  transform: none;
}

.lp-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.lp-facts div {
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--faint);
  font-size: 13px;
}

.lp-facts b {
  display: block;
  color: var(--text);
  font-size: 22px;
  letter-spacing: -0.02em;
}

/* Uninstaller: numbered markers */
.lp-annot {
  text-align: center;
}

.lp-annot::before,
.lp-chips-sec::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 30%;
  width: 1300px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 13%, transparent), transparent);
  pointer-events: none;
  z-index: -1;
}

.lp-board {
  position: relative;
  max-width: 1100px;
  margin: 56px auto 0;
}

.lp-points-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  max-width: 1000px;
  margin: 36px auto 0;
  text-align: left;
}

.lp-points-grid b {
  color: var(--text);
  font-weight: 600;
}

/* Storage: window under a glass card */
.lp-overlay::before {
  content: "";
  position: absolute;
  left: -10%;
  top: 20%;
  width: 900px;
  height: 900px;
  background: radial-gradient(closest-side, rgba(116, 222, 156, 0.11), transparent);
  pointer-events: none;
  z-index: -1;
}

.lp-overlay-head {
  max-width: 44em;
}

.lp-frame {
  position: relative;
  max-width: 1100px;
  margin-top: 48px;
  margin-bottom: 40px;
}

.lp-glass {
  position: absolute;
  right: -40px;
  bottom: -60px;
  z-index: 5;
  width: min(420px, 46%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(24, 27, 33, 0.66);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.lp-glass .lp-points {
  margin-top: 0;
}

/* Privacy: permission chips */
.lp-chips-sec {
  text-align: center;
  overflow: hidden;
}

.lp-chips-sec::before {
  top: 0;
  height: 800px;
}

.lp-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 880px;
  margin: 34px auto 0;
  padding: 0;
  list-style: none;
}

.lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  transition: opacity 0.5s, transform 0.6s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.lp-js .lp-cloud:not(.in) .lp-chip {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
}

.lp-chip:nth-child(2) { transition-delay: 0.06s; }
.lp-chip:nth-child(3) { transition-delay: 0.12s; }
.lp-chip:nth-child(4) { transition-delay: 0.18s; }
.lp-chip:nth-child(5) { transition-delay: 0.24s; }
.lp-chip:nth-child(6) { transition-delay: 0.3s; }
.lp-chip:nth-child(7) { transition-delay: 0.36s; }
.lp-chip:nth-child(8) { transition-delay: 0.42s; }
.lp-chip:nth-child(9) { transition-delay: 0.48s; }
.lp-chip:nth-child(10) { transition-delay: 0.54s; }
.lp-chip:nth-child(11) { transition-delay: 0.6s; }

.lp-chip i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, #6fb6ff, #2b7cf0);
}

.lp-chip svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-chip-cam { background: linear-gradient(135deg, #a3aab5, #5e646e) !important; }
.lp-chip-mic, .lp-chip-cal { background: linear-gradient(135deg, #ff8a7a, #e8453c) !important; }
.lp-chip-rec { background: linear-gradient(135deg, #ff8a7a, #d9443c) !important; }
.lp-chip-drive, .lp-chip-folder { background: linear-gradient(135deg, #7fc8ff, #3a8ee6) !important; }
.lp-chip-access, .lp-chip-keys { background: linear-gradient(135deg, #6fb6ff, #2f6fe0) !important; }

.lp-points-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1000px;
  margin: 30px auto 0;
  text-align: left;
}

.lp-chips-sec .lp-stage {
  margin-top: 52px;
}

/* Safety: intro and cards */
.lp-safety-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.lp-safety-grid > div:first-child {
  position: sticky;
  top: calc(var(--header-h) + 48px);
}

.lp-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}

.lp-card {
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.lp-card h3 {
  margin: 14px 0 6px;
  font-size: 16px;
}

.lp-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.lp-card .lp-card-big {
  color: var(--text);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.lp-card-big small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.lp-card-icon {
  display: inline-grid;
  color: var(--junk);
}

.lp-card-icon .icon {
  width: 30px;
  height: 30px;
}

/* Languages */
.lp-langs {
  overflow: hidden;
}

.lp-langs .lead {
  margin-inline: auto;
}

.lp-marquee {
  display: grid;
  gap: 12px;
  margin-top: 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.lp-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: lp-slide 40s linear infinite;
}

.lp-track-rev {
  animation-direction: reverse;
  animation-duration: 48s;
}

.lp-track span {
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.lp-track span:nth-child(3n) { color: var(--junk); }
.lp-track span:nth-child(5n) { color: var(--large); }
.lp-track span:nth-child(7n) { color: var(--uninstaller); }

@keyframes lp-slide {
  to { transform: translateX(-50%); }
}

.lp-still .lp-track {
  animation-play-state: paused;
}

/* FAQ: title beside the questions */
.lp-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
}

.lp-faq .faq {
  margin-top: 0;
}

/* Reveal on scroll: only with landing.js (it adds .lp-js to the body), so nothing stays hidden without it. */
.lp-js .rv {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.lp-js .rv:not(.in) {
  opacity: 0;
  transform: translateY(28px);
}

@media (max-width: 1100px) {
  .lp-glass {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin-top: 18px;
  }
}

@media (max-width: 980px) {
  .lp-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-split-grid,
  .lp-safety-grid,
  .lp-faq-grid {
    grid-template-columns: 1fr;
  }

  .lp-split-copy,
  .lp-safety-grid > div:first-child {
    position: static;
  }

  .lp-points-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Phones keep the screenshots (landing.js does not load the windows there; this covers a window narrowed later). */
@media (max-width: 700px) {
  .lp-stage.is-live .lp-scaler,
  .lp-stage.is-live + .lp-hint {
    display: none;
  }

  .lp-stage.is-live .lp-shot {
    opacity: 1;
  }

  .lp-stage.is-live .lp-shot img {
    filter: none;
    transform: none;
  }

  .lp-tilt {
    transform: none;
  }

  .lp-points-row,
  .lp-points-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .lp-bento,
  .lp-cards {
    grid-template-columns: 1fr;
  }

  .lp-bx-big,
  .lp-bx-wide {
    grid-column: auto;
  }

  .lp-facts {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-js .rv:not(.in),
  .lp-js .lp-cloud:not(.in) .lp-chip,
  .lp-js .lp-bento:not(.in) .lp-stack i,
  .lp-tilt {
    opacity: 1;
    transform: none;
  }

  .lp-track,
  .lp-shimmer {
    animation: none;
  }

  .lp-shimmer {
    background-position: 50% 0;
  }
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* No backdrop blur: keep panels readable. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(11, 12, 16, 0.95);
  }
}

@media (forced-colors: active) {
  .btn,
  .card,
  .plan,
  .notice {
    border: 1px solid CanvasText;
  }
}

/* ---------- Thanks page (views/thanks.ts, thanks.js) ---------- */
.thanks-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  max-width: 560px;
  margin: 24px auto 0;
  text-align: center;
}

.thanks-text {
  font-weight: 600;
}

.thanks-line {
  flex-basis: 100%;
}

.thanks-line:empty {
  display: none;
}

.thanks-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--track);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: thanks-spin 0.9s linear infinite;
}

.thanks-status.is-ready .thanks-spinner {
  border-color: var(--accent);
  background: var(--accent);
  animation: none;
}

.thanks-status.is-long:not(.is-ready) .thanks-text {
  font-weight: 400;
  color: var(--muted);
}

@keyframes thanks-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .thanks-spinner {
    animation: none;
  }
}

.thanks-steps-title {
  margin-top: 36px;
  font-size: 18px;
  font-weight: 700;
}

.thanks-steps {
  max-width: 520px;
  margin: 14px auto 18px;
  padding-left: 1.4em;
  text-align: left;
  line-height: 1.6;
}

.thanks-steps li + li {
  margin-top: 6px;
}

/* The landing's own icon symbols (views/landing.ts BENTO_SPRITE): defined, never drawn. */
.lp-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
