:root {
  --ink: #0c1015;
  --ink-soft: #171d26;
  --cream: #f5f1ea;
  --cream-muted: #ebe5da;
  --gold: #c4a055;
  --gold-light: #e5d4a8;
  --slate: #5a6470;
  --white: #ffffff;
  --border: rgba(12, 16, 21, 0.1);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.85);
  --shadow: 0 32px 80px rgba(12, 16, 21, 0.14);
  --radius: 18px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(196, 160, 85, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(12, 16, 21, 0.05), transparent 50%),
    linear-gradient(180deg, #faf8f4 0%, var(--cream) 40%, #ede8df 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.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;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(245, 241, 234, 0.88);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav .nav-cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
}

.site-nav .nav-cta:hover {
  color: var(--cream);
  opacity: 0.9;
}

.city-pill {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--slate);
}

.section-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--gold);
}

/* Hero */
.hero {
  padding: 5.5rem 0 3rem;
  min-height: calc(100svh - 1rem);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 680px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  min-height: calc(100svh - 7rem);
}

.hero-copy {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 24px 60px rgba(12, 16, 21, 0.08);
}

.polaroid {
  margin: 0;
  padding: 0.55rem 0.55rem 2rem;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(12, 16, 21, 0.12);
  width: fit-content;
}

.polaroid img {
  display: block;
  width: clamp(110px, 14vw, 160px);
  height: clamp(86px, 11vw, 125px);
  object-fit: cover;
}

.polaroid-a {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  transform: rotate(-8deg);
}

.polaroid-b {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  transform: rotate(5deg);
}

.polaroid-c {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  transform: rotate(7deg);
}

.polaroid-d {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  transform: rotate(-5deg);
}

.hero-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.hero-line {
  color: var(--ink);
}

.hero-cycle-pill {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  padding: 0.2em 0.9em;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-style: italic;
  color: var(--ink);
  text-align: center;
  white-space: normal;
  text-wrap: balance;
  line-height: 1.25;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-cycle-pill.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.hero h1 em {
  font-style: italic;
  color: var(--ink-soft);
}

.hero-lead {
  margin: 0 auto 2rem;
  max-width: 32rem;
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.65;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(12, 16, 21, 0.2);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-hero {
  min-width: 10rem;
}

/* How it works */
.how-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.step-showcase {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}

.step-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.step-tab {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: lowercase;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.2s ease;
}

.step-tab:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.step-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.step-panels {
  position: relative;
  min-height: 12rem;
}

.step-panel {
  animation: fade-up 0.5s ease;
}

.step-panel[hidden] {
  display: none;
}

.step-panel .step-label {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--gold);
}

.step-panel h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
  text-transform: lowercase;
}

.step-panel p {
  margin: 0;
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.65;
}

.step-progress {
  margin-top: 2rem;
  height: 3px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.step-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: inherit;
  transition: width 0.1s linear;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Feature carousel */
.features-section {
  padding: 5rem 0;
  background: rgba(255, 255, 255, 0.35);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-section h2 {
  margin: 0 0 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  text-align: center;
  text-transform: lowercase;
}

.feature-carousel {
  max-width: 40rem;
  margin-inline: auto;
}

.feature-carousel-track {
  position: relative;
  min-height: 11rem;
}

.feature-slide {
  position: absolute;
  inset: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.feature-slide.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.feature-slide-num {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.feature-slide h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}

.feature-slide p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.6;
}

.feature-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.carousel-btn:hover {
  border-color: var(--gold);
}

.feature-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  max-width: 16rem;
}

.feature-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.feature-dot.is-active {
  background: var(--ink);
  transform: scale(1.3);
}

.features-cta-wrap {
  margin: 2.5rem 0 0;
  text-align: center;
}

/* Sign up */
.signup-section {
  padding: 5rem 0 6rem;
}

.signup-container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.signup-intro {
  position: sticky;
  top: 5.5rem;
}

.signup-intro h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.1;
  text-transform: lowercase;
}

.signup-lead {
  margin: 0;
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.65;
}

.form-card {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
}

.form-card-glow {
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(196, 160, 85, 0.25), rgba(12, 16, 21, 0.08));
  filter: blur(20px);
  opacity: 0.7;
  z-index: 0;
}

.form-card-inner {
  position: relative;
  z-index: 1;
  padding: 2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: calc(var(--radius) + 6px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.intake-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.neighborhood-filter:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 160, 85, 0.2);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.budget-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

/* Neighborhood picker */
.neighborhood-count {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--slate);
}

.neighborhood-filter {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
}

.neighborhood-no-results {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--slate);
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.45);
}

.neighborhood-option.is-hidden,
.neighborhood-group.is-hidden {
  display: none;
}

.neighborhood-option mark {
  padding: 0 0.1em;
  border-radius: 2px;
  background: rgba(196, 160, 85, 0.35);
}

.neighborhood-picker {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.neighborhood-group {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.neighborhood-group-label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.2;
}

.neighborhood-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.neighborhood-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  min-height: 2.25rem;
}

.neighborhood-option input {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--ink);
}

.neighborhood-option span {
  font-size: 0.84rem;
  line-height: 1.15;
  padding-top: 0.05em;
}

.neighborhood-option:has(input:checked) {
  background: rgba(196, 160, 85, 0.12);
}

.neighborhood-group-other {
  border-style: dashed;
}

.neighborhood-group-other .neighborhood-options {
  grid-template-columns: 1fr;
}

.field-hint {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: var(--slate);
  line-height: 1.45;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.form-actions .btn-primary {
  width: 100%;
  text-transform: none;
}

.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--slate);
  text-align: center;
}

.form-message {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(34, 150, 90, 0.12);
  border: 1px solid rgba(34, 150, 90, 0.3);
  color: #1a6b42;
}

.form-message.error {
  display: block;
  background: rgba(200, 60, 60, 0.1);
  border: 1px solid rgba(200, 60, 60, 0.3);
  color: #9b2c2c;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--slate);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-inner a,
.footer-links a {
  font-weight: 500;
  text-transform: lowercase;
}

.footer-inner a:hover,
.footer-links a:hover {
  color: var(--ink);
}

/* Legal pages */
.legal-main {
  padding: 6rem 0 4rem;
  max-width: 42rem;
}

.legal-doc h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.1;
}

.legal-updated {
  margin: 0 0 2rem;
  font-size: 0.85rem;
  color: var(--slate);
}

.legal-doc h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.legal-doc p,
.legal-doc li {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.legal-doc ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.legal-doc a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-disclaimer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem !important;
  color: var(--slate) !important;
}

.signup-privacy a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.signup-footer {
  padding-bottom: 1.5rem;
}

.signup-footer .footer-inner {
  max-width: 36rem;
  margin-inline: auto;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
    gap: 2rem;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    order: 1;
  }

  .polaroid-a,
  .polaroid-b,
  .polaroid-c,
  .polaroid-d {
    display: none;
  }
}

@media (max-width: 960px) {
  .signup-container {
    grid-template-columns: 1fr;
  }

  .signup-intro {
    position: static;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .city-pill {
    display: none;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero-copy {
    padding: 1.5rem 1.15rem;
  }
}

@media (max-width: 640px) {
  .form-row,
  .budget-row,
  .neighborhood-options {
    grid-template-columns: 1fr;
  }

  .form-card-inner {
    padding: 1.35rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .step-ticker span,
  .step-panel,
  .feature-slide {
    animation: none !important;
    transition: none !important;
  }

  .btn-primary:hover:not(:disabled) {
    transform: none;
  }
}

/* Signup wizard (222-style) */
.signup-page {
  min-height: 100svh;
}

.signup-header .header-inner {
  justify-content: space-between;
}

.signup-exit {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate);
  text-transform: lowercase;
}

.signup-exit:hover {
  color: var(--ink);
}

.signup-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 4rem);
  padding: 5rem 1rem 2rem;
  max-width: 36rem;
  margin-inline: auto;
}

.signup-progress {
  margin: 0 0 2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--gold);
}

.signup-form {
  width: 100%;
}

.signup-step {
  text-align: center;
  animation: fade-up 0.4s ease;
}

.signup-step[hidden] {
  display: none;
}

.signup-question {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.12;
  text-transform: lowercase;
}

.signup-hint {
  margin: 0 0 1.75rem;
  font-size: 0.88rem;
  color: var(--slate);
}

.signup-step input:not([type="checkbox"]):not([type="search"]),
.signup-step select,
.signup-step textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup-step input:focus,
.signup-step select:focus,
.signup-step textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 160, 85, 0.2);
}

.signup-step textarea {
  text-align: left;
  resize: vertical;
  min-height: 120px;
}

.signup-step-wide {
  text-align: left;
}

.signup-step-wide .signup-question,
.signup-step-wide .signup-hint {
  text-align: center;
}

.signup-step-wide .neighborhood-filter {
  text-align: left;
}

.signup-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 2.5rem;
  gap: 1rem;
}

.signup-nav-btn {
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.signup-nav-btn:hover:not(:disabled) {
  border-color: var(--gold);
}

.signup-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.signup-nav-next {
  margin-left: auto;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.signup-nav-next:hover:not(:disabled) {
  border-color: var(--ink);
  opacity: 0.92;
}

.signup-privacy {
  margin: 1.25rem 0 0;
  font-size: 0.78rem;
  color: var(--slate);
  text-align: center;
}

.signup-main .form-message {
  margin-top: 1rem;
  text-align: center;
}

@media (max-width: 640px) {
  .signup-main {
    padding-top: 4.5rem;
  }

  .signup-nav {
    flex-direction: column-reverse;
  }

  .signup-nav-next {
    width: 100%;
    margin-left: 0;
  }

  .signup-nav-btn {
    width: 100%;
  }
}
