/* The marketing site (worker/src/render/marketing.ts). Hearth palette, like the builder. */
:root {
  --bg: #fff8f0;
  --bg-alt: #faf3e8;
  --bg-deep: #f5e6d3;
  --surface: #ffffff;
  --text: #3e3528;
  --heading: #5d4e37;
  --muted: #836c50;
  --accent: #f4a460;
  --button: #8b5e3c;
  --button-hover: #74492b;
  --shadow: rgba(93, 78, 55, 0.15);
  --font-heading: "Crimson Text", Georgia, serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark { font-family: var(--font-heading); color: var(--heading); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 0 0 20px; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 16px; text-align: center; }
h3 { font-size: 1.35rem; margin: 0 0 6px; }
p { margin: 0 0 16px; }
a { color: var(--button); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.lede { font-size: 1.2rem; color: var(--muted); }
.fine { font-size: 0.95rem; color: var(--muted); }
.center { text-align: center; }

.button {
  display: inline-block;
  background: var(--button);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 0 4px 14px var(--shadow);
  transition: background 0.2s;
}
.button:hover { background: var(--button-hover); }
.button.small { padding: 8px 18px; font-size: 0.95rem; box-shadow: none; }

/* ---------- Header and footer ---------- */
.site-head, .site-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter);
  max-width: 1200px;
  margin: 0 auto;
}
.wordmark { font-size: 1.4rem; text-decoration: none; margin: 0; }
.site-head nav, .site-foot nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.quiet { text-decoration: none; color: var(--heading); }
.site-foot { border-top: 1px solid var(--bg-deep); margin-top: 48px; padding-top: 28px; padding-bottom: 40px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

main > section { padding: clamp(48px, 8vw, 96px) var(--gutter); }

/* ---------- Hero ---------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 48px;
  align-items: center;
  padding-top: clamp(24px, 5vw, 64px) !important;
}
.hero-text { max-width: 520px; }

.showcase { position: relative; margin: 0 0 0; padding-bottom: 40px; }
.showcase .browser {
  display: flex; gap: 6px; padding: 10px 12px;
  background: var(--bg-deep); border-radius: 14px 14px 0 0;
}
.showcase .browser span { width: 10px; height: 10px; border-radius: 50%; background: #e2cfb6; }
.showcase .desktop {
  display: block; width: 100%; height: auto;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 50px var(--shadow);
}
.showcase .phone {
  position: absolute; right: -8px; bottom: 0;
  width: 30%; max-width: 190px; height: auto;
  border: 6px solid #3e3528; border-radius: 26px;
  box-shadow: 0 18px 40px rgba(62, 53, 40, 0.3);
  aspect-ratio: 600 / 1298; object-fit: cover; object-position: top;
  max-height: 72%;
}
.showcase figcaption { margin-top: 14px; font-size: 0.95rem; color: var(--muted); max-width: 65%; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 5fr 6fr; }
}

/* ---------- Steps ---------- */
.steps { background: var(--bg-alt); }
.steps ol {
  list-style: none; padding: 0; margin: 32px auto 0; max-width: 1100px;
  display: grid; gap: 32px; counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 50%; background: var(--surface); color: var(--button);
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600;
  box-shadow: 0 3px 10px var(--shadow);
}
@media (min-width: 800px) { .steps ol { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* ---------- The companion's voice ---------- */
.voice { max-width: 720px; margin: 0 auto; }
.voice > .lede { text-align: center; }
.kinds { margin-top: 64px; text-align: center; }
.chat { display: grid; gap: 12px; margin: 32px 0 12px; }
.bubble { margin: 0; padding: 14px 18px; border-radius: 18px; max-width: 85%; line-height: 1.55; }
.bubble.them { background: var(--surface); box-shadow: 0 3px 12px var(--shadow); border-bottom-left-radius: 6px; font-family: var(--font-heading); font-size: 1.2rem; }
.bubble.you { background: var(--bg-deep); justify-self: end; border-bottom-right-radius: 6px; }

/* ---------- Promises ---------- */
.promises { background: var(--bg-alt); }
.promises ul {
  list-style: none; padding: 0; margin: 32px auto 0; max-width: 1100px;
  display: grid; gap: 20px;
}
.promises li { background: var(--surface); border-radius: 16px; padding: 24px; box-shadow: 0 3px 12px var(--shadow); }
.promises li p { margin: 0; color: var(--muted); }
@media (min-width: 700px) { .promises ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .promises ul { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Price ---------- */
.price-card {
  max-width: 520px; margin: 24px auto 0; text-align: center;
  background: var(--surface); border-radius: 20px; padding: 36px 28px;
  box-shadow: 0 10px 30px var(--shadow);
}
.price-card .amount { font-family: var(--font-heading); font-size: 3.4rem; color: var(--heading); line-height: 1; margin-bottom: 12px; }
.price-card .address { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Closing ---------- */
.closing { text-align: center; padding-top: 24px !important; padding-bottom: 24px !important; }
.closing-line { font-family: var(--font-heading); font-style: italic; font-size: clamp(1.4rem, 3.5vw, 1.9rem); color: var(--heading); margin: 0; }

/* ---------- Privacy and terms ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) var(--gutter) 0; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { text-align: left; font-size: 1.5rem; margin: 36px 0 10px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 8px; }

@media (max-width: 480px) {
  .site-head .quiet { display: none; }
  .showcase .phone { width: 34%; right: -4px; border-width: 4px; border-radius: 18px; }
  .showcase figcaption { max-width: 60%; }
}
