/* Favoru website — same look and feel as the iOS app.
   Canvas #FFF8F4, Midnight #010316, logo gradient Sun → Coral → Heart → Violet → Blue,
   rounded white cards, system font (SF Pro on iPhone/Mac). No external fonts or trackers. */
:root {
  --canvas: #FFF8F4;
  --midnight: #010316;
  --text: #1C1C1E;
  --muted: #6E6862;
  --line: #EFE6DF;
  --card: #FFFFFF;
  --mist: #F3EEF5;
  --sun: #FFB600;
  --coral: #FD6F1B;
  --heart: #F61B62;
  --violet: #772DE6;
  --blue: #183EF9;
  --gradient: linear-gradient(90deg, #FFB600 0%, #FD6F1B 25%, #F61B62 50%, #772DE6 75%, #183EF9 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 248, 244, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--midnight); font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: auto; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--card); color: var(--midnight); text-decoration: none; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

/* Home hero */
.hero { text-align: center; padding: 72px 0 40px; }
.hero img.mark { width: min(260px, 62vw); height: auto; }
.hero h1 { font-size: clamp(44px, 8vw, 72px); line-height: 1.02; margin: 18px 0 8px; color: var(--midnight); font-weight: 800; letter-spacing: -0.03em; }
.hero .tagline { font-size: clamp(19px, 2.6vw, 23px); color: var(--muted); margin: 0 auto 28px; max-width: 30ch; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; background: var(--midnight); color: #fff; font-weight: 700; font-size: 16px; }
.pill:hover { text-decoration: none; opacity: 0.92; }
.pill.soft { background: var(--card); color: var(--midnight); border: 1px solid var(--line); }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* Cards */
.section { padding: 40px 0; }
.section h2 { font-size: clamp(28px, 4vw, 36px); color: var(--midnight); letter-spacing: -0.02em; margin: 0 0 8px; }
.section .lead { color: var(--muted); margin: 0 0 26px; font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: 20px; padding: 24px; box-shadow: 0 4px 18px rgba(1, 3, 22, 0.05); }
.card h3 { margin: 12px 0 6px; font-size: 19px; color: var(--midnight); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; }
.d1 { background: linear-gradient(135deg, var(--sun), var(--coral)); }
.d2 { background: linear-gradient(135deg, var(--coral), var(--heart)); }
.d3 { background: linear-gradient(135deg, var(--heart), var(--violet)); }
.d4 { background: linear-gradient(135deg, var(--violet), var(--blue)); }
.band { height: 6px; border-radius: 6px; background: var(--gradient); margin: 8px 0 0; }

/* Legal pages */
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(34px, 5vw, 46px); color: var(--midnight); letter-spacing: -0.02em; margin: 0 0 6px; }
.page-head .updated { color: var(--muted); font-size: 15px; margin: 0; }
.doc { background: var(--card); border-radius: 24px; padding: clamp(22px, 4vw, 40px); margin: 22px 0 40px; box-shadow: 0 4px 18px rgba(1, 3, 22, 0.05); }
.doc h2 { font-size: 21px; color: var(--midnight); margin: 30px 0 8px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: #2B2B30; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-size: 13px; text-transform: none; color: var(--muted); font-weight: 700; background: var(--mist); }
.callout { background: var(--mist); border-radius: 16px; padding: 16px 18px; margin: 14px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.toc a { background: var(--card); border: 1px solid var(--line); color: var(--midnight); padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.toc a:hover { text-decoration: none; border-color: var(--violet); }

/* 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; gap: 16px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 600px) {
  .top .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-direction: column; gap: 6px; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .doc td { border: 0; padding: 2px 0; }
  .doc td:first-child { font-weight: 700; color: var(--midnight); }
}
