/* Tokens mirror mobile/src/theme/theme.ts. Font: Inter, same as the app. */
:root {
  --primary: #F76C6C;
  --primary-dark: #E4514F;
  --bg: #FFF8F6;
  --card: #FFFFFF;
  --text: #102033;
  --subtext: #607086;
  --border: rgba(15, 23, 42, 0.07);
  --shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--card); padding: 8px 14px; border-radius: 12px; }

/* header */
header { border-bottom: 1px solid var(--border); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.3px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand span, h1 span { color: var(--primary); }
nav { display: flex; align-items: center; gap: 24px; }
nav a:not(.btn) { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--subtext); }
nav a:not(.btn):hover { color: var(--text); }

/* button: coral pill like the app's PrimaryButton */
.btn {
  display: inline-block; background: var(--primary); color: #fff; font-weight: 700; font-size: 16px;
  padding: 15px 32px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 20px rgba(247, 108, 108, 0.3); transition: background .15s;
}
.btn:hover { background: var(--primary-dark); }
.btn.small { padding: 9px 18px; font-size: 14px; box-shadow: none; }
.btn.light { background: var(--card); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow); }
a.btn, a.btn:visited, nav a.btn { color: #fff; }
a.btn.light, a.btn.light:visited { color: var(--text); }

/* hero */
.hero { padding: 64px 0 48px; text-align: center; }
.hero img { width: 72px; margin: 0 auto 20px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--subtext); }
h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 700; letter-spacing: -1px; line-height: 1.15; margin-top: 8px; }
.lead { max-width: 560px; margin: 16px auto 0; font-size: 18px; color: var(--subtext); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.fine { margin-top: 14px; font-size: 13px; color: var(--subtext); }

/* quick facts (answer-engine friendly table) */
.facts { width: 100%; max-width: 720px; margin: 28px auto 0; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; font-size: 15px; }
.facts th, .facts td { padding: 12px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 30%; font-weight: 700; }
.facts td { color: var(--subtext); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* sections */
section { padding: 48px 0; }
h2 { font-size: clamp(26px, 4vw, 32px); font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; text-align: center; }
.sub { max-width: 560px; margin: 10px auto 0; text-align: center; color: var(--subtext); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 32px; }
.steps li, .card, .bubble.ai { background: var(--card); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); }
.steps li { padding: 14px; text-align: center; }
.steps img { width: 100%; height: 100px; object-fit: contain; background: var(--bg); border-radius: 16px; }
.steps b { display: block; margin-top: 10px; font-size: 12px; letter-spacing: 1px; }
.steps p { margin-top: 4px; font-size: 14px; color: var(--subtext); line-height: 1.45; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 32px; }
.card { padding: 24px; }
.card h3 { font-size: 17px; font-weight: 700; }
.card p { margin-top: 6px; font-size: 15px; color: var(--subtext); }

.chat { max-width: 520px; margin: 32px auto 0; display: grid; gap: 10px; }
.bubble { padding: 12px 18px; border-radius: 20px; max-width: 88%; font-size: 15px; }
.bubble.me { justify-self: end; background: var(--primary); color: #fff; border-bottom-right-radius: 6px; }
.bubble.ai { border-bottom-left-radius: 6px; }

.faq { max-width: 720px; margin: 32px auto 0; display: grid; gap: 10px; }
details { background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 16px 20px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--primary); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '\2212'; }
details p { margin-top: 10px; color: var(--subtext); }

.final { text-align: center; }
.final p { margin-top: 8px; color: var(--subtext); }
.final .cta { margin-top: 24px; }

footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 13px; color: var(--subtext); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
footer a { font-weight: 600; }
footer .legal { flex-basis: 100%; }

.page { max-width: 720px; margin: 0 auto; padding: 48px 20px; }
.page h1 { font-size: 32px; text-align: left; }
.page h2 { text-align: left; font-size: 20px; margin-top: 28px; }
.page p { margin-top: 10px; color: var(--subtext); }

@media (max-width: 640px) {
  nav a:not(.btn) { display: none; }
  .hero { padding-top: 40px; }
  .cta .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* blog */
.post h2 { font-size: 22px; margin-top: 28px; }
.post h3 { font-size: 16px; margin-top: 16px; }
.post ul, .post ol { margin-top: 10px; padding-left: 22px; color: var(--subtext); }
.post ul { list-style: disc; }
.post ol { list-style: decimal; }
.post li { margin-top: 6px; }
.post a { color: var(--primary-dark); font-weight: 600; }
.post .btn { color: #fff; }
.crumbs, .meta { font-size: 13px; color: var(--subtext); margin-top: 0; }
.answer { margin-top: 18px; padding: 18px 20px; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 16px; font-weight: 600; color: var(--text) !important; box-shadow: var(--shadow); }
.callout { margin-top: 32px; padding: 24px; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); }
.callout .btn { margin-top: 14px; }
.src { font-size: 14px; }
.grid .card h2 { font-size: 18px; text-align: left; margin: 0; }
.grid .card h2 a, .grid .card h3 a { text-decoration: none; }
.card .more { margin-top: 12px; font-size: 14px; font-weight: 600; }
.card .more a { color: var(--primary-dark); text-decoration: none; }
.card .more a:hover { text-decoration: underline; }
