/* FamilyTable — shared styles */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Inter:wght@300;400;500;600;700&family=Caveat:wght@400;500;600&display=swap');

:root {
  --cream: #F4EFE6;
  --cream-2: #EBE3D5;
  --cream-3: #E2D8C5;
  --ink: #1A1612;
  --ink-2: #2D2620;
  --muted: #6B6258;
  --muted-2: #9A9082;
  --line: #D8CFBE;
  --sage: #7A8B6A;
  --sage-deep: #5C6B4F;
  --terra: #C4633D;
  --terra-deep: #A24F2C;
  --white: #FBF8F2;

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --script: 'Caveat', cursive;

  --container: 1240px;
  --radius: 14px;
  --radius-lg: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.05;
  color: var(--ink);
  font-optical-sizing: auto;
}

h1 { font-size: clamp(48px, 7vw, 104px); }
h2 { font-size: clamp(36px, 4.5vw, 64px); line-height: 1.08; }
h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
h4 { font-size: 20px; line-height: 1.2; }

p { margin: 0; }

.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  font-weight: 300;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terra);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}

.script {
  font-family: var(--script);
  font-weight: 500;
  letter-spacing: 0;
}

em.script-em {
  font-family: var(--script);
  font-style: normal;
  font-weight: 500;
  color: var(--terra);
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled,
.site-header.solid {
  background: rgba(244, 239, 230, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}

.site-header.on-dark:not(.scrolled) { color: var(--white); }
.site-header.on-dark:not(.scrolled) .nav-link { color: rgba(255,255,255,0.92); }
.site-header.on-dark:not(.scrolled) .logo-mark { filter: invert(1) brightness(2); }

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--script);
  font-size: 30px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
}

.logo-mark {
  height: 30px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 450;
  position: relative;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--terra); }
.nav-link.active { color: var(--terra); }
.nav-link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--terra);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--ink-2); }

.btn-terra {
  background: var(--terra);
  color: white;
}
.btn-terra:hover { background: var(--terra-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--cream-2); border-color: var(--ink); }

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-xl { padding: 20px 36px; font-size: 17px; }

.arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Footer */
.site-footer {
  margin-top: 120px;
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-brand .logo { margin-bottom: 20px; }
.footer-brand p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col li a {
  color: var(--muted);
  font-size: 14.5px;
  transition: color 0.2s;
}
.footer-col li a:hover { color: var(--ink); }

.newsletter-row {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 4px 4px 18px;
  max-width: 340px;
}
.newsletter-row input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  padding: 10px 0;
}
.newsletter-row input::placeholder { color: var(--muted-2); }
.newsletter-row button {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  border: 0;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.newsletter-row button:hover { background: var(--terra); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13.5px;
}
.footer-bottom .legal { display: flex; gap: 24px; }

/* Section utility */
.section { padding: 120px 0; }
.section-tight { padding: 80px 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .lede { max-width: 460px; }

/* Generic page hero */
.page-hero {
  padding: 180px 0 80px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(56px, 8vw, 120px); }
.page-hero .lede { max-width: 620px; margin-top: 24px; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Tag chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: var(--white);
}

/* Divider */
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Mock app card visuals (we'll use CSS-drawn UI to "show product") */
.app-frame {
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(26,22,18,0.18), 0 8px 18px -10px rgba(26,22,18,0.08);
  overflow: hidden;
}

.app-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.app-topbar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cream-3); }
.app-topbar .dot.r { background: #E0A89B; }
.app-topbar .dot.y { background: #E5C77B; }
.app-topbar .dot.g { background: #A6BD8E; }

/* responsive */
@media (max-width: 900px) {
  .container, .container-wide { padding: 0 20px; }
  .section { padding: 80px 0; }
  .nav { gap: 20px; }
  .nav .nav-link.hide-mobile { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
