/* BuildDaily — Marketing site styles
   Brand: muted sage green, warm off-white, modern serif headings + clean sans body. */

:root {
  --green-50: #f1f7f3;
  --green-100: #dceadf;
  --green-200: #b8d2c0;
  --green-400: #7faa90;
  --green-500: #6b9a78;
  --green-600: #588064;
  --green-700: #466852;
  --green-800: #34503e;
  --green-900: #1f2f25;

  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-muted: #6b6b6b;
  --paper: #faf8f4;
  --paper-warm: #f4f0e8;
  --line: #e7e2d6;
  --line-soft: #efebe1;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(31, 47, 37, 0.04), 0 1px 3px rgba(31, 47, 37, 0.06);
  --shadow: 0 4px 12px rgba(31, 47, 37, 0.05), 0 2px 4px rgba(31, 47, 37, 0.04);
  --shadow-lg: 0 12px 40px rgba(31, 47, 37, 0.08), 0 4px 12px rgba(31, 47, 37, 0.04);

  --max: 1120px;
  --gap: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a {
  color: var(--green-700);
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover { color: var(--green-900); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Iowan Old Style", "Palatino", "Georgia", ui-serif, serif;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.3rem; line-height: 1.3; }
h4 { font-size: 1.05rem; line-height: 1.4; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4em; margin-bottom: 1em; }
li { margin-bottom: 0.4em; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--paper-warm);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.92em;
}

/* --- Layout primitives --- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 18px;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 640px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: var(--green-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--green-800);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--green-500);
  color: var(--green-800);
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--green-800); text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--green-700);
  display: grid; place-items: center;
  color: #fff;
  font-family: "Iowan Old Style", "Palatino", Georgia, ui-serif, serif;
  font-size: 1rem;
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { padding: 10px 18px; font-size: 0.92rem; }

@media (max-width: 720px) {
  .nav-links { gap: 18px; }
  .nav-links li:not(:last-child) { display: none; }
}

/* --- Hero --- */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(ellipse at 80% -10%, var(--green-100) 0%, transparent 40%),
    radial-gradient(ellipse at 20% 110%, var(--green-50) 0%, transparent 50%),
    var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 em {
  font-style: normal;
  color: var(--green-700);
  white-space: nowrap;
}
.hero .lede { margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.hero-meta {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.hero-visual {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 14px;
}
.hero-visual-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
}
.hero-visual-icon {
  width: 60px; height: 60px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-800);
  display: grid; place-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: "Iowan Old Style", "Palatino", Georgia, ui-serif, serif;
}
.hero-visual-row strong { display: block; margin-bottom: 2px; }
.hero-visual-row span { font-size: 0.9rem; color: var(--ink-muted); }

@media (max-width: 880px) {
  .hero { padding: 64px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* --- Features --- */
.features {
  background: var(--paper-warm);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.features-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.features-head .lede { margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--green-200);
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--ink-soft); font-size: 0.97rem; }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--green-100);
  color: var(--green-800);
  display: grid; place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: "Iowan Old Style", "Palatino", Georgia, ui-serif, serif;
}

/* --- How it works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 56px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: "Iowan Old Style", "Palatino", Georgia, ui-serif, serif;
  font-size: 2rem;
  color: var(--green-500);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
}

/* --- CTA strip --- */
.cta-strip {
  background: var(--green-800);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.cta-strip h2 { color: #fff; margin-bottom: 14px; }
.cta-strip p { color: rgba(255,255,255,0.85); max-width: 540px; margin: 0 auto 28px; }
.cta-strip .btn-primary { background: #fff; color: var(--green-800); }
.cta-strip .btn-primary:hover { background: var(--green-50); color: var(--green-900); }

/* --- Footer --- */
.site-footer {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--ink-soft); }
.footer-grid a:hover { color: var(--green-800); }
.footer-blurb p { color: var(--ink-muted); max-width: 320px; margin-top: 12px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.85rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-blurb { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* --- Legal pages (privacy, terms, etc.) --- */
.legal {
  padding: 64px 0 96px;
  background: var(--paper);
}
.legal .container { max-width: 760px; }
.legal .lede { margin-bottom: 40px; color: var(--ink-soft); }
.legal h1 { margin-bottom: 12px; }
.legal h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.legal h2:first-of-type { padding-top: 0; border-top: none; margin-top: 24px; }
.legal h3 { font-size: 1.1rem; margin-top: 24px; margin-bottom: 8px; }
.legal p, .legal ul, .legal ol {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.legal p strong, .legal li strong { color: var(--ink); }
.legal ul, .legal ol { margin-top: 0.4em; }
.legal-meta {
  font-size: 0.88rem;
  color: var(--ink-muted);
  background: var(--paper-warm);
  border-left: 3px solid var(--green-400);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 32px;
}
.legal-toc {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 40px;
}
.legal-toc h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  margin-bottom: 12px;
}
.legal-toc ul { list-style: none; padding: 0; columns: 2; column-gap: 32px; margin: 0; }
.legal-toc li { margin-bottom: 6px; break-inside: avoid; }
.legal-toc a { font-size: 0.95rem; }
@media (max-width: 600px) { .legal-toc ul { columns: 1; } }

/* --- Tiny utilities --- */
.center { text-align: center; }
.muted { color: var(--ink-muted); }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
