/* ============================================================
   ZENTURO — Numismatic premium design system
   Palette: paper & bone / vault green ink / antique gold
   Type: Fraunces (display serif) + Inter (text)
   ============================================================ */

:root {
  --paper: #F6F2E9;
  --paper-deep: #EFE9DB;
  --card: #FCFAF4;
  --ink: #14201A;
  --ink-soft: #33413A;
  --ink-mute: #6B7570;
  --gold: #A8842C;
  --gold-bright: #C9A44C;
  --gold-soft: #E4D4AC;
  --copper: #9C5B33;
  --green-deep: #0E1813;
  --line: rgba(20, 32, 26, 0.16);
  --line-soft: rgba(20, 32, 26, 0.09);
  --danger: #A33A2A;
  --ok: #3E6B4C;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,32,26,.05), 0 12px 40px -18px rgba(20,32,26,.25);
  --font-display: "Fraunces", Georgia, serif;
  --font-text: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-text);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold-soft); }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--ink);
}

a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- texture ---------- */
.bg-etch {
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(200,164,76,0.10), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%2314201A' stroke-opacity='0.028'%3E%3Ccircle cx='70' cy='70' r='62'/%3E%3Ccircle cx='70' cy='70' r='48'/%3E%3Ccircle cx='70' cy='70' r='34'/%3E%3Ccircle cx='70' cy='70' r='20'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: .7; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand svg { display: block; }
.brand-name {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 620; letter-spacing: 0.01em;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-text);
  font-size: 15px; font-weight: 600;
  padding: 13px 26px; border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink); color: var(--paper);
  box-shadow: 0 8px 24px -10px rgba(20,32,26,.55);
}
.btn-primary:hover { background: var(--green-deep); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #FFF9EC;
  box-shadow: 0 8px 24px -10px rgba(168,132,44,.6);
}
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-lg { font-size: 16.5px; padding: 16px 34px; }
.btn-sm { font-size: 13.5px; padding: 9px 18px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); margin: 18px 0 20px; }
.hero h1 em { font-style: italic; color: var(--copper); }
.hero p.lede { font-size: 18.5px; color: var(--ink-soft); max-width: 34em; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 13.5px; color: var(--ink-mute); margin-top: 14px; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
}

/* ---------- coin visual ---------- */
.coin-stage { display: flex; justify-content: center; }
.coin-stage svg { width: min(420px, 88vw); height: auto; filter: drop-shadow(0 24px 48px rgba(20,32,26,.28)); }

/* ---------- section scaffolding ---------- */
.section { padding: 84px 0; }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin-top: 16px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 16.5px; }
.rule { border: 0; border-top: 1px solid var(--line-soft); }

/* ---------- catalog cards (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--card); padding: 34px 30px 38px; position: relative; }
.step .no {
  font-family: var(--font-display); font-style: italic;
  font-size: 15px; color: var(--gold);
}
.step h3 { font-size: 21px; margin: 10px 0 10px; }
.step p { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- feature ledger ---------- */
.ledger { border-top: 1px solid var(--line); }
.ledger-row {
  display: grid; grid-template-columns: 56px 1fr 2fr; gap: 24px;
  padding: 26px 4px; border-bottom: 1px solid var(--line-soft); align-items: baseline;
}
.ledger-row .idx { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 15px; }
.ledger-row h3 { font-size: 19px; }
.ledger-row p { color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 720px) { .ledger-row { grid-template-columns: 40px 1fr; } .ledger-row p { grid-column: 2; } }

/* ---------- certificate / result card ---------- */
.cert {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cert-head {
  padding: 22px 28px;
  border-bottom: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: linear-gradient(180deg, rgba(200,164,76,.07), transparent);
}
.cert-head .title { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.cert-head .sub { font-size: 13px; color: var(--ink-mute); letter-spacing: .14em; text-transform: uppercase; }
.cert-body { padding: 26px 28px; }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.cert-item { padding: 11px 0; border-bottom: 1px dashed var(--line-soft); display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; }
.cert-item .k { color: var(--ink-mute); }
.cert-item .v { font-weight: 560; text-align: right; }
@media (max-width: 640px) { .cert-grid { grid-template-columns: 1fr; } }

.value-banner {
  margin: 20px 0 6px;
  background: var(--green-deep);
  color: #EDE6D4;
  border-radius: 12px;
  padding: 22px 26px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: baseline; justify-content: space-between;
  position: relative; overflow: hidden;
}
.value-banner::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23C9A44C' stroke-opacity='0.12'%3E%3Ccircle cx='120' cy='0' r='90'/%3E%3Ccircle cx='120' cy='0' r='70'/%3E%3Ccircle cx='120' cy='0' r='50'/%3E%3C/g%3E%3C/svg%3E") no-repeat right top;
  pointer-events: none;
}
.value-banner .label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #B8AE94; }
.value-banner .amount { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); color: var(--gold-bright); font-weight: 600; }
.value-banner .unc { font-size: 14px; color: #CFC7B2; }

/* ---------- scanner ---------- */
.scanner-shell { max-width: 760px; margin: 0 auto; }
.dropzone {
  position: relative;
  border: 1.5px dashed color-mix(in srgb, var(--gold) 55%, var(--line));
  background: var(--card);
  border-radius: var(--radius);
  padding: 34px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--gold); background: #FFFDF6; }
.dz-ring {
  width: 118px; height: 118px; border-radius: 50%;
  border: 1.5px solid var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #FFF9EA, var(--paper-deep));
  box-shadow: inset 0 0 0 6px rgba(200,164,76,.08);
}
.dz-ring svg { opacity: .8; }
.dropzone h3 { font-size: 20px; }
.dropzone p { font-size: 14px; color: var(--ink-mute); }
.dz-previews { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.dz-previews .slot {
  width: 128px; height: 128px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--card);
  box-shadow: 0 6px 18px -6px rgba(20,32,26,.35), 0 0 0 1px var(--line);
}
.slot-tag { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); text-align: center; margin-top: 8px; }

.hint-row { display: flex; gap: 12px; margin-top: 18px; }
.hint-row input {
  flex: 1; padding: 13px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-family: var(--font-text); font-size: 15px; color: var(--ink);
}
.hint-row input:focus { outline: 2px solid var(--gold-soft); border-color: var(--gold); }

/* scanning animation */
.scan-progress { text-align: center; padding: 56px 0; }
.scan-orbit { position: relative; width: 150px; height: 150px; margin: 0 auto 26px; }
.scan-orbit .core {
  position: absolute; inset: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF6E0, var(--gold-soft));
  box-shadow: inset 0 0 0 8px rgba(168,132,44,.15);
}
.scan-orbit .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px dashed var(--gold);
  animation: spin 2.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.scan-progress .msg { font-family: var(--font-display); font-size: 20px; font-style: italic; color: var(--ink-soft); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 430px)); gap: 26px; justify-content: center; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 34px; position: relative;
}
.plan.feature { border-color: var(--gold); box-shadow: var(--shadow); }
.plan .flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #FFF9EC; font-size: 11.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 999px;
}
.plan h3 { font-size: 20px; }
.plan .price { font-family: var(--font-display); font-size: 46px; font-weight: 600; margin: 14px 0 2px; }
.plan .per { color: var(--ink-mute); font-size: 14px; }
.plan ul { list-style: none; margin: 24px 0 28px; display: grid; gap: 11px; }
.plan li { font-size: 14.5px; color: var(--ink-soft); display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: "◆"; color: var(--gold); font-size: 9px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; }
.faq details { border-bottom: 1px solid var(--line-soft); padding: 20px 4px; }
.faq summary {
  font-weight: 600; font-size: 16.5px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 22px; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--ink-soft); font-size: 15px; }

/* ---------- modal ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(14, 24, 19, 0.55);
  display: none; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-back.open { display: flex; }
.modal {
  background: var(--card); border-radius: var(--radius);
  width: min(440px, 100%); padding: 34px 32px;
  border: 1px solid var(--line); box-shadow: 0 30px 80px -20px rgba(14,24,19,.5);
  position: relative;
}
.modal h3 { font-size: 24px; margin-bottom: 6px; }
.modal .sub { color: var(--ink-mute); font-size: 14.5px; margin-bottom: 22px; }
.modal .x {
  position: absolute; top: 14px; right: 16px; border: 0; background: none;
  font-size: 22px; color: var(--ink-mute); cursor: pointer;
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field input {
  width: 100%; padding: 12px 15px; border-radius: 10px;
  border: 1px solid var(--line); background: #FFF; font-size: 15px; font-family: var(--font-text);
}
.field input:focus { outline: 2px solid var(--gold-soft); border-color: var(--gold); }
.form-err { color: var(--danger); font-size: 13.5px; min-height: 18px; margin: 4px 0 10px; }
.modal .swap { text-align: center; font-size: 13.5px; color: var(--ink-mute); margin-top: 16px; }
.modal .swap a { color: var(--copper); font-weight: 600; cursor: pointer; }

/* ---------- collection ---------- */
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.coll-card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 20px; display: flex; gap: 16px; align-items: center;
  transition: box-shadow .2s, border-color .2s;
}
.coll-card:hover { box-shadow: var(--shadow); border-color: var(--line); }
.coll-card img, .coll-card .ph {
  width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex: none;
  background: radial-gradient(circle at 35% 30%, #FFF6E0, var(--gold-soft));
  border: 1px solid var(--line-soft);
}
.coll-card h4 { font-size: 15.5px; line-height: 1.3; }
.coll-card .meta { font-size: 12.5px; color: var(--ink-mute); margin-top: 3px; }
.coll-card .val { font-size: 13.5px; color: var(--gold); font-weight: 650; margin-top: 4px; }

/* ---------- footer ---------- */
footer {
  background: var(--green-deep); color: #B9B29C;
  padding: 56px 0 40px; margin-top: 40px; font-size: 14px;
}
footer .cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
footer a { color: #D8D0B8; text-decoration: none; }
footer a:hover { color: var(--gold-bright); }
footer .brand-name { color: #EDE6D4; }
footer .fine { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(237,230,212,.12); font-size: 12.5px; color: #7E7A68; }

/* ---------- utility ---------- */
.tc { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.muted { color: var(--ink-mute); }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  background: var(--card);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); font-size: 14px;
  padding: 12px 22px; border-radius: 999px; z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.toast.show { opacity: 1; }
