/* ==========================================================================
   Pure Collectors — design system
   ========================================================================== */

/* EB Garamond (SIL OFL) — an old-style serif chosen to sit alongside the
   Goudy Old Style wordmark in the logo. Latin subset only, variable 400–700. */
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/eb-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  /* Surfaces */
  --bg:            #070a10;
  --bg-glow:       #0e1626;
  --surface:       #0e1420;
  --surface-2:     #141c2b;
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text:    #e9eef6;
  --muted:   #97a4b8;
  --subtle:  #6d7a8d;

  /* Brand — taken from the droplet in the logo */
  --accent:        #6cc0f5;
  --accent-strong: #34a2ec;
  --accent-ink:    #05243a;
  --accent-soft:   rgba(108, 192, 245, 0.12);
  --accent-line:   rgba(108, 192, 245, 0.32);

  /* Type */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-display: "EB Garamond", "Goudy Old Style", Garamond,
                  "Times New Roman", serif;

  /* Metrics */
  --container: 1140px;
  --radius:    14px;
  --radius-lg: 22px;
  --header-h:  78px;
  --logo-ar:   2.774; /* intrinsic aspect ratio of logo.svg */

  --shadow:    0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--accent); text-decoration: none; }
a:hover { color: #9ed6fb; }

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0 0 .5em;
  line-height: 1.1;
  letter-spacing: -0.005em;
  font-weight: 500;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 4.1vw, 4.5rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3.1rem); }
h3 { font-size: clamp(1.32rem, 1.15rem + 0.7vw, 1.6rem); }
h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 650; }
p  { margin: 0 0 1.15em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ------------------------------------------------------------- layout -- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.section           { padding-block: clamp(44px, 5vw, 78px); }
.section--tight    { padding-block: clamp(28px, 3.2vw, 48px); }
.section--flush-top{ padding-top: 0; }
.section--alt   { background: linear-gradient(180deg, transparent, rgba(255,255,255,.022) 12%, rgba(255,255,255,.022) 88%, transparent); }

/* Centred as a column, but the text inside stays left-aligned unless
   .center is added too. Keeps interior pages from sitting off to one side. */
.narrow  { max-width: 760px; margin-inline: auto; }
.center  { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 20px; border-radius: 0 0 10px 0; font-weight: 650;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------- header -- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(7, 10, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img {
  width: clamp(138px, 15vw, 172px);
  aspect-ratio: var(--logo-ar);
  height: auto;
}

.nav { display: flex; align-items: center; gap: 6px; }

/* :not(.btn) matters — a bare `.nav a` rule outranks `.btn--primary`
   and would repaint the CTA label in muted grey. */
.nav a:not(.btn) {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 550;
  padding: 9px 14px;
  border-radius: 9px;
  transition: color .16s ease, background-color .16s ease;
}
.nav a:not(.btn):hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav a:not(.btn)[aria-current="page"] { color: var(--text); background: var(--accent-soft); }

.nav .btn { margin-left: 8px; }

.nav-ig {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 9px; color: var(--muted);
  transition: color .16s ease, background-color .16s ease;
}
.nav-ig:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-ig svg { width: 19px; height: 19px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open  { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 22px 22px;
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { padding: 13px 12px; font-size: 1.02rem; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
  .nav-ig { width: auto; justify-content: flex-start; padding: 13px 12px; gap: 10px; border-radius: 9px; }
  .nav-ig::after { content: "Instagram"; font-size: 1.02rem; font-weight: 550; }
}

/* ------------------------------------------------------------ buttons -- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit; font-size: .97rem; font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease,
              border-color .16s ease, box-shadow .16s ease, color .16s ease;
}
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: var(--accent-ink);
  box-shadow: 0 8px 22px rgba(52, 162, 236, 0.26);
}
.btn--primary:hover {
  color: var(--accent-ink);
  box-shadow: 0 12px 30px rgba(52, 162, 236, 0.36);
}

.btn--ghost {
  background: rgba(255,255,255,.04);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255,255,255,.09); color: var(--text); }

.btn--lg { padding: 15px 30px; font-size: 1.02rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* --------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  padding-block: clamp(36px, 5vw, 72px) clamp(16px, 2vw, 28px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -30% -10% auto;
  height: 620px;
  background: radial-gradient(60% 60% at 50% 40%, var(--bg-glow), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.hero-media { position: relative; }
.hero-media::after {
  content: "";
  position: absolute; left: 50%; bottom: 6%;
  width: 66%; height: 44px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(108,192,245,.18), transparent);
  filter: blur(14px);
  pointer-events: none;
}
/* The source photo has a baked-in near-black backdrop that would otherwise
   read as a visible rectangle. Feather all four edges so it dissolves into
   the page instead. */
.hero-media img {
  /* Fade stops sit just outside the card fan (which spans ~15–86% across
     and ~13–90% down) so the artwork itself is never clipped. */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, #000 13%, #000 87%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 11%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,  transparent 0%, #000 13%, #000 87%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 11%, #000 92%, transparent 100%);
  mask-composite: intersect;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 560px; margin-inline: auto; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 20px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  color: var(--accent);
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(108,192,245,.16);
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
  color: var(--muted);
  max-width: 56ch;
}
.center .lede { margin-inline: auto; }

/* -------------------------------------------------------------- stats -- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--surface); padding: 24px 22px; }
.stat dt {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 680; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--text);
  margin-bottom: 4px;
}
.stat dd {
  margin: 0; font-size: .88rem; color: var(--subtle);
  letter-spacing: .02em; text-transform: uppercase; font-weight: 600;
}

/* -------------------------------------------------------------- cards -- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .18s ease, transform .18s ease, background-color .18s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: .97rem; }

.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 18px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  color: var(--accent);
}
.card-icon svg { width: 22px; height: 22px; }

/* Numbered benefit list */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.benefits li {
  display: grid; grid-template-columns: 32px 1fr; gap: 16px; align-items: start;
}
.benefits .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); font-size: .85rem; font-weight: 700;
}
.benefits strong { display: block; margin-bottom: 2px; }
.benefits p { margin: 0; color: var(--muted); font-size: .97rem; }

/* --------------------------------------------------------- fee table -- */

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  background: var(--surface);
}

table.fees {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-variant-numeric: tabular-nums;
}
table.fees caption { padding: 18px 22px 0; text-align: left; color: var(--subtle); font-size: .9rem; }
table.fees th, table.fees td { padding: 15px 22px; text-align: left; }
table.fees thead th {
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--subtle); font-weight: 650;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.025);
  white-space: nowrap;
}
table.fees tbody tr + tr td { border-top: 1px solid var(--border); }
table.fees tbody tr:hover td { background: rgba(255,255,255,.03); }
table.fees td:first-child { font-weight: 600; white-space: nowrap; }
table.fees .payout { color: var(--accent); font-weight: 680; }

/* Below this width a scrolling table hides the payout column, which is the
   number people came for. Stack each row into its own card instead. */
@media (max-width: 660px) {
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  table.fees { display: block; min-width: 0; }
  /* display:block on the table leaves the caption shrink-wrapped, which
     wraps it to one word per line. Force it back to full width. */
  table.fees caption { display: block; width: 100%; padding: 0 2px 14px; }
  table.fees thead {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  table.fees tbody { display: block; }
  table.fees tbody tr {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 0 10px;
  }
  table.fees tbody tr + tr { margin-top: 10px; }
  table.fees tbody tr + tr td { border-top: 0; }
  table.fees tbody tr:hover td { background: none; }
  table.fees td {
    display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
    padding: 7px 20px; border: 0;
  }
  table.fees td::before {
    content: attr(data-label);
    color: var(--subtle);
    font-size: .76rem; font-weight: 650;
    letter-spacing: .05em; text-transform: uppercase;
  }
  table.fees td:first-child {
    display: block;
    font-size: 1.12rem; font-weight: 650;
    padding: 8px 20px 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
  }
  table.fees td:first-child::before { content: none; }
}

.note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 18px; padding: 16px 18px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  color: var(--muted); font-size: .95rem;
}
.note svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; margin-top: 3px; }
.note p { margin: 0; }
.note strong { color: var(--text); }

/* Worked example */
.example { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.example > div { background: var(--surface); padding: 22px; }
.example .k { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--subtle); font-weight: 650; margin-bottom: 6px; }
.example .v { font-size: 1.5rem; font-weight: 680; letter-spacing: -0.025em; }
.example .v.hl { color: var(--accent); }

/* ---------------------------------------------------------------- faq -- */

.faq { display: grid; gap: 12px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .18s ease;
}
.faq details[open] { border-color: var(--accent-line); }
.faq details:hover { border-color: var(--border-strong); }

.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 620; font-size: 1.05rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto;
  width: 11px; height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq .answer { padding: 0 24px 22px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- form -- */

.form { display: grid; gap: 18px; }

.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field label { font-size: .9rem; font-weight: 620; color: var(--text); }
.field .req { color: var(--accent); }
.field .hint { font-size: .84rem; color: var(--subtle); }

.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 15px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  color: var(--text);
  font: inherit; font-size: 1rem;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--subtle); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,192,245,.15);
  background: var(--surface);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #f0736a; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status { display: none; padding: 15px 18px; border-radius: var(--radius); font-size: .96rem; }
.form-status[data-state="ok"]   { display: block; background: rgba(74,201,155,.12); border: 1px solid rgba(74,201,155,.4); color: #7fe0bd; }
.form-status[data-state="err"]  { display: block; background: rgba(240,115,106,.12); border: 1px solid rgba(240,115,106,.4); color: #ffa79f; }
.form-status[data-state="busy"] { display: block; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }

/* ---------------------------------------------------------- cta panel -- */

.cta {
  position: relative;
  background: linear-gradient(155deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 60px);
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute; inset: -60% 20% auto;
  height: 300px;
  background: radial-gradient(closest-side, rgba(108,192,245,.16), transparent);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { margin-bottom: .4em; }
.cta p { color: var(--muted); max-width: 54ch; margin-inline: auto; }

/* ------------------------------------------------------------- footer -- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 48px 34px;
  margin-top: clamp(40px, 6vw, 72px);
  color: var(--subtle);
  font-size: .93rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.footer-brand img { width: 176px; aspect-ratio: var(--logo-ar); height: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 40ch; margin-bottom: 16px; }

.site-footer h4 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text); margin-bottom: 14px; font-weight: 650;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer ul a { color: var(--subtle); }
.site-footer ul a:hover { color: var(--text); }

.footer-social { display: inline-flex; align-items: center; gap: 9px; color: var(--subtle); }
.footer-social:hover { color: var(--text); }
.footer-social svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* Stacks the Instagram and email links rather than letting them collide. */
.footer-contact { display: grid; gap: 11px; justify-items: start; }

.footer-bottom {
  padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: .87rem;
}

/* -------------------------------------------------------------- misc -- */

.partner {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--subtle); font-size: .92rem;
}
.partner strong { color: var(--text); font-weight: 620; }

.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
