/* Static SEO/GEO pages. Same palette and type as the app (src/lib/moti/moti-tokens.css); no JavaScript. */
:root {
  --ink: #1f2a33;
  --ink-muted: #4f5b66;
  --ink-faint: #8a949c;
  --primary: #0060ad;
  --primary-fixed: #68abff;
  --primary-soft: rgba(0, 96, 173, .08);
  --chip-border: rgba(0, 96, 173, .18);
  --hairline: rgba(31, 42, 51, .08);
  --night-1: #101740;
  --night-2: #1c2155;
  --night-3: #2a2560;
  --ink-night: #f2f4ff;
  --ink-night-muted: rgba(233, 236, 255, .74);
  --sky-top: #daeeff;
  --sky-bottom: #f2f9ff;
  --warm: #fff7d8;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.75 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-fixed); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding-inline: max(20px, calc((100% - 1040px) / 2));
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 21px; font-weight: 700; letter-spacing: -.06em; text-decoration: none; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.lang { padding: 6px 12px; border: 1px solid var(--chip-border); border-radius: 999px; font-size: 13px; font-weight: 500; text-decoration: none; }

/* Breadcrumbs */
.crumbs { max-width: 760px; margin: 0 auto; padding: 18px 20px 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; color: var(--ink-faint); font-size: 13px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--ink-faint); }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }

/* Page */
.page { max-width: 760px; margin: 0 auto; padding: 8px 20px 72px; }
.hero { padding: 26px 0 8px; }
.eyebrow { margin: 0 0 10px; color: var(--primary); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(32px, 5.4vw, 46px); line-height: 1.12; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
h2 { margin: 0 0 12px; font-size: clamp(22px, 3.2vw, 27px); line-height: 1.25; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.4; font-weight: 600; }
p { margin: 0 0 14px; }
.meta { margin: 14px 0 0; color: var(--ink-faint); font-size: 13px; }
article > section, article > aside { margin-top: 40px; }
article ul:not([class]), article ol:not([class]) { margin: 0 0 14px; padding-left: 22px; }
article li + li { margin-top: 6px; }

.summary {
  padding: 20px 22px;
  border: 1px solid var(--chip-border);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--sky-top), var(--sky-bottom));
}
.summary strong { display: block; margin-bottom: 6px; color: var(--primary); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.summary p { margin: 0; font-size: 17px; line-height: 1.7; }
.intro { margin-top: 28px; color: var(--ink-muted); font-size: 17px; }

/* Affirmations */
.aff-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: aff; }
.aff-list li {
  position: relative;
  margin: 0;
  padding: 14px 18px 14px 52px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: #fff;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  counter-increment: aff;
}
.aff-list li::before {
  content: counter(aff);
  position: absolute;
  top: 14px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}
.aff + .aff { margin-top: 28px; }

.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; margin: 0; padding-left: 40px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.care { padding: 18px 20px; border-left: 3px solid var(--primary-fixed); border-radius: 0 16px 16px 0; background: var(--primary-soft); }
.care strong { display: block; margin-bottom: 4px; }
.care p { margin: 0; color: var(--ink-muted); font-size: 15px; }

/* Call to action: the app's night look */
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 22px;
  padding: 26px;
  border-radius: 26px;
  background: linear-gradient(160deg, var(--night-1), var(--night-2) 58%, var(--night-3));
  color: var(--ink-night);
}
.cta-title { margin: 0 0 8px; font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.cta p { color: var(--ink-night-muted); font-size: 15px; }
.cta .badge { display: inline-block; margin-top: 4px; line-height: 0; }
.cta .badge img { width: 150px; }
.cta .shot { width: 132px; aspect-ratio: 923 / 2000; object-fit: cover; object-position: top; border: 4px solid #0b0b0d; border-radius: 22px; box-shadow: 0 0 0 1.5px #575b63, 0 18px 30px rgba(6, 16, 51, .4); }

/* FAQ */
.faq .qa { padding: 16px 0; border-top: 1px solid var(--hairline); }
.faq .qa:last-child { border-bottom: 1px solid var(--hairline); }
.faq .qa p { margin: 0; color: var(--ink-muted); }

.sources ul { color: var(--ink-muted); font-size: 14px; }

/* Related pages and hubs */
.related { margin-top: 56px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
/* Four related pages sit as two rows of two, never three and a straggler. */
.related .cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cards a {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.cards a:hover { border-color: var(--chip-border); transform: translateY(-2px); }
.cards span { color: var(--primary); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.cards b { font-size: 16px; font-weight: 600; line-height: 1.35; }
.cards small { color: var(--ink-muted); font-size: 13px; line-height: 1.55; }
.hub-intro { color: var(--ink-muted); font-size: 17px; }
.hub-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.hub-links a { display: inline-block; padding: 6px 14px; border: 1px solid var(--chip-border); border-radius: 999px; font-size: 14px; text-decoration: none; }

/* Footer */
.foot { padding: 34px 20px 40px; border-top: 1px solid var(--hairline); color: var(--ink-faint); font-size: 13px; text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 12px; }
.foot nav a { color: var(--ink-muted); text-decoration: none; }
.foot p { margin: 0; }

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .cta { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .cta .shot { display: none; }
  .aff-list li { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .cards a { transition: none; }
}

/* Comparison tables (compare pages) */
.compare .table-wrap { overflow-x: auto; margin: 16px 0 8px; border-radius: 16px; border: 1px solid var(--hairline); }
.compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.compare caption { text-align: left; padding: 12px 16px 0; color: var(--ink-muted); font-size: 13px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.compare thead th { background: var(--primary-soft); font-weight: 600; white-space: nowrap; }
.compare tbody th { font-weight: 600; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .table-note { font-size: 13px; color: var(--ink-muted); }
