/* ── ADU Pass — Coming Soon ─────────────────────────── */

/* ── Self-hosted Fonts ─────────────────────────────── */
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/Fraunces.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/Fraunces-Italic.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Design Tokens ─────────────────────────────────── */
:root {
  /* Warm homeowner palette */
  --color-bg:           #FBF5EB;
  --color-bg-warm:      #F5EBDA;
  --color-surface:      #FFFFFF;
  --color-surface-warm: #FFF9F0;
  --color-terra:        #C0694A;      /* warm terra cotta — primary accent */
  --color-terra-light:  #C0694A18;
  --color-terra-mid:    #C0694A30;
  --color-sage:         #5D8A66;      /* sage green — secondary */
  --color-sage-light:   #5D8A6618;
  --color-text:         #3B2E20;
  --color-text-mid:     #6B5D50;
  --color-text-soft:    #9B8E82;
  --color-line:         #E6DDD0;
  --color-shadow:       #3B2E2010;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Nunito', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  3rem;
  --space-xl:  5rem;

  /* Sizes */
  --header-height: 68px;
  --max-width:     1080px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-full:   100px;
}

/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

/* ── Soft pattern background ───────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--color-line) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

/* ── Header ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  z-index: 100;
  background: linear-gradient(to bottom, var(--color-bg) 60%, transparent);
  animation: fadeSlideDown 0.8s ease-out both;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.logo-group img {
  height: 40px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--color-shadow);
}

.header-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-terra);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border: 2px solid var(--color-terra-mid);
  border-radius: var(--radius-full);
  background: var(--color-terra-light);
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) 0 var(--space-lg);
  z-index: 1;
  overflow-x: clip;
}

.hero > * {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

/* Warm glow */
.hero::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    #F5C88E33 0%,
    #C0694A11 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}


.hero-overline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-sage);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-sm);
  animation: fadeSlideUp 0.8s 0.3s ease-out both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  animation: fadeSlideUp 0.8s 0.5s ease-out both;
}

.hero-title .accent {
  color: var(--color-terra);
  font-style: italic;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--color-text-mid);
  max-width: 520px;
  margin: 0 auto var(--space-lg);
  line-height: 1.75;
  animation: fadeSlideUp 0.8s 0.7s ease-out both;
}

/* ── Email Signup ──────────────────────────────────── */
.signup-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  width: 100%;
  animation: fadeSlideUp 0.8s 0.9s ease-out both;
  box-shadow: 0 4px 24px var(--color-shadow), 0 1px 4px var(--color-shadow);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 15px 22px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 2px solid var(--color-line);
  border-right: none;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  outline: none;
  transition: border-color 0.3s;
  min-width: 0;
}

.signup-form input[type="email"]::placeholder {
  color: var(--color-text-soft);
}

.signup-form input[type="email"]:focus {
  border-color: var(--color-terra);
}

.signup-form button {
  padding: 15px 26px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-terra);
  border: 2px solid var(--color-terra);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s, transform 0.15s;
}

.signup-form button:hover {
  background: #A8593F;
}

.signup-form button:active {
  transform: scale(0.98);
}

.signup-hint {
  font-size: 0.8rem;
  color: var(--color-text-soft);
  margin-top: var(--space-xs);
  animation: fadeSlideUp 0.8s 1.1s ease-out both;
}

/* ── Hero Image Banner ─────────────────────────────── */
.hero-image {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.hero-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 40%;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px var(--color-shadow), 0 2px 8px var(--color-shadow);
  border: 3px solid var(--color-surface);
}

.hero-image figcaption {
  text-align: right;
  font-size: 0.7rem;
  color: var(--color-text-soft);
  margin-top: 6px;
  padding-right: 4px;
}

/* ── Wave Divider ──────────────────────────────────── */
.divider {
  height: 40px;
  background: var(--color-bg);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.divider svg {
  display: block;
  width: 100%;
  height: 40px;
}

/* ── Stats Row ─────────────────────────────────────── */
.stats-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-md);
  background: var(--color-bg-warm);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--color-terra);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* ── Feature Cards ─────────────────────────────────── */
.features {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.features-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  font-style: italic;
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.feature-card {
  background: var(--color-surface);
  border: 2px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-md) var(--space-lg);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.feature-card:hover {
  border-color: var(--color-terra-mid);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px var(--color-shadow);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
  line-height: 1;
}

.feature-icon-terra {
  background: var(--color-terra-light);
  color: var(--color-terra);
  border: 2px solid var(--color-terra-mid);
}

.feature-icon-sage {
  background: var(--color-sage-light);
  color: var(--color-sage);
  border: 2px solid #5D8A6630;
}

.feature-icon-warm {
  background: #F5C88E22;
  color: #B8860B;
  border: 2px solid #F5C88E44;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--color-text-mid);
  line-height: 1.7;
}

/* ── Footer ────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  border-top: 2px solid var(--color-line);
  background: var(--color-bg-warm);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--color-text-mid);
  margin-bottom: var(--space-xs);
}

.footer-brand span {
  color: var(--color-terra);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin-bottom: var(--space-xs);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-soft);
}

/* ── Animations ────────────────────────────────────── */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.pulse {
  animation: pulse 2.5s ease-in-out infinite;
}


/* ── Scroll-triggered reveal ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header {
    padding: 0 var(--space-sm);
  }

  .header-tag {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-md);
    align-items: stretch;
    text-align: center;
  }

  .hero > * {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-subtitle {
    margin-bottom: var(--space-md);
  }

  .signup-form {
    flex-direction: column;
    gap: var(--space-xs);
    border-radius: var(--radius);
    box-shadow: none;
    overflow: visible;
    max-width: none;
  }

  .signup-form input[type="email"] {
    border-right: 2px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px var(--color-shadow);
  }

  .signup-form button {
    border-radius: var(--radius);
    box-shadow: 0 2px 12px var(--color-shadow);
  }

  .stats-row {
    gap: 0;
    padding: var(--space-md) var(--space-sm);
    flex-direction: column;
    align-items: center;
  }

  .stat {
    width: 100%;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-line);
  }

  .stat:last-child {
    border-bottom: none;
  }

  .features {
    padding: var(--space-lg) var(--space-sm);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-heading {
    margin-bottom: var(--space-md);
  }

  .hero-image {
    padding: 0 var(--space-sm);
  }

  .hero-image img {
    height: 200px;
    border-radius: var(--radius);
  }

  .site-footer {
    padding: var(--space-md) var(--space-sm) var(--space-sm);
  }
}
