:root {
  --navy: #1B2250;
  --navy-panel: #232a5c;
  --navy-panel-2: #171d47;
  --clay: #B3654F;
  --clay-hover: #c1785f;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --border-soft: rgba(255, 255, 255, 0.1);
  --near-black: #14161d;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background-color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.text-center { text-align: center; }
.clay { color: var(--clay); }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

/* Header */
.tf-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(27, 34, 80, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 88px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-lockup { height: 34px; width: auto; }

.actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-link:hover { color: white; }

.btn-primary {
  display: inline-block;
  background-color: var(--clay);
  color: white;
  padding: 12px 24px;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.1s;
}
.btn-primary:hover { background-color: var(--clay-hover); }
.btn-primary:active { transform: scale(0.97); }

.btn-large {
  display: inline-block;
  background-color: var(--clay);
  color: white;
  padding: 20px 40px;
  border-radius: 12px;
  font-size: 19px;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.1s;
}
.btn-large:hover { background-color: var(--clay-hover); }
.btn-large:active { transform: scale(0.98); }

.pill-badge {
  display: inline-block;
  background-color: rgba(179, 101, 79, 0.16);
  border: 1px solid rgba(179, 101, 79, 0.4);
  color: #e3a493;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 7px 18px;
  border-radius: 9999px;
  margin-bottom: 28px;
}

/* Hero */
.hero {
  padding: 110px 0 130px;
  text-align: center;
}

.hero-headline {
  font-size: 84px;
  max-width: 1100px;
  margin: 0 auto 32px;
}

.hero-subheadline {
  font-size: 22px;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 44px;
}

.cta-wrapper { margin-bottom: 24px; }
.cta-sub { font-size: 15px; color: var(--text-tertiary); margin-top: 16px; }

.hero-visual {
  max-width: 1040px;
  margin: 72px auto 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--navy-panel-2);
  border: 1px solid var(--border-soft);
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}

.hero-visual video { display: block; width: 100%; }

/* Section */
.section { padding: 140px 0; }
.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clay);
  margin-bottom: 18px;
  display: block;
}

/* Three screens section */
.screens-heading { text-align: center; margin-bottom: 110px; }
.screens-heading h2 { font-size: 52px; }

.screen-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
  margin-bottom: 100px;
}
.screen-row:last-child { margin-bottom: 0; }
.screen-row.reverse .screen-text { order: 1; }
.screen-row.reverse .screen-image { order: 2; }
.screen-row:not(.reverse) .screen-image { order: 1; }
.screen-row:not(.reverse) .screen-text { order: 2; }

.screen-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.screen-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  margin-bottom: 24px;
}

.screen-caption {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
}

/* Pricing */
.pricing-section {
  background: var(--navy-panel-2);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: 72px;
}

.pricing-grid h2 { font-size: 60px; margin-bottom: 24px; }
.pricing-grid p { font-size: 19px; color: var(--text-secondary); }

.checkout-card {
  background: var(--near-black);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.checkout-label {
  font-size: 13px;
  color: var(--text-tertiary);
}

.checkout-note {
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 0 0 24px;
}

.whop-checkout-wrapper {
  min-height: 60px;
}

/* FAQ */
.faq-heading { margin-bottom: 56px; }
.faq-heading h2 { font-size: 52px; }

.faq-list {
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item {
  background: var(--near-black);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 28px 32px;
}

.faq-item h3 {
  font-size: 19px;
  color: #e3a493;
  margin-bottom: 12px;
  font-weight: 600;
}

.faq-item p {
  font-size: 17px;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-tertiary);
}
.footer-lockup { height: 22px; width: auto; opacity: 0.85; }

.footer-links a {
  color: var(--text-secondary);
  margin-left: 24px;
}
.footer-links a:hover { color: white; }

/* Guide page */
.guide-hero { padding: 90px 0 80px; }
.guide-container { max-width: 820px; margin: 0 auto; }
.guide-section { padding: 80px 0; }
.guide-section-alt { background: var(--navy-panel-2); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.step-badge {
  display: inline-block;
  background-color: var(--clay);
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 20px;
}

.guide-h2 { font-size: 38px; margin-bottom: 22px; }

.guide-p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  max-width: 700px;
}
.guide-p:last-child { margin-bottom: 0; }

.guide-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}
.guide-list li {
  font-size: 17px;
  color: var(--text-secondary);
  padding-left: 26px;
  position: relative;
  line-height: 1.65;
}
.guide-list li strong { color: var(--text-primary); }
.guide-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
}
.guide-list-numbered { counter-reset: step; }
.guide-list-numbered li { counter-increment: step; padding-left: 34px; }
.guide-list-numbered li::before {
  content: counter(step);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--clay);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
}

.guide-cta-section { padding: 100px 0 130px; }
.guide-cta-p { margin: 0 auto 32px; color: var(--text-tertiary); font-size: 17px; }
.guide-cta-section .guide-h2 { text-align: center; }

@media (max-width: 900px) {
  .guide-h2 { font-size: 30px; }
  .guide-p, .guide-list li { font-size: 16px; }
}

/* Guide reference page — nav, images, code, callouts */
.guide-body { padding-top: 40px; }
.guide-layout {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.guide-rail {
  flex: 0 0 232px;
  position: sticky;
  top: 88px;
  padding: 40px 0 80px;
  align-self: flex-start;
}
.guide-rail-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}
.guide-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--border-soft);
}
.guide-nav a {
  position: relative;
  display: block;
  padding: 10px 0 10px 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.guide-nav a:hover { color: var(--text-primary, #f5f6f8); }
.guide-nav a.active { color: var(--text-primary, #f5f6f8); font-weight: 600; }
.guide-nav a .rail-bar {
  position: absolute;
  left: -1px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--clay);
  opacity: 0;
  transition: opacity 0.18s;
}
.guide-nav a.active .rail-bar { opacity: 1; }
.guide-rail-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 32px;
  margin-left: 18px;
  height: 36px;
  padding: 0 16px;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.guide-rail-cta:hover { color: var(--text-primary, #f5f6f8); border-color: var(--clay); }
.guide-main { flex: 1 1 auto; min-width: 0; max-width: 840px; padding: 40px 0 40px; }

@media (max-width: 900px) {
  .guide-layout { flex-direction: column; gap: 0; }
  .guide-rail { position: static; width: 100%; padding: 0 0 20px; align-self: stretch; }
  .guide-rail-label, .guide-rail-cta { display: none; }
  .guide-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
    border-left: none;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 16px;
    position: sticky;
    top: 88px;
    background: rgba(27, 34, 80, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 90;
  }
  .guide-nav a { padding: 6px 0; }
  .guide-nav a .rail-bar { display: none; }
  .guide-main { max-width: 100%; }
}

/* Anchor targets land below the sticky header + sticky quick-nav, not underneath them */
.guide-section { scroll-margin-top: 190px; }
.guide-faq-section { scroll-margin-top: 190px; }

.guide-area-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clay);
  margin-bottom: 10px;
  display: block;
}

.guide-h3 {
  font-size: 24px;
  margin: 40px 0 14px;
  max-width: 700px;
}
.guide-h3:first-of-type { margin-top: 0; }

.guide-img {
  margin: 32px 0 28px;
  max-width: 840px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.guide-img img {
  display: block;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.guide-img figcaption {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-tertiary);
}
.guide-img figcaption .fig-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--clay);
  flex: none;
}
.guide-img--narrow {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.guide-code {
  background: var(--near-black);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
  max-width: 720px;
  overflow-x: auto;
}
.guide-code pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

.guide-callout {
  background: rgba(179, 101, 79, 0.1);
  border: 1px solid rgba(179, 101, 79, 0.35);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 20px 0;
  max-width: 720px;
}
.guide-callout p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}
.guide-callout strong { color: #e3a493; }
.guide-callout-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d08a72;
  margin-bottom: 10px;
}

.guide-faq-section .faq-list { margin: 0 auto; }

@media (max-width: 900px) {
  .guide-nav { gap: 8px 18px; padding-left: 20px; padding-right: 20px; }
  .guide-h3 { font-size: 20px; }
}

@media (max-width: 900px) {
  .hero-headline { font-size: 44px; }
  .screens-heading h2, .pricing-grid h2, .faq-heading h2 { font-size: 36px; }
  .screen-row { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .screen-row.reverse .screen-text, .screen-row.reverse .screen-image,
  .screen-row:not(.reverse) .screen-text, .screen-row:not(.reverse) .screen-image { order: initial; }
  .screen-caption { font-size: 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links a { margin: 0 12px; }
  .actions { gap: 14px; }
}

/* Phone-width header fix — logo and CTA button were overlapping below ~480px.
   The original fix used flex-wrap, which only wraps once content overflows
   the row — on pages where .actions has just one item (guide, legal) the
   logo + button still fit on one line with zero gap, so they wrapped on
   the homepage (two nav items, wide enough to overflow) but stayed
   crammed together on guide/legal. flex-direction: column stacks the
   logo and actions every time, on every page, regardless of how many
   items are in .actions. Scoped tight to phones only; the existing 900px
   tablet breakpoint above is untouched. */
@media (max-width: 480px) {
  .header-inner {
    height: auto;
    flex-direction: column;
    align-items: center;
    row-gap: 10px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .actions { gap: 16px; }
  .btn-primary { padding: 10px 18px; font-size: 15px; }
}

/* Fullscreen screenshot viewer (landing page only — targets .screen-image
   img, which only exists in index.html, so this never touches /guide or
   /legal). Tap a screenshot to view it fullscreen; swipe down to dismiss,
   swipe left/right or use the arrows/arrow keys to move between shots. */
.screen-image-tappable {
  cursor: zoom-in;
}
.screen-image-tappable:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 22, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox-overlay.active { opacity: 1; pointer-events: auto; }

.lightbox-img-wrap {
  max-width: 92vw;
  max-height: 88vh;
  touch-action: none;
}
.lightbox-img-wrap img {
  display: block;
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 24px;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 22px;
}
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.lightbox-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.lightbox-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.lightbox-dot.active { background: white; }

@media (max-width: 640px) {
  /* Touch devices get swipe navigation instead of on-screen arrows. */
  .lightbox-nav { display: none; }
  .lightbox-close { top: 14px; right: 14px; }
}
