/* Cal Development — flat dark grey with a single gold accent. No glows, no background gradients. */
:root {
  --bg: #141414;
  --bg-2: #181818;
  --surface: #1e1e1e;
  --surface-2: #262626;
  --line: #2a2a2a;
  --line-2: #363636;
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --faint: #737373;
  --gold: #f2a765;
  --peach: #ffd9a8;
  --gold-deep: #e07b3a;
  --ink: #141414;
  --green: #34d399;
  --red: #e5484d;

  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1104px;

  /* Slow, smooth motion everywhere */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.45, 0, .2, 1);
  --slow: 1.1s;
  --med: .7s;
  --fast: .4s;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.fill { fill: currentColor; stroke: none; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.wrap--narrow { width: min(768px, 100% - 48px); }
.muted { color: var(--muted); margin: 0; }
.eyebrow {
  margin: 0 0 14px;
  font: 600 12px/1 var(--font);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.h2, .h3, .hero__title { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.h2 { font-size: clamp(30px, 3.4vw, 52px); line-height: 1.08; }
.h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }

.gold-text {
  color: var(--gold);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease), background var(--med) var(--ease), opacity var(--fast) var(--ease);
}
.btn svg { transition: transform var(--med) var(--ease); }
.btn:hover svg:last-child { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn--sm svg { width: 16px; height: 16px; }
.btn--block { width: 100%; }
.btn--light { background: var(--text); color: var(--ink); }
.btn--light:hover { background: #ffffff; }
.btn--gold {
  background: var(--gold);
  color: var(--ink);
}
.btn--gold:hover { background: var(--peach); }
.btn--ghost { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); }
/* Hover only changes colour and slides the arrow with a transform, so the link never
   changes width and the centred hero buttons don't shift. */
.link-gold { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 600; font-size: 15px; transition: color var(--med) var(--ease); }
.link-gold span { display: inline-block; transition: transform var(--med) var(--ease); }
.link-gold:hover { color: var(--peach); }
.link-gold:hover span { transform: translateX(4px); }

.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  transition: background var(--med) var(--ease), transform var(--med) var(--ease), border-color var(--med) var(--ease);
}
.icon-btn:hover { background: var(--line-2); border-color: var(--gold); transform: translateY(-1px); }
.icon-btn--ghost { background: transparent; border-color: transparent; }
.icon-btn__badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--gold); color: var(--ink); font: 700 11px/1 var(--font);
  animation: pop .6s var(--ease);
}
@keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2);
  color: var(--gold); font: 600 11px/1 var(--font); letter-spacing: .24em; text-transform: uppercase;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.chip {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); font-size: 14px; font-weight: 500;
  transition: border-color var(--med) var(--ease), background var(--med) var(--ease);
}
.chip:hover { border-color: var(--gold); background: var(--surface-2); }

/* ---------- demo bar ---------- */
.demo-bar {
  position: relative; z-index: 60;
  padding: 9px 16px; text-align: center; font-size: 13px;
  background: var(--surface); color: var(--gold);
  border-bottom: 1px solid var(--line);
}
.demo-bar code { font-family: ui-monospace, Consolas, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: 65px;
  background: rgba(20, 20, 20, .35);
  backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background var(--slow) var(--ease), backdrop-filter var(--slow) var(--ease), border-color var(--slow) var(--ease);
  animation: drop-in 1.2s var(--ease) both;
}
.header.is-scrolled { background: rgba(20, 20, 20, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: var(--line); }
@keyframes drop-in { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 900 15px/1 var(--display); letter-spacing: .04em; }
.brand img { transition: transform 1.4s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.nav { display: flex; gap: 34px; font-size: 14px; color: var(--muted); }
.nav a { position: relative; padding: 6px 0; transition: color var(--med) var(--ease); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform var(--med) var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__new {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  padding: 2px 5px; border-radius: 4px; background: var(--text); color: var(--ink);
  font: 700 8px/1 var(--font); letter-spacing: .08em;
}
.header__actions { display: flex; align-items: center; gap: 12px; }

/* currency picker */
.currency { position: relative; }
.currency__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; letter-spacing: .04em;
  transition: border-color var(--med) var(--ease), background var(--med) var(--ease);
}
.currency__btn:hover, .currency.is-open .currency__btn { border-color: var(--gold); background: var(--line-2); }
.currency__btn svg { width: 14px; height: 14px; color: var(--faint); transition: transform var(--med) var(--ease); }
.currency.is-open .currency__btn svg { transform: rotate(180deg); }
.currency__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 168px; max-height: 320px; overflow-y: auto;
  list-style: none; margin: 0; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2);
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--med) var(--ease), transform var(--med) var(--ease), visibility 0s linear var(--med);
}
.currency.is-open .currency__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.currency__menu li {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; cursor: pointer;
  font-size: 14px; color: var(--muted); transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.currency__menu li:hover, .currency__menu li:focus { outline: 0; background: var(--surface-2); color: var(--text); }
.currency__menu li[aria-selected="true"] { color: var(--gold); }
.currency__sym { width: 26px; color: var(--faint); font-weight: 600; }
.currency__menu li[aria-selected="true"] .currency__sym { color: var(--gold); }
.currency__menu em { margin-left: auto; font-style: normal; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

/* ---------- hero (one 1080p screen) ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100vh - 65px); min-height: calc(100svh - 65px);
  display: grid; place-items: center; text-align: center;
  padding: 80px 24px 120px; overflow: hidden;
  margin-top: -1px;
}
.hero__bg { position: absolute; inset: -4%; z-index: -3; }
/* The photo fades into the page grey over the bottom third of the hero. */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, rgba(20, 20, 20, .6) 45%, var(--bg) 100%);
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
  opacity: .35; filter: grayscale(.35);
  animation: ken-burns 40s var(--ease-soft) infinite alternate, fade-in 2.4s var(--ease) both;
  will-change: transform;
}
@keyframes ken-burns { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
@keyframes fade-in { from { opacity: 0; } }
.hero__fade {
  position: absolute; inset: 0; z-index: -2;
  background: rgba(20, 20, 20, .55);
}
.hero__content { max-width: 960px; }
.hero__title { font-size: clamp(44px, 5.2vw, 88px); line-height: 1.02; margin: 8px 0 34px; }
.hero__title .line { display: block; overflow: hidden; padding: .04em 0; }
.hero__title .line > span { display: inline-block; }
.hero__lead { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 0 0 40px; }
.hero__cta { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }

/* staggered entrance */
.hero__in { opacity: 0; transform: translateY(40px); animation: rise 1.4s var(--ease) forwards; animation-delay: var(--d, 0s); }
.hero__title .hero__in { transform: translateY(105%); }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero__scroll {
  position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 999px; border: 1.5px solid var(--line-2);
  opacity: 0; animation: fade-in 1.2s var(--ease) 1.8s forwards;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--gold);
  animation: wheel 2.4s var(--ease-soft) infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- sections ---------- */
.section { padding: 140px 0; position: relative; }
.section--tight { padding: 40px 0; }
.section__head { text-align: center; display: grid; justify-items: center; gap: 18px; margin-bottom: 56px; }
.section__head--left { text-align: left; justify-items: start; gap: 12px; margin-bottom: 40px; }
.section__head--left .eyebrow { margin: 0; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(48px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- tabs ---------- */
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.tabs:empty { display: none; }
.tab {
  height: 38px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--line-2); background: var(--surface);
  transition: color var(--med) var(--ease), background var(--med) var(--ease), border-color var(--med) var(--ease);
}
.tab:hover { color: var(--text); border-color: var(--faint); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--gold); border-color: var(--gold); }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid__state { grid-column: 1 / -1; text-align: center; color: var(--faint); padding: 60px 0; }
.card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-2);
  opacity: 0; transform: translateY(40px) scale(.98);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease), border-color var(--med) var(--ease), box-shadow var(--med) var(--ease);
  transition-delay: var(--d, 0s);
}
.card.is-in { opacity: 1; transform: none; }
.card.is-in:hover { transform: translateY(-8px); border-color: var(--gold); transition-delay: 0s; }
.card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.card:hover .card__media img { transform: scale(1.08); }
.card__ph { position: absolute; inset: 0; display: grid; place-items: center; }
.card__ph img.bg { position: absolute; inset: 0; opacity: .35; filter: grayscale(.35); }
.card__ph img.mark { position: relative; z-index: 1; width: 64px; height: auto; }
.badge {
  position: absolute; z-index: 2; top: 12px; height: 26px; padding: 0 11px; display: inline-flex; align-items: center;
  border-radius: 999px; font: 700 10px/1 var(--font); letter-spacing: .16em; text-transform: uppercase;
}
.badge--type { left: 12px; background: var(--gold); color: var(--ink); }
.badge--price { right: 12px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); letter-spacing: 0; font-size: 12px; }
.badge--sale { right: 12px; top: 44px; background: var(--green); color: #052e20; letter-spacing: .08em; }
.card__body { display: flex; flex-direction: column; gap: 12px; padding: 20px; flex: 1; }
.card__title { font-weight: 600; font-size: 16px; line-height: 1.35; margin: 0; cursor: pointer; transition: color var(--med) var(--ease); }
.card__title:hover { color: var(--peach); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); font-size: 11px; }
.card__foot { margin-top: auto; padding-top: 8px; }
.card .btn { width: 100%; height: 44px; font-size: 14px; }
.btn--added { background: var(--surface-2); color: var(--gold); border: 1px solid var(--gold); }

.price { font-weight: 700; }
.price s { color: var(--faint); font-weight: 500; margin-right: 6px; }
.price--lg { font-size: 22px; }

/* ---------- CTA ---------- */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 56px; border-radius: 24px; position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-2);
}
.cta > * { position: relative; }
.cta .h3 { margin-bottom: 12px; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; font-weight: 500; transition: color var(--med) var(--ease), background var(--med) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex: none;
  background: linear-gradient(var(--faint), var(--faint)) center / 12px 1.5px no-repeat, linear-gradient(var(--faint), var(--faint)) center / 1.5px 12px no-repeat;
  transition: transform var(--med) var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--gold); background: var(--surface); }
.faq__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--med) var(--ease); }
.faq__body > p { overflow: hidden; margin: 0; padding: 0 24px; color: var(--muted); font-size: 15px; }
.faq details.is-open .faq__body { grid-template-rows: 1fr; }
.faq details.is-open .faq__body > p { padding-bottom: 22px; }
.faq__body a { color: var(--gold); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 72px 0 32px; margin-top: 60px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer__brand .muted { max-width: 360px; margin: 20px 0 24px; font-size: 14px; }
.footer__social { display: flex; gap: 10px; }
.footer h4 { margin: 4px 0 18px; font: 600 12px/1 var(--font); letter-spacing: .24em; text-transform: uppercase; color: var(--faint); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 14px; color: var(--muted); }
.footer ul a { transition: color var(--med) var(--ease); }
.footer ul a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity var(--med) var(--ease); }
.scrim.is-on { opacity: 1; }
.drawer {
  position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: min(448px, 100%);
  display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line-2);
  transform: translateX(105%); transition: transform .9s var(--ease);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 12px 24px; border-bottom: 1px solid var(--line); height: 64px; }
.drawer__head span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.drawer__user { display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.drawer__user b { color: var(--text); }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer__empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; color: var(--muted); font-size: 14px; }
.drawer__empty svg { width: 28px; height: 28px; color: var(--faint); }
.line-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  animation: slide-in .8s var(--ease) both; animation-delay: var(--d, 0s);
}
@keyframes slide-in { from { opacity: 0; transform: translateX(24px); } }
.line-item__img { width: 64px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--surface-2); position: relative; }
.line-item__img img { width: 100%; height: 100%; object-fit: cover; }
.line-item__img .mark { position: absolute; inset: 0; margin: auto; width: 26px; height: auto; object-fit: contain; }
.line-item__name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.line-item__meta { font-size: 13px; color: var(--muted); }
.line-item__remove { color: var(--faint); font-size: 12px; padding: 6px; border-radius: 8px; transition: color var(--fast) var(--ease), background var(--fast) var(--ease); }
.line-item__remove:hover { color: var(--red); background: rgba(229, 72, 77, .08); }
.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.coupon { display: flex; gap: 8px; }
.coupon input {
  flex: 1; height: 38px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 14px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
  transition: border-color var(--med) var(--ease);
}
.coupon input:focus { outline: 0; border-color: var(--gold); }
.coupons { display: flex; flex-wrap: wrap; gap: 6px; }
.coupons:empty { display: none; }
.coupons button { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(52, 211, 153, .1); color: var(--green); border: 1px solid rgba(52, 211, 153, .3); }
.totals { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.totals div { display: flex; justify-content: space-between; }
.totals__grand { color: var(--text); font-weight: 700; font-size: 16px; padding-top: 6px; }
.drawer__charge { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); font-size: 12px; color: var(--muted); line-height: 1.5; }
.drawer__note { margin: 0; font-size: 11px; color: var(--faint); text-align: center; line-height: 1.5; }

/* ---------- modals ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: rgba(0, 0, 0, .7);
  opacity: 0; transition: opacity var(--med) var(--ease);
}
.modal.is-on { opacity: 1; }
.modal__card {
  position: relative; width: min(760px, 100%); max-height: calc(100vh - 48px); overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 22px;
  transform: translateY(30px) scale(.97); transition: transform .9s var(--ease);
}
.modal.is-on .modal__card { transform: none; }
.modal__card--sm { width: min(440px, 100%); text-align: center; }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 3; }
.modal__media { aspect-ratio: 16 / 7; position: relative; overflow: hidden; background: var(--surface-2); }
.modal__media > img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: 32px; display: grid; gap: 14px; }
.modal__desc { color: var(--muted); font-size: 15px; }
.modal__desc img { border-radius: 10px; margin: 10px 0; }
.modal__desc a { color: var(--gold); }
.modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 6px; }
.login__logo { margin: 8px auto 4px; }
.options { text-align: left; }
.options__fields { display: grid; gap: 16px; margin: 6px 0 8px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--text); }
.field__label em { font-style: normal; font-weight: 400; color: var(--faint); }
.field input, .field select {
  height: 44px; padding: 0 14px; border-radius: 12px; font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-2); transition: border-color var(--med) var(--ease);
}
.field input:focus, .field select:focus { outline: 0; border-color: var(--gold); }
.field .is-invalid { border-color: var(--red); }
.field__help { font-size: 12px; color: var(--faint); line-height: 1.5; }
.field__error { font-size: 12px; color: var(--red); }

/* Discord login */
.btn--discord { background: #5865f2; color: #fff; }
.btn--discord:hover { background: #4752c4; }
.btn--discord svg { width: 20px; height: 20px; }
.btn--discord span { display: inline-flex; }
.discord-card {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-2);
}
.discord-card img { width: 36px; height: 36px; border-radius: 50%; }
.discord-card__who { display: grid; line-height: 1.3; min-width: 0; }
.discord-card__who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discord-card__who span { font-size: 12px; color: var(--faint); }
.discord-card__change { margin-left: auto; font-size: 13px; }
.drawer__user { flex-wrap: wrap; justify-content: space-between; row-gap: 6px; }
.drawer__discord { display: inline-flex; align-items: center; gap: 6px; }
.drawer__discord img { width: 18px; height: 18px; border-radius: 50%; }
.drawer__unlink { margin-left: 4px; font-size: 12px; color: var(--faint); text-decoration: underline; text-underline-offset: 2px; transition: color var(--fast) var(--ease); }
.drawer__unlink:hover { color: var(--red); }
.login__links { display: grid; gap: 10px; margin-top: 10px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 120; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; gap: 10px; justify-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  font-size: 14px;
  animation: toast-in .8s var(--ease) both;
}
.toast.is-out { animation: toast-out .7s var(--ease) forwards; }
.toast--ok { border-color: rgba(52, 211, 153, .4); }
.toast--err { border-color: rgba(229, 72, 77, .5); }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px) scale(.96); } }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .nav { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cta { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .section { padding: 100px 0; }
  .muted br, .hero__lead br { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  #loginLabel { display: none; }
  .btn--sm { padding: 0 12px; }
  .hero__lead { font-size: 16px; }
  .modal__body { padding: 24px; }
  .modal__foot { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__in, .reveal, .card { opacity: 1 !important; transform: none !important; }
}
