/* Peephole — shared styles */
:root {
  --door: #1E4A42;          /* brand dark green */
  --door-deep: #153730;
  --brass: #B8893B;         /* brand gold: rings, borders, accents */
  --gold-btn: #CFA352;      /* gold for filled buttons: 5.56:1 with --door-deep text */
  --gold-btn-hover: #E0BC72;
  --brass-light: #E7CF9A;
  --paper: #F6F7F4;         /* light section background A */
  --tint: #E5ECE7;          /* light section background B (green-grey) */
  --white: #FFFFFF;
  --ink: #18201E;
  --muted: #4A5652;         /* 6.4:1 on tint, 7.1:1 on paper */
  --on-dark-muted: #D3E0DB; /* 7.3:1 on --door */
  --line: #D3DBD6;
  --input-border: #6F7B77;  /* 3.7:1 vs tint, 4.4:1 vs white */
  --sold: #A8322A;
  --sold-bg: #FBE9E7;
  --focus: #8F6420;         /* dark gold focus ring on light backgrounds (4.4–5.2:1) */
  --focus-on-dark: #E7CF9A; /* light gold focus ring on dark green (6.5:1) */
  --radius-card: 14px;
  --radius-control: 8px;
  --wrap: 1120px;
  --section-pad: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;   /* 17px */
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--door); text-underline-offset: 3px; }
a:hover { color: var(--door-deep); }

/* Focus: 2px gold outline, 2px offset, on every interactive element */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.site-header :focus-visible, .hero :focus-visible, .trust-strip :focus-visible,
.site-footer :focus-visible, .founding :focus-visible {
  outline-color: var(--focus-on-dark);
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-control);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 0.95rem; }

/* Gold filled = free snapshot, everywhere */
.btn-gold { background: var(--gold-btn); color: var(--door-deep); }
.btn-gold:hover { background: var(--gold-btn-hover); color: var(--door-deep); }

/* Outline = book a call, everywhere */
.btn-outline-light { border-color: #C9D6D1; color: var(--paper); background: transparent; }
.btn-outline-light:hover { border-color: var(--paper); background: rgba(255,255,255,0.08); color: var(--paper); }
.btn-outline-dark { border-color: var(--door); color: var(--door); background: transparent; }
.btn-outline-dark:hover { background: var(--door); color: var(--paper); }

/* Used on the thank-you page */
.btn-door { background: var(--door); color: var(--paper); }
.btn-door:hover { background: var(--door-deep); color: var(--paper); }

.btn:disabled { opacity: 0.7; cursor: wait; }

/* ---------- Header ---------- */
.site-header { background: var(--door); color: var(--paper); z-index: 50; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-stretch: 125%;
  font-size: 1.25rem;
}
.brand:hover { color: var(--brass-light); }
.brand-mark { width: 28px; height: 28px; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 0.98rem; }
.nav-link { color: var(--paper); text-decoration: none; }
.nav-link:hover { color: var(--brass-light); text-decoration: underline; }

@media (min-width: 901px) {
  .site-header { position: sticky; top: 0; transition: box-shadow 0.2s ease; }
  .site-header .wrap { transition: padding 0.2s ease; }
  .site-header.is-compact { box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.6); }
  .site-header.is-compact .wrap { padding-top: 8px; padding-bottom: 8px; }
  section[id] { scroll-margin-top: 72px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--door); color: var(--paper); padding: 64px 0 var(--section-pad); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(400px, 1fr);
  gap: 48px;
  align-items: center;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 4.2vw + 0.5rem, 2.875rem); /* 46px max: the widest size that keeps 3 lines in 600px */
  line-height: 1.05;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: -0.01em;
}
.hero-lede { margin: 0 0 32px; font-size: 1.2rem; line-height: 1.55; color: #E3ECE8; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin: 20px 0 0; font-size: 1rem; color: var(--on-dark-muted); }

/* ---------- Sample brief (email card) ---------- */
.brief {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(5, 20, 17, 0.65);
}
.mail-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #F0F3F1;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: #56625E;
}
.envelope { color: #56625E; flex-shrink: 0; }
.brief-body { padding: 18px 22px 20px; }
.brief-subject { margin: 0 0 14px; font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.brief table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}
.brief th, .brief td, .phone table th, .phone table td {
  text-align: right;
  padding: 9px 0 9px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.brief th:first-child, .brief td:first-child,
.phone th:first-child, .phone td:first-child { text-align: left; padding-left: 0; }
.brief th { font-weight: 600; font-size: 0.8rem; color: #56625E; }
td.you { font-weight: 700; }
.night { white-space: nowrap; }
.pill-sold {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sold-bg);
  color: var(--sold);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: middle;
}
.pill-up {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #F6EEDC;
  color: #7A5418;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: middle;
}
.phone .pill-up { font-size: 0.6rem; padding: 1px 6px; margin-left: 2px; }
.brief-lines { margin: 14px 0 0; padding: 0; list-style: none; font-size: 0.95rem; }
.brief-lines li { margin: 0 0 6px; }
.brief-move {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
  background: #F6EEDC;
  font-size: 0.95rem;
}
.brief-move strong { font-weight: 700; }
.brief-caption { margin: 12px 0 0; font-size: 0.88rem; color: var(--on-dark-muted); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--door-deep); color: var(--paper); }
.trust-list {
  list-style: none;
  margin: 0 auto;
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}
.trust-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1rem; }
.trust-list svg { color: var(--brass-light); flex-shrink: 0; }

/* ---------- Sections (strict alternation, same padding) ---------- */
.section { padding: var(--section-pad) 0; }
.bg-paper { background: var(--paper); }
.bg-tint { background: var(--tint); }
.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
  font-weight: 700;
  font-stretch: 125%;
}
.section-lede { margin: 0 0 40px; max-width: 40rem; color: var(--muted); font-size: 1.1rem; }

/* Problem */
.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.problem-body { margin: 0 0 16px; font-size: 1.15rem; max-width: 38rem; }
.for-whom {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 26px;
}
.for-whom h3 { margin: 0 0 12px; font-size: 1.1rem; }

/* Checkmark lists (Built for + pricing) */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin: 0 0 10px;
  line-height: 1.5;
  font-size: 1rem;
}
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%231E4A42' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 18px 18px;
}

/* How it works (a real sequence, so numbered) */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  counter-reset: step;
}
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before {
  content: counter(step);
  display: block;
  font-size: 2.6rem;
  font-weight: 700;
  font-stretch: 125%;
  line-height: 1;
  color: var(--door);
  margin-bottom: 14px;
}
.steps h3 { margin: 0 0 8px; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); }

/* What's in the brief: list + phone mockup */
.brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.brief-items { list-style: none; margin: 0; padding: 0; }
.brief-items li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  margin: 0 0 26px;
}
.brief-items li:last-child { margin-bottom: 0; }
.brief-items h3 { margin: 2px 0 4px; font-size: 1.15rem; }
.brief-items p { margin: 0; color: var(--muted); }
.num-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold-btn);
  color: var(--door-deep);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
}

.phone-wrap { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding: 12px;
  border-radius: 44px;
  background: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(5, 20, 17, 0.55);
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  border-radius: 0 0 14px 14px;
  background: var(--ink);
  z-index: 2;
}
.phone-screen { background: var(--white); border-radius: 33px; }
.mail-head-phone { padding: 30px 18px 8px; font-size: 0.75rem; border-radius: 33px 33px 0 0; }
.phone-body { padding: 14px 16px 22px; font-size: 0.82rem; }
.phone .brief-subject { font-size: 0.88rem; margin-bottom: 10px; }
.phone table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.72rem; }
.phone table th, .phone table td { padding: 6px 0 6px 5px; }
.phone table th { font-weight: 600; font-size: 0.64rem; color: #56625E; white-space: nowrap; }
.phone .pill-sold { font-size: 0.6rem; padding: 1px 6px; margin-left: 2px; }
.phone .brief-lines { font-size: 0.78rem; margin-top: 0; }
.phone .brief-move { font-size: 0.78rem; padding: 10px 12px; margin-top: 0; }
/* Numbered dots sit in the margin left of the phone frame, joined to the part
   they label by a 1px gold line. The content inside the phone is untouched.
   --dot-left: dot's left edge, measured from the content's left edge
   (content is 16px screen padding + 12px frame inside the phone's outer edge). */
.phone { --dot-left: -64px; }
.mock-part { position: relative; margin-top: 12px; }
.mock-anchor { position: relative; white-space: nowrap; } /* keeps the pill on the "Sat, Dec 5" line */
.num-dot-mock {
  position: absolute;
  left: var(--dot-left);
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  font-size: 0.72rem;
  z-index: 3;
}
.num-dot-mock::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: calc(-1 * var(--dot-left) - 22px - 4px);
  height: 1px;
  background: var(--brass);
}
.num-dot-top { top: 0; transform: none; }

/* ---------- Pricing ---------- */
.founding {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 0 0 40px;
  padding: 16px 20px;
  border-radius: var(--radius-control);
  background: var(--door);
  color: var(--paper);
}
.founding strong { color: var(--brass-light); font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 28px;
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
}
.plan-featured {
  border-color: var(--door);
  box-shadow: 0 20px 40px -24px rgba(21, 55, 48, 0.5);
}
.plan-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--door);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.plan h3 { margin: 0 0 4px; font-size: 1.3rem; font-stretch: 125%; }
.plan-for { margin: 0 0 18px; color: var(--muted); font-size: 1rem; min-height: 3em; }
.plan-price {
  margin: 0 0 4px;
  font-size: 2.6rem;
  font-weight: 700;
  font-stretch: 125%;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan-price span { font-size: 1rem; font-weight: 500; font-stretch: 100%; color: var(--muted); }
.plan-annual { margin: 0 0 22px; font-size: 0.95rem; color: var(--muted); }
.plan .check-list { margin-bottom: 28px; }
.plan .btn { margin-top: auto; width: 100%; }
.pricing-notes { margin: 28px 0 0; font-size: 0.95rem; color: var(--muted); max-width: 48rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
  padding: 14px 14px;
  border-radius: var(--radius-control);
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: rgba(30, 74, 66, 0.06); }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--door);
  border-bottom: 2px solid var(--door);
  transform: translateY(-3px) rotate(45deg);
}
.faq details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
@media (prefers-reduced-motion: no-preference) {
  .faq summary::after { transition: transform 0.2s ease; }
}
.faq details p { margin: 0; padding: 0 14px 20px; color: #2F3936; font-size: 1.0625rem; line-height: 1.6; max-width: 70ch; }

/* ---------- Form + call card ---------- */
.get-started .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 56px;
  align-items: start;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 1rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  font: inherit;
  font-size: 1rem;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-control);
  background: var(--white);
  color: var(--ink);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6A7672; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--door);
  box-shadow: 0 0 0 3px rgba(30, 74, 66, 0.25);
}
.field input[aria-invalid="true"] { border-color: var(--sold); }
.field-error { margin: 0; color: var(--sold); font-size: 0.92rem; font-weight: 600; }

.more-fields { margin-top: 20px; }
.more-fields > summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--door);
}
.more-fields > summary::-webkit-details-marker { display: none; }
.more-fields > summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--door);
  border-radius: 50%;
  font-weight: 700;
  line-height: 1;
}
.more-fields[open] > summary::before { content: "\2212"; }
.more-fields[open] > .form-grid { margin-top: 12px; }
.more-fields .field label { font-weight: 500; }

.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-small { font-size: 0.95rem; color: var(--muted); margin: 0; }
.form-error { margin: 14px 0 0; color: var(--sold); font-weight: 600; }
.hidden { position: absolute; left: -9999px; }

.call-card { border-left: 3px solid var(--brass); padding: 4px 0 4px 24px; }
.call-card h3 { margin: 0 0 8px; font-size: 1.3rem; font-stretch: 125%; }
.call-card p { margin: 0 0 18px; color: var(--muted); }
.call-card .call-alt { margin: 18px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--door-deep); color: #C8D6D1; padding: 48px 0; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer a { color: var(--paper); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer p { margin: 0 0 6px; }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 88px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-stretch: 125%; line-height: 1.1; margin: 0 0 8px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 8px; }
.legal p, .legal li { max-width: 70ch; }
.legal .callout {
  background: var(--white);
  border-left: 3px solid var(--brass);
  padding: 14px 18px;
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav-link { display: none; }
}
@media (max-width: 900px) {
  :root { --section-pad: 64px; }
  .hero { padding-top: 40px; }
  .hero .wrap, .get-started .wrap, .problem-grid, .brief-grid { grid-template-columns: 1fr; gap: 40px; }
  .plans { grid-template-columns: 1fr; gap: 32px; }
  .plan-for { min-height: 0; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .trust-list { flex-direction: column; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .btn-submit { width: 100%; }
  /* Mobile hero: get the sample card's header and subject above the fold at 375x812 */
  .hero { padding-top: 32px; }
  .hero .wrap { gap: 0; }
  .hero .wrap > div:first-child { display: contents; }
  .hero-lede { margin-bottom: 22px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .brief-stage { margin-top: 22px; }
  .hero-note { order: 1; margin-top: 16px; }
  /* Narrow screens: slimmer screen padding so the table fits on one line per row,
     and dots sit centered on the frame's left edge, clear of the content */
  .phone-body { padding-left: 10px; padding-right: 10px; }
  .phone .pill-up { padding: 1px 5px; }
  .phone { --dot-left: -33px; }
  .brand { font-size: 1.1rem; }
  .site-header .btn-sm { padding: 8px 12px; font-size: 0.9rem; }
  .brief-body { padding: 16px 16px 18px; }
  .brief table { font-size: 0.88rem; }
  .brief th, .brief td { padding-left: 8px; }
}
@media (max-width: 400px) {
  .brand { gap: 6px; }
  .site-header .wrap { padding-left: 16px; padding-right: 16px; gap: 12px; }
}
