/* Your Local Site — agency landing
   Palette locked to post-pay welcome email: bg #fefefe, text #000, secondary #7D7C78
*/
:root {
  --bg: #fefefe;
  --bg-alt: #f7f6f4;
  --text: #000000;
  --muted: #7D7C78;
  --line: #E0DFDD;
  --btn-radius: 8px;
  --wrap: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
  border-radius: var(--btn-radius);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
}

.wordmark {
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.wordmark:hover { text-decoration: none; opacity: 0.85; }

/* Locked primary: 05g tracked-landing (YOUR LOCAL SITE · Arial Bold · 0.24em) */
.wordmark-img {
  display: block;
  width: clamp(240px, 32vw, 340px);
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.header-nav a:hover,
.header-nav a[aria-current="page"] { color: var(--text); }
.nav-login em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 0.25rem;
  opacity: 0.85;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--btn-radius);
  font: inherit;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: #000;
  color: #fff;
  border-color: #faf9f7;
}
.btn-primary:hover { background: #1a1a1a; }

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

/* Hero */
.hero {
  padding: clamp(3.5rem, 10vw, 6.5rem) 0 clamp(4rem, 9vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: 1.75rem;
  align-items: center;
}
.hero-copy { grid-column: 1; grid-row: 1; max-width: 40rem; }
.hero-face {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.brief { grid-column: 1; grid-row: 2; max-width: 28rem; }

.brief label {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.brief input {
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--btn-radius);
  padding: 0.7rem 0.85rem;
}
.brief input:focus {
  outline: 2px solid #000;
  outline-offset: 1px;
  border-color: #000;
}
.brief-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.face-stage {
  position: relative;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
}
.face-rig {
  width: 132px;
  height: 132px;
  transform-origin: 50% 60%;
  z-index: 1;
}
.face-orb {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%,
    #f7f6f4 0%,
    #c8c6c2 12%,
    #4a4a4a 38%,
    #161616 68%,
    #000000 100%);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.12),
    inset 0 0 16px rgba(255, 255, 255, 0.2),
    inset 8px 10px 14px rgba(255, 255, 255, 0.28),
    inset -10px -14px 18px rgba(0, 0, 0, 0.55);
  transform-origin: 50% 62%;
  cursor: pointer;
}
.face-orb::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 16%;
  width: 38%;
  height: 20%;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.08) 70%, transparent);
  pointer-events: none;
}
.face-eyes {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 58px;
  height: 28px;
  margin-left: -29px;
  margin-top: -14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.face-eye {
  width: 11px;
  height: 26px;
  border-radius: 999px;
  background: #fefefe;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  flex: 0 0 auto;
}
.face-shadow {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 78px;
  height: 12px;
  margin-left: -39px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  filter: blur(2px);
  z-index: 0;
}
.face-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.face-role {
  margin: 1.15rem 0 0;
  max-width: 14rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.face-note {
  margin: 0.4rem 0 0;
  max-width: 14rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.face-stage { overflow: visible; }
.face-spray {
  position: absolute;
  left: 50%;
  top: 68%;
  width: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
}
.face-drop {
  position: absolute;
  width: 5px;
  height: 8px;
  margin: -4px 0 0 -2px;
  border-radius: 40%;
  background: #1a1a1a;
  animation: face-drop 620ms cubic-bezier(0.12, 0.7, 0.2, 1) forwards;
}
@keyframes face-drop {
  0% { opacity: 0; transform: translate(0, 0) scale(0.35); }
  18% { opacity: 0.95; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.25); }
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.hero-title {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 2.25rem; max-width: 36rem; }
.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}
.section-lead { margin: 0; color: var(--muted); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}
.step {
  margin: 0;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.step:hover {
  transform: translateY(-3px);
  border-color: #cfcfcb;
  box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.step p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.include-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
.include-card {
  padding: 1.35rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.include-card:hover {
  transform: translateY(-2px);
  border-color: #cfcfcb;
}
.include-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.include-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 44rem;
}
.price-card {
  position: relative;
  padding: 1.6rem 1.45rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.price-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.05);
}
.price-card-hot {
  border-color: #000;
}
.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.price-card h3 { margin: 0 0 0.6rem; font-size: 1.1rem; }
.price {
  margin: 0 0 0.35rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.price strong {
  font-size: 2rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.price span { color: var(--muted); font-size: 0.95rem; }
.price-note { margin: 0 0 1rem; color: var(--muted); font-size: 0.9rem; }
.price-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.price-card li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #000;
}
.pricing-foot {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-cta .cta-inner {
  max-width: 34rem;
  padding: 2.25rem 0;
}
.section-cta h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}
.section-cta p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.stub {
  max-width: 36rem;
  padding: 2rem 1.75rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.stub h2 { margin: 0 0 0.5rem; letter-spacing: -0.03em; }
.stub-badge {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.stub > p { margin: 0 0 1rem; color: var(--muted); }
.stub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0 !important;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.25rem 0 2.25rem;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 3rem;
  row-gap: 1.75rem;
  align-items: start;
}
.footer-wordmark { display: inline-flex; }
.footer-mark {
  width: min(260px, 78vw);
  height: auto;
}
.footer-legal {
  display: grid;
  gap: 0.15rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}
.footer-name {
  color: var(--text);
  font-weight: 600;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  margin: 0.2rem 0 0;
}
.footer-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--text); }
.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1.25rem;
  }
}
.muted { color: var(--muted); }

/* Quiet legal pages */
.legal {
  width: min(100% - 3rem, 38rem);
  margin: 0 auto;
  padding: 4.5rem 0 5.5rem;
}
.legal .wordmark { margin: 0 0 3rem; }
.legal .wordmark-img {
  width: min(100%, 280px);
  max-height: none;
}
.legal h1 {
  margin: 0 0 1.75rem;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.legal p { margin: 0 0 1.15rem; }
.legal .legal-meta {
  margin: -0.35rem 0 2rem;
  color: var(--muted);
  line-height: 1.55;
}
.legal a { text-underline-offset: 3px; }
.legal .legal-next {
  margin: 2.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Motion — hero entrance + scroll reveal */
[data-hero] {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in 0.8s var(--ease) forwards;
}
[data-hero="1"] { animation-delay: 0.05s; }
[data-hero="2"] { animation-delay: 0.16s; }
[data-hero="3"] { animation-delay: 0.28s; }
[data-hero="4"] { animation-delay: 0.4s; }

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

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

#how,
#included {
  scroll-margin-top: 6.5rem;
}

@media (max-width: 900px) {
  .steps,
  .include-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 24rem; }
}

@media (max-width: 800px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.95rem 0 0.8rem;
  }
  .wordmark { width: 100%; }
  .wordmark-img { width: min(100%, 340px); }
  .header-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: nowrap;
  }
  .header-nav a {
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .hero {
    padding: 1.65rem 0 1.85rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    row-gap: 1.35rem;
  }
  .hero-copy { grid-row: 1; }
  .hero-face {
    grid-column: 1;
    grid-row: 2;
  }
  .brief { grid-column: 1; grid-row: 3; max-width: none; }
  .eyebrow { margin-bottom: 0.65rem; font-size: 0.9rem; }
  .hero-title {
    font-size: 2.15rem;
    line-height: 1.08;
    margin-bottom: 0.85rem;
  }
  .hero-lead {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
  }
  .hero-actions .btn,
  .section-cta .btn { width: 100%; }

  .section { padding: 2.6rem 0; }
  .section-head { margin-bottom: 1.35rem; }
  .section-cta .cta-inner { padding: 0; }

  .steps { gap: 0.75rem; }
  .step { padding: 1.15rem 1.1rem; }

  .include-grid { gap: 0; }
  .include-card {
    padding: 1.05rem 0;
    border: 0;
    border-radius: 0;
    border-top: 1px solid var(--line);
    background: transparent;
  }
  .include-card:hover { transform: none; border-color: var(--line); }
  .include-card:last-child { border-bottom: 1px solid var(--line); }

  .legal {
    width: min(100% - 1.75rem, 38rem);
    padding: 2.25rem 0 3rem;
  }
  .legal .wordmark { margin-bottom: 2rem; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 1.75rem, var(--wrap)); }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-hero],
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .step:hover,
  .include-card:hover,
  .price-card:hover {
    transform: none;
  }
}

/* Sign-in page */
.gate {
  min-height: calc(100svh - 7rem);
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 24rem);
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2rem, 6vw, 4rem) 0 4rem;
}
.gate-copy { animation: hero-in 0.75s var(--ease) both; }
.gate-face {
  display: flex;
  justify-content: center;
  animation: hero-in 0.9s 0.08s var(--ease) both;
}
.gate h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.gate-lead {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.gate-form { display: grid; gap: 0.8rem; }
.float { position: relative; display: block; margin: 0; }
.float input {
  width: 100%;
  font: inherit;
  font-size: 1.2rem;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  padding: 1.55rem 0 0.55rem;
  transition: border-color 0.25s var(--ease);
}
.float input:focus {
  outline: none;
  border-bottom-color: #000;
}
.float span {
  position: absolute;
  left: 0;
  top: 1.2rem;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left center;
  transition: transform 0.22s var(--ease), color 0.22s var(--ease);
}
.float input:focus + span,
.float input:not(:placeholder-shown) + span {
  transform: translateY(-0.7rem) scale(0.78);
  color: #000;
}
.float input::placeholder { color: transparent; }
.gate-form .btn {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.95rem 1.15rem;
  border-radius: 14px;
}
.gate-message {
  min-height: 1.4em;
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
}
.gate-message:empty { visibility: hidden; }
.gate-message.is-on { animation: hero-in 0.35s var(--ease); }
.gate-message.is-muted { color: var(--muted); }
@media (max-width: 800px) {
  .gate {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    min-height: calc(100svh - 8rem);
    gap: 0.25rem;
    padding: 0.5rem 0 2.5rem;
  }
  .gate-face .face-stage {
    transform: scale(0.72);
    margin: -0.6rem 0 -0.2rem;
  }
  .gate-copy { width: 100%; }
  .gate h1 { font-size: 2.85rem; }
}
