/* ==========================================================================
   CoinSage — coin-sage.com
   Numismatic-editorial design system: cream paper, navy ink, gold foil.
   No external requests: fonts are self-hosted (GDPR — no Google Fonts CDN).
   ========================================================================== */

/* ---------- Fonts (variable, latin subset, self-hosted) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #1b2a4a;
  --ink-soft: rgba(27, 42, 74, 0.74);
  --ink-faint: rgba(27, 42, 74, 0.38);
  --paper: #faf7f0;
  --paper-raised: #ffffff;
  --gold: #c9a227;
  --gold-deep: #a5831c;
  --copper: #b4674e;
  --green: #3e7c59;
  --hairline: rgba(27, 42, 74, 0.16);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Newsreader", Georgia, serif;
  --max: 1080px;
  --radius: 14px;
}

/* ---------- Reset-ish ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--gold-deep);
}

/* Subtle paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

/* ---------- Type helpers ---------- */
.kicker {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.kicker::before {
  content: "";
  width: 2.2rem;
  height: 0;
  border-top: 2px dashed var(--gold);
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 600;
}

.accent-i {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-deep);
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */
.site-header {
  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(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
}
.brand svg {
  width: 1.9rem;
  height: 1.9rem;
}
.site-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  font-size: 1rem;
}
.site-nav a {
  text-decoration: none;
}
.site-nav a:not(.btn):hover {
  color: var(--gold-deep);
}
@media (max-width: 640px) {
  .site-nav a.hide-sm {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 0 var(--ink);
  color: inherit;
}
.btn-gold {
  background: linear-gradient(160deg, #dcb944, var(--gold) 55%, var(--gold-deep));
  border-color: var(--gold-deep);
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
}
.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px dashed var(--gold);
  border-radius: 999px;
  padding: 0.45rem 1rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 0;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}
.hero p.lede {
  font-size: 1.3rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 1.5rem 0 2.2rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-faint);
  max-width: 30rem;
}

.hero-phone {
  position: relative;
  justify-self: center;
}
.hero-phone::before {
  /* the scan guide circle, echoed */
  content: "";
  position: absolute;
  inset: -14% -34%;
  border-radius: 50%;
  border: 3px dashed var(--gold);
  opacity: 0.55;
  animation: slow-spin 90s linear infinite;
}
.hero-phone img {
  position: relative;
  width: min(340px, 78vw);
  border-radius: 26px;
  box-shadow: 0 30px 60px -22px rgba(27, 42, 74, 0.45);
}
@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero p.lede {
    margin-inline: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .kicker {
    justify-content: center;
  }
}

/* Load-in reveals */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s cubic-bezier(0.2, 0.65, 0.3, 1) forwards;
}
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.18s; }
.reveal.d3 { animation-delay: 0.28s; }
.reveal.d4 { animation-delay: 0.42s; }
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero-phone::before {
    animation: none;
  }
}

/* ---------- Coin divider ---------- */
.coin-rule {
  border: 0;
  margin: 4.5rem auto 0;
  max-width: var(--max);
  border-top: 2px dashed var(--gold);
  opacity: 0.5;
}

/* ---------- Honesty strip ---------- */
.honesty {
  padding: 4.5rem 0;
}
.honesty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.honesty-grid article {
  border-top: 3px solid var(--gold);
  padding-top: 1.2rem;
}
.honesty-grid h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.honesty-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
@media (max-width: 760px) {
  .honesty-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- How it works (navy band) ---------- */
.how {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem 0 5.5rem;
}
.how .kicker {
  color: var(--gold);
}
.how h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 26ch;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  margin-top: 3.25rem;
  counter-reset: step;
}
.step {
  position: relative;
}
.step figure {
  margin: 0 0 1.4rem;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease;
}
.step:hover figure {
  transform: translateY(-6px) rotate(-0.5deg);
}
.step h3 {
  font-size: 1.3rem;
  color: var(--gold);
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}
.step h3::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--paper);
  opacity: 0.55;
}
.step p {
  color: rgba(250, 247, 240, 0.75);
  font-size: 1.02rem;
  margin: 0.5rem 0 0;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-inline: auto;
  }
}

/* ---------- Features ---------- */
.features {
  padding: 5rem 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.75rem;
}
.feature {
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: 0 10px 24px -18px rgba(27, 42, 74, 0.35);
}
.feature .glyph {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 2px dashed var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.feature p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-soft);
}
@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pricing ---------- */
.pricing {
  padding: 1rem 0 5rem;
}
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-top: 2.75rem;
  align-items: stretch;
}
.plan {
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  border: 1.5px solid var(--ink);
  background: var(--paper-raised);
  display: flex;
  flex-direction: column;
}
.plan.premium {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  position: relative;
  overflow: hidden;
}
.plan.premium::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -25%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed var(--gold);
  opacity: 0.35;
}
.plan h3 {
  font-size: 1.5rem;
}
.plan .price {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  margin: 0.8rem 0 0.1rem;
}
.plan .price small {
  font-size: 1.05rem;
  font-weight: 400;
  opacity: 0.7;
}
.plan .alt-price {
  font-size: 0.98rem;
  opacity: 0.75;
  margin: 0 0 1.2rem;
}
.plan ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 1.02rem;
}
.plan ul li::before {
  content: "◉ ";
  color: var(--gold);
  font-size: 0.8em;
}
.plan .fine {
  margin-top: auto;
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.75;
}
@media (max-width: 760px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Disclaimer band ---------- */
.disclaimer {
  border-block: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--green) 8%, var(--paper));
  padding: 2rem 0;
}
.disclaimer p {
  margin: 0;
  font-style: italic;
  color: var(--green);
  text-align: center;
  font-size: 1.05rem;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 5rem 0;
  max-width: 780px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 1.1rem 0;
}
.faq summary {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--gold-deep);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  color: var(--ink-soft);
  margin: 0.8rem 0 0.3rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(250, 247, 240, 0.82);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.98rem;
}
.site-footer a {
  color: inherit;
  text-decoration-color: var(--gold);
}
.site-footer .cols {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.site-footer .brand {
  color: var(--paper);
  font-size: 1.2rem;
}
.site-footer nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.site-footer .legal-line {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 247, 240, 0.15);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: rgba(250, 247, 240, 0.55);
}

/* ==========================================================================
   Legal / prose pages
   ========================================================================== */
.prose-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}
.prose-page h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  margin-bottom: 0.6rem;
}
.prose-page .meta {
  color: var(--ink-faint);
  font-style: italic;
  margin-bottom: 2.5rem;
}
.lang-switch {
  display: inline-flex;
  gap: 0;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 3rem;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
}
.lang-switch a {
  padding: 0.45rem 1.1rem;
  text-decoration: none;
}
.lang-switch a + a {
  border-left: 1.5px solid var(--ink);
}
.lang-switch a:hover {
  background: var(--gold);
  color: var(--ink);
}
.prose h2 {
  font-size: 1.6rem;
  margin: 2.6rem 0 0.9rem;
  padding-top: 0.8rem;
}
.prose h3 {
  font-size: 1.2rem;
  margin: 1.8rem 0 0.5rem;
}
.prose p,
.prose li {
  color: var(--ink-soft);
}
.prose ul {
  padding-left: 1.3rem;
}
.prose .lang-divider {
  margin: 4.5rem 0 3rem;
  border: 0;
  border-top: 2px dashed var(--gold);
}
.prose address {
  font-style: normal;
  line-height: 1.7;
  color: var(--ink-soft);
}
.prose .card {
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  margin: 1.2rem 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  margin: 1.2rem 0;
}
.prose th,
.prose td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  color: var(--ink-soft);
}
.prose th {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
}
