/* Rosely — shared styles. Cream + rose, Lora serif (matches the app). */
:root {
  --cream: #F7F2EA;
  --cream-warm: #FFF9F6;
  --sunken: #EFE9DD;
  --white: #FFFFFF;
  --ink: #242126;
  --ink-2: #635D64;
  --muted: #817982;
  --border: #E6DDD8;
  --rose: #C44E5F;
  --rose-text: #B84A5A;
  --rose-light: #D97886;
  --rose-soft: #F8E3E7;
  --rose-softest: #FFF1F3;
  --maxw: 1080px;
  --readw: 720px;
  --gutter: clamp(16px, 5vw, 24px);   /* responsive side padding everywhere */
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  width: 100%;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;            /* safety net only — the real fix is below */
  overflow-wrap: break-word;     /* long words/links wrap instead of overflowing */
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--rose-text); text-decoration: none; }
a:hover { text-decoration: underline; }

.serif { font-family: "Lora", Georgia, "Times New Roman", serif; }

/* ── Layout containers: max-width (never fixed) + responsive side padding ── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.read { width: 100%; max-width: var(--readw); margin: 0 auto; padding-inline: var(--gutter); }

/* ── Nav ── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 16px;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 22px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.brand .word { font-family: "Lora", serif; font-weight: 500; font-size: 22px; color: var(--ink); }
.nav .links a { color: var(--ink-2); font-size: 15px; margin-left: 22px; }
.nav .links a:hover { color: var(--rose-text); text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  max-width: 100%;
  background: var(--rose); color: #fff !important;
  font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: 999px;
  box-shadow: 0 8px 22px rgba(196,78,95,.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(196,78,95,.34); }

/* ── Hero ── */
.hero { text-align: center; padding-block: clamp(40px, 8vw, 56px) clamp(28px, 6vw, 40px); }
.hero img.logo { width: clamp(64px, 16vw, 78px); height: auto; object-fit: contain; margin-bottom: 18px; }
.hero h1 {
  font-family: "Lora", serif; font-weight: 500;
  font-size: clamp(30px, 7vw, 58px); line-height: 1.08; margin: 6px 0 0;
  letter-spacing: -.5px;
}
.hero h1 .accent { color: var(--rose); font-style: italic; }
.hero p.sub {
  max-width: 560px; margin: 18px auto 28px;
  font-size: clamp(16px, 4.4vw, 19px); color: var(--ink-2);
}

/* ── Sections ── */
.section { padding-block: clamp(40px, 9vw, 56px); }
.section.alt { background: var(--cream-warm); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { text-transform: uppercase; letter-spacing: 1.6px; font-size: 12px; font-weight: 700; color: var(--rose); margin: 0 0 10px; }
.section h2 { font-family: "Lora", serif; font-weight: 500; font-size: clamp(24px, 5vw, 38px); margin: 0 0 14px; line-height: 1.12; }
.section .lead { font-size: clamp(16px, 4.2vw, 18px); color: var(--ink-2); max-width: 640px; }

/* ── Feature cards ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.card { width: 100%; background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: clamp(20px, 5vw, 26px); box-shadow: 0 10px 24px rgba(0,0,0,.04); }
.card .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--rose-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--rose); font-size: 22px; }
.card h3 { font-family: "Lora", serif; font-weight: 600; font-size: 20px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ── CTA band ── */
.cta { text-align: center; padding-block: clamp(44px, 9vw, 60px); }
.cta h2 { font-family: "Lora", serif; font-weight: 500; font-size: clamp(24px, 5vw, 38px); margin: 0 0 18px; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding-block: 34px 48px; color: var(--muted); }
.footer .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer .links a { color: var(--ink-2); font-size: 14px; margin-right: 18px; }
.footer .copy { font-size: 13px; color: var(--muted); }

/* ── Legal / doc pages ── */
.doc { padding-block: clamp(28px, 6vw, 40px) 80px; }
.doc h1 { font-family: "Lora", serif; font-weight: 500; font-size: clamp(28px, 7vw, 44px); margin: 8px 0 4px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-family: "Lora", serif; font-weight: 600; font-size: clamp(20px, 5vw, 22px); margin: 34px 0 10px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { color: #38343a; font-size: clamp(15px, 4.2vw, 16px); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .back { display: inline-block; margin-bottom: 18px; color: var(--ink-2); font-size: 14px; }
.doc .note { background: var(--rose-softest); border: 1px solid var(--rose-soft); border-radius: 14px; padding: 14px 16px; font-size: 14.5px; color: var(--ink-2); }

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .nav { padding-block: 16px; }
  .nav .links a { margin-left: 0; margin-right: 16px; }
  .footer .row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer .links a { margin-right: 14px; }
}
