/* ============================================================
   T'doff by OpenSourceGolf — Design System
   Mobile-first, dark golf theme (green + gold)
   ============================================================ */

/* ── Tokens ── */
:root {
  --bg:           #09130f;
  --bg-2:         #0d1c16;
  --surface:      #112a20;
  --surface-2:    #163628;
  --surface-3:    #1c4535;
  --border:       #2a5243;
  --border-light: rgba(215,190,123,.22);
  --text:         #f2ede2;
  --text-2:       #cec9b7;
  --muted:        #9aab96;
  --accent:       #d7be7b;
  --accent-hi:    #ecd28e;
  --accent-low:   rgba(215,190,123,.14);
  --focus:        #f4db9d;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.35);
  --shadow:       0 8px 28px rgba(0,0,0,.45);
  --shadow-lg:    0 20px 60px rgba(0,0,0,.55);
  --radius-xs:    6px;
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    24px;
  --container:    1120px;
  --ease-out:     cubic-bezier(.22,.68,0,1.2);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(28,88,60,.55) 0, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 5%,  rgba(42,96,70,.38) 0, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.64;
  -webkit-font-smoothing: antialiased;
}

/* ── Base ── */
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  line-height: 1.18;
  letter-spacing: -.02em;
  margin-top: 0;
}
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); margin-bottom: .5rem; }
p  { margin-top: 0; }

/* ── Layout helpers ── */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.narrow {
  width: min(100% - 2.5rem, 680px);
  margin-inline: auto;
}
.section        { padding: 5rem 0; }
.section--tight { padding: 3rem 0; }
.stack > * + *  { margin-top: .85rem; }

/* ── Skip link ── */
.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--accent); color: #1a2217;
  padding: .5rem .9rem; border-radius: var(--radius-sm);
  font-weight: 700; z-index: 300;
  transition: top .2s;
}
.skip-link:focus { top: .75rem; }

/* =============================================================
   HEADER
============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  background: rgba(9,19,15,.88);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  font-size: .92rem;
  color: var(--text);
  letter-spacing: .01em;
  line-height: 1.2;
}
.brand-mark {
  height: 28px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

/* Hero watermark — large low-opacity bg decoration */
.hero-watermark {
  position: absolute;
  top: 50%;
  right: -80px;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  object-fit: contain;
  opacity: .055;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Logo floating above phone in hero visual */
.logo-float {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 22px rgba(215,190,123,.55))
    drop-shadow(0 6px 14px rgba(0,0,0,.45));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Hamburger toggle */
.menu-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 38px; height: 36px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Nav */
.site-nav {
  position: absolute;
  top: 4rem; left: 0; right: 0;
  display: none;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(9,19,15,.97);
  backdrop-filter: blur(10px);
}
.site-nav.is-open { display: flex; }
.site-nav a {
  color: var(--text);
  padding: .6rem .8rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: background .15s, color .15s;
}
.site-nav a:hover {
  background: rgba(215,190,123,.1);
  color: var(--accent-hi);
}
.nav-cta {
  margin-top: .5rem !important;
  background: var(--accent) !important;
  color: #1a2217 !important;
  font-weight: 700 !important;
  text-align: center;
  border-radius: 999px !important;
}
.nav-cta:hover { background: var(--accent-hi) !important; }

/* =============================================================
   BUTTONS
============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border-radius: 999px;
  padding: .75rem 1.45rem;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .18s var(--ease-out),
              background .18s ease,
              box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  color: #1a2217;
  box-shadow: 0 4px 16px rgba(215,190,123,.3);
}
.btn-primary:hover {
  background: var(--accent-hi);
  box-shadow: 0 6px 24px rgba(215,190,123,.45);
  color: #1a2217;
}
.btn-secondary {
  background: rgba(255,255,255,.04);
  border-color: rgba(215,190,123,.3);
  color: var(--text);
}
.btn-secondary:hover {
  background: rgba(215,190,123,.1);
  border-color: rgba(215,190,123,.55);
}

/* =============================================================
   HERO
============================================================= */
.hero {
  padding: 4.5rem 0;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(21,80,55,.5) 0, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid rgba(215,190,123,.3);
  background: rgba(215,190,123,.1);
  color: var(--accent);
  border-radius: 999px;
  padding: .3rem .8rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.hero-title { margin-bottom: .8rem; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-lead {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 54ch;
  margin-bottom: 1.75rem;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
}
.hero-chip {
  border: 1px solid rgba(215,190,123,.28);
  background: rgba(215,190,123,.1);
  color: #f0dba8;
  border-radius: 999px;
  padding: .3rem .72rem;
  font-size: .82rem;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* Phone mockup */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.phone-wrap  { position: relative; width: min(220px, 62vw); }
.phone-frame {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: var(--bg-2);
  border: 2px solid var(--border);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.04) inset;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 30%; height: 22px;
  background: var(--bg);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen { width: 100%; height: 100%; object-fit: cover; }
.phone-glow {
  position: absolute;
  bottom: -36px; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 72px;
  background: radial-gradient(ellipse, rgba(215,190,123,.22) 0, transparent 70%);
  filter: blur(10px);
}

/* =============================================================
   TRUST BAR
============================================================= */
.trust-bar {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .87rem;
  font-weight: 600;
  color: var(--text-2);
}
.trust-icon { font-size: 1.2rem; }

/* =============================================================
   SECTION HEADER
============================================================= */
.section-header { margin-bottom: 2.5rem; }
.section-header.center { text-align: center; }
.section-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.section-lead {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 58ch;
  margin: 0;
}
.section-header.center .section-lead { margin-inline: auto; }

/* =============================================================
   FEATURES GRID
============================================================= */
.features-section { background: var(--bg-2); }
.features-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.feature-card {
  background: linear-gradient(145deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease-out), border-color .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215,190,123,.38);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 2.9rem; height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(215,190,123,.12);
  border: 1px solid rgba(215,190,123,.25);
  border-radius: 12px;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.feature-card h3 { color: var(--text); }
.feature-card p  { color: var(--text-2); margin: 0; font-size: .95rem; line-height: 1.55; }

/* =============================================================
   HOW IT WORKS
============================================================= */
.steps-list {
  display: grid;
  gap: 3rem;
  list-style: none;
  margin: 0; padding: 0;
}
.step-item {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem; height: 2.4rem;
  border: 2px solid rgba(215,190,123,.35);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 800;
  font-size: .88rem;
  margin-bottom: .8rem;
}
.step-copy h3 { color: var(--text); font-size: 1.2rem; }
.step-copy p  { color: var(--text-2); margin: 0; line-height: 1.6; }
.step-shot {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* =============================================================
   SCREENSHOTS
============================================================= */
.screens-section { background: var(--bg-2); overflow: hidden; }
.screens-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  padding-bottom: .75rem;
}
.screens-scroll-wrapper::-webkit-scrollbar { height: 4px; }
.screens-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--border); border-radius: 2px;
}
.screens-scroll-track {
  display: flex;
  gap: 1rem;
  width: max-content;
}
.screen-item { flex-shrink: 0; width: 155px; }
.screen-item img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.screen-item img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* =============================================================
   CTA BAND
============================================================= */
.cta-section { padding: 5rem 0; }
.cta-card {
  background: linear-gradient(145deg, var(--surface-3), var(--surface));
  border: 1px solid rgba(215,190,123,.28);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-card::before, .cta-card::after {
  content: "";
  position: absolute;
  width: 80px; height: 80px;
  border: 2px solid rgba(215,190,123,.18);
  pointer-events: none;
}
.cta-card::before {
  top: 12px; left: 12px;
  border-right: 0; border-bottom: 0;
  border-radius: 4px 0 0 0;
}
.cta-card::after {
  bottom: 12px; right: 12px;
  border-left: 0; border-top: 0;
  border-radius: 0 0 4px 0;
}
.cta-card-inner {
  display: grid;
  gap: 1.75rem;
  position: relative; z-index: 1;
}
.cta-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.cta-card h2 { margin-bottom: .6rem; }
.cta-card-lead { color: var(--text-2); margin: 0; font-size: 1rem; }
.cta-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .8rem;
}
.cta-pill {
  border: 1px solid rgba(215,190,123,.3);
  color: #efdbaf;
  background: rgba(215,190,123,.1);
  border-radius: 999px;
  padding: .28rem .65rem;
  font-size: .8rem;
  font-weight: 600;
}

/* =============================================================
   EMAIL SIGNUP
============================================================= */
.signup-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}
.signup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.75rem;
}
.signup-card h2 { margin-bottom: .5rem; }
.signup-card > p { color: var(--text-2); margin-bottom: 1.5rem; }

form input, form textarea {
  width: 100%;
  background: rgba(6,15,12,.8);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
form input:focus, form textarea:focus {
  border-color: rgba(215,190,123,.55);
  outline: none;
  box-shadow: 0 0 0 3px rgba(215,190,123,.14);
}
label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .35rem;
}
.field-hint {
  font-size: .82rem;
  color: var(--muted);
  margin: .35rem 0 0;
}
.form-message { min-height: 1.2rem; font-size: .9rem; margin: 0; }

/* =============================================================
   FOOTER
============================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: rgba(5,12,9,.7);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.footer-brand   { color: var(--text); font-weight: 700; font-size: .95rem; margin: 0; }
.footer-tagline { color: var(--text-2); font-size: .83rem; margin: .2rem 0 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
}
.footer-links a {
  color: var(--text-2);
  font-size: .875rem;
  transition: color .15s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--muted); font-size: .8rem; margin: 0; }

/* =============================================================
   BACK TO TOP
============================================================= */
.back-to-top {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  width: 2.75rem; height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(215,190,123,.38);
  background: rgba(11,30,22,.93);
  color: var(--accent-hi);
  display: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.back-to-top:hover { transform: translateY(-2px); }
.back-to-top.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =============================================================
   CONTACT / INNER PAGES
============================================================= */
.page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.page-hero h1 { margin-bottom: .6rem; }
.page-hero p  { color: var(--text-2); margin: 0; font-size: 1.05rem; }

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2.5rem;
}

.prose h2 { margin-top: 2.5rem; }
.prose p, .prose li { color: var(--text-2); }

/* =============================================================
   SCROLL FADE
============================================================= */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* =============================================================
   RESPONSIVE — TABLET  >= 680px
============================================================= */
@media (min-width: 680px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .screen-item { width: 180px; }
}

/* =============================================================
   RESPONSIVE — DESKTOP  >= 880px
============================================================= */
@media (min-width: 880px) {
  /* Nav */
  .menu-toggle { display: none; }
  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    padding: 0;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    gap: .15rem;
    align-items: center;
  }
  .nav-cta {
    margin-top: 0 !important;
    padding: .45rem 1.1rem !important;
  }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr 300px; gap: 4rem; }
  .phone-wrap { width: 260px; }

  /* Features */
  .features-grid { grid-template-columns: repeat(3, 1fr); }

  /* Steps */
  .steps-list { gap: 4.5rem; }
  .step-item { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .step-item:nth-child(even) .step-shot { order: -1; }

  /* Screens */
  .screens-scroll-wrapper { overflow: visible; }
  .screens-scroll-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: auto;
  }
  .screen-item { width: auto; }

  /* CTA card */
  .cta-card { padding: 3.5rem; }
  .cta-card-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2.5rem;
  }

  /* Signup */
  .signup-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .75rem;
    align-items: flex-end;
  }

  /* Footer */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* =============================================================
   RESPONSIVE — WIDE  >= 1100px
============================================================= */
@media (min-width: 1100px) {
  .screens-scroll-track { grid-template-columns: repeat(7, 1fr); }
}

/* =============================================================
   SUPPORT / FAQ PAGE
============================================================= */
.support-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.jump-link {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
}
.jump-link:hover {
  background: rgba(215,190,123,.12);
  border-color: rgba(215,190,123,.42);
  color: var(--accent);
}

.faq-content {
  padding-bottom: 5rem;
}

/* Category block */
.faq-category {
  margin-bottom: 3.5rem;
}
.faq-category-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.faq-category-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.faq-category-header h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}

/* FAQ list / accordion */
.faq-list {
  margin: 0; padding: 0;
  display: grid;
  gap: .55rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--surface), var(--bg-2));
  overflow: hidden;
  transition: border-color .18s;
}
.faq-item:has(.faq-trigger[aria-expanded="true"]) {
  border-color: rgba(215,190,123,.4);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  padding: 1rem 1.1rem;
  cursor: pointer;
  line-height: 1.4;
  transition: color .15s;
}
.faq-trigger:hover { color: var(--accent-hi); }

/* Animated chevron */
.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.6rem; height: 1.6rem;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: var(--accent-low);
  transition: transform .25s var(--ease-out), background .18s;
}
.faq-icon::before {
  content: "";
  display: block;
  width: 7px; height: 7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .25s var(--ease-out);
}
.faq-trigger[aria-expanded="true"] .faq-icon {
  background: rgba(215,190,123,.22);
  transform: none;
}
.faq-trigger[aria-expanded="true"] .faq-icon::before {
  transform: rotate(-135deg) translate(-1px, -1px);
}

/* Answer panel */
.faq-panel {
  padding: 0 1.1rem 1.1rem;
  color: var(--text-2);
  line-height: 1.65;
}
.faq-panel p   { margin: 0 0 .75rem; }
.faq-panel p:last-child { margin-bottom: 0; }
.faq-panel ol  {
  margin: .5rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: .4rem;
}
.faq-panel li { color: var(--text-2); }
.faq-panel a  { color: var(--accent); }
.faq-panel a:hover { color: var(--accent-hi); }
.faq-panel strong { color: var(--text); }

/* Still-stuck CTA band */
.support-cta-band {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}
.support-cta-inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
.support-cta-inner h2 { margin-bottom: .5rem; }
.support-cta-lead { color: var(--text-2); margin: 0; font-size: 1rem; }

@media (min-width: 680px) {
  .support-cta-inner {
    grid-template-columns: 1fr auto;
    gap: 2rem;
  }
}

/* =============================================================
   OPEN COURSE PAGE
============================================================= */

/* hero */
.oc-hero {
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
  background: radial-gradient(ellipse 120% 80% at 60% 90%, #0d2e1e 0%, var(--bg) 70%);
  position: relative;
  overflow: hidden;
}
.oc-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: flex-start;
}
@media (min-width: 880px) {
  .oc-hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
}
.oc-hero-copy { flex: 1; }

/* badge decoration */
.oc-hero-badge {
  flex-shrink: 0;
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
@media (min-width: 880px) {
  .oc-hero-badge { width: 280px; height: 280px; }
}
.oc-badge-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: .18;
}
.oc-badge-ring--outer { width: 100%; height: 100%; animation: spin 20s linear infinite; }
.oc-badge-ring--mid   { width: 75%;  height: 75%;  animation: spin 14s linear infinite reverse; border-style: dashed; }
.oc-badge-ring--inner { width: 50%;  height: 50%;  animation: spin 9s  linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.oc-badge-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  z-index: 1;
  text-align: center;
}
.oc-badge-title   { font-size: 1.05rem; font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.oc-badge-version { font-size: .75rem; color: var(--text-2); letter-spacing: .05em; text-transform: uppercase; }

/* split layout (What is it + Contribute) */
.oc-split {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 880px) {
  .oc-split { grid-template-columns: 1fr 1fr; align-items: start; gap: 4rem; }
}
.oc-split-copy {}

/* stats grid */
.oc-stat-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (min-width: 880px) {
  .oc-stat-stack { grid-template-columns: 1fr 1fr; }
}
.oc-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.oc-stat-num   { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.oc-stat-label { font-size: .78rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }

/* schema section */
.oc-schema-section  { background: var(--bg-2); }
.oc-example-section { background: var(--bg); }
.oc-schema-block { margin-bottom: 2rem; }
.oc-schema-heading {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: .75rem;
  font-weight: 700;
}
.oc-schema-note {
  font-size: .75rem;
  opacity: .6;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

/* code blocks */
.code-block {
  background: #08110d;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  overflow-x: auto;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: .8rem;
  line-height: 1.7;
  color: #b8e0c5;
  white-space: pre;
}
.code-block--full { font-size: .78rem; }
.code-block code { background: none; border: none; padding: 0; font: inherit; color: inherit; }

/* contribute steps */
.oc-steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.oc-steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.oc-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .15rem;
}
.oc-steps li p { color: var(--text-2); margin: .25rem 0 0; font-size: .9rem; }
.oc-steps code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .1em .4em;
  font-size: .8em;
  font-family: 'SF Mono', Consolas, monospace;
  color: var(--accent-hi);
}

/* contribute aside cards */
.oc-contribute-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.oc-aside-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.oc-aside-card--accent {
  border-color: rgba(215,190,123,.35);
  background: #0d1f16;
}
.oc-aside-heading {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 .75rem;
}
.oc-aside-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  color: var(--text-2);
  font-size: .88rem;
  line-height: 1.5;
}

/* =============================================================
   REDUCED MOTION
============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .fade-up { opacity: 1; transform: none; }
  .logo-float { animation: none; }
}
