/* Magnovera Style Guide. Brand tokens (--accent, --cta, --paper, --ink, fonts…) are injected by js/brand.js
   from brand.config.js, so a jeweler's own brand replaces them; the values below are Magnovera's and keep the
   page right before the module runs (and on pages that don't load it). The raw palette is for Magnovera's
   own surfaces (marketing, footer, bands) and never for anything a jeweler's customers see. */

/* Manrope (SIL Open Font License), self-hosted variable font, weights 600–800 */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette (Style Guide) */
  --steel-p2: #D6E0E6; --steel-p1: #AEBFCA; --steel: #7F96A6; --steel-m1: #5F7787; --steel-m2: #4B6473;
  --olive-p2: #B7BFAF; --olive-p1: #7D8773; --olive: #626B59; --olive-m1: #4E5842; --olive-m2: #3E4635;
  --amber-p2: #F8D7A8; --amber-p1: #F1B870; --amber: #E8891A; --amber-m1: #C87413; --amber-m2: #9A560D;
  --ivory-p2: #F7F5F1; --ivory-p1: #E8E4DB; --ivory: #D6D1C6; --ivory-m1: #BDB7AA; --ivory-m2: #A6A093;
  --charcoal: #231F20; --charcoal-p1: #322D2E;

  /* Brand tokens (Magnovera defaults; js/brand.js overrides them per brand) */
  --accent: #4B6473; --accent-ink: #fff; --accent-soft: #E3EAEE;
  --cta: #E8891A; --cta-ink: #231F20; --focus: #9A560D;
  --paper: #F7F5F1; --paper-2: #EFECE6; --surface: #FFFFFF;
  --ink: #231F20; --ink-2: #5C5653; --ink-3: #6F6961; --line: #E4DFD5;
  --viewer-bg: #E8E4DB;
  --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: Cambria, 'Cambria Math', Georgia, 'Times New Roman', serif;
  --font-ui: var(--font-display);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display-weight: 800;

  /* Magnovera surfaces */
  --band: #4B6473; --footer-bg: #231F20;

  --radius-sm: 6px; --radius: 8px; --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(35, 31, 32, .05), 0 6px 18px rgba(35, 31, 32, .07);
  --max: 1160px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper:#181617; --paper-2:#1E1B1C; --surface:#231F20; --ink:#ECE8E1; --ink-2:#B2ACA1; --ink-3:#99938A; --line:#302B2C; --accent:#AEBFCA; --accent-ink:#231F20; --accent-soft:#273540; --focus:#E8891A; --viewer-bg:#1E1B1C; --band:#273540; --footer-bg:#111010; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.35); }
}
:root[data-theme="dark"] { --paper:#181617; --paper-2:#1E1B1C; --surface:#231F20; --ink:#ECE8E1; --ink-2:#B2ACA1; --ink-3:#99938A; --line:#302B2C; --accent:#AEBFCA; --accent-ink:#231F20; --accent-soft:#273540; --focus:#E8891A; --viewer-bg:#1E1B1C; --band:#273540; --footer-bg:#111010; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.35); }

/* Logo that swaps with the theme: colour wordmark on light backgrounds, white on dark. */
.logo-on-dark { display: none !important; }
:root[data-theme="dark"] .logo-on-light { display: none !important; }
:root[data-theme="dark"] .logo-on-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-on-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-on-dark { display: block !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 1.0625rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--cta) 32%, var(--paper)); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
/* Keyboard focus on controls keeps each control's own shape (no radius override). */
:is(a, button, input, select, textarea, summary, [role="tab"], [role="button"], [role="option"], .swatch, .tile, [tabindex]:not([tabindex="-1"])):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.swatch:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* "Skip to content": off screen until a keyboard user tabs to it. */
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 1000; padding: 10px 18px; border-radius: var(--radius); background: var(--ink); color: var(--paper); font-family: var(--font-ui); font-weight: 700; text-decoration: none; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* Titles and headers: Manrope ExtraBold (or the jeweler's display font at its normal weight). */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.02em; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; }
em { font-style: normal; color: var(--accent); }
p { margin: 0; text-wrap: pretty; }
.eyebrow { font-family: var(--font-ui); font-size: .74rem; letter-spacing: .11em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.lede { font-size: 1.18rem; color: var(--ink-2); max-width: 36rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* Buttons */
/* Buttons. Primary = the one main action on a screen (Magnovera: Amber with charcoal text; a jeweler: their
   accent). Everything else is a quiet outline button. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 44px; padding: 0 20px;
  border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--ink) 18%, var(--paper)); background: transparent;
  text-decoration: none; font-family: var(--font-ui); font-weight: 700; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--accent); background: var(--surface); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--cta); color: var(--cta-ink); border-color: var(--cta); }
.btn-primary:hover { background: color-mix(in srgb, var(--cta) 86%, black); border-color: color-mix(in srgb, var(--cta) 86%, black); color: var(--cta-ink); }
.btn-sm { height: 38px; padding: 0 14px; font-size: .88rem; }
.btn svg { width: 17px; height: 17px; flex: none; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius);
  border: 1px solid var(--line); background: transparent; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; flex: none; }

/* Brand mark */
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.25rem; letter-spacing: -0.02em; }
.brand-logo { width: 26px; height: 26px; color: var(--accent); display: inline-flex; align-items: center; }
.brand-logo.has-img { width: auto; height: 27px; }
.brand-logo .brand-img { height: 100%; width: auto; max-width: 180px; object-fit: contain; display: block; }
.brand > .wordmark { height: 27px; width: auto; display: block; }
.brand-sub { font-family: var(--font-ui); font-weight: 700; font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: var(--radius-sm); padding: 3px 7px; margin-left: 2px; line-height: 1.2; }

/* ── Nav ─────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--paper) 78%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav-links { display: flex; gap: 28px; font-family: var(--font-ui); font-weight: 600; font-size: .93rem; color: var(--ink); white-space: nowrap; }
.nav-links a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav-links a:hover { border-bottom-color: color-mix(in srgb, var(--ink) 20%, transparent); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
@media (max-width: 1000px) { .nav-links { display: none; } }
@media (max-width: 480px) { .nav-actions .btn-ghost-hide { display: none; } .nav .brand-sub { display: none; } .nav .wordmark { height: 23px; } }

/* ── Hero ────────────────────────────────────── */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 32px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 8px; }
.hero-facts div { display: flex; flex-direction: column; padding-top: 16px; }
.hero-facts strong { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.5rem; line-height: 1; letter-spacing: -0.02em; color: var(--accent); }
.hero-facts span { font-size: .88rem; color: var(--ink-2); margin-top: 6px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 28px; } }

.stage {
  position: relative; aspect-ratio: 1 / 1.02; min-height: 300px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--viewer-bg); border: 1px solid var(--line); isolation: isolate;
}
/* Never an empty frame: a rendered poster sits under the canvas until the live view has drawn,
   and stays (with a retry) if 3D can't start. */
.stage > .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: -1; pointer-events: none; transition: opacity .6s var(--ease); }
.stage .viewer-canvas { opacity: 0; transition: opacity .5s var(--ease); }
.stage.is-live .viewer-canvas { opacity: 1; }
.stage.is-live > .poster, .stage.is-live > .loading { opacity: 0; pointer-events: none; }
.stage > .loading { inset: auto; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; font-size: .8rem;
  background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--line); z-index: 2; white-space: nowrap; }
.viewer-fallback { display: none; position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3; gap: 10px; align-items: center;
  padding: 6px 6px 6px 14px; border-radius: 999px; font-size: .85rem; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.viewer-failed .stage:not(.is-live) > .viewer-fallback { display: inline-flex; }
.viewer-failed .stage > .loading { display: none; }
.stage .viewer-canvas { width: 100% !important; height: 100% !important; cursor: grab; touch-action: none; }
.stage .viewer-canvas:active { cursor: grabbing; }
.stage-chrome { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.stage-chrome > * { pointer-events: auto; }
.stage-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.stage-top > * { pointer-events: auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-weight: 600; font-size: .78rem; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); color: var(--ink-2); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #3fb27f; box-shadow: 0 0 0 3px color-mix(in srgb, #3fb27f 25%, transparent); }
.swatch-bar { display: flex; gap: 6px; padding: 8px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.swatch {
  --c: #ccc; width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  background: radial-gradient(circle at 32% 28%, #fff9 0 12%, transparent 40%), var(--c);
  box-shadow: inset 0 0 0 1px #0002; transition: transform .2s var(--ease), box-shadow .2s;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 1px #0002, 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); }
.swatch.gem { border-radius: 8px; transform: rotate(45deg) scale(.8); }
.swatch.gem:hover { transform: rotate(45deg) scale(.88); }
.swatch-label { font-size: .8rem; color: var(--ink-2); padding: 0 6px 0 4px; align-self: center; white-space: nowrap; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: .9rem; transition: opacity .4s; }

/* ── Sections ────────────────────────────────── */
section { padding: clamp(56px, 7vw, 88px) 0; }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; max-width: 44rem; }
.section-head .lede { max-width: 38rem; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
@media (max-width: 640px) { section { padding: 64px 0; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 32px 32px 8px 0; display: flex; flex-direction: column; gap: 14px; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.05rem; line-height: 1; background: var(--accent); color: var(--accent-ink); }
.step p { color: var(--ink-2); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .step { padding-right: 0; } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 12px; min-height: 220px; position: relative; overflow: hidden; }
.card p { color: var(--ink-2); font-size: .98rem; }
.card .ico { width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.card .ico svg { width: 20px; height: 20px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: 1 / -1; }
.card-dark .chip { background: transparent; color: color-mix(in srgb, var(--paper) 80%, transparent); border-color: color-mix(in srgb, var(--paper) 22%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.chip { font-family: var(--font-ui); font-weight: 700; font-size: .78rem; padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink-2); background: var(--paper); }
.card-dark { background: var(--band); color: #F7F5F1; border-color: var(--band); }
.card-dark h3 { color: #fff; }
.card-dark p { color: #E8E4DB; }
.card-dark .ico { background: rgba(255, 255, 255, .12); color: #fff; }
.devices { display: flex; gap: 10px; align-items: flex-end; margin-top: auto; color: var(--ink-3); }
.devices svg { width: 28px; height: 28px; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } .span-2, .span-3, .span-4 { grid-column: span 2; } }
@media (min-width: 700px) and (max-width: 960px) { .span-2 { grid-column: span 1; } }

/* Embed */
.embed-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.code {
  font-family: var(--font-mono); font-size: .86rem; line-height: 1.7; background: var(--ink); color: var(--paper);
  border-radius: var(--radius); padding: 22px 24px; overflow-x: auto; position: relative; margin: 0; white-space: pre;
}
.code .t { color: color-mix(in srgb, var(--accent) 70%, var(--paper)); }
.code .a { color: color-mix(in srgb, var(--paper) 60%, transparent); }
.code-wrap { position: relative; }
.code-wrap .copy { position: absolute; top: 12px; right: 12px; border-color: color-mix(in srgb, var(--paper) 25%, transparent); color: var(--paper); }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checklist svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 4px; }
@media (max-width: 900px) { .embed-grid { grid-template-columns: minmax(0, 1fr); } }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 18px; background: var(--surface); }
.plan.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan.featured .plan-blurb, .plan.featured .plan-period, .plan.featured li { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.plan.featured .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.plan-name { font-family: var(--font-ui); font-size: .74rem; letter-spacing: .11em; text-transform: uppercase; font-weight: 700; }
.plan-price { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 2.6rem; line-height: 1; letter-spacing: -0.03em; }
.plan-period { font-size: .9rem; color: var(--ink-3); margin-left: 6px; font-family: var(--font-body); }
.plan-blurb { color: var(--ink-2); }
.plan ul { list-style: none; padding: 18px 0 0; margin: 0; display: grid; gap: 10px; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.plan li { display: flex; gap: 10px; font-size: .95rem; color: var(--ink-2); }
.plan li svg { width: 16px; height: 16px; flex: none; margin-top: 5px; color: var(--accent); }
.plan .btn { margin-top: auto; justify-content: center; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-ui); font-size: 1.05rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-ui); font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-top: 12px; max-width: 42rem; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 24px; } }

/* CTA band (steel) + footer (charcoal): Magnovera's own surfaces. */
.cta { text-align: center; padding: clamp(56px, 7vw, 88px) 0; background: var(--band); color: #F7F5F1; }
.cta h2 { max-width: 20ch; margin: 0 auto 16px; color: #fff; }
.cta .lede { margin: 0 auto 28px; color: #F7F5F1; }
.cta :focus-visible { outline-color: #fff; }
footer { padding: 56px 0 32px; font-size: .95rem; }
.site-footer { background: var(--footer-bg); color: #D6D1C6; }
.site-footer a { color: #BDB7AA; }
.site-footer a:hover { color: #F1B870; }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer .wordmark { height: 26px; width: auto; display: block; }
.foot-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.foot-tag { color: #BDB7AA; margin-top: 12px; max-width: 22rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-family: var(--font-ui); font-weight: 600; font-size: .9rem; }
.foot-links a { text-decoration: none; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font-family: var(--font-ui); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 14px; font-weight: 800; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.credits { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.credits a { text-decoration: none; }
.foot-bottom { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; color: #A6A093; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: var(--radius); font-family: var(--font-ui); font-weight: 600; font-size: .9rem; opacity: 0; pointer-events: none; transition: all .3s var(--ease); z-index: 200; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reduced motion: no slides, fades, zooms or smooth scrolling; state changes happen at once. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .toast { transform: translate(-50%, 0); }
  .modal, .modal::backdrop { animation: none; }
  .btn:active, .swatch:hover, .choice:hover { transform: none; }
  .swatch.gem:hover { transform: rotate(45deg) scale(.8); }
}

/* Opening a shared link: no sample-ring poster, just a loading note until the shared design is in. */
.stage.awaiting-share > .poster { display: none; }
.stage.awaiting-share > .loading { opacity: 1 !important; }

/* Sign-up while new stores join by invitation only (src/pages.js comingSoon; js/login.js for its tab). */
.is-soon { cursor: default; opacity: .72; pointer-events: none; }
