/* RoyalBid — a royal auction house at night: velvet ink, gold leaf, ivory type.
   Layout: one centered column (max 1160px) of full-width bands; the hero pairs the pitch with a live lot. */
:root {
  --ink: #0d0a14;          /* page */
  --velvet: #171120;       /* raised surfaces */
  --velvet-2: #211829;     /* inner panels, embeds */
  --line: rgba(212, 175, 106, 0.16);
  --line-strong: rgba(212, 175, 106, 0.38);
  --gold: #d4af6a;
  --gold-bright: #f0d79b;
  --ivory: #f3ede2;
  --muted: #a99fb5;
  --faint: #6f6680;
  --live: #e2614f;
  --ok: #63c08f;

  --f-crest: "Cinzel", "Trajan Pro", Georgia, serif;          /* wordmark, small caps labels */
  --f-display: "Cormorant Garamond", "Garamond", Georgia, serif; /* headings */
  --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;       /* running text */
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace; /* channel names, prices */

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(0.98rem, 0.95rem + 0.15vw, 1.06rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.35rem + 1vw, 2.2rem);
  --step-3: clamp(2.2rem, 1.7rem + 2.2vw, 3.6rem);
  --step-4: clamp(2.7rem, 1.9rem + 3.6vw, 5rem);

  --radius: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--ink);
}
img, svg { max-width: 100%; }
a { color: var(--gold-bright); text-underline-offset: 3px; }
a:hover { color: var(--ivory); }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--ink); }

.wrap {
  width: 100%; max-width: 1160px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ── Type ── */
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-family: var(--f-body); font-weight: 700; letter-spacing: 0; line-height: 1.3; }
h1 em, h2 em { font-style: italic; color: var(--gold-bright); font-weight: 500; }
p { margin: 0; text-wrap: pretty; }
.eyebrow {
  font-family: var(--f-crest); font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: 0.7; }
.lead { font-size: var(--step-1); color: var(--muted); line-height: 1.55; max-width: 34em; }
.mono { font-family: var(--f-mono); font-size: 0.9em; }
.muted { color: var(--muted); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-family: var(--f-body); font-weight: 700; font-size: 0.98rem; text-decoration: none; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-gold {
  color: #1a1206;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 70%);
  box-shadow: 0 10px 30px -12px rgba(212, 175, 106, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-gold:hover { color: #1a1206; transform: translateY(-1px); }
.btn-ghost { color: var(--ivory); border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { color: var(--ivory); border-color: var(--gold); background: rgba(212, 175, 106, 0.06); }
.btn svg { width: 18px; height: 18px; flex: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ── Header ── */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(13, 10, 20, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); }
.brand svg { width: 34px; height: 34px; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; flex: none; filter: drop-shadow(0 0 10px rgba(212, 175, 55, .25)); }
.brand-name { font-family: var(--f-crest); font-weight: 700; font-size: 1.22rem; letter-spacing: 0.08em; }
.brand-name span { color: var(--gold); }
.brand-sub { display: block; font-family: var(--f-body); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: -2px; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.94rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ivory); }
.nav a.btn-gold, .nav a.btn-gold:hover { color: #1a1206; }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); color: var(--ivory); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }
@media (max-width: 880px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--ink); border-bottom: 1px solid var(--line);
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 1.05rem; }
  .nav .btn { margin-top: 8px; }
}

/* ── Sections ── */
.band { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.band + .band { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

/* ── Hero ── */
.hero { padding-block: clamp(56px, 8vw, 110px) clamp(64px, 8vw, 120px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(212, 175, 106, 0.16), transparent 70%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(36px, 5vw, 72px); align-items: center; position: relative; }
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 0.9rem; padding: 0; margin: 4px 0 0; list-style: none; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Discord-style auction embed (illustration of the bot) ── */
.lot {
  position: relative; min-width: 0;
  background: var(--velvet); border: 1px solid var(--line-strong); border-radius: 18px;
  padding: 18px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 6px rgba(212, 175, 106, 0.04);
}
.lot-channel { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); padding: 0 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.lot-channel b { color: var(--ivory); font-weight: 500; }
.lot-channel .hash { color: var(--faint); font-size: 1.1rem; }
.msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--gold-bright), var(--gold) 60%, #8a6a32); display: grid; place-items: center; }
.avatar svg { width: 22px; height: 22px; }
.msg-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 0.9rem; }
.msg-head b { color: var(--gold-bright); }
.tag-app { font-size: 0.62rem; font-weight: 800; letter-spacing: .04em; background: var(--gold); color: #1a1206; padding: 1px 5px; border-radius: 4px; }
.msg-head time { color: var(--faint); font-size: 0.78rem; }
.embed { margin-top: 8px; background: var(--velvet-2); border-radius: 8px; border-left: 4px solid var(--gold); padding: 14px 16px; display: grid; gap: 12px; }
.embed-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.embed-title { font-weight: 800; font-size: 1.02rem; line-height: 1.3; }
.embed-sub { color: var(--muted); font-size: 0.84rem; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 0.72rem; font-weight: 800; letter-spacing: .08em; color: var(--live); border: 1px solid rgba(226, 97, 79, .45); border-radius: 999px; padding: 2px 9px; }
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.embed-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.field small { display: block; font-size: 0.72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.field span { font-family: var(--f-mono); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.field .big { color: var(--gold-bright); font-size: 1.05rem; transition: color .3s; }
.field .big.flash { color: var(--ok); }
.bidlog { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 4px; font-size: 0.82rem; color: var(--muted); min-height: 74px; }
.bidlog li { display: flex; justify-content: space-between; gap: 8px; }
.bidlog li b { color: var(--ivory); font-weight: 600; }
.bidlog li span { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.bidlog li:first-child { color: var(--ivory); }
.embed-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dbtn { font-family: var(--f-body); font-size: 0.82rem; font-weight: 700; padding: 7px 14px; border-radius: 6px; background: #3a3043; color: var(--ivory); border: 0; }
.dbtn.primary { background: #8d6b2f; color: #fff7e6; }
.dbtn.green { background: #2f7a55; color: #effff5; }
.lot-stamp {
  position: absolute; right: 22px; bottom: 74px; transform: rotate(-12deg) scale(.6); opacity: 0;
  font-family: var(--f-crest); font-weight: 700; font-size: 1.8rem; letter-spacing: .14em; color: var(--ok);
  border: 3px double var(--ok); padding: 4px 14px; border-radius: 8px; pointer-events: none;
  transition: opacity .3s ease, transform .35s cubic-bezier(.2, 1.6, .4, 1);
}
.lot-stamp.show { opacity: .92; transform: rotate(-12deg) scale(1); }
.lot-caption { margin-top: 14px; font-size: 0.82rem; color: var(--faint); text-align: center; }
@media (max-width: 520px) { .embed-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .live-pill::before { animation: none; } .lot-stamp { transition: none; } }

/* ── Feature ledger ── */
.ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ledger article { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 28px 34px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.ledger .lot-no { font-family: var(--f-crest); font-size: 0.74rem; letter-spacing: 0.2em; color: var(--gold); }
.ledger p { color: var(--muted); font-size: 0.96rem; }
.ledger ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 0.9rem; }
.ledger li { display: flex; gap: 10px; }
.ledger li::before { content: "◆"; color: var(--gold); font-size: 0.6rem; line-height: 2.1; flex: none; }
@media (max-width: 940px) { .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ledger { grid-template-columns: minmax(0, 1fr); } .ledger article { padding: 26px 20px; } }

/* ── Template preview (server sidebar) ── */
.template-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.template-copy { display: grid; gap: 22px; min-width: 0; }
.template-copy ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; counter-reset: s; }
.template-copy li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; counter-increment: s; }
.template-copy li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--f-crest); color: var(--gold); font-size: 0.9rem; }
.template-copy li p { color: var(--muted); font-size: 0.95rem; }
.template-copy code, .tut code, .legal code { font-family: var(--f-mono); font-size: 0.86em; background: var(--velvet-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; color: var(--gold-bright); white-space: nowrap; }
.sidebar { background: var(--velvet); border: 1px solid var(--line-strong); border-radius: 16px; padding: 16px 10px; font-size: 0.9rem; display: grid; gap: 2px; min-width: 0; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font-weight: 800; }
.sidebar-head span { font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.sb-cat { display: flex; align-items: center; gap: 6px; padding: 12px 10px 4px; font-size: 0.76rem; font-weight: 800; color: var(--muted); letter-spacing: .03em; }
.sb-cat::before { content: "›"; transform: rotate(90deg); color: var(--faint); }
.sb-cat.off { opacity: .45; }
.sb-cat .chip { margin-left: auto; font-size: 0.64rem; letter-spacing: .06em; border: 1px solid var(--line-strong); color: var(--gold); border-radius: 999px; padding: 0 7px; font-weight: 700; }
.sb-ch { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 22px; border-radius: 6px; color: var(--muted); font-family: var(--f-mono); font-size: 0.82rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sb-ch::before { content: "#"; color: var(--faint); font-family: var(--f-body); font-size: 1.05rem; }
.sb-ch.active { background: rgba(212, 175, 106, 0.1); color: var(--ivory); }
.sb-more { padding: 3px 10px 3px 40px; color: var(--faint); font-size: 0.78rem; }
@media (max-width: 900px) { .template-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.track { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 20px; align-content: start; background: linear-gradient(180deg, rgba(212, 175, 106, 0.04), transparent 60%); min-width: 0; }
.track h3 { font-family: var(--f-display); font-size: var(--step-2); font-weight: 600; }
.track ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; counter-reset: t; }
.track li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; counter-increment: t; }
.track li::before { content: counter(t, upper-roman); font-family: var(--f-crest); color: var(--gold); font-size: 1rem; padding-top: 2px; }
.track li b { display: block; margin-bottom: 2px; }
.track li p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } .track { padding: 24px 20px; } }

/* ── Pricing ── */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: grid; grid-template-rows: auto auto auto auto 1fr auto; gap: 18px; min-width: 0; background: var(--ink); }
.plan.featured { border-color: var(--gold); background: linear-gradient(180deg, rgba(212, 175, 106, 0.1), rgba(212, 175, 106, 0.02) 50%, var(--ink)); position: relative; }
.plan.featured::after { content: "Most chosen"; position: absolute; top: -12px; left: 24px; font-size: 0.7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--gold); color: #1a1206; padding: 3px 10px; border-radius: 999px; }
.plan-name { font-family: var(--f-crest); letter-spacing: 0.14em; font-size: 1rem; color: var(--gold); }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-family: var(--f-display); font-size: clamp(2.3rem, 2rem + 1vw, 2.8rem); white-space: nowrap; font-weight: 600; line-height: 1; }
.price span { color: var(--muted); font-size: 0.9rem; }
.price-note { margin-top: -10px; font-size: 0.82rem; color: var(--faint); min-height: 1.3em; }
.plan:first-child .price-note { visibility: hidden; }
.billing { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; margin-bottom: 32px; }
.billing-opt { font-family: var(--f-body); font-weight: 700; font-size: 0.92rem; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.billing-opt span { font-size: 0.7rem; font-weight: 800; letter-spacing: .04em; color: var(--gold); border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 8px; }
.billing-opt[aria-pressed="true"] { background: var(--gold); color: #1a1206; }
.billing-opt[aria-pressed="true"] span { color: #1a1206; border-color: rgba(26, 18, 6, .35); }
.plan > p { color: var(--muted); font-size: 0.92rem; min-height: 3em; }
.plan ul { margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 9px; font-size: 0.92rem; align-content: start; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--gold); font-weight: 800; flex: none; }
.plan li strong { font-variant-numeric: tabular-nums; }
.plan .btn { width: 100%; }
.pay-note { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-size: 0.9rem; }
.pay-note b { color: var(--ivory); }
@media (max-width: 1060px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* ── FAQ ── */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 700; font-size: 1.05rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--f-display); font-size: 1.8rem; color: var(--gold); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding: 0 0 22px; max-width: 60ch; }
@media (max-width: 820px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* ── Final call ── */
.finale { text-align: center; }
.finale .wrap { display: grid; justify-items: center; gap: 24px; }
.finale .crest { width: 96px; height: 96px; border-radius: 50%; filter: drop-shadow(0 0 22px rgba(212, 175, 55, .3)); }
.finale h2 { max-width: 16em; }
.finale p { color: var(--muted); max-width: 36em; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px; color: var(--faint); font-size: 0.88rem; }
.site-footer .wrap { display: grid; gap: 28px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ivory); }

/* ── Inner pages: tutorials & legal ── */
.page-hero { padding-block: clamp(56px, 7vw, 96px) 40px; border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: 18px; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-block: 56px 96px; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); align-self: start; display: grid; gap: 4px; font-size: 0.92rem; }
.toc b { font-family: var(--f-crest); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 8px; font-weight: 400; }
.toc a { color: var(--muted); text-decoration: none; padding: 5px 0 5px 12px; border-left: 1px solid var(--line); }
.toc a:hover { color: var(--ivory); border-color: var(--gold); }
.tut, .legal { display: grid; gap: 56px; min-width: 0; max-width: 760px; }
.tut section, .legal section { display: grid; gap: 16px; scroll-margin-top: 100px; }
.tut h2, .legal h2 { font-size: var(--step-2); }
.tut p, .tut li, .legal p, .legal li { color: #d8d0e0; }
.tut ol, .tut ul, .legal ul { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.tut li::marker { color: var(--gold); font-family: var(--f-crest); }
.cmd-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.cmd-table th, .cmd-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmd-table th { font-size: 0.74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; background: var(--velvet); }
.cmd-table tr:last-child td { border-bottom: 0; }
.cmd-table td:first-child { white-space: nowrap; }
.note { border: 1px solid var(--line-strong); border-radius: 12px; padding: 16px 18px; background: rgba(212, 175, 106, 0.05); font-size: 0.94rem; color: #e8dfcf; }
.note b { color: var(--gold-bright); }
.legal .updated { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 860px) { .doc { grid-template-columns: minmax(0, 1fr); } .toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); } .toc b { grid-column: 1 / -1; } }

@media (max-width: 480px) { .billing { border-radius: 18px; } .billing-opt { padding: 8px 12px; font-size: 0.86rem; } .billing-opt span { display: none; } }
