/* topclosers.club - one stylesheet for the whole site.
   Mobile-first: base styles are for phones, wider screens are added below. */

/* ---------- Fonts (stored on our own site, nothing loaded from Google) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-variable.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

/* ---------- Brand colours ---------- */
:root {
  --black: #0b0b0c;
  --black-raised: #151517;
  --line: #2a2a2d;
  --gold: #c9a227;
  --gold-bright: #e0b93a;
  --text: #f5f1e8;
  --text-muted: #9a9a9a;
  --max: 68rem;
  --narrow: 42rem;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

[hidden] { display: none !important; }

a { color: var(--gold); }
a:hover { color: var(--gold-bright); }

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

h1, h2, h3, h4 {
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.4rem, 8vw, 4.75rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.75rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.25rem; }

.gold { color: var(--gold); }

/* Hidden visually but still read by screen readers */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--gold); color: var(--black); padding: 0.5rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 1.25rem; }
.narrow { max-width: var(--narrow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: 2px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--gold-bright); color: var(--black); transform: translateY(-1px); }
.btn-small { font-size: 0.95rem; padding: 0.55rem 1rem; }

.cta-note { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.75rem; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 12, 0.92);
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-block: 0.75rem;
}
.logo {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 700; font-size: 1.35rem; letter-spacing: 0.04em;
  color: var(--text); text-decoration: none; text-transform: uppercase;
}
.logo:hover { color: var(--text); }
.logo span { color: var(--gold); }

.site-nav { order: 3; width: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.site-nav a {
  color: var(--text-muted); text-decoration: none; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* ---------- Sections ---------- */
.section { padding-block: 4.5rem; border-bottom: 1px solid var(--line); }
.section-raised { background: var(--black-raised); }
.eyebrow {
  color: var(--gold); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1rem;
}
.lead { font-size: 1.25rem; color: var(--text); }
.muted { color: var(--text-muted); }

.pull-quote {
  border-left: 4px solid var(--gold);
  padding-left: 1.25rem; margin: 2rem 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.3; text-transform: uppercase;
}

/* Hero */
.hero { padding-block: 5rem 4.5rem; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 38rem; margin-bottom: 2rem; }

/* "In short" summary box */
.summary { padding-block: 2.5rem; border-bottom: 1px solid var(--line); background: var(--black-raised); }
.summary p { margin: 0; color: var(--text-muted); }
.summary strong { color: var(--gold); }

/* Key facts list (About page) */
.facts { display: grid; gap: 0; margin: 2rem 0; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 0.15rem; padding-block: 0.9rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--gold); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.facts dd { margin: 0; }

/* Page header for inner pages */
.page-hero { padding-block: 4rem 3.5rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 7vw, 4rem); max-width: 18ch; }

/* Testimonial cards */
.testimonials { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.testimonials > li { display: flex; }
.testimonial {
  margin: 0; flex: 1;
  border: 1px solid var(--line); border-top: 3px solid var(--gold);
  background: var(--black-raised); padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem;
}
.testimonial .result {
  font-family: "Oswald", "Arial Narrow", sans-serif; font-weight: 600; font-size: 1.3rem;
  text-transform: uppercase; color: var(--gold); line-height: 1.2; margin: 0;
}
.testimonial blockquote { margin: 0; font-size: 1.05rem; }
.testimonial blockquote p { margin: 0; }
.testimonial figcaption { display: flex; align-items: center; gap: 0.9rem; margin-top: auto; }
.testimonial .avatar {
  width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--line); display: grid; place-items: center; color: var(--text-muted); font-weight: 700;
}
.testimonial .who { line-height: 1.4; font-size: 0.95rem; }
.testimonial .who strong { display: block; color: var(--text); }
.testimonial .who span { color: var(--text-muted); }

.coming-soon {
  border: 1px solid var(--line); border-top: 3px solid var(--gold); background: var(--black-raised);
  padding: 2rem 1.75rem; margin: 0; text-align: center; color: var(--text-muted); font-size: 1.1rem;
}

/* Placeholder marker - remove with the placeholder cards once real testimonials arrive */
.testimonial.placeholder { border-style: dashed; border-top-style: solid; opacity: 0.85; }
.placeholder-tag {
  align-self: flex-start; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px dashed var(--text-muted); color: var(--text-muted); padding: 0.2rem 0.5rem;
}

/* Numbered steps (Waitlist page) */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li { counter-increment: step; border: 1px solid var(--line); background: var(--black); padding: 1.5rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 0.5rem;
  font-family: "Oswald", "Arial Narrow", sans-serif; font-size: 2rem; font-weight: 700; color: var(--gold); line-height: 1;
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { margin: 0; color: var(--text-muted); }

/* Form area */
.form-placeholder {
  border: 1px dashed var(--text-muted); padding: 2.5rem 1.5rem; margin: 2rem 0 1rem;
  display: grid; gap: 1rem; justify-items: start; color: var(--text-muted);
}
.form-placeholder p { margin: 0; }
iframe[data-tally-src] { display: block; margin-top: 2rem; border: 0; }

/* Plain text pages (Privacy) */
.prose h2 { font-size: 1.6rem; margin-top: 3rem; }
.prose h3 { font-size: 1.15rem; margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--line); }
.prose th { color: var(--gold); font-weight: 700; }
.table-wrap { overflow-x: auto; }

/* Three pillars */
.pillars { display: grid; gap: 1rem; margin-top: 2rem; padding: 0; list-style: none; }
.pillar { border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 1.5rem; background: var(--black); }
.pillar h3, .pillar h4 { margin-bottom: 0.5rem; }
.pillar p { margin: 0; color: var(--text-muted); }

/* Two options */
.options { display: grid; gap: 1rem; margin: 2rem 0; }
.option { border: 1px solid var(--line); padding: 1.5rem; }
.option h3 { color: var(--gold); }
.option p:last-child { margin-bottom: 0; }

/* Meet Fred */
.meet { display: grid; gap: 2rem; align-items: center; }
.meet img {
  width: 100%; max-width: 22rem; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%;
  border: 1px solid var(--line);
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding-block: 1.1rem; }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.9rem 0 0; color: var(--text-muted); }

/* Closing call to action */
.final-cta { text-align: center; padding-block: 5rem; }
.final-cta h2 { max-width: 20ch; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 3rem; color: var(--text-muted); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 1.5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .btn, .site-footer .btn:hover { color: var(--black); }
.site-footer .logo { color: var(--text); }

/* ---------- Wider screens ---------- */
@media (min-width: 48rem) {
  .site-nav { order: 0; width: auto; }
  .section { padding-block: 6rem; }
  .hero { padding-block: 8rem 7rem; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .options { grid-template-columns: 1fr 1fr; }
  .meet { grid-template-columns: 22rem 1fr; gap: 3.5rem; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
  .facts div { grid-template-columns: 14rem 1fr; gap: 1.5rem; }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .page-hero { padding-block: 6rem 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
