/* RosyImage landing page. Same token names as the docs, warm beige values. */
:root {
  --ink: #2f2620;
  --muted: #76675b;
  --rose: #a9505f;
  --rose-soft: #f2e1d6;
  --bg: #f8f2ea;
  --surface: #fffaf4;
  --tint: #efe5d8;
  --line: #e4d6c4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1e8de;
    --muted: #bcad9f;
    --rose: #dc929c;
    --rose-soft: #3b2c27;
    --bg: #1e1915;
    --surface: #29221d;
    --tint: #241e19;
    --line: #3a3029;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 12px; }
a { color: var(--rose); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 1.35rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.logo span { color: var(--rose); }
.header-link { font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 16px; min-width: 0; }
.auth-email { color: var(--muted); font-size: 0.9rem; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-btn {
  padding: 7px 16px; border: 1px solid var(--rose); border-radius: 999px; background: transparent;
  color: var(--rose); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.auth-btn:hover { background: var(--rose-soft); }
@media (max-width: 560px) {
  .header-link { display: none; }
  .auth-email { max-width: 120px; }
}

/* Sign-in dialog */
.auth-dialog {
  width: min(420px, calc(100% - 32px)); padding: 28px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink);
}
.auth-dialog::backdrop { background: rgb(0 0 0 / 0.4); }
.auth-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; color: var(--muted); font-size: 1.6rem; cursor: pointer; }
.auth-form { display: grid; gap: 14px; margin-top: 16px; }
.auth-form label { display: grid; gap: 4px; font-weight: 600; font-size: 0.9rem; }
.auth-form input {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: inherit;
}
.auth-form input:focus { outline: 2px solid var(--rose); outline-offset: 1px; }
.auth-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--rose-soft); color: var(--rose); font-size: 0.9rem; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.auth-actions .btn, .auth-google { padding: 11px 20px; }
.btn-ghost { background: transparent; color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.auth-or { margin: 16px 0 10px; text-align: center; color: var(--muted); font-size: 0.85rem; }
.auth-google { width: 100%; }

/* Hero */
.hero { padding: 72px 0 64px; text-align: center; }
.hero .wrap { max-width: 720px; }
.badge {
  display: inline-block; margin-bottom: 20px; padding: 6px 14px; border-radius: 999px;
  background: var(--rose-soft); color: var(--rose);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.lead { font-size: 1.15rem; color: var(--muted); }
.for { font-weight: 600; margin-bottom: 28px; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 28px; border: 0; border-radius: 999px;
  background: var(--rose); color: var(--surface);
  font: inherit; font-weight: 600; cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--rose-soft); outline-offset: 3px; }
.waitlist-note { margin-top: 14px; color: var(--muted); }

/* Your notes (signed in only) */
.notes-wrap { max-width: 720px; }
.notes-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 12px; }
.notes-form input {
  flex: 1 1 220px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit;
}
.notes-form input:focus { outline: 2px solid var(--rose); outline-offset: 1px; }
.notes-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.notes-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; overflow-wrap: anywhere; }
.notes-list time { display: block; margin-top: 4px; color: var(--muted); font-size: 0.85rem; }

/* Sections */
.section { padding: 64px 0; }
.tinted { background: var(--tint); }
.eyebrow { color: var(--rose); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }

/* Problem stats */
.stats { display: grid; gap: 16px; margin: 28px 0 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.stat-num { display: block; font-family: Georgia, serif; font-size: 2rem; color: var(--rose); }
.stat-label { color: var(--muted); }
.source { font-size: 0.85rem; color: var(--muted); }

/* Cards and grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 12px;
  border-radius: 50%; background: var(--rose-soft); color: var(--rose); font-weight: 700;
}
.grid { display: grid; gap: 16px; margin-top: 28px; }

/* Pricing */
.price-card.featured { border: 2px solid var(--rose); }
.price { font-family: Georgia, serif; font-size: 2.4rem; color: var(--ink); margin-bottom: 16px; }
.price.tbd { font-size: 1.4rem; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 16px; }
.checks li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--rose); font-weight: 700; }
.muted { color: var(--muted); }

/* Final call to action */
.cta { text-align: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; text-align: center; color: var(--muted); font-size: 0.9rem; }
.site-footer p { margin: 0; }

@media (min-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .steps, .grid { grid-template-columns: repeat(3, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
}
