/* Secret Key — public splash. Marble Gallery theme; tokens.css owns
   the palette, marble.css owns the stone. Light + dark from one set of
   semantic tokens. */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.65;
}
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 1.25rem; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
  letter-spacing: -0.005em;
}

/* Header */
.topbar { border-bottom: var(--hairline) solid var(--line); background: var(--surface-raised); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; }
.wordmark {
  font-family: var(--font-display); font-size: 1.35rem;
  letter-spacing: 0.16em; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.wordmark-mint { font-size: 0.58em; letter-spacing: 0.3em; color: var(--accent-ink); margin-left: 0.5em; vertical-align: middle; }
.topnav { display: flex; align-items: center; gap: 1.5rem; }
.topnav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.topnav a:hover { color: var(--accent-ink); }
/* Discreet admin entry in the footer — unadvertised, but still legible.
   Fading it with opacity put it at 2.6:1; discretion comes from the
   dotted underline and small size instead, not from low contrast. */
.foot-admin {
  color: var(--ink-muted);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.foot-admin:hover { color: var(--accent-ink); text-decoration-style: solid; }

/* Buttons live in ui.css. .topnav a is more specific than .btn, so the
   CTA's label has to be restated or it inherits nav ink on brass. */
.topnav a.btn, .topnav a.btn:hover { color: var(--btn-ink); }

/* Hero */
.hero { text-align: center; padding: 4.5rem 1.25rem 3.5rem; }
.hero-emblem { margin-bottom: 2rem; }
.coin { width: 120px; height: 120px; filter: drop-shadow(0 6px 14px rgba(16,16,20,0.18)); }
.coin-rim { fill: var(--ink); }
.coin-face { fill: var(--surface-raised); }
.keyhole { fill: var(--ink); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.12; }
.lede { max-width: 640px; margin: 1.5rem auto 2.2rem; font-size: 1.1rem; color: var(--ink-muted); }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Vitrine cards */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; padding-bottom: 3.5rem; }
.card {
  border: var(--hairline) solid var(--line); background: var(--surface-raised);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.card p { color: var(--ink-muted); font-size: 0.98rem; }

/* How it works */
.how { background: var(--surface-sunken); border-top: var(--hairline) solid var(--line); border-bottom: var(--hairline) solid var(--line); padding: 3.5rem 0; }
h2 { font-size: 1.9rem; margin-bottom: 1.5rem; }
.steps { max-width: 720px; counter-reset: step; list-style: none; }
.steps li { padding: 0.9rem 0 0.9rem 3.4rem; position: relative; counter-increment: step; border-bottom: var(--hairline) dotted var(--line-strong); }
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.85rem;
  width: 2.2rem; height: 2.2rem; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent); border-radius: 50%;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), var(--shadow-sm);
}

/* Services */
.services { padding: 3.5rem 1.25rem; }

/* Contact / funnel — always the gallery at night. The bronze edges keep
   the block legible when the whole page is already dark. */
.contact {
  background: var(--onyx); color: var(--ivory); padding: 3.5rem 0 4rem;
  border-top: var(--hairline) solid var(--bronze-smoke);
  border-bottom: var(--hairline) solid var(--bronze-smoke);
}
.contact h2 { color: var(--ivory); }
.contact-inner > p { color: #c6c0b3; margin-bottom: 2rem; }
.funnel-form { display: flex; flex-direction: column; gap: 1.1rem; max-width: 720px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
/* Field chrome for the funnel: the contact block is always the gallery
   at night, so the fields carry their own light palette rather than the
   page's. ui-forms.css reads these. */
.funnel-form {
  --field-face: var(--ivory);
  --field-ink: var(--onyx);
  --field-edge: var(--bronze-smoke);
  --field-label: #6b6558;
  /* The funnel's fields are ivory in BOTH themes, so anything drawn on
     them needs a fixed light-surface accent — the page-level
     --accent-ink flips to bright brass in dark and lands at 1.9:1. */
  --field-accent: #7d5f28;
}
/* Fallback layout for labels ui.js has not enhanced (JS off). */
.funnel-form label:not(.field) {
  display: flex; flex-direction: column; gap: 0.35rem;
  font-size: 0.92rem; letter-spacing: 0.04em; color: #ded8cb;
}
.funnel-form .field-block > label { display: block; margin-bottom: 0.4rem; font-size: 0.92rem; letter-spacing: 0.04em; color: #ded8cb; }
.funnel-form label:not(.field) .opt,
.funnel-form .field-block .opt { color: #a8a294; font-size: 0.85em; }
.funnel-form .field-hint { margin-top: -0.6rem; font-size: 0.85rem; color: #a8a294; }
.funnel-form input, .funnel-form select, .funnel-form textarea {
  font-family: inherit; font-size: 1rem; padding: 0.65rem 0.8rem; width: 100%;
  background: var(--field-face); color: var(--field-ink);
  border: var(--hairline) solid var(--field-edge); border-radius: var(--radius-sm);
}
.funnel-form input:focus, .funnel-form select:focus, .funnel-form textarea:focus {
  outline: none; border-color: var(--brass); box-shadow: var(--ring);
}
.funnel-form textarea { resize: vertical; }
.funnel-form .btn { align-self: flex-start; }
.hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }
#lead-status { min-height: 1.4em; font-size: 0.95rem; }
#lead-status.ok { color: #9fd7ae; }
#lead-status.err { color: #e6a9a9; }

/* Footer */
.footer { border-top: var(--hairline) solid var(--line); background: var(--surface-raised); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding: 1.2rem 1.25rem 2rem; color: var(--ink-muted); font-size: 0.9rem; }
.foot-tag { font-family: var(--font-display); font-style: italic; }

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .topnav a:not(.btn) { display: none; }
}
