/* ==========================================================================
   The Inner Circle — InnerCircleTips.com
   Design tokens copied verbatim from the design handoff.
   ========================================================================== */

:root {
  --ink: #070B09;          /* page background */
  --surface: #0E1512;      /* cards */
  --turf: #2BE38A;         /* electric turf — crowd/energy accent */
  --gold: #D4AF37;         /* prestige gold — Inner Circle + primary CTA (kept scarce) */
  --cyan: #35D6FF;         /* silk pop */
  --magenta: #FF3D9A;      /* silk pop */
  --text: #F4F7F5;         /* text high */
  --muted: #9DB0A8;        /* text muted */

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  font-family: var(--font-body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img { max-width: 100%; }

/* Skip link — a11y */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font: 600 13px var(--font-display);
  z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* Shared type helpers ------------------------------------------------------ */
.eyebrow {
  font: 600 11px var(--font-mono);
  letter-spacing: .18em;
  color: var(--turf);
  margin: 0;
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--cyan { color: var(--cyan); }

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 90px 40px;
}
.section--how { padding-top: 110px; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}
.section-head h2 {
  margin: 0;
  font: 700 38px/1.1 var(--font-display);
  letter-spacing: -.015em;
}

.chip-18 {
  font: 600 10px var(--font-mono);
  border: 1px solid rgba(244,247,245,.35);
  border-radius: 4px;
  padding: 2px 6px;
}

/* Gold buttons ------------------------------------------------------------- */
.btn-gold {
  display: inline-block;
  font: 600 13.5px var(--font-display);
  color: var(--ink);
  background: var(--gold);
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: filter .15s ease;
}
.btn-gold:hover { color: var(--ink); filter: brightness(1.06); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Align header content to the same 1200px band as the sections below, so
     the logo (left) and CTA (right) share the page's margins on wide screens. */
  padding: 14px max(40px, calc(50% - 560px));
  background: rgba(7,11,9,.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244,247,245,.07);
}
.logo-lockup { display: flex; align-items: center; gap: 10px; }
.logo-ring {
  width: 26px; height: 26px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  flex: none;
}
.logo-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
.logo-word { font: 600 13px var(--font-display); letter-spacing: .14em; }

.site-nav { display: flex; gap: 26px; }
.site-nav a {
  font: 500 11px var(--font-mono);
  letter-spacing: .08em;
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn-gold { font-size: 12.5px; padding: 9px 18px; border-radius: 7px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 780px;
  overflow: hidden;
  background: var(--ink);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-content {
  position: absolute;
  /* Left edge aligned to the 1200px content band (matches header + sections). */
  left: max(40px, calc(50% - 560px));
  top: 46%;
  transform: translateY(-50%);
  width: 460px;
  max-width: calc(100% - 80px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2;
}
.hero-eyebrow {
  font: 600 11px var(--font-mono);
  letter-spacing: .18em;
  color: var(--turf);
}
.hero h1 {
  margin: 0;
  font: 700 47px/1.05 var(--font-display);
  letter-spacing: -.02em;
}
.hero h1 .gold { color: var(--gold); }
.hero-sub {
  margin: 0;
  max-width: 400px;
  font: 400 15px/1.6 var(--font-body);
  color: var(--muted);
}

.cta-cluster { display: flex; align-items: center; gap: 24px; margin-top: 4px; }
.qr-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr-chip {
  background: var(--text);
  border-radius: 14px;
  padding: 12px 12px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 0 1.5px rgba(212,175,55,.6), 0 0 32px rgba(212,175,55,.2);
}
.qr-chip img { display: block; width: 110px; height: 110px; }
.qr-caption {
  font: 600 9px var(--font-mono);
  color: var(--ink);
  letter-spacing: .08em;
}
.qr-invite {
  font: 600 11.5px var(--font-mono);
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 7px;
  padding: 7px 12px;
  white-space: nowrap;
}
.qr-invite:hover { color: var(--gold); border-color: rgba(212,175,55,.8); }

.cta-side { display: flex; flex-direction: column; gap: 12px; max-width: 180px; }
.cta-side .btn-gold { padding: 12px 20px; }
.cta-help { font: 400 11.5px/1.55 var(--font-body); color: var(--muted); }
.cta-link {
  font: 400 11.5px var(--font-body);
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-compliance {
  font: 400 10px var(--font-mono);
  color: rgba(157,176,168,.6);
}

/* Tote ticker */
.ticker {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 34px;
  border-top: 1px solid rgba(43,227,138,.18);
  background: rgba(14,21,18,.75);
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 2;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ictick 36s linear infinite;
}
.ticker-track span {
  font: 500 11px var(--font-mono);
  color: var(--muted);
  padding-right: 60px;
}
@keyframes ictick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   How it works
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.step-card {
  background: var(--surface);
  border: 1px solid rgba(244,247,245,.07);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-top { display: flex; justify-content: space-between; align-items: center; }
.step-num { font: 600 11px var(--font-mono); color: var(--turf); }
.step-num--gold { color: var(--gold); }
.step-title { font: 600 19px var(--font-display); }
.step-card p { margin: 0; font: 400 14px/1.6 var(--font-body); color: var(--muted); }

/* geometric icons */
.icon-ring {
  width: 30px; height: 30px;
  border: 1.5px solid rgba(43,227,138,.6);
  border-radius: 50%;
  display: grid; place-items: center;
}
.icon-ring .dot { width: 7px; height: 7px; background: var(--turf); border-radius: 50%; }
.icon-dots { display: flex; align-items: center; gap: 4px; }
.icon-dots span { width: 6px; height: 6px; border-radius: 50%; }
.icon-ring--goldouter {
  width: 30px; height: 30px;
  border: 1.5px solid rgba(212,175,55,.35);
  border-radius: 50%;
  display: grid; place-items: center;
}
.icon-ring--goldouter .inner {
  width: 16px; height: 16px;
  border: 1.5px solid rgba(212,175,55,.8);
  border-radius: 50%;
  display: grid; place-items: center;
}
.icon-ring--goldouter .inner .dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }
.icon-ring--goldglow {
  width: 30px; height: 30px;
  border: 1.5px solid rgba(212,175,55,.7);
  border-radius: 50%;
  display: grid; place-items: center;
}
.icon-ring--goldglow .dot {
  width: 7px; height: 7px; background: var(--gold); border-radius: 50%;
  box-shadow: 0 0 10px rgba(212,175,55,.8);
}

/* ==========================================================================
   Outer vs Inner
   ========================================================================== */
.circles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.circle-card {
  border-radius: 14px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.circle-card--outer {
  background: var(--surface);
  border: 1px solid rgba(43,227,138,.25);
}
.circle-card--inner {
  background: linear-gradient(160deg, #121208, #0E1512 60%);
  border: 1px solid rgba(212,175,55,.5);
  box-shadow: 0 0 44px rgba(212,175,55,.08);
}
.circle-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.circle-title { font: 600 24px var(--font-display); }
.circle-title--gold { color: var(--gold); }
.badge {
  font: 600 10px var(--font-mono);
  color: var(--turf);
  border: 1px solid rgba(43,227,138,.4);
  border-radius: 5px;
  padding: 4px 8px;
  white-space: nowrap;
}
.badge--gold { color: var(--gold); border-color: rgba(212,175,55,.5); }

.bullets { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.bullets li { display: flex; gap: 12px; align-items: baseline; }
.bullets .sq {
  width: 7px; height: 7px; background: var(--turf); border-radius: 2px;
  flex: none; transform: translateY(-1px);
}
.bullets--gold .sq { background: var(--gold); }
.bullets li span:last-child { font: 400 14.5px/1.55 var(--font-body); color: var(--text); }

.inner-note {
  font: 400 12.5px/1.5 var(--font-body);
  color: var(--muted);
  border-top: 1px solid rgba(212,175,55,.2);
  padding-top: 16px;
}

/* ==========================================================================
   The edge
   ========================================================================== */
.edge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 44px;
}
.edge-col { display: flex; flex-direction: column; gap: 12px; }
.edge-num { font: 600 12px var(--font-mono); color: var(--turf); }
.edge-num--gold { color: var(--gold); }
.edge-col h3 { margin: 0; font: 600 21px var(--font-display); }
.edge-col p { margin: 0; font: 400 14px/1.6 var(--font-body); color: var(--muted); }

/* ==========================================================================
   Coaching
   ========================================================================== */
.coaching-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
  align-items: center;
}
.coaching-copy { display: flex; flex-direction: column; gap: 18px; }
.coaching-copy h2 { margin: 0; font: 700 38px/1.1 var(--font-display); letter-spacing: -.015em; }
.coaching-copy p { margin: 0; font: 400 15.5px/1.65 var(--font-body); color: var(--muted); }
.channel-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.channel-row { display: flex; gap: 12px; align-items: baseline; }
.channel-name { font: 600 11px var(--font-mono); color: var(--cyan); flex: none; }
.channel-desc { font: 400 13.5px var(--font-body); color: var(--muted); }

.ladder-card {
  background: var(--surface);
  border: 1px solid rgba(244,247,245,.07);
  border-radius: 14px;
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.ladder-label { font: 600 11px var(--font-mono); letter-spacing: .14em; color: var(--muted); }
.ladder-chips { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ladder-arrow { color: var(--muted); }
.role {
  font: 600 12px var(--font-mono);
  border-radius: 7px;
  padding: 8px 13px;
}
.role--member { color: var(--muted); border: 1px solid rgba(157,176,168,.45); }
.role--student { color: var(--turf); border: 1px solid rgba(43,227,138,.55); }
.role--graduate { color: var(--cyan); border: 1px solid rgba(53,214,255,.55); }
.role--inner {
  color: var(--ink); background: var(--gold);
  padding: 9px 13px;
  box-shadow: 0 0 18px rgba(212,175,55,.35);
}
.ladder-card p { margin: 0; font: 400 13px/1.6 var(--font-body); color: var(--muted); }

/* ==========================================================================
   Proof
   ========================================================================== */
.proof-head { margin-bottom: 40px; }
.proof-head p { margin: 0; font: 400 15px/1.6 var(--font-body); color: var(--muted); }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.proof-item { display: flex; flex-direction: column; gap: 10px; }
.proof-slot {
  height: 340px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(244,247,245,.08);
  display: grid;
  place-items: center;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(244,247,245,.015) 0 12px, transparent 12px 24px),
    var(--surface);
}
.proof-slot--gold { border-color: rgba(212,175,55,.25); }
.proof-slot img { width: 100%; height: 100%; object-fit: cover; }
.proof-placeholder {
  font: 400 12px/1.6 var(--font-mono);
  color: rgba(157,176,168,.55);
  padding: 0 24px;
  max-width: 240px;
}
.proof-caption { font: 500 10.5px var(--font-mono); color: var(--muted); }
.proof-caption--gold { color: var(--gold); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 840px; }
.faq details {
  border-bottom: 1px solid rgba(244,247,245,.09);
  padding: 20px 0;
}
.faq summary {
  font: 600 16px var(--font-display);
  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: '+';
  color: var(--muted);
  font: 400 20px var(--font-mono);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; font: 400 14px/1.65 var(--font-body); color: var(--muted); }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 700px 380px at 50% 60%, rgba(212,175,55,.13), rgba(7,11,9,0) 70%),
    #0A0F0C;
  border-top: 1px solid rgba(244,247,245,.06);
}
.final-cta-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 110px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}
.final-cta h2 {
  margin: 0;
  font: 700 46px/1.06 var(--font-display);
  letter-spacing: -.02em;
}
.final-cta h2 .gold { color: var(--gold); }
.final-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.qr-chip--lg { border-radius: 16px; padding: 14px 14px 10px; box-shadow: 0 0 0 1.5px rgba(212,175,55,.6), 0 0 44px rgba(212,175,55,.22); }
.qr-chip--lg img { width: 160px; height: 160px; }
.qr-chip--lg .qr-caption { font-size: 10px; }
.final-cta-actions .btn-gold { font-size: 15px; padding: 14px 30px; }
.final-invite { font: 500 11px var(--font-mono); color: var(--muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(244,247,245,.07);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-ring {
  width: 22px; height: 22px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  flex: none;
}
.footer-ring .dot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
.footer-word { font: 600 12px var(--font-display); letter-spacing: .12em; }
.footer-domain { font: 500 10px var(--font-mono); color: var(--muted); }
.footer-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-links a { font: 500 11px var(--font-mono); text-decoration: none; }
.footer-links a.muted { color: var(--muted); }
.footer-legal {
  margin: 0;
  font: 400 11.5px/1.7 var(--font-body);
  color: rgba(157,176,168,.7);
  max-width: 820px;
}

/* ==========================================================================
   Scroll reveals — the .is-hidden class is applied by JS only (progressive
   enhancement). With no JS, or under prefers-reduced-motion, content stays
   visible. Never default-hide in CSS.
   ========================================================================== */
.reveal.is-hidden {
  opacity: 0;
  transform: translateY(16px);
}
.reveal {
  transition: opacity .7s ease, transform .7s ease;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet / small desktop */
@media (max-width: 1040px) {
  .section { padding: 80px 32px; }
  .section--how { padding-top: 96px; }
}

/* Narrow — mobile hero bespoke pass */
@media (max-width: 760px) {
  .site-header { padding: 12px 20px; }
  .site-nav { display: none; }              /* declutter; anchors still reachable via page flow */
  .logo-word { font-size: 12px; }
  .header-actions .btn-gold { padding: 10px 16px; }

  /* Narrow the section gutters and force single-column grids. The prototype's
     minmax(320px) floor is wider than a small phone minus padding, so pin to
     1fr (no minimum) — nothing can overflow at any width. */
  .section { padding-left: 20px; padding-right: 20px; }
  .card-grid,
  .circles-grid,
  .edge-grid,
  .coaching-grid,
  .proof-grid { grid-template-columns: 1fr; }

  /* Hero: stack text full-width at the top; the interactive composition is
     kept — centred and revealed in the lower half as you read down (a partial
     view). The QR (pointless on-device) is dropped in favour of the tap button. */
  .hero {
    height: auto;
    min-height: 840px;
    padding: 28px 20px 0;
    display: block;
  }
  .hero-content {
    /* relative (not static) so z-index keeps the text above the canvas, whose
       dark top-scrim would otherwise paint over it */
    position: relative;
    z-index: 2;
    transform: none;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    gap: 18px;
  }
  .hero h1 { font-size: 34px; line-height: 1.08; }
  .hero-sub { font-size: 15px; max-width: 100%; }
  .cta-cluster { flex-direction: column; align-items: stretch; gap: 16px; }
  .qr-col { display: none; }                /* drop the QR on phones */
  .cta-side { max-width: 100%; }
  .cta-side .btn-gold { padding: 15px 20px; font-size: 15px; }  /* ≥44px hit target */
  .hero-canvas { opacity: 1; }

  h1, .section-head h2, .coaching-copy h2 { overflow-wrap: break-word; }
  .section-head h2, .coaching-copy h2 { font-size: 28px; }
  .final-cta h2 { font-size: 30px; }
  .final-cta-inner { padding: 80px 20px; }

  .circle-card { padding: 26px; }
  .ladder-card { padding: 30px 24px; }
  .coaching-grid { gap: 36px; }
  .edge-grid { gap: 32px; }

  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero h1 { font-size: 30px; }
  .footer-links { gap: 12px; }
}

/* Motion preferences — freeze animation, kill marquee & smooth scroll */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .reveal { transition: none; }
  .btn-gold { transition: none; }
}
