/* Affirmery site — petal-bloom dark theme, mirrors src/theme.ts */
:root {
  --void: #0D0710;
  --deep: #1A0E16;
  --mid: #2A1823;
  --bloom: #3D1F30;
  --rose-mist: #6E3355;
  --soft-rose: #C77FA0;
  --petal: #F4B4D5;
  --blush: #FFD8EA;
  --amber: #F4C86A;
  --warm: #FFF5F9;
  --text: rgba(255, 245, 249, 0.82);
  --muted: rgba(255, 245, 249, 0.58);
  --line: rgba(199, 127, 160, 0.18);
  --ghost: rgba(199, 127, 160, 0.07);
  --display: "Playfair Display", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--warm);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* soft blooms behind everything, like the app's Today screen */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(520px circle at 85% -5%, rgba(110, 51, 85, 0.45), transparent 60%),
    radial-gradient(420px circle at -10% 35%, rgba(61, 31, 48, 0.7), transparent 65%),
    radial-gradient(600px circle at 70% 110%, rgba(110, 51, 85, 0.28), transparent 60%);
}

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blush); }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 720px; }

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--warm);
  text-decoration: none;
  font-family: var(--display);
  font-size: 22px;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--petal); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #1A0E16; }
.btn-primary:hover { background: #F8D88C; color: #1A0E16; }
.btn-ghost {
  border: 1px solid var(--line);
  background: var(--ghost);
  color: var(--muted);
  cursor: default;
}
.btn-ghost:hover { transform: none; color: var(--muted); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-block: 48px 80px;
}
.eyebrow {
  color: var(--petal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--petal); font-weight: 500; }
.hero .lede { font-size: 18px; color: var(--text); max-width: 30em; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { color: var(--muted); font-size: 13px; margin-top: 16px; }

.phone-stack { position: relative; height: 560px; }
.phone {
  position: absolute;
  width: 250px;
  border-radius: 34px;
  border: 6px solid #241520;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line);
  overflow: hidden;
  background: var(--deep);
}
.phone img { display: block; width: 100%; height: auto; }
.phone.front { left: 50%; top: 0; transform: translateX(-62%) rotate(-3deg); z-index: 2; }
.phone.back { left: 50%; top: 50px; transform: translateX(-8%) rotate(5deg); opacity: 0.85; }

/* ---------- quote band ---------- */
.quote-band {
  text-align: center;
  padding: 64px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(61, 31, 48, 0.35), transparent);
}
.quote-band p {
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 auto 10px;
  max-width: 18em;
  line-height: 1.25;
}
.quote-band span { color: var(--soft-rose); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- features ---------- */
.section { padding-block: 80px; }
.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 38px);
  text-align: center;
  margin: 0 0 12px;
}
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 48px; max-width: 32em; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  padding: 26px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(42, 24, 35, 0.75), rgba(26, 14, 22, 0.6));
}
.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(244, 180, 213, 0.1);
  color: var(--petal);
  margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.card p { margin: 0; color: var(--text); font-size: 15px; }

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}
.shots figure { margin: 0; text-align: center; }
.shots img {
  width: 100%;
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.shots figcaption { color: var(--muted); font-size: 14px; margin-top: 14px; }

.final-cta { text-align: center; padding-block: 40px 100px; }
.final-cta img { width: 84px; height: 84px; border-radius: 20px; margin-bottom: 18px; box-shadow: 0 12px 40px rgba(110, 51, 85, 0.6); }
.final-cta h2 { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 4vw, 38px); margin: 0 0 24px; }
.final-cta .cta-row { justify-content: center; }

/* ---------- document pages (privacy / support) ---------- */
.doc-head { padding-block: 40px 8px; }
.doc-head h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.15;
  margin: 0 0 10px;
}
.doc-head .meta { color: var(--soft-rose); font-size: 14px; margin: 0; }

.summary {
  margin: 32px 0 8px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--ghost);
}
.summary h2 { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--petal); }
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(13, 7, 16, 0.55);
  font-size: 15px;
  font-weight: 500;
}
.chip svg { width: 18px; height: 18px; color: var(--amber); flex: none; }

.doc { padding-bottom: 40px; }
.doc section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.doc section:last-child { border-bottom: 0; }
.doc h2 { font-family: var(--display); font-weight: 500; font-size: 24px; margin: 0 0 10px; color: var(--blush); }
.doc h3 { font-size: 16px; font-weight: 600; margin: 22px 0 4px; color: var(--warm); }
.doc p, .doc li { color: var(--text); }
.doc p { margin: 0 0 12px; }
.doc ul { padding-left: 20px; margin: 0 0 12px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--warm); font-weight: 600; }

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 24px;
  margin: 8px 0 4px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(110, 51, 85, 0.35), rgba(42, 24, 35, 0.5));
}
.contact-card .label { color: var(--muted); font-size: 13px; margin: 0; }
.contact-card .email { font-size: 17px; font-weight: 600; color: var(--warm); margin: 0; word-break: break-all; }

details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ghost);
  margin-bottom: 10px;
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--petal); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { padding: 0 20px 16px; margin: 0; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer a { color: var(--muted); text-decoration: none; margin-left: 18px; }
.footer a:first-child { margin-left: 0; }
.footer a:hover { color: var(--petal); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 24px; gap: 24px; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .phone-stack { height: 470px; }
  .phone { width: 210px; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .nav-links { gap: 14px; }
  .nav-links a.hide-sm { display: none; }
  .grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots figure:last-child { display: none; }
  .chips { grid-template-columns: 1fr; }
  .phone-stack { height: 400px; }
  .phone { width: 180px; border-radius: 26px; }
  .section { padding-block: 56px; }
  .footer .wrap { flex-direction: column; }
}
