/* =========================================================
   First Links by Riptwisted — road-at-night theme
   ========================================================= */

:root {
  /* Palette */
  --bg:           #0B0B0B;   /* primary background */
  --bg-2:         #151515;   /* secondary background */
  --surface:      #1F1F1F;   /* card / surface gray */
  --border:       #333333;   /* soft border gray */
  --text:         #F5F5F5;   /* primary text */
  --muted:        #A8A8A8;   /* muted text */
  --yellow:       #FFC300;   /* accent yellow */
  --yellow-deep:  #D6A900;   /* deeper yellow hover */
  --moonlight:    #EDEDED;   /* moonlight white */

  /* Type */
  --font-head: "Space Grotesk", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1160px;
  --radius: 20px;
  --radius-sm: 12px;
  --pad-x: 22px;

  --pad-section-desktop: 96px;
  --pad-section-mobile: 64px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.28rem; font-weight: 600; }

p { margin: 0 0 1rem; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.container.narrow { max-width: 820px; }
.center { text-align: center; }

.section { padding-block: var(--pad-section-mobile); }
.section-alt { background: var(--bg-2); }

.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 1rem;
  font-family: var(--font-head);
}

.lead { font-size: 1.12rem; color: var(--moonlight); }
.prose { color: var(--muted); font-size: 1.06rem; }
.micro-note { font-size: .9rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 15px 26px;
  border-radius: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
  text-align: center;
  line-height: 1.1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--yellow);
  color: #0B0B0B;
  box-shadow: 0 6px 22px rgba(255, 195, 0, .18);
}
.btn-primary:hover { background: var(--yellow-deep); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }

.btn-block { display: flex; width: 100%; }
.btn-disabled { opacity: .45; pointer-events: none; cursor: default; }
.btn-sm { padding: 10px 18px; font-size: .92rem; border-radius: 11px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn-row.center { justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 11, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { border-radius: 11px; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.04rem; letter-spacing: -0.01em; }
.brand-by { color: var(--muted); font-weight: 500; }
.brand-sub { font-size: .76rem; color: var(--muted); }

.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav a { font-size: .96rem; color: var(--muted); transition: color .15s ease; font-weight: 500; }
.primary-nav a:hover { color: var(--text); }
.primary-nav .nav-cta { color: #0B0B0B; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 9vw, 96px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.hero-visual .img-card { width: 100%; }

.img-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

/* ---------- Cards / grids ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.two-col { display: grid; grid-template-columns: 1fr; gap: 24px; }
.three-col { display: grid; grid-template-columns: 1fr; gap: 22px; }

.card-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  background: var(--bg);
  aspect-ratio: 3 / 2;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.build-card p, .example-card p, .step-card p { color: var(--muted); }
.build-card .btn, .example-card .btn { margin-top: 18px; }

/* Try-it cards */
.try-card h3 { margin-bottom: .4rem; }
.try-card > p { color: var(--muted); }
.card-note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }

.calendly-embed {
  margin-top: 18px;
  min-height: 700px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.calendly-embed iframe { width: 100%; min-height: 700px; border: 0; }

.embed-placeholder { text-align: center; padding: 28px; }
.embed-placeholder-icon { font-size: 2.2rem; margin-bottom: 10px; }
.embed-placeholder-title { font-family: var(--font-head); font-weight: 600; color: var(--text); margin-bottom: 6px; }
.embed-placeholder-sub { font-size: .9rem; color: var(--muted); margin: 0; }
code { background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: .85em; color: var(--yellow); }

.pay-buttons { display: grid; gap: 12px; margin-top: 18px; }
.pay-venmo:hover { border-color: #008CFF; color: #3D95CE; }

/* ---------- Payment pills ---------- */
.pill-row {
  list-style: none;
  margin: 0 auto 26px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 760px;
}
.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .96rem;
  transition: border-color .15s ease, color .15s ease;
}
.pill:hover { border-color: var(--yellow); color: var(--yellow); }
.trust-note { text-align: center; color: var(--muted); font-size: .98rem; max-width: 640px; margin: 0 auto; }

/* ---------- Why / lane divider ---------- */
.lane-divider {
  height: 4px;
  width: 100%;
  margin-bottom: 40px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0 38px,
    transparent 38px 70px
  );
  opacity: .8;
  box-shadow: 0 0 18px rgba(255, 195, 0, .25);
}

/* ---------- Steps ---------- */
.step-card { position: relative; padding-top: 30px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--yellow);
  color: #0B0B0B;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

/* ---------- Early offer ---------- */
.offer-card { position: relative; overflow: hidden; }
.offer-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 100% 0%, rgba(255,195,0,.10), transparent 70%);
  pointer-events: none;
}
.offer-rate {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--yellow);
  margin: 18px 0 22px;
}
.offer-rate-fallback { color: var(--muted); font-weight: 500; font-size: 1rem; }
.offer-card .btn { margin-top: 4px; }

/* ---------- About ---------- */
.about-copy h2 { margin-bottom: .6rem; }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-head); font-weight: 500; font-size: .95rem; }
.optional { color: var(--muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 15px;
  width: 100%;
  transition: border-color .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--yellow); }
.field textarea { resize: vertical; }
.field select { appearance: none; cursor: pointer; }

.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-success,
.form-error {
  margin-top: 4px;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: .98rem;
}
.form-success {
  background: rgba(255, 195, 0, .10);
  border: 1px solid var(--yellow);
  color: var(--moonlight);
}
.form-error {
  background: rgba(214, 74, 74, .10);
  border: 1px solid #d64a4a;
  color: var(--moonlight);
}

#form-submit[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--bg-2); border-top: 1px solid var(--border); }
.final-cta h2 { max-width: 640px; margin-inline: auto; }
.final-cta .lead { max-width: 560px; margin-inline: auto; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding-block: 48px 28px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; gap: 14px; max-width: 480px; }
.footer-name { font-family: var(--font-head); font-weight: 700; margin: 0 0 4px; }
.footer-line { color: var(--muted); font-size: .92rem; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--muted); font-size: .95rem; transition: color .15s ease; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .85rem;
}
.footer-domain { color: var(--border); }

/* =========================================================
   Responsive — tablet & desktop
   ========================================================= */
@media (min-width: 720px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (min-width: 900px) {
  body { font-size: 18px; }
  .section { padding-block: var(--pad-section-desktop); }
  .three-col { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .about-grid { grid-template-columns: .95fr 1.05fr; align-items: center; }
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .brand-sub { display: none; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 14px var(--pad-x) 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .primary-nav a { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .primary-nav a:last-child { border-bottom: 0; }
  .primary-nav .nav-cta { margin-top: 10px; border: 0; }
  .primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
