/* ────────────────────────────────────────────────────────────
   DoAmour — site styles
   Tokens mirror the app (lib/theme/app_theme.dart): coral accent,
   violet for anything AI, cream ground, Nunito / Hanken Grotesk /
   Instrument Serif. Light is the base; dark redefines tokens only.
   ──────────────────────────────────────────────────────────── */

:root {
  --ground: #FBF8F4;
  --surface: #FFFFFF;
  --soft: #F3ECE7;
  --ink: #2A1E20;
  --muted: #6F6165;
  --faint: #A69A9D;
  --line: #E8DFDA;
  --coral: #D86069;
  --coral-deep: #C24A55;
  --violet: #906EB5;
  --violet-soft: #EEE6F6;
  --online: #55B685;
  --bubble-them: #FFFFFF;
  --bubble-me: #2A1E20;
  --bubble-me-ink: #FFFFFF;
  --shadow: 0 18px 50px rgba(60, 30, 40, .12);
  --display: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0F0B0C;
    --surface: #1B1416;
    --soft: #241A1D;
    --ink: #F5EFEC;
    --muted: #B3A6A9;
    --faint: #6E6266;
    --line: #2E2426;
    --coral: #E47B80;
    --coral-deep: #D86069;
    --violet: #B188DF;
    --violet-soft: #2A2133;
    --bubble-them: #241A1D;
    --bubble-me: #F5EFEC;
    --bubble-me-ink: #1B1416;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  --ground: #0F0B0C;
  --surface: #1B1416;
  --soft: #241A1D;
  --ink: #F5EFEC;
  --muted: #B3A6A9;
  --faint: #6E6266;
  --line: #2E2426;
  --coral: #E47B80;
  --coral-deep: #D86069;
  --violet: #B188DF;
  --violet-soft: #2A2133;
  --bubble-them: #241A1D;
  --bubble-me: #F5EFEC;
  --bubble-me-ink: #1B1416;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ground); padding: 8px 12px; border-radius: 999px; }
.skip:focus { left: 16px; z-index: 50; }

/* ---------- wordmark ---------- */
.mark { font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: -.02em; text-decoration: none; }
.mark em { font-style: normal; color: var(--coral); }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 20px; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav ul a:hover { color: var(--ink); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--ink); color: var(--ground);
  text-decoration: none; font-weight: 600; font-size: 15px; border: 0; cursor: pointer;
  transition: transform .15s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill.coral { background: var(--coral); color: #fff; }
.pill.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.theme { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.theme:hover { color: var(--ink); }
.theme svg { width: 18px; height: 18px; }
.theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: block; }
:root[data-theme="dark"] .theme .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme .i-moon { display: none; }
}
.store.apple svg { width: 22px; height: 22px; }
@media (max-width: 720px) { .nav ul { display: none; } }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: flex; gap: 14px; align-items: center;
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--coral); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 48px 0 72px; }
.hero h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(42px, 6vw, 68px); line-height: 1.02; margin: 18px 0 22px; text-wrap: balance;
}
.hero h1 i, h2 i { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--coral); letter-spacing: 0; }
.lede { font-size: 19px; color: var(--muted); max-width: 32em; margin: 0 0 30px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 14px; background: var(--ink); color: var(--ground); text-decoration: none; }
.store small { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; line-height: 1; }
.store b { display: block; font-family: var(--display); font-weight: 800; font-size: 17px; line-height: 1.15; }
.store svg { width: 24px; height: 24px; }
.meta { display: flex; gap: 18px; margin-top: 26px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.meta span::before { content: "·"; margin-right: 18px; color: var(--faint); }
.meta span:first-child::before { content: none; margin: 0; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- phone / chat list ---------- */
.phone {
  background: var(--surface); border-radius: 28px; padding: 22px 20px 20px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  max-width: 380px; margin-inline: auto; width: 100%;
  font-size: 15px;
}
.phone-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.phone-top .mark { font-size: 21px; }
.moon { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.search { background: var(--soft); border-radius: 999px; padding: 10px 16px; color: var(--faint); font-size: 14px; margin-bottom: 12px; }
.row { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 11px 4px; }
.row + .row { border-top: 1px solid var(--line); }
.avatar { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: #fff; }
.avatar.ai { background: linear-gradient(135deg, #B188DF, #954074); }
.avatar.you { background: linear-gradient(135deg, #E47B80, #984C00); }
.dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--online); border: 2px solid var(--surface); }
.row .name { font-family: var(--display); font-weight: 700; display: flex; gap: 8px; align-items: center; }
.chip { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--violet); background: var(--violet-soft); padding: 2px 7px; border-radius: 6px; }
.row .preview { color: var(--muted); font-size: 13.5px; margin-top: 1px; }
.row .when { color: var(--faint); font-size: 12px; align-self: start; padding-top: 3px; }
.typing { display: inline-flex; gap: 4px; align-items: center; vertical-align: middle; margin-left: 2px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--violet); opacity: .35; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.note { margin-top: 14px; font-size: 12.5px; color: var(--faint); text-align: center; }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; opacity: .7; } .pill { transition: none; } }

/* ---------- sections ---------- */
.section { padding: 84px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.section h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.025em;
  font-size: clamp(32px, 4.2vw, 46px); line-height: 1.06; margin: 14px 0 0; text-wrap: balance;
}
.section .body p { margin: 0 0 18px; max-width: 34em; }
.section .body p:last-child { margin-bottom: 0; }
.section .body strong { font-weight: 600; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: 24px; } .section { padding: 60px 0; } }

/* ---------- ways ---------- */
.ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.way { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.way .k { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.way .k svg { width: 20px; height: 20px; }
.way .k.coral { background: rgba(216, 96, 105, .13); color: var(--coral); }
.way .k.violet { background: var(--violet-soft); color: var(--violet); }
.way .k.green { background: rgba(85, 182, 133, .15); color: var(--online); }
.way .k.ink { background: var(--soft); color: var(--ink); }
.way h3 { font-family: var(--display); font-weight: 800; font-size: 20px; margin: 6px 0 0; letter-spacing: -.01em; }
.way p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tags { margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--faint); letter-spacing: .02em; }
@media (max-width: 720px) { .ways { grid-template-columns: 1fr; } }

/* ---------- moments ---------- */
.moments { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.moments li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.moments li span { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--coral); font-size: 20px; }
@media (max-width: 900px) { .moments { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .moments { grid-template-columns: 1fr; } }

/* ---------- honest ---------- */
.honest { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.bubble-demo { background: var(--soft); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.b { max-width: 78%; padding: 10px 14px; border-radius: 18px; line-height: 1.45; }
.b.them { background: var(--bubble-them); border-bottom-left-radius: 6px; align-self: flex-start; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.b.me { background: var(--bubble-me); color: var(--bubble-me-ink); border-bottom-right-radius: 6px; align-self: flex-end; }
.b .t { display: block; font-size: 11px; opacity: .55; margin-top: 4px; }
.b .t b { color: #8FD3FF; font-weight: 600; margin-left: 4px; }
.who { font-size: 12px; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
@media (max-width: 720px) { .honest { grid-template-columns: 1fr; } }

/* ---------- closer ---------- */
.closer { padding: 96px 0; border-top: 1px solid var(--line); text-align: center; }
.closer h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(34px, 5vw, 54px); line-height: 1.04; margin: 16px auto 14px; max-width: 14em; text-wrap: balance; }
.closer p { color: var(--muted); margin: 0 auto 30px; max-width: 34em; }
.closer .eyebrow { justify-content: center; }
.closer .eyebrow::before { display: none; }
.closer .ctas { justify-content: center; }
.sign { margin-top: 44px; font-family: var(--display); font-weight: 900; font-size: clamp(44px, 9vw, 96px); letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.sign em { font-style: normal; color: var(--coral); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14.5px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot p { color: var(--muted); margin: 10px 0 0; max-width: 24em; }
.foot h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--ink); }
.foot a:hover { color: var(--coral); }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } }

/* ---------- document pages (legal, about, safety…) ---------- */
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding: 40px 0 88px; align-items: start; }
.doc-side { position: sticky; top: 24px; }
.doc-side h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; font-size: 30px; line-height: 1.08; margin: 12px 0 8px; text-wrap: balance; }
.doc-side .updated { font-size: 13px; color: var(--faint); }
.doc-side nav { margin-top: 24px; display: grid; gap: 6px; font-size: 14px; }
.doc-side nav a { text-decoration: none; color: var(--muted); }
.doc-side nav a:hover { color: var(--ink); }
.doc-body { max-width: 66ch; font-size: 16.5px; }
.doc-body h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: 24px; margin: 40px 0 10px; scroll-margin-top: 24px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 26px 0 6px; }
.doc-body p, .doc-body li { color: var(--ink); }
.doc-body p { margin: 0 0 14px; }
.doc-body ul, .doc-body ol { padding-left: 22px; margin: 0 0 14px; }
.doc-body li { margin: 4px 0; }
.doc-body a { color: var(--coral); }
.doc-body .lead { font-size: 19px; color: var(--muted); margin-bottom: 26px; }
.doc-body table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 18px; }
.doc-body th, .doc-body td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-body th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.callout { border-left: 3px solid var(--coral); background: var(--soft); border-radius: 0 14px 14px 0; padding: 14px 18px; margin: 18px 0; }
.callout.violet { border-color: var(--violet); }
.callout p:last-child { margin: 0; }
.draft { display: flex; gap: 12px; align-items: flex-start; background: rgba(216, 96, 105, .1); border: 1px dashed var(--coral); border-radius: 14px; padding: 14px 16px; margin: 0 0 28px; font-size: 14.5px; }
.draft strong { color: var(--coral); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.contact-card h3 { margin: 0 0 4px; }
.contact-card p { margin: 0; color: var(--muted); font-size: 15px; }
.contact-card a { font-weight: 600; }
@media (max-width: 820px) { .doc { grid-template-columns: 1fr; gap: 28px; } .doc-side { position: static; } .contact-grid { grid-template-columns: 1fr; } }

/* ---------- mobile nav ---------- */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; place-items: center; }
.nav-toggle svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: grid; }
  .nav ul { display: none; width: 100%; order: 3; flex-direction: column; gap: 4px; padding: 8px 0 4px; border-top: 1px solid var(--line); }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 10px 4px; font-size: 16px; }
}

/* On a narrow phone the wordmark, theme toggle, menu button and "Get the app"
   pill add up to more than one row (about 360px against 342px available at
   390px wide), so the nav wraps onto two lines. The hero's store badges are
   one scroll away and the menu still links to them, so the pill is the thing
   to drop. */
@media (max-width: 480px) { .nav .pill { display: none; } }
