/* ---------- Custom properties ---------- */
:root {
  --navy-950: #0c1420;
  --navy-900: #101b2d;
  --navy-800: #16233a;
  --navy-700: #223250;
  --ink: #0c1420;
  --paper: #faf7f2;
  --paper-dim: #f0ebe1;
  --terracotta: #d97b4a;
  --terracotta-dark: #b8613a;
  --sand: #e8dcc8;
  --text-body: #33404f;
  --text-body-inverse: #dbe3ee;
  --text-muted: #6b7686;
  --text-muted-inverse: #9aa8bc;
  --border-light: #e2dccf;
  --border-dark: #26344c;
  --radius: 14px;
  --shadow: 0 12px 32px -16px rgba(12, 20, 32, 0.35);
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --max-width: 1160px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
ul { padding-left: 0; list-style: none; margin: 0; }
button { font-family: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
}

/* ---------- Shared bits ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--terracotta-dark);
  margin: 0 0 0.75em;
}
.section-dark .eyebrow { color: var(--terracotta); }

.section-lede {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.section-dark .section-lede { color: var(--text-muted-inverse); }

.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(217, 123, 74, 0.65);
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-900);
}
.hero .btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }

.grid-cards {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}
.card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
}
.section-dark .card {
  background: var(--navy-800);
  border-color: var(--border-dark);
  color: var(--text-body-inverse);
}
.section-dark .card h3 { color: #fff; }
.card h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--ink);
}
.logo span { color: var(--terracotta); }

.main-nav {
  display: none;
  align-items: center;
  gap: 28px;
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a { text-decoration: none; color: var(--text-body); }
.main-nav a:hover { color: var(--terracotta-dark); }
.nav-cta {
  background: var(--terracotta);
  color: #fff !important;
  padding: 0.6em 1.3em;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--terracotta-dark); }

.nav-phone {
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink) !important;
}
.nav-phone::before { content: "☎ "; color: var(--terracotta); }
.nav-phone:hover { color: var(--terracotta-dark) !important; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.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); }

/* mobile nav panel */
@media (max-width: 899px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-cta { display: inline-block; margin-top: 6px; }
}
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, var(--navy-800), var(--navy-950) 65%);
  color: #fff;
  padding: 96px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 48px;
}
.hero-inner { max-width: 620px; }

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 0.4em;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-body-inverse);
  max-width: 560px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 0.92rem;
  color: var(--text-muted-inverse);
  padding-top: 20px;
  border-top: 1px solid var(--border-dark);
}
.hero-proof li::before { content: "✓ "; color: var(--terracotta); font-weight: 700; }

.hero-media {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 630 / 966;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  animation: hero-media-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 20, 32, 0) 55%, rgba(12, 20, 32, 0.4) 100%);
  pointer-events: none;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s ease;
}
.hero-video.is-looping { opacity: 0.35; }

@keyframes hero-media-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .hero-media { justify-self: end; max-width: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media { animation: none; opacity: 1; transform: none; }
  .hero-video.is-looping { opacity: 1; }
}

/* ---------- Generic section ---------- */
.section { padding: 88px 0; }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); max-width: 700px; }
.section-dark {
  background: var(--navy-950);
  color: var(--text-body-inverse);
}
.section-dark h2 { color: #fff; }

@media (min-width: 640px) {
  .pain-grid, .verticals-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .pain-grid { grid-template-columns: repeat(3, 1fr); }
  .offer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Offer cards ---------- */
.offer-card { display: flex; flex-direction: column; position: relative; }
.offer-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--terracotta);
  background: rgba(217, 123, 74, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.offer-featured {
  border: 2px solid var(--terracotta);
  box-shadow: 0 20px 40px -20px rgba(217, 123, 74, 0.5);
}
.offer-price {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 0.6em;
}
.offer-price span { font-size: 0.85rem; font-weight: 400; color: var(--text-muted-inverse); }
.offer-list { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.offer-list li::before { content: "· "; color: var(--terracotta); }

.objections {
  margin-top: 56px;
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) { .objections { grid-template-columns: repeat(3, 1fr); } }
.objection h4 { color: #fff; font-size: 1rem; margin-bottom: 0.5em; }
.objection p { color: var(--text-muted-inverse); font-size: 0.92rem; }

/* ---------- Verticals ---------- */
.vertical-sub { color: var(--terracotta-dark); font-weight: 600; margin-bottom: 0.6em; font-size: 0.92rem; }
.fast-follow { margin-top: 32px; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Compare grid ---------- */
.compare-grid {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) { .compare-grid { grid-template-columns: repeat(3, 1fr); } }
.compare-card {
  background: var(--navy-800);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 28px;
}
.compare-card h3 { color: #fff; }
.compare-card ul { display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; color: var(--text-muted-inverse); }
.compare-card li::before { content: "· "; color: var(--terracotta); }
.compare-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.compare-bad { background: rgba(154, 168, 188, 0.15); color: var(--text-muted-inverse); }
.compare-good { background: rgba(217, 123, 74, 0.18); color: var(--terracotta); }
.compare-featured {
  border: 2px solid var(--terracotta);
  box-shadow: 0 20px 40px -20px rgba(217, 123, 74, 0.5);
}

/* ---------- Founder / About ---------- */
.founder-section { background: var(--paper-dim); }
.founder-inner { max-width: 860px; margin: 0 auto; }
.founder-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.founder-photo-wrap {
  flex-shrink: 0;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}
.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}
.founder-copy { font-size: 1.1rem; color: var(--text-body); }
.founder-name {
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.4em;
}
.founder-name span {
  display: block;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (min-width: 720px) {
  .founder-grid {
    flex-direction: row;
    text-align: left;
    gap: 44px;
  }
  .founder-photo-wrap { width: 200px; height: 200px; }
}

/* ---------- Vertical card highlight ---------- */
.vertical-card { position: relative; }
.vertical-featured {
  border: 2px solid var(--terracotta);
  box-shadow: 0 20px 40px -20px rgba(217, 123, 74, 0.35);
}

/* ---------- Local ---------- */
.local-inner { max-width: 760px; }

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 40px;
  max-width: 760px;
  border-top: 1px solid var(--border-light);
}
.faq-item {
  border-bottom: 1px solid var(--border-light);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--ink);
  transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--terracotta-dark); }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--terracotta);
  border-bottom: 2px solid var(--terracotta);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-answer {
  padding: 0 32px 24px 0;
  color: var(--text-muted);
  font-size: 1rem;
  animation: faq-open 0.25s ease;
}
.faq-answer p { margin: 0; }

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer { animation: none; }
  .faq-item summary::after { transition: none; }
}

/* ---------- Contact / chat form ---------- */
.contact-wrap { max-width: 640px; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-form {
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chat-progress {
  height: 4px;
  background: var(--paper-dim);
}
.chat-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--terracotta);
  transition: width 0.35s ease;
}
.chat-log {
  padding: 28px 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 120px;
  max-height: 360px;
  overflow-y: auto;
}
.chat-bubble {
  max-width: 82%;
  padding: 0.7em 1em;
  border-radius: 16px;
  font-size: 0.96rem;
  line-height: 1.45;
  animation: chat-in 0.25s ease;
}
.chat-bot {
  align-self: flex-start;
  background: var(--paper-dim);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.chat-user {
  align-self: flex-end;
  background: var(--terracotta);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 0.9em 1em;
  background: var(--paper-dim);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}
.chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: chat-dot 1.1s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chat-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes chat-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
}
.chat-input {
  flex: 1;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7em 0.9em;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--paper);
  color: var(--ink);
  resize: none;
}
.chat-send {
  padding: 0.7em 1.1em;
  font-size: 1.1rem;
  line-height: 1;
}
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 16px;
}
.chat-hint { margin: 0; font-size: 0.78rem; color: var(--text-muted); }
.chat-skip {
  background: none;
  border: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.chat-skip:hover { color: var(--terracotta-dark); }
.chat-restart {
  background: none;
  border: none;
  color: var(--terracotta-dark);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
}
.chat-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 8px;
  align-self: flex-start;
}

.form-fallback { margin-top: 20px; font-size: 0.95rem; color: var(--text-muted); }
.form-fallback a { color: var(--terracotta-dark); font-weight: 600; text-decoration: none; }
.form-fallback a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--text-muted-inverse); padding: 48px 0; }
.site-footer .logo { color: #fff; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-inner p { margin: 0; }
.footer-contact {
  margin-top: 12px !important;
  font-size: 0.92rem;
  line-height: 1.9;
}
.footer-contact a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.footer-contact a:hover { color: var(--terracotta); }
.footer-contact span {
  color: var(--text-muted-inverse);
  font-weight: 400;
  font-size: 0.82rem;
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.9rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--terracotta); }
.footer-copy { width: 100%; font-size: 0.8rem; color: #5b6980; border-top: 1px solid var(--border-dark); padding-top: 20px; margin-top: 8px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
