/* SmasHaven marketing site — elegant, restrained, single-column.
   Serif display type for headings, system-sans for body. Same palette
   as the mobile app but used more sparingly so the marketing surface
   feels distinct from the in-app surfaces. */

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #1f2937;
  --ink-muted: rgba(31, 41, 55, 0.62);
  --ink-faint: rgba(31, 41, 55, 0.38);
  --green: #1f7a63;
  --green-hover: #18634f;
  --green-dim: rgba(31, 122, 99, 0.08);
  --lime: #a3e635;
  --rule: rgba(60, 60, 67, 0.12);
  --measure: 56rem;
  --measure-narrow: 40rem;

  /* Type: New York / Georgia serif for display, system sans for body. */
  --serif: "New York", "Times New Roman", Georgia, "Noto Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
}

a { color: var(--green); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 120ms ease; }
a:hover { border-bottom-color: var(--green); }

/* ── Header ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 247, 0.82);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--rule);
}
.site-header .inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Wordmark — matches the mobile Header exactly: system-sans at
   700 weight, -0.5px letter-spacing (≈ -0.019em at 26px), accent H in
   the brand green. No italic, no serif. Keeping the same visual
   signature across app + web removes the split-brand feeling. */
.wordmark {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.019em;
  color: var(--ink);
  border: 0;
}
.wordmark .accent { color: var(--green); }

.header-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 8px 16px;
  border-radius: 999px;
  transition: border-color 120ms ease, background 120ms ease;
}
.header-cta:hover { border-color: var(--green); background: var(--green-dim); }

/* ── Sections ───────────────────────────────────────────────────── */
section {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 96px 28px;
}
section.narrow > * {
  max-width: var(--measure-narrow);
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  margin: 0 0 24px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 20px;
}

h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 18ch;
}

h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  max-width: 22ch;
}

h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}

p.lead {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 38ch;
  margin: 0 0 40px;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  padding-top: 120px;
  padding-bottom: 120px;
}
.hero .ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  display: inline-block;
  background: var(--green);
  color: #fff;
  border: 0;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  transition: background 120ms ease, transform 120ms ease;
}
.btn-primary:hover { background: var(--green-hover); border: 0; }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  display: inline-block;
  color: var(--ink);
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  border: 0;
}
.btn-ghost::after { content: " →"; color: var(--green); }
.btn-ghost:hover { color: var(--green); border: 0; }

/* ── Features row ───────────────────────────────────────────────── */
.features {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 80px 28px;
}
.features .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: var(--measure);
  margin: 0 auto;
}
.feature h3 { margin-top: 8px; }
.feature p { color: var(--ink-muted); font-size: 15px; margin: 0; }
.feature .glyph {
  font-size: 22px;
  display: inline-block;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-dim);
  color: var(--green);
  text-align: center;
  line-height: 36px;
  margin-bottom: 14px;
}

@media (max-width: 720px) {
  .features .grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── About ──────────────────────────────────────────────────────── */
.about p { color: var(--ink); font-size: 18px; max-width: 48ch; }
.about p + p { margin-top: 16px; color: var(--ink-muted); }

/* ── Download row ───────────────────────────────────────────────── */
.download {
  background: var(--surface);
  border-radius: 24px;
  padding: 64px 48px;
  margin: 48px auto;
  max-width: var(--measure-narrow);
  text-align: center;
  border: 1px solid var(--rule);
}
.download h2 { margin-left: auto; margin-right: auto; max-width: 20ch; }
.download p.lead { margin-left: auto; margin-right: auto; }
.store-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: 14px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  border: 0;
  transition: opacity 120ms ease;
}
.store-badge:hover { opacity: 0.88; border: 0; }
.store-badge .icon { font-size: 22px; line-height: 1; }
.store-badge .stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.store-badge .stack .small { font-size: 10px; font-weight: 400; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.08em; }
.store-badge .stack .big { font-size: 15px; font-weight: 600; }
.download .coming-soon {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Contact ────────────────────────────────────────────────────── */
.contact { text-align: center; }
.contact .email-link {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  font-style: italic;
  color: var(--green);
  border: 0;
  letter-spacing: -0.01em;
}
.contact .email-link:hover { color: var(--green-hover); border: 0; }
.contact p { color: var(--ink-muted); font-size: 15px; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 56px 28px 64px;
}
.site-footer .inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.socials {
  display: flex;
  gap: 6px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--ink-muted);
  border: 0;
  transition: color 120ms ease, background 120ms ease;
}
.socials a:hover { color: var(--green); background: var(--green-dim); border: 0; }
.socials svg { width: 18px; height: 18px; display: block; }

.legal-links {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  font-size: 13px;
  flex-wrap: wrap;
}
.legal-links a { color: var(--ink-muted); border: 0; }
.legal-links a:hover { color: var(--ink); border: 0; }

.site-footer .small-print {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  font-size: 12px;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer .small-print .brand { font-family: var(--serif); font-style: italic; color: var(--ink-muted); }

@media (max-width: 640px) {
  .site-footer .inner { grid-template-columns: 1fr; }
  .legal-links { justify-content: flex-start; }
  section { padding: 72px 24px; }
  .hero { padding-top: 72px; padding-bottom: 72px; }
  .download { padding: 48px 28px; }
}
