/* Muzzy Client's site. The colours, radii and cards are the client's own menu's (menu.json, "theme"). */

@font-face { font-family: "Rajdhani"; src: url("/assets/fonts/rajdhani_bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: local("Inter"), url("/assets/fonts/inter_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: local("Inter SemiBold"), url("/assets/fonts/inter_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0B0F14;
  --bg-2: #0F141B;
  --panel: #131921;
  --card: #19212B;
  --card-hover: #1F2935;
  --line: #273140;
  --line-strong: #3A4656;
  --text: #E8EEF4;
  --text-soft: #B4BECA;
  --muted: #9AA7B5;
  --mint: #4ADE9C;
  --mint-hi: #7FF0BE;
  --mint-deep: #1E3A2F;
  --mint-ink: #052218;
  --teal: #2DD4BF;
  --violet: #A78BFA;
  --gold: #FFD75E;
  --gold-deep: #3A2E14;
  --red: #F08A8A;
  --red-deep: #3A1D1F;
  --blurple: #5865F2;

  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --display: "Rajdhani", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;

  --r-s: 10px;
  --r: 14px;
  --r-l: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --tab: var(--mint);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
/* The aurora of the client's title screen: mint, teal and violet light behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 52vh at 8% -12%, rgba(74, 222, 156, .17), transparent 62%),
    radial-gradient(52vw 46vh at 96% -4%, rgba(167, 139, 250, .15), transparent 64%),
    radial-gradient(70vw 60vh at 60% 112%, rgba(45, 212, 191, .10), transparent 62%);
}
canvas.aurora { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
main { flex: 1; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--mint); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mint-hi); }
code { font: 0.92em var(--mono); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--mint-hi); }
button { font: inherit; color: inherit; }
::selection { background: rgba(74, 222, 156, .3); }
:focus-visible { outline: 2px solid var(--mint-hi); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 48px); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--mint); color: var(--mint-ink); padding: 10px 16px; border-radius: var(--r-s); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.icon { flex: none; }
.wide-only { display: none; }

/* ---- Type ---------------------------------------------------------------------------------- */
h1, h2, .h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.005em; line-height: 1; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.6vw, 5.1rem); }
h2, .h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
h1 em { font-style: normal; color: var(--mint); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-soft); max-width: 62ch; text-wrap: pretty; }
.fine { font-size: .875rem; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 600 .78rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
/* A facet off the fox: the site's own bullet. */
.facet { width: 10px; height: 10px; flex: none; background: var(--mint); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.text-link .icon { transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---- Buttons ------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s var(--ease), box-shadow .18s;
  touch-action: manipulation;
}
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1rem; border-radius: 14px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .875rem; border-radius: 10px; gap: 8px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--mint); color: var(--mint-ink); box-shadow: 0 10px 30px -12px rgba(74, 222, 156, .7); }
.btn-primary:hover { background: var(--mint-hi); color: var(--mint-ink); }
.btn-line { background: rgba(31, 41, 53, .7); border-color: var(--line-strong); color: var(--text); }
.btn-line:hover { background: var(--card-hover); border-color: #52607280; color: var(--text); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text-soft); }
.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); }
.btn-discord { background: var(--blurple); color: #fff; }
.btn-discord:hover { background: #6D78F5; color: #fff; }
.btn-danger { background: var(--red-deep); border-color: #6B2C30; color: var(--red); }
.btn-danger:hover { background: #4A2427; color: #FFB1B1; }
.is-off { opacity: .5; cursor: not-allowed; pointer-events: none; }
form { margin: 0; }

/* ---- Navigation ---------------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(11, 15, 20, .72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid rgba(39, 49, 64, .7); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.5rem/1 var(--display); letter-spacing: .01em; }
.brand:hover { color: var(--text); }
.brand b { color: var(--mint); font-weight: 700; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { padding: 10px 14px; border-radius: 10px; color: var(--text-soft); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .18s, background-color .18s; }
.nav-links a:hover { color: var(--text); background: rgba(31, 41, 53, .7); }
.nav-links a[aria-current="page"] { color: var(--mint); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.account { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; max-width: 220px; }
.account:hover { border-color: var(--line-strong); color: var(--text); }
.account img { border-radius: 50%; background: var(--card); }
.account span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-mail { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); color: var(--text-soft); }
.nav-mail:hover { color: var(--text); border-color: var(--line-strong); }
.badge { position: absolute; top: -4px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font: 600 .72rem/20px var(--font); text-align: center; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; place-items: center; }

/* ---- Sections ------------------------------------------------------------------------------ */
.band { padding-block: clamp(64px, 9vw, 120px); }
.band-tight { padding-block: clamp(32px, 5vw, 56px) clamp(64px, 9vw, 110px); }
.head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.head p:not(.eyebrow) { color: var(--text-soft); font-size: 1.08rem; max-width: 60ch; }
.page-head { padding-block: clamp(48px, 8vw, 96px) clamp(8px, 2vw, 24px); }
.page-head .wrap { display: grid; gap: 18px; }
.page-head h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- Hero ---------------------------------------------------------------------------------- */
.hero { padding-block: clamp(48px, 8vw, 104px) clamp(24px, 4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: .92rem; color: var(--muted); }
.hero-art { position: relative; display: grid; justify-items: center; align-content: center; }
.hero-glow { position: absolute; inset: -6% 4% 30%; background: radial-gradient(closest-side, rgba(74, 222, 156, .32), rgba(45, 212, 191, .10) 55%, transparent 75%); filter: blur(24px); }
.hero-fox { position: relative; z-index: 1; width: min(250px, 54%); height: auto; margin-bottom: -30px; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .6)); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.log-card { position: relative; width: 100%; background: rgba(15, 20, 27, .86); border: 1px solid var(--line); border-radius: var(--r-l); padding: 44px 20px 20px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.log-head { display: flex; align-items: center; gap: 8px; font: 600 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.log-head i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(74, 222, 156, .18); }
.log { display: grid; gap: 6px; font: .8rem/1.45 var(--mono); color: var(--text-soft); }
.log li { overflow-wrap: anywhere; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.log b { color: var(--mint); font-weight: 400; }
.js .log.live li { opacity: 0; transform: translateY(6px); }
.js .log.live li.on { opacity: 1; transform: none; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 72px); border: 1px solid var(--line); border-radius: var(--r-l); background: rgba(19, 25, 33, .7); overflow: hidden; }
.stats > div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 22px 26px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats dt { font-size: .88rem; color: var(--muted); }
.stats dd { font: 700 2.6rem/1 var(--display); font-variant-numeric: tabular-nums; }
.stats dd code { font: 700 1.5rem/1.7 var(--mono); background: none; border: 0; padding: 0; color: var(--mint); }

/* ---- The menu, as in the game -------------------------------------------------------------- */
.mz { background: var(--bg); border: 1px solid var(--line); border-radius: 26px; padding: 18px; box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .9), 0 0 80px -30px rgba(74, 222, 156, .18); }
.mz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mz-pills { display: flex; gap: 2px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; color: var(--text-soft); }
.mz-pills span { display: grid; place-items: center; width: 36px; height: 36px; }
.mz-search { display: flex; align-items: center; gap: 10px; width: min(340px, 100%); height: 46px; padding: 0 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); transition: border-color .18s; }
.mz-search:focus-within { border-color: var(--mint); }
.mz-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: 400 .95rem var(--font); }
.mz-search input::placeholder { color: var(--muted); }
.mz-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; height: 580px; }
.mz-tabs { display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); overflow-y: auto; }
.mz-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 14px; }
.mz-brand b { font: 600 1.3rem/1 var(--font); letter-spacing: -.02em; }
.mz-brand span { margin-left: auto; padding: 4px 8px; border-radius: 6px; background: var(--card-hover); color: var(--muted); font: 600 .7rem/1 var(--font); }
.mz-tab { display: flex; align-items: center; gap: 12px; flex: none; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--text-soft); font: 400 .94rem/1.2 var(--font); text-align: left; cursor: pointer; transition: background-color .15s, color .15s; }
.mz-tab:hover { background: var(--card); color: var(--text); }
.mz-tab[aria-selected="true"] { background: color-mix(in srgb, var(--tab) 12%, transparent); color: var(--tab); font-weight: 600; }
.mz-n { margin-left: auto; font-size: .78rem; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.mz-main { padding: 24px 24px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); overflow-y: auto; scrollbar-color: var(--line-strong) transparent; }
.mz-panel > h3 { font: 600 1.7rem/1.1 var(--font); letter-spacing: -.02em; color: var(--tab); }
.mz-sec { margin-top: 20px; }
.mz-sec-name { font: 600 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.mz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.mz-card { display: flex; gap: 14px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: border-color .18s, background-color .18s; }
.mz-card:hover { border-color: var(--line-strong); background: var(--card-hover); }
.mz-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--bg-2); color: var(--tab); }
.mz-card h4 { font: 600 .95rem/1.3 var(--font); margin-bottom: 4px; }
.mz-card p { font-size: .84rem; line-height: 1.5; color: var(--text-soft); }
.mz .mz-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mz-empty { padding: 40px 0; text-align: center; color: var(--muted); }
.mz.searching .mz-panel > h3 { font-size: 1.1rem; }

/* ---- Pillars ------------------------------------------------------------------------------- */
.pillar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.pillar-flip .pillar-copy { order: 2; }
.pillar-copy { display: grid; gap: 16px; justify-items: start; }
.pillar-copy h3 { font: 700 clamp(1.6rem, 2.6vw, 2.2rem)/1.05 var(--display); }
.pillar-copy p { color: var(--text-soft); max-width: 56ch; }
.pillar-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--mint-deep); color: var(--mint); }
.pillar-art { min-width: 0; }
.route-art { width: 100%; height: auto; background: linear-gradient(180deg, rgba(19, 25, 33, .9), rgba(11, 15, 20, .6)); border: 1px solid var(--line); border-radius: var(--r-l); }
.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); }
.ticks .icon { color: var(--mint); margin-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--text-soft); font-size: .88rem; }
.chips li:nth-child(3n + 1) { border-color: rgba(125, 184, 255, .35); color: #B9D8FF; }
.chips-shield li:nth-child(3n + 1) { border-color: rgba(159, 180, 255, .35); color: #C4D0FF; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { display: grid; gap: 10px; align-content: start; padding: 24px; background: rgba(19, 25, 33, .8); border: 1px solid var(--line); border-radius: var(--r-l); transition: border-color .2s, transform .2s var(--ease); }
.tile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tile > .icon { color: var(--mint); margin-bottom: 6px; }
.tile p { color: var(--text-soft); font-size: .95rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rule { display: grid; gap: 16px; align-content: start; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-l); border: 1px solid var(--line); background: rgba(19, 25, 33, .8); }
.rule h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.rule p { color: var(--text-soft); }
.rule-honest { border-color: rgba(255, 215, 94, .3); background: linear-gradient(180deg, rgba(58, 46, 20, .35), rgba(19, 25, 33, .8)); }
.rule-honest h2 { color: var(--gold); }
.crosses { display: flex; flex-wrap: wrap; gap: 8px; }
.crosses li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--red-deep); color: var(--red); font-weight: 600; font-size: .9rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.steps li { display: grid; gap: 10px; align-content: start; padding: 28px 24px; background: rgba(19, 25, 33, .8); border: 1px solid var(--line); border-radius: var(--r-l); }
.step-n { font: 700 3rem/1 var(--display); color: var(--mint); }
.steps p { color: var(--text-soft); font-size: .95rem; }

/* ---- Plans --------------------------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.plan { position: relative; display: grid; gap: 18px; align-content: start; padding: 30px 26px 26px; background: rgba(19, 25, 33, .88); border: 1px solid var(--line); border-radius: 22px; }
.plan-featured { border-color: var(--mint); background: linear-gradient(180deg, rgba(30, 58, 47, .65), rgba(19, 25, 33, .92) 60%); box-shadow: 0 30px 80px -40px rgba(74, 222, 156, .55); }
.plan-flag { position: absolute; top: -13px; left: 26px; padding: 5px 12px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font: 600 .74rem/1.2 var(--font); letter-spacing: .04em; text-transform: uppercase; }
.plan header { display: grid; gap: 6px; }
.plan h3 { font-size: 1.15rem; }
.plan-tag { color: var(--text-soft); font-size: .92rem; min-height: 2.9em; }
.price { display: flex; align-items: baseline; font-family: var(--display); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.price-cur { font-size: 1.8rem; align-self: flex-start; margin-top: 8px; color: var(--text-soft); }
.price-amt { font-size: 4.2rem; }
.price-cents { font-size: 1.8rem; }
.price-per { margin-left: 10px; font: 400 .95rem var(--font); color: var(--muted); }
.plan-note { color: var(--muted); font-size: .9rem; min-height: 1.6em; }
.plan-note b { margin-left: 6px; padding: 3px 9px; border-radius: 999px; background: var(--gold-deep); color: var(--gold); font-weight: 600; font-size: .78rem; }
.pay-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.included { margin-top: clamp(28px, 4vw, 44px); padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--r-l); background: rgba(19, 25, 33, .7); display: grid; gap: 18px; }
.included h2, .included h3 { font: 600 1.1rem/1.3 var(--font); letter-spacing: -.01em; }
.included .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }

/* ---- Questions ----------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform .25s var(--ease), color .2s; }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--mint); }
.faq summary:hover { color: var(--mint-hi); }
.faq-a { padding: 0 4px 24px; color: var(--text-soft); max-width: 68ch; }

.band-cta { padding-top: 0; }
.cta { display: grid; gap: 18px; justify-items: center; text-align: center; padding: clamp(40px, 7vw, 80px) 24px; border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(80% 120% at 50% 0%, rgba(30, 58, 47, .7), rgba(19, 25, 33, .85) 70%); }
.cta p { color: var(--text-soft); max-width: 48ch; }

/* ---- Features page ------------------------------------------------------------------------- */
.feature-bar { position: sticky; top: 68px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 0; margin-bottom: 8px; background: linear-gradient(180deg, rgba(11, 15, 20, .96) 70%, rgba(11, 15, 20, 0)); }
.tab-index { display: flex; flex-wrap: wrap; gap: 6px; }
.tab-index a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--tab); text-decoration: none; font-size: .86rem; font-weight: 600; }
.tab-index a:hover { border-color: var(--tab); }
.tab-index span { color: var(--muted); font-weight: 400; }
.feature-tab { padding-block: 28px; border-top: 1px solid var(--line); }
.feature-tab > h2 { display: flex; align-items: center; gap: 12px; color: var(--tab); font-size: clamp(1.8rem, 3vw, 2.4rem); }
.feature-tab > h2 span { font: 400 1rem var(--font); color: var(--muted); }
.mz-grid-full { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }

/* ---- Panels, the dashboard, notices -------------------------------------------------------- */
.panel { display: grid; gap: 14px; align-content: start; padding: 26px; background: rgba(19, 25, 33, .9); border: 1px solid var(--line); border-radius: var(--r-l); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h2 { display: inline-flex; align-items: center; gap: 10px; font: 600 1rem/1.2 var(--font); letter-spacing: 0; color: var(--text-soft); }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.pill { padding: 5px 11px; border-radius: 999px; font: 600 .78rem/1.2 var(--font); white-space: nowrap; }
.pill-good { background: var(--mint-deep); color: var(--mint); }
.pill-warn { background: var(--gold-deep); color: var(--gold); }
.pill-off { background: var(--card-hover); color: var(--muted); }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; margin-bottom: 18px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--card); color: var(--text-soft); }
.banner .icon { color: var(--gold); margin-top: 2px; }
.banner b { color: var(--text); }
.banner-good { border-color: rgba(74, 222, 156, .45); background: rgba(30, 58, 47, .5); }
.banner-good .icon { color: var(--mint); }
.dash-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.dash-head > div { display: grid; gap: 8px; }
.dash-avatar { border-radius: 50%; border: 2px solid var(--line-strong); background: var(--card); }
.dash-out { margin-left: auto; }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.panel-wide { grid-column: 1 / -1; }
.dash-plan { font: 700 2.2rem/1 var(--display); }
.dash-line { color: var(--text-soft); }
.setup { display: grid; gap: 12px; counter-reset: setup; }
.setup li { position: relative; padding-left: 44px; color: var(--text-soft); counter-increment: setup; }
.setup li::before { content: counter(setup); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--mint-deep); color: var(--mint); font: 600 .9rem var(--font); }
.setup b { color: var(--text); }
.rows { display: grid; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.rows > div:first-child { border-top: 0; }
.rows dt { color: var(--muted); }
.rows dd { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.rows dd img { border-radius: 50%; }
.rows-stack > div { flex-direction: column; gap: 6px; }
.rows-stack dd { font-weight: 400; overflow-wrap: anywhere; }
.status { display: grid; gap: 10px; margin-bottom: 22px; }
.status li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 20px; background: rgba(19, 25, 33, .9); border: 1px solid var(--line); border-radius: var(--r); }
.status .pill { justify-self: start; }
.status h2 { font: 600 1.02rem/1.3 var(--font); letter-spacing: 0; margin-bottom: 2px; }
.status p { color: var(--text-soft); font-size: .94rem; }
.status .fine { margin-top: 4px; }
.confirm { gap: 20px; padding: clamp(26px, 5vw, 44px); }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.notice { justify-items: center; text-align: center; gap: 16px; padding: clamp(36px, 7vw, 72px) 24px; }
.notice .lead { margin-inline: auto; }
.notice .hero-cta { justify-content: center; }

.prose { display: grid; gap: 14px; color: var(--text-soft); }
.prose h2 { font: 600 1.25rem/1.3 var(--font); letter-spacing: -.01em; color: var(--text); margin-top: 22px; }
.prose ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.prose b { color: var(--text); }

/* ---- Mail ---------------------------------------------------------------------------------- */
.mail-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.mail-head > div { display: grid; gap: 8px; }
.mail-count { font: 400 1.1rem var(--font); color: var(--muted); margin-left: 6px; }
.mail-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mail-tools .mz-search { width: min(300px, 100%); }
.lock { gap: 18px; justify-items: start; padding: clamp(26px, 5vw, 44px); }
.lock .btn-lg { margin-top: 4px; }
.field { display: grid; gap: 8px; width: 100%; }
.field label { font-weight: 600; font-size: .95rem; }
.field-row { display: flex; gap: 8px; }
.field input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 12px; color: var(--text); font: 1rem var(--mono); letter-spacing: .04em; transition: border-color .18s, box-shadow .18s; }
.field input:focus { outline: 0; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(74, 222, 156, .22); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field-row .btn { min-height: 52px; min-width: 76px; }
.field-error { display: flex; align-items: center; gap: 8px; color: var(--red); font-size: .92rem; font-weight: 600; }
.mail-status { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: .88rem; color: var(--muted); }
.mail-status .icon { color: var(--mint); }
.mail-status-off .icon { color: var(--gold); }
.mail-grid { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 14px; align-items: start; }
.mail-side, .mail-reader { background: rgba(19, 25, 33, .9); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.mail-list li { border-top: 1px solid var(--line); }
.mail-list li:first-child { border-top: 0; }
.mail-list a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 14px 18px 14px 26px; color: var(--text-soft); text-decoration: none; }
.mail-list a:hover { background: var(--card); }
.mail-list .is-open a { background: var(--card-hover); }
.mail-list .is-unread a::before { content: ""; position: absolute; left: 10px; top: 21px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.mail-from { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-soft); }
.is-unread .mail-from, .is-unread .mail-subject { color: var(--text); font-weight: 600; }
.mail-list time { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.mail-subject, .mail-snippet { grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.mail-snippet { color: var(--muted); font-size: .84rem; }
.mail-clip { position: absolute; right: 16px; bottom: 14px; color: var(--muted); }
.mail-none { display: grid; gap: 12px; justify-items: center; padding: 56px 24px; text-align: center; color: var(--muted); }
.mail-pages { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.mail-back { display: none; padding: 16px 22px 0; }
.mail-open header { display: grid; gap: 14px; padding: 24px 26px 20px; border-bottom: 1px solid var(--line); }
.mail-open h2 { font: 600 1.4rem/1.25 var(--font); letter-spacing: -.01em; overflow-wrap: anywhere; }
.mail-open dl { display: grid; gap: 4px; font-size: .9rem; }
.mail-open dl div { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; }
.mail-open dt { color: var(--muted); }
.mail-open dd { overflow-wrap: anywhere; }
.mail-open dd span { color: var(--muted); }
.mail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mail-files { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 26px 0; }
.mail-files a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .88rem; max-width: 100%; }
.mail-files span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-files small { color: var(--muted); }
.mail-text { padding: 22px 26px 26px; font: .95rem/1.65 var(--font); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.mail-html { border-top: 1px solid var(--line); padding: 18px 26px 26px; }
.mail-html .fine { margin: 0 0 14px; }
.mail-html iframe { width: 100%; height: 620px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }

/* ---- Footer -------------------------------------------------------------------------------- */
.foot { margin-top: auto; border-top: 1px solid var(--line); background: rgba(11, 15, 20, .8); padding-block: 48px 32px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand p { color: var(--muted); font-size: .92rem; max-width: 34ch; }
.foot nav { display: grid; gap: 10px; align-content: start; }
.foot h2 { font: 600 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.foot nav a { color: var(--text-soft); text-decoration: none; font-size: .94rem; overflow-wrap: anywhere; }
.foot nav a:hover { color: var(--mint-hi); }
.foot-note { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.foot-note p { color: var(--muted); font-size: .82rem; max-width: 96ch; }
.dev-flag { color: var(--gold) !important; }

/* ---- Smaller screens ------------------------------------------------------------------------- */
@media (min-width: 720px) { .wide-only { display: inline; } }
@media (pointer: coarse) { .btn-sm { min-height: 44px; } }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; width: 100%; margin-inline: auto; }
  .hero-fox { width: 190px; }
  .pillar { grid-template-columns: 1fr; }
  .pillar-flip .pillar-copy { order: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 22px; }
  .plan-tag, .plan-note { min-height: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .mail-grid { grid-template-columns: 1fr; }
  .mail-grid.has-open .mail-side { display: none; }
  .mail-grid:not(.has-open) .mail-reader { display: none; }
  .mail-back { display: inline-flex; }
}

@media (max-width: 860px) {
  .nav-row { gap: 12px; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 2px; padding: 12px 24px 18px; margin: 0; background: rgba(11, 15, 20, .98); border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; font-size: 1.05rem; }
  .nav-end { margin-left: auto; }
  .nav-toggle { display: grid; }
  .account span { display: none; }
  .account { padding: 5px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .mz { padding: 12px; border-radius: 20px; }
  .mz-pills { display: none; }
  .mz-search { width: 100%; }
  .mz-body { grid-template-columns: 1fr; height: auto; }
  .mz-tabs { flex-direction: row; padding: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .mz-tabs::-webkit-scrollbar { display: none; }
  .mz-brand { display: none; }
  .mz-tab { width: auto; white-space: nowrap; }
  .mz-main { max-height: 520px; padding: 18px 14px 8px; }
  .split, .steps { grid-template-columns: 1fr; }
  .included .ticks { grid-template-columns: 1fr; }
  .feature-bar { position: static; }
  .tab-index { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .tab-index a { white-space: nowrap; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-head { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .tiles { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .mz-grid, .mz-grid-full { grid-template-columns: 1fr; }
  .stats > div { padding: 18px; }
  .stats dd { font-size: 2.1rem; }
  .stats dd code { font-size: 1.2rem; }
  .log { font-size: .72rem; }
  .mail-open header, .mail-text, .mail-html { padding-inline: 18px; }
  .mail-files { padding-inline: 18px; }
  .rows > div { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .log.live li { opacity: 1; transform: none; }
}
