/* ─── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  --cream:       #faf7f2;
  --warm-dark:   #1e1a15;
  --hero-bg:     #2a241c;
  --accent:      #6b8f5e;
  --accent-dark: #4e6b44;
  --muted:       #8c7e74;
  --border:      #e0d9cf;
  --card-bg:     #ffffff;
  --mid-bg:      #f3ede4;
  --text:        #221d18;
}

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

body {
  margin: 0;
  font-family: 'Inter', 'Source Sans 3', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
}

/* ─── Header / Zapier-style ─────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(30, 26, 21, 0.06);
}

.site-logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--warm-dark);
  text-decoration: none;
  flex-shrink: 0;
}

header h1 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--warm-dark);
  margin: 0;
  flex-shrink: 0;
}

header p { display: none; }

/* ─── Nav ────────────────────────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 14px;
}

nav a {
  color: #4a4a4a;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

nav a:hover { background: var(--mid-bg); color: var(--warm-dark); }

nav .nav-cta {
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  padding: 7px 16px;
}

nav .nav-cta:hover { background: var(--accent-dark); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--hero-bg);
  background-image:
    radial-gradient(ellipse at 20% 80%, rgba(107, 143, 94, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 15%, rgba(107, 143, 94, 0.12) 0%, transparent 50%);
  background-attachment: fixed;
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(250,247,242,0.04)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-icon {
  display: block;
  margin: 0 auto 28px;
  opacity: 0.92;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin: 0 0 20px;
  line-height: 1.18;
}

.hero p {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(250, 247, 242, 0.7);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Main ───────────────────────────────────────────────────────────────── */
main {
  max-width: 980px;
  margin: 0 auto;
  padding: 60px 32px 80px;
}

/* ─── How It Works steps ─────────────────────────────────────────────────── */
.how-it-works {
  margin-bottom: 64px;
}

.how-it-works > h2 {
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(30, 26, 21, 0.06);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 50%;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.step p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(30, 26, 21, 0.05);
}

.card h3 { margin-top: 0; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 2px solid transparent;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.18s, transform 0.12s;
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  color: rgba(250, 247, 242, 0.9);
  border-color: rgba(250, 247, 242, 0.35);
}

.button.secondary:hover {
  background: rgba(250, 247, 242, 0.08);
  border-color: rgba(250, 247, 242, 0.55);
}

.button.dark {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.button.dark:hover { background: var(--accent-dark); }

/* ─── Forms ──────────────────────────────────────────────────────────────── */
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text);
}

input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 18px;
  background: var(--cream);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107, 143, 94, 0.15);
}

textarea { min-height: 120px; resize: vertical; }

/* ─── Auth tabs ──────────────────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  text-align: center;
}

.auth-tab.active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.auth-panel { display: none; }
.auth-panel.active { display: block; }

/* ─── Section headings ───────────────────────────────────────────────────── */
.section-title {
  margin: 48px 0 16px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ─── Lists ──────────────────────────────────────────────────────────────── */
.list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.list li:last-child { border-bottom: none; }

/* ─── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(107, 143, 94, 0.1);
  color: var(--accent-dark);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 5px;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

/* ─── Notices ────────────────────────────────────────────────────────────── */
.notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}

.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* ─── Footer — Zapier-style dark multi-column ────────────────────────────── */
footer {
  background: var(--warm-dark);
  color: rgba(250, 247, 242, 0.6);
  font-size: 13px;
  padding: 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 40px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(250, 247, 242, 0.5);
  margin: 0;
  max-width: 220px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250, 247, 242, 0.4);
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  color: rgba(250, 247, 242, 0.7);
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  padding: 5px 0;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--cream); }

/* Mailing list */
.footer-ml label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250, 247, 242, 0.4);
  margin-bottom: 10px;
}

.footer-ml .ml-row {
  display: flex;
  gap: 8px;
}

.footer-ml input[type="email"] {
  flex: 1;
  padding: 9px 12px;
  border-radius: 7px;
  border: 1px solid rgba(250, 247, 242, 0.15);
  background: rgba(250, 247, 242, 0.07);
  color: var(--cream);
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 0;
}

.footer-ml input[type="email"]::placeholder { color: rgba(250,247,242,0.3); }
.footer-ml input[type="email"]:focus {
  outline: none;
  border-color: rgba(107, 143, 94, 0.6);
}

.footer-ml .button {
  padding: 9px 16px;
  font-size: 13px;
  white-space: nowrap;
}

.footer-ml-msg { font-size: 12px; margin-top: 6px; color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(250, 247, 242, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(250, 247, 242, 0.35);
}

.footer-bottom a { color: rgba(250, 247, 242, 0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--cream); }

/* ─── Google OAuth button ────────────────────────────────────────────────── */
.google-btn {
  width: 100%;
  background: #fff;
  color: #3c4043;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 16px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: box-shadow 0.15s, background 0.15s;
}

.google-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transform: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Scroll fade-in animations ──────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ─── Auth page layout ───────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--hero-bg);
  background-image:
    radial-gradient(ellipse at 15% 85%, rgba(107, 143, 94, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 10%, rgba(107, 143, 94, 0.12) 0%, transparent 50%);
  background-attachment: fixed;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.auth-brand {
  text-align: center;
  margin-bottom: 32px;
}

.auth-brand h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--warm-dark);
  margin: 0 0 4px;
}

.auth-brand p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ─── Home page full-width sections ─────────────────────────────────────── */
.home-section {
  padding: 72px 0;
}

.home-section.alt-bg {
  background: var(--mid-bg);
}

.home-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 40px;
}

.home-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.home-section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--warm-dark);
}

.see-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.see-all:hover { text-decoration: underline; }

/* ─── Centered step cards ────────────────────────────────────────────────── */
.step { text-align: center; }

.step-num { margin: 0 auto 16px; }

/* ─── Page hero (subpages) ───────────────────────────────────────────────── */
.page-hero {
  background: var(--mid-bg);
  border-bottom: 1px solid var(--border);
  padding: 52px 40px 44px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: var(--warm-dark);
}

.page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 auto;
  max-width: 540px;
  line-height: 1.6;
}

/* ─── Section content font size ──────────────────────────────────────────── */
.home-section .card, .home-section .list {
  font-size: 15px;
}

/* ─── Muted placeholder message ─────────────────────────────────────────── */
.muted-msg {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  header { padding: 0 16px; }
  .home-inner { padding: 0 20px; }
  .page-hero { padding: 40px 20px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-inner { padding: 40px 20px 24px; }
}

@media (max-width: 600px) {
  main { padding: 40px 16px 60px; }
  .auth-card { padding: 28px 20px; }
  .hero { background-attachment: scroll; }
  .home-section { padding: 48px 0; }
  .home-section-heading { flex-direction: column; gap: 8px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-ml .ml-row { flex-direction: column; }
}
