/* Digital Bullion - site styles
   Brand: vault-warm near-black + assay gold + warm bone.
   Type: Spectral (display/serif), IBM Plex Sans (body), IBM Plex Mono (data).
   No em-dashes in copy; figures live in assets/js/rates.js (single source). */

:root {
  /* palette */
  --ink:        #14100B;   /* vault near-black, warm */
  --ink-2:      #1C1710;   /* raised surface */
  --ink-3:      #251E15;   /* card / input */
  --gold:       #C6A15B;   /* assay brass, primary accent */
  --gold-deep:  #8A6D34;   /* engraving / shadow */
  --gold-bright:#E8CC86;   /* sheen highlight (used sparingly) */
  --paper:      #ECE3D2;   /* text on dark */
  --muted:      #A2957C;   /* secondary text */
  --line:       rgba(198,161,91,0.18); /* gold hairline */
  --line-soft:  rgba(236,227,210,0.08);
  --ok:         #7FA06A;   /* restrained positive (calculator) */

  /* type */
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* scale */
  --h1: clamp(2.6rem, 6vw, 4.6rem);
  --h2: clamp(1.9rem, 3.6vw, 2.9rem);
  --h3: clamp(1.25rem, 2vw, 1.6rem);
  --lead: clamp(1.05rem, 1.4vw, 1.3rem);

  /* space */
  --s1:8px; --s2:16px; --s3:24px; --s4:40px; --s5:64px; --s6:96px; --s7:140px;
  --maxw: 1160px;
  --r: 4px;              /* tight radius, ingot-like */
  --ease: cubic-bezier(.2,.7,.3,1);
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* faint engraved guilloche wash, very subtle */
  background-image:
    radial-gradient(1200px 600px at 78% -8%, rgba(198,161,91,0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 12%, rgba(198,161,91,0.05), transparent 55%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

h1,h2,h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08;
  letter-spacing: -0.01em; margin: 0 0 var(--s3); color: var(--paper); }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.2; }
p { margin: 0 0 var(--s3); color: #DCD3C0; }
.lead { font-size: var(--lead); color: var(--paper); max-width: 46ch; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--s3); }
section { padding-block: clamp(96px, 11vw, 148px); }
.glance { padding-block: clamp(20px, 2.5vw, 36px); }   /* trust strip sits close to the hero */
#how { padding-block-start: clamp(48px, 6vw, 76px); }

/* assay-stamp eyebrow + certificate hairline devices */
.eyebrow {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 var(--s4);
  display: inline-flex; align-items: center; gap: 1.1em;
}
.eyebrow::before { /* mini gold bar, echoes the bullion CTA */
  content: ""; flex: none; width: 30px; height: 14px; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 46%, var(--gold-deep) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,244,214,.75),
    inset 0 -3px 5px rgba(0,0,0,.30),
    0 3px 8px -2px rgba(0,0,0,.55);
}
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40;
  background: rgba(20,16,11,0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft); }
.nav-inner { display: flex; align-items: center; justify-content: space-between;
  padding: var(--s2) var(--s3); max-width: var(--maxw); margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--serif); font-size: 1.28rem; letter-spacing: -0.01em; color: var(--paper); }
.brand:hover { color: var(--paper); }
.brand .ingot { width: 36px; height: 23px; flex: none; }
.nav-links { display: flex; align-items: center; gap: var(--s4); }
.nav-links a { color: var(--paper); font-size: .95rem; font-family: var(--sans); }
.nav-links a:hover { color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: var(--s2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line);
  color: var(--paper); width: 42px; height: 40px; border-radius: var(--r); cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .6em; font-family: var(--sans);
  font-weight: 500; font-size: .98rem; padding: .82em 1.4em; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease); }
.btn-primary { background: var(--gold); color: #211a0e; }
.btn-primary:hover { background: var(--gold-bright); color: #211a0e; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { font-size: 1.05rem; padding: 1em 1.7em; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(64px, 8vw, 112px) clamp(36px, 4.5vw, 60px); }
.hero .grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s5); align-items: center; }
.hero h1 { margin-bottom: var(--s3); }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.hero .fineline { font-family: var(--mono); font-size: .78rem; color: var(--muted);
  letter-spacing: .04em; margin-top: var(--s3); }

/* gated video card */
.videocard { background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden; }
.videocard .poster { position: relative; aspect-ratio: 16/10;
  background:
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55)),
    repeating-linear-gradient(115deg, #2a2115 0 3px, #241c12 3px 6px);
  display: grid; place-items: center; }
.videocard .play { width: 74px; height: 74px; border-radius: 50%;
  background: var(--gold); display: grid; place-items: center; border: 0; cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease); }
.videocard .play:hover { transform: scale(1.05); background: var(--gold-bright); }
.videocard .play svg { margin-left: 4px; }
.videocard .cap { padding: var(--s3); border-top: 1px solid var(--line); }
.videocard .cap .k { font-family: var(--mono); font-size: .7rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); }
.videocard .cap p { margin: .4em 0 0; font-size: .95rem; color: var(--muted); }
.videocard iframe { width: 100%; aspect-ratio: 16/10; border: 0; display: block; }

/* ---------- trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.trust .cell { padding: var(--s3); border-right: 1px solid var(--line-soft); background: var(--ink-2); }
.trust .cell:last-child { border-right: 0; }
.trust .k { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .5em; }
.trust .v { font-family: var(--serif); font-size: 1.15rem; color: var(--paper); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.step { background: var(--ink-2); border: 1px solid var(--line-soft); border-radius: 6px;
  padding: var(--s4) var(--s3); }
.step .mark { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: var(--s2); }
.step h3 { margin-bottom: var(--s2); }
.step p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- rates + calculator ---------- */
.rates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; }
table.rates { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.rates caption { text-align: left; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold); padding-bottom: var(--s2); }
table.rates th, table.rates td { text-align: left; padding: .8em .6em; border-bottom: 1px solid var(--line-soft); }
table.rates th { font-family: var(--mono); font-weight: 500; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
table.rates td { font-family: var(--mono); font-size: .98rem; color: var(--paper); }
table.rates td.rate { color: var(--gold); }
table.rates tr.top td { color: var(--gold-bright); font-weight: 500; }
table.rates tr.top td.rate { font-size: 1.15rem; }

.calc { background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; padding: var(--s4); }
.calc label { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: var(--s2); }
.calc .field { display: flex; align-items: center; gap: .6em; background: var(--ink-3);
  border: 1px solid var(--line); border-radius: var(--r); padding: .2em .8em; }
.calc .field span { font-family: var(--mono); color: var(--gold); }
.calc input[type="number"] { flex: 1; background: none; border: 0; color: var(--paper);
  font-family: var(--mono); font-size: 1.3rem; padding: .5em 0; width: 100%; }
.calc input:focus { outline: none; }
.calc .out { margin-top: var(--s4); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.calc .out .box { background: var(--ink-3); border: 1px solid var(--line-soft); border-radius: var(--r); padding: var(--s3); }
.calc .out .lbl { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); }
.calc .out .num { font-family: var(--serif); font-size: 1.9rem; color: var(--gold); margin-top: .2em; }
.calc .out .num.est { color: var(--ok); }
.calc .disclaim { font-size: .8rem; color: var(--muted); margin: var(--s3) 0 0; }

/* ---------- bullion CTA (signature) ---------- */
.bullion-band { text-align: center; }
.bullion {
  --bh: 132px;
  position: relative; display: inline-block; width: min(560px, 92vw); height: var(--bh);
  margin: var(--s4) auto 0; cursor: pointer; border: 0; padding: 0; background: none;
  perspective: 600px;
}
.bullion .bar {
  position: absolute; inset: 0; border-radius: 6px;
  background:
    linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 34%, var(--gold-deep) 100%);
  /* brushed metal */
  box-shadow:
    inset 0 2px 0 rgba(255,244,214,.7),
    inset 0 -8px 18px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,240,200,.25),
    0 24px 50px -18px rgba(0,0,0,.7);
  overflow: hidden;
  transform: rotateX(6deg); transform-origin: bottom;
  transition: transform .35s var(--ease);
}
.bullion .bar::before { /* brushed texture */
  content:""; position:absolute; inset:0;
  background: repeating-linear-gradient(92deg, rgba(255,255,255,.05) 0 2px, rgba(0,0,0,.04) 2px 4px);
  mix-blend-mode: overlay; opacity:.6;
}
.bullion .bar::after { /* sheen sweep */
  content:""; position:absolute; top:0; bottom:0; width:40%;
  left:-60%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transition: left .6s var(--ease);
}
.bullion:hover .bar { transform: rotateX(0deg) translateY(-3px); }
.bullion:hover .bar::after { left: 120%; }
.bullion .stamp { position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .25em; color: #3a2c10;
  text-shadow: 0 1px 0 rgba(255,244,214,.4); }
.bullion .stamp .hall { font-family: var(--mono); font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; opacity: .8; }
.bullion .stamp .big { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .02em; font-weight: 600; line-height: 1.05; }
.bullion .stamp .sub { font-family: var(--mono); font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; opacity: .85; }
.bullion:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 6px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line-soft); padding: var(--s3) 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.2rem; color: var(--paper);
  list-style: none; display: flex; justify-content: space-between; gap: var(--s3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--mono); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: var(--s2) 0 0; color: var(--muted); }

/* ---------- article / legal prose ---------- */
.page-head { margin-bottom: var(--s5); }
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--h3); margin: var(--s5) 0 var(--s2); }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 var(--s3); padding-left: 1.2em; color: #DCD3C0; }
.prose li { margin-bottom: .5em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--paper); }
.center-narrow { max-width: 56ch; margin-inline: auto; text-align: center; }

/* ---------- footer ---------- */
.riskline { background: var(--ink-2); border-top: 1px solid var(--line);
  font-size: .84rem; color: var(--muted); }
.riskline .wrap { padding-top: var(--s3); padding-bottom: var(--s3); }
.footer { background: #100D08; border-top: 1px solid var(--line-soft); padding: var(--s5) 0 var(--s4); }
.footer .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s4); }
.footer .brand { margin-bottom: var(--s2); }
.footer .onseller { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; color: var(--muted); max-width: 34ch; }
.footer nav { display: flex; gap: var(--s4); flex-wrap: wrap; }
.footer nav a { color: var(--paper); font-size: .9rem; }
.footer nav a:hover { color: var(--gold); }
.footer .fine { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line-soft);
  font-size: .78rem; color: var(--muted); }

/* ---------- modal (gated video + lead form) ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center;
  background: rgba(8,6,3,.7); backdrop-filter: blur(4px); padding: var(--s3); }
.modal.open { display: grid; }
.modal .panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px;
  width: min(560px, 100%); max-height: 92vh; overflow: auto; padding: var(--s4); }
.modal .eyebrow { margin-bottom: var(--s2); }
.modal h3 { margin-bottom: var(--s2); }
.modal p.sub { color: var(--muted); font-size: .95rem; margin-bottom: var(--s3); }
.field-row { margin-bottom: 18px; }
.field-row label { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .5em; }
.field-row input, .field-row select { width: 100%; background: var(--ink-3); border: 1px solid var(--line);
  border-radius: var(--r); color: var(--paper); font-family: var(--sans); font-size: 1rem; padding: .8em .9em; }
.field-row input:focus, .field-row select:focus { outline: none; border-color: var(--gold); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.modal .btn { width: 100%; justify-content: center; margin-top: var(--s2); }
.modal .legal { font-size: .78rem; color: var(--muted); margin-top: var(--s3); }
.modal .close { position: absolute; top: var(--s2); right: var(--s2); background: none; border: 0;
  color: var(--muted); font-size: 1.6rem; cursor: pointer; }
.modal .panel { position: relative; }
.hp { position: absolute; left: -9999px; }  /* honeypot */

/* booking calendar + video in the thanks step */
#videoMount iframe { width:100%; aspect-ratio:16/10; border:0; border-radius:6px; display:block; }
.book { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line-soft); }
.book .eyebrow { margin-bottom: var(--s2); }
#calMount iframe { width:100%; height:560px; border:0; border-radius:6px; background:var(--ink-3); display:block; }
.cal-placeholder { background:var(--ink-3); border:1px dashed var(--line); border-radius:6px;
  padding: var(--s4); text-align:center; color:var(--muted); font-family:var(--mono); font-size:.82rem; line-height:1.6; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .grid, .rates-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust .cell:nth-child(2) { border-right: 0; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav.open .nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--ink-2); border-bottom: 1px solid var(--line); padding: var(--s2) var(--s3); }
  .nav.open .nav-links a { padding: .8em 0; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .calc .out { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .trust { grid-template-columns: 1fr; }
  .trust .cell { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  section { padding-block: var(--s6); }
}

@media (prefers-reduced-motion: reduce) {
  .bullion .bar, .bullion .bar::after, .btn { transition: none; }
  .bullion:hover .bar::after { left: -60%; }
}

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
