/* RBAG / The Come Up — DARK THEME, italic serif headlines (OG look) */

:root {
  --black: #000;
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --bg-card: #1a1a1a;
  --white: #ffffff;
  --bone: #f5f4f0;
  --gray-50: #1f1f1f;
  --gray-100: #2a2a2a;
  --gray-200: #3a3a3a;
  --gray-300: #555555;
  --gray-500: #888888;
  --gray-700: #c0c0c0;
  --gray-900: #ededed;
  --line: #2a2a2a;
  --line-soft: #1f1f1f;
  --accent: #ffffff;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--white); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* type — italic serif headlines, mono captions, Inter body */
.serif, h1, h2, .h-serif { font-family: 'Playfair Display', Georgia, serif; font-style: italic; letter-spacing: -0.02em; font-weight: 700; color: var(--white); }
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 0.95; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1; }
h3 { font-size: 1.5rem; line-height: 1.15; font-weight: 700; font-style: normal; font-family: 'Inter', sans-serif; letter-spacing: -0.01em; color: var(--white); }
.mono, .caption { font-family: 'Space Grotesk', 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem; font-weight: 500; color: var(--gray-500); }

/* layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.divider { height: 1px; background: var(--line); }

/* header */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; max-width: var(--max); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--white); }
.brand-mark { width: 32px; height: 32px; background: var(--white); color: var(--black); display: grid; place-items: center; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; }
.nav-links { display: none; gap: 28px; }
.nav-links a { font-size: 0.92rem; color: var(--gray-700); transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-links .academy { color: var(--white); font-weight: 600; }
.nav-cta { display: none; padding: 10px 20px; background: var(--white); color: var(--black) !important; font-size: 0.85rem; font-weight: 600; }
.nav-mobile-toggle { display: block; background: transparent; border: 1px solid var(--gray-300); color: var(--white); }
.nav-mobile { display: none; padding: 16px 24px; background: var(--bg-elev); border-top: 1px solid var(--line); }
.nav-mobile a { display: block; padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--line); color: var(--gray-700); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: block; }
@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-block; }
  .nav-mobile-toggle { display: none; }
}

/* buttons */
.btn { display: inline-block; padding: 16px 32px; font-weight: 600; font-size: 0.95rem; transition: all 0.2s; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--white); color: var(--black); }
.btn-primary:hover { background: var(--gray-700); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-lg { padding: 20px 40px; font-size: 1rem; }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: var(--gray-700); }

/* hero */
.hero { padding: 80px 24px 96px; max-width: var(--max); margin: 0 auto; }
.hero .caption, .hero .eyebrow { color: var(--gray-500); margin-bottom: 24px; display: block; }
.hero h1 { margin-bottom: 32px; max-width: 16ch; }
.hero p { font-size: 1.15rem; max-width: 56ch; color: var(--gray-700); margin-bottom: 40px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

/* marquee */
.marquee { background: var(--white); color: var(--black); padding: 24px 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-block; animation: marquee 28s linear infinite; font-family: 'Playfair Display', serif; font-style: italic; font-size: 2rem; }
.marquee-track span { margin: 0 32px; opacity: 0.9; }
.marquee-track .dot { opacity: 0.4; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* sections */
.section-head { margin-bottom: 56px; }
.section-head .caption { color: var(--gray-500); margin-bottom: 16px; display: block; }
.section-head h2 { max-width: 22ch; }
.section-head p { margin-top: 20px; max-width: 56ch; color: var(--gray-700); font-size: 1.1rem; }

/* inventory grid */
.inv-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 640px) { .inv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .inv-grid { grid-template-columns: repeat(3, 1fr); } }
.car-card { background: var(--bg-card); border: 1px solid var(--line); transition: all 0.25s; cursor: pointer; overflow: hidden; }
.car-card:hover { border-color: var(--white); transform: translateY(-2px); }
.car-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-elev); }
.car-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.car-card:hover .car-card-img img { transform: scale(1.04); }
.car-tag { position: absolute; top: 16px; left: 16px; background: var(--white); color: var(--black); padding: 6px 12px; font-family: 'Space Grotesk', monospace; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 600; }
.car-num { position: absolute; bottom: 16px; right: 20px; color: var(--white); font-family: 'Playfair Display', serif; font-style: italic; font-size: 2rem; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.car-body { padding: 24px; }
.car-body .yr { color: var(--gray-500); font-family: 'Space Grotesk', monospace; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.car-body h3 { margin: 6px 0 12px; font-size: 1.5rem; font-style: italic; font-family: 'Playfair Display', serif; font-weight: 700; color: var(--white); }
.car-specs { color: var(--gray-700); font-size: 0.9rem; margin-bottom: 16px; }
.car-specs span { margin-right: 12px; }
.car-price { display: flex; align-items: baseline; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); }
.car-price .price { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.6rem; font-weight: 700; color: var(--white); }
.car-price .mo { color: var(--gray-500); font-size: 0.85rem; }
.car-card a.view { display: block; text-align: center; padding: 14px; background: var(--white); color: var(--black); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; }
.car-card a.view:hover { background: var(--gray-700); }

/* values grid */
.values-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 760px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value .caption { color: var(--gray-500); display: block; margin-bottom: 12px; }
.value h3 { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; font-size: 1.6rem; margin-bottom: 12px; color: var(--white); }
.value p { color: var(--gray-700); }

/* visit / contact — INVERTED block (white on dark site for contrast) */
.visit { background: var(--white); color: var(--black); padding: 96px 0; }
.visit .caption { color: var(--gray-300); }
.visit h2 { color: var(--black); }
.visit-inner { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 880px) { .visit-inner { grid-template-columns: 1.1fr 1fr; gap: 80px; } }
.visit p { margin-bottom: 32px; max-width: 48ch; color: #444; font-size: 1.1rem; }
.visit dl { display: grid; gap: 24px; margin-bottom: 32px; }
.visit dt { color: #777; margin-bottom: 6px; font-family: 'Space Grotesk', monospace; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; }
.visit dd { font-size: 1.05rem; line-height: 1.45; color: var(--black); }
.visit .btn-white { background: var(--black); color: var(--white); }
.visit .btn-white:hover { background: #222; }
.visit .btn-outline { color: var(--black); border-color: var(--black); }
.visit .btn-outline:hover { background: var(--black); color: var(--white); }
.visit-map { aspect-ratio: 4/3; background: #eee; border: 1px solid #ddd; }
.visit-map iframe { width: 100%; height: 100%; border: none; }

/* footer */
footer { background: var(--bg); border-top: 1px solid var(--line); padding: 64px 24px 32px; color: var(--gray-700); }
.foot-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 720px) { .foot-inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { color: var(--gray-500); max-width: 32ch; font-size: 0.92rem; }
.foot-col h4 { font-family: 'Space Grotesk', monospace; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 16px; font-weight: 500; }
.foot-col a { display: block; padding: 6px 0; color: var(--gray-700); font-size: 0.95rem; transition: color 0.2s; }
.foot-col a:hover { color: var(--white); }
.foot-bottom { max-width: var(--max); margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--gray-500); font-size: 0.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ACADEMY page */
.academy-hero { padding: 96px 24px; max-width: var(--max); margin: 0 auto; }
.academy-hero .caption { color: var(--gray-500); margin-bottom: 20px; }
.academy-hero h1 { margin-bottom: 32px; }
.academy-hero p.lede { font-size: 1.2rem; max-width: 60ch; color: var(--gray-700); margin-bottom: 40px; line-height: 1.5; }
.vsl-frame { background: var(--bg-elev); aspect-ratio: 16/9; margin: 32px 0; position: relative; overflow: hidden; cursor: pointer; border: 1px solid var(--line); }
.vsl-frame video { width: 100%; height: 100%; object-fit: cover; }
.vsl-poster { width: 100%; height: 100%; object-fit: cover; }
.vsl-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.4); transition: background 0.2s; }
.vsl-overlay:hover { background: rgba(0,0,0,0.2); }
.vsl-play { width: 90px; height: 90px; background: var(--white); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 32px rgba(0,0,0,0.6); }
.vsl-play::before { content: ""; border-left: 22px solid var(--black); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.vsl-caption { color: var(--gray-500); text-align: center; margin-top: 12px; font-size: 0.9rem; }

.pillar-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 760px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
.pillar { padding: 32px; border: 1px solid var(--line); background: var(--bg-card); }
.pillar.dark { background: var(--white); color: var(--black); border-color: var(--white); }
.pillar.dark h3 { color: var(--black); }
.pillar h3 { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; font-size: 1.8rem; margin-bottom: 20px; color: var(--white); }
.pillar ul { list-style: none; }
.pillar li { padding: 10px 0; padding-left: 28px; position: relative; color: var(--gray-700); }
.pillar.dark li { color: #333; }
.pillar li::before { content: "✕"; position: absolute; left: 0; top: 9px; opacity: 0.6; }
.pillar.dark li::before { content: "✓"; opacity: 1; }

.modules-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .modules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .modules-grid { grid-template-columns: repeat(3, 1fr); } }
.mod { padding: 28px; border: 1px solid var(--line); transition: all 0.2s; background: var(--bg-card); }
.mod:hover { border-color: var(--white); background: var(--bg-elev); }
.mod .num { color: var(--gray-500); font-family: 'Space Grotesk', monospace; font-size: 0.8rem; letter-spacing: 0.1em; margin-bottom: 12px; }
.mod h3 { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.35rem; margin-bottom: 12px; font-weight: 700; color: var(--white); }
.mod p { color: var(--gray-700); font-size: 0.95rem; line-height: 1.5; }

/* founder section */
.founder { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
@media (min-width: 880px) { .founder { grid-template-columns: 1fr 1.2fr; gap: 80px; } }
.founder-img { aspect-ratio: 4/5; background: var(--bg-elev); overflow: hidden; border: 1px solid var(--line); }
.founder-img img { width: 100%; height: 100%; object-fit: cover; }
.founder-img.placeholder { display: grid; place-items: center; background: var(--white); color: var(--black); font-family: 'Playfair Display', serif; font-style: italic; font-size: 4rem; }
.founder-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.founder-stats .lbl { color: var(--gray-500); font-family: 'Space Grotesk', monospace; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 6px; }
.founder-stats .val { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.2rem; font-weight: 700; color: var(--white); }

/* pricing */
.price-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 760px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
.price-card { padding: 40px; border: 1px solid var(--line); background: var(--bg-card); display: flex; flex-direction: column; }
.price-card.featured { background: var(--white); color: var(--black); border-color: var(--white); }
.price-card.featured h3, .price-card.featured .price-amt, .price-card.featured li { color: var(--black); }
.price-card .caption { color: var(--gray-500); margin-bottom: 20px; display: block; }
.price-card.featured .caption { color: #666; }
.price-card h3 { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; font-size: 2rem; margin-bottom: 16px; color: var(--white); }
.price-card p { color: var(--gray-700); }
.price-card.featured p { color: #444; }
.price-card .price-amt { font-family: 'Playfair Display', serif; font-style: italic; font-size: 3rem; font-weight: 700; margin: 24px 0 8px; color: var(--white); }
.price-card .price-sub { color: var(--gray-500); margin-bottom: 32px; }
.price-card.featured .price-sub { color: #666; }
.price-card ul { list-style: none; flex: 1; margin-bottom: 32px; }
.price-card li { padding: 10px 0 10px 28px; position: relative; font-size: 0.95rem; color: var(--gray-700); }
.price-card.featured li { color: #333; }
.price-card li::before { content: "✓"; position: absolute; left: 0; top: 10px; font-weight: 700; }

/* testimonials */
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 760px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi { padding: 32px; border: 1px solid var(--line); background: var(--bg-card); }
.testi .stars { color: var(--white); font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 0.1em; }
.testi blockquote { font-size: 1rem; line-height: 1.5; margin-bottom: 20px; color: var(--gray-900); }
.testi cite { font-style: normal; }
.testi cite strong { display: block; font-weight: 600; color: var(--white); }
.testi cite .meta { color: var(--gray-500); font-size: 0.85rem; }

/* FAQ */
.faq-list { display: grid; gap: 4px; }
.faq summary { padding: 24px 0; cursor: pointer; font-size: 1.15rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); list-style: none; color: var(--white); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.8rem; font-weight: 300; transition: transform 0.2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 16px 0 24px; color: var(--gray-700); max-width: 70ch; line-height: 1.6; border-bottom: 1px solid var(--line); }

/* CTA final */
.cta-final { background: var(--white); color: var(--black); padding: 96px 24px; text-align: center; }
.cta-final h2 { color: var(--black); max-width: 22ch; margin: 0 auto 32px; }
.cta-final p { color: #444; }
.cta-final .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-final .btn { background: var(--black); color: var(--white); }
.cta-final .btn:hover { background: #222; }
.cta-final .btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.cta-final .btn-outline:hover { background: var(--black); color: var(--white); }

/* book form */
.form-wrap { max-width: 640px; margin: 0 auto; padding: 64px 24px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-family: 'Space Grotesk', monospace; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); background: var(--bg-card); color: var(--white);
  font: inherit; font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--white); }
.form-group select option { background: var(--bg-card); color: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: start; gap: 12px; margin: 16px 0; font-size: 0.92rem; color: var(--gray-700); }
.form-check input { width: 20px; height: 20px; margin-top: 2px; }
.form-check a { text-decoration: underline; color: var(--white); }
.form-success, .form-error { display: none; padding: 24px; border: 1px solid; margin-top: 24px; }
.form-success { border-color: #2a6a2a; background: #102810; color: #aae0aa; }
.form-error { border-color: #6a2a2a; background: #2a1010; color: #e0aaaa; }
.form-success.show, .form-error.show { display: block; }

.honeypot { position: absolute; left: -9999px; visibility: hidden; }

/* filter bar */
.filter-bar { padding: 24px; background: var(--bg-card); border: 1px solid var(--line); margin-bottom: 48px; display: grid; grid-template-columns: 1fr; gap: 16px; align-items: end; }
@media (min-width: 760px) { .filter-bar { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.filter-bar label { display: block; font-family: 'Space Grotesk', monospace; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 8px; font-weight: 500; }
.filter-bar select, .filter-bar input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); background: var(--bg); color: var(--white); font: inherit; font-size: 0.95rem; }
.filter-bar select option { background: var(--bg); color: var(--white); }
.inv-count { color: var(--gray-700); margin-bottom: 24px; }
.inv-count strong { font-weight: 700; color: var(--white); }

/* legal pages */
.legal { max-width: 800px; margin: 0 auto; padding: 64px 24px; }
.legal h1 { font-size: 3rem; margin-bottom: 8px; }
.legal .updated { color: var(--gray-500); font-family: 'Space Grotesk', monospace; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 48px; }
.legal h2 { font-size: 1.6rem; font-family: 'Inter', sans-serif; font-style: normal; font-weight: 700; margin: 40px 0 16px; color: var(--white); letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--gray-700); margin-bottom: 16px; line-height: 1.7; }
.legal ul { padding-left: 24px; margin-bottom: 16px; }
.legal a { text-decoration: underline; color: var(--white); }

/* login page */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 48px 24px; }
.login-card { max-width: 480px; width: 100%; padding: 56px 40px; border: 1px solid var(--line); text-align: center; background: var(--bg-card); }
.login-card h1 { font-size: 2.5rem; margin-bottom: 16px; }
.login-card p { color: var(--gray-700); margin-bottom: 32px; line-height: 1.6; }
.login-card .btn { display: block; margin-bottom: 12px; }
.login-card .small { color: var(--gray-500); font-size: 0.85rem; }
.login-card .small a { color: var(--white); }

/* about page */
.about-hero { padding: 96px 24px; max-width: var(--max); margin: 0 auto; text-align: left; }
.about-hero h1 { max-width: 18ch; margin-bottom: 32px; }
.about-hero p.lede { font-size: 1.2rem; color: var(--gray-700); max-width: 60ch; line-height: 1.6; }
.about-body { max-width: 700px; margin: 0 auto; padding: 0 24px 96px; font-size: 1.1rem; line-height: 1.7; color: var(--gray-700); }
.about-body p { margin-bottom: 24px; }
.about-body p.pull { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.6rem; line-height: 1.4; color: var(--white); margin: 48px 0; padding-left: 24px; border-left: 3px solid var(--white); }

/* utility */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.hidden { display: none !important; }
