/* Golden Hour — styles. Palette taken from the public preview page:
   warm cream background, deep brown ink, gold + rust accents, sage/rose
   secondary accents. Easy-reading mode (body.easy-reading) enlarges type
   and spacing for the 50+ audience. */

:root {
  --bg: #fdf8f1;
  --bg-soft: #f7eee1;
  --surface: #ffffff;
  --surface-2: #fffaf2;
  --ink: #2b1d12;
  --ink-2: #5d4a38;
  --ink-3: #8a7663;
  --line: #ead9c3;
  --line-strong: #dcc39e;
  --gold: #b96a12;
  --gold-bright: #e08a1e;
  --amber-bg: #fdeeda;
  --rust: #b44a1f;
  --sage: #5c7350;
  --sage-bg: #edf2e6;
  --rose: #a63d4f;
  --rose-bg: #fbecef;
  --shadow: 0 10px 30px rgba(90, 55, 15, .10), 0 2px 6px rgba(90, 55, 15, .06);
  --shadow-lg: 0 24px 60px rgba(90, 55, 15, .16), 0 4px 12px rgba(90, 55, 15, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
body.easy-reading { font-size: 19px; line-height: 1.7; }
body.easy-reading h1 { font-size: 2.6rem; }
body.easy-reading .card, body.easy-reading .btn { font-size: 1.05rem; }

a { color: var(--gold); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.gold { color: var(--gold); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .75rem; font-weight: 700; color: var(--gold);
}

/* ---- layout ---- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
header.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 241, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; gap: 16px;
  max-width: 1080px; margin: 0 auto; padding: 12px 20px;
}
.brand { font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.brand em { font-style: italic; color: var(--gold); }
.brand-sub { font-size: .75rem; color: var(--ink-3); }
nav.mainnav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
nav.mainnav button, .navlink {
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: .95rem; color: var(--ink-2);
  padding: 8px 10px; border-radius: 999px;
}
nav.mainnav button:hover, .navlink:hover { background: var(--amber-bg); color: var(--ink); }
nav.mainnav button.active { background: var(--gold); color: #fff; }
nav.mainnav .badge-dot {
  display: inline-block; min-width: 18px; height: 18px; line-height: 18px;
  text-align: center; border-radius: 999px; background: var(--rose);
  color: #fff; font-size: .7rem; font-weight: 700; padding: 0 5px; margin-left: 4px;
}

main { padding: 28px 0 80px; }
.view { display: none; }
.view.active { display: block; }

/* ---- hero (landing) ---- */
.hero { text-align: center; padding: 36px 0 8px; }
.hero h1 { font-size: 2.6rem; margin-bottom: .3em; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 640px; margin: 0 auto 1.2em; }
.pill-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0; }
.pill {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font-size: .95rem;
  box-shadow: var(--shadow);
}
.pill b { color: var(--gold); }
.stat-strip {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 26px 0;
}
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 22px; text-align: center; min-width: 150px; box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 1.6rem; color: var(--gold); }
.stat span { font-size: .85rem; color: var(--ink-3); }

/* ---- cards / grids ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; overflow: hidden;
}
.card h3 { margin-bottom: .2em; }
.profile-card { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.profile-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.avatar {
  width: 100%; aspect-ratio: 4 / 3; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 3rem; font-weight: 800; margin-bottom: 12px;
  background-size: cover; background-position: center;
}
.avatar.sm { width: 56px; height: 56px; aspect-ratio: auto; font-size: 1.4rem; margin: 0; flex: none; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.tag {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px; font-size: .8rem; color: var(--ink-2);
}
.badge {
  display: inline-block; border-radius: 999px; padding: 2px 9px;
  font-size: .75rem; font-weight: 700;
}
.badge.founding { background: var(--amber-bg); color: var(--gold); }
.badge.verified { background: var(--sage-bg); color: var(--sage); }
.badge.plus { background: var(--rose-bg); color: var(--rose); }
.badge.paused { background: var(--bg-soft); color: var(--ink-3); }
.active-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); margin-right: 5px; }

/* ---- forms ---- */
label { display: block; font-weight: 600; margin: 14px 0 4px; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%; padding: 11px 12px; font: inherit;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-bright); outline-offset: 1px; }
textarea { min-height: 90px; resize: vertical; }
.field-note { font-size: .85rem; color: var(--ink-3); margin-top: 3px; }
.check-row { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.check-row input { width: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---- buttons ---- */
.btn {
  display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  background: var(--gold); color: #fff;
}
.btn:hover { background: var(--gold-bright); }
.btn.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn.secondary:hover { background: var(--bg-soft); }
.btn.danger { background: var(--rose); }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }

/* ---- sections ---- */
.section { padding: 34px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--amber-bg);
  color: var(--gold); font-weight: 800; display: flex; align-items: center;
  justify-content: center; margin-bottom: 10px;
}
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--gold); }
.price { font-size: 2rem; font-weight: 800; }
.price span { font-size: 1rem; font-weight: 400; color: var(--ink-3); }
ul.ticks { list-style: none; padding: 0; margin: 12px 0; }
ul.ticks li { padding: 4px 0 4px 26px; position: relative; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 800; }
ul.ticks li.no { color: var(--ink-3); }
ul.ticks li.no::before { content: "✗"; color: var(--rose); }

/* ---- chat ---- */
.chat-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 18px; }
@media (max-width: 760px) { .chat-wrap { grid-template-columns: 1fr; } }
.match-list { display: flex; flex-direction: column; gap: 8px; }
.match-item {
  display: flex; gap: 10px; align-items: center; padding: 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  cursor: pointer; text-align: left; font: inherit; width: 100%;
}
.match-item.active { border-color: var(--gold); background: var(--amber-bg); }
.chat-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; min-height: 420px;
}
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.chat-body { flex: 1; padding: 16px; overflow-y: auto; max-height: 420px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 75%; padding: 9px 13px; border-radius: 14px; background: var(--bg-soft); }
.msg.mine { align-self: flex-end; background: var(--amber-bg); }
.msg .meta { font-size: .72rem; color: var(--ink-3); margin-top: 3px; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; }

/* ---- modal ---- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(43, 29, 18, .55);
  display: none; align-items: flex-start; justify-content: center;
  padding: 40px 16px; z-index: 100; overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-width: 640px; width: 100%; padding: 24px; position: relative;
}
.modal-close {
  position: absolute; top: 12px; right: 12px; border: 0; background: none;
  font-size: 1.4rem; cursor: pointer; color: var(--ink-3);
}
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.gallery img, .gallery .avatar {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; margin: 0;
}
.prompt { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.prompt b { color: var(--gold); }

/* ---- toast / alerts ---- */
#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-weight: 600; display: none; z-index: 200; max-width: 90vw; text-align: center;
  box-shadow: var(--shadow-lg);
}
.alert {
  border-radius: 12px; padding: 12px 16px; margin: 12px 0;
  background: var(--amber-bg); border: 1px solid var(--line-strong);
}
.alert.rose { background: var(--rose-bg); border-color: #e5b7bf; }
.alert.sage { background: var(--sage-bg); border-color: #c3d2b6; }
.empty { text-align: center; color: var(--ink-3); padding: 40px 10px; }
footer.site {
  border-top: 1px solid var(--line); padding: 26px 0 40px;
  color: var(--ink-3); font-size: .9rem; text-align: center;
}
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin: 14px 0; }
.toolbar label { margin: 0; font-size: .85rem; }
.toolbar select, .toolbar input { width: auto; min-width: 130px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 4px 12px; font-size: .95rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
