/*
 * Tenderly site: one stylesheet for the home page and every page in site/.
 * Pink only (owner, 2026-10-26): rose #B9557A, deep rose #A34766, ivory
 * #FDF7F9, icon gradient #E9A3B8 to #B85578, neutral grey text.
 * Contrast on ivory: body text 13:1, muted 6:1, deep rose 5.4:1 (links,
 * buttons with white text 5.7:1). Rose #B9557A is 4.3:1, so it is used only
 * for the mark, borders and large display type, never for body-size text.
 * No web fonts are loaded (no third-party requests); the wordmark uses the
 * system's rounded face where there is one.
 */
:root {
  --bg: #fdf7f9;
  --surface: #ffffff;
  --surface-soft: #f8e9ef;
  --text: #2b2a2c;
  --muted: #5d5b60;
  --rule: #ecdde3;
  --rose: #b9557a;
  --accent: #a34766;
  --on-accent: #ffffff;
  --grad-top: #e9a3b8;
  --grad-bottom: #b85578;
  --focus: #a34766;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18171a;
    --surface: #222024;
    --surface-soft: #2c2429;
    --text: #f1eff1;
    --muted: #bdb8bd;
    --rule: #38323a;
    --rose: #e9a3b8;
    --accent: #f2b3c7;
    --on-accent: #2b1520;
    --focus: #f2b3c7;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
body > #content { flex: 1 0 auto; width: 100%; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.site-header .bar {
  max-width: 1080px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); text-decoration: none;
}
.brand img { width: 34px; height: 34px; }
.wordmark {
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", -apple-system, "Segoe UI", sans-serif;
  font-weight: 700; font-size: 24px; letter-spacing: 0.01em; line-height: 1;
}
.site-nav ul { display: flex; gap: 4px 20px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 6px 0; display: inline-block; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--surface-soft);
  margin-top: 48px;
}
.home + .site-footer { margin-top: 0; }
.site-footer .inner { max-width: 1080px; margin: 0 auto; padding: 32px 16px 40px; }
.site-footer .footer-brand { display: flex; align-items: center; gap: 8px; color: var(--accent); margin: 0 0 16px; }
.site-footer .footer-brand img { width: 28px; height: 28px; }
.site-footer .footer-brand .wordmark { font-size: 20px; }
.site-footer ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--accent); }
.site-footer .fine { color: var(--muted); font-size: 14px; margin: 0; max-width: 720px; }

/* Text pages (policies, support) */
.page { max-width: 680px; margin: 0 auto; padding: 32px 16px 16px; }
.page h1 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; }
.page h2 { font-size: 20px; line-height: 1.35; margin: 32px 0 8px; }
.page p, .page li { overflow-wrap: anywhere; }
.page ul, .page ol { padding-left: 24px; }
.muted { color: var(--muted); }
.draft {
  background: var(--surface-soft); border-left: 4px solid var(--rose);
  padding: 12px 16px; border-radius: 8px;
}

/* Home page */
.home section { padding: 56px 16px; }
.home .wrap { max-width: 1080px; margin: 0 auto; }
.home h2 { font-size: 30px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.home h3 { font-size: 19px; line-height: 1.35; margin: 0 0 6px; }
.home .lede { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 0 28px; }

.hero { text-align: center; padding-top: 56px !important; padding-bottom: 64px !important; }
.hero .app-icon {
  width: 112px; height: 112px; border-radius: 26px;
  box-shadow: 0 10px 30px rgba(184, 85, 120, 0.25);
}
.hero .hero-name {
  margin: 20px 0 4px; color: var(--accent);
  font-size: 56px; line-height: 1.05;
}
.hero .tagline { margin: 0 0 20px; color: var(--muted); font-size: 18px; font-weight: 500; }
.hero h1 {
  font-size: 34px; line-height: 1.2; margin: 0 auto 16px; max-width: 720px; letter-spacing: -0.01em;
}
.hero .lede { margin: 0 auto 32px; }

.badges { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.badge {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-width: 180px; padding: 10px 18px; border-radius: 12px;
  background: var(--text); color: var(--bg); line-height: 1.2; text-align: left;
}
.badge small { font-size: 12px; opacity: 0.85; }
.badge strong { font-size: 19px; }
.badges-note { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

.band { background: var(--surface-soft); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.home .card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: 22px;
}
.home .card p { margin: 0; color: var(--muted); }
.home .card .dot {
  display: block; width: 36px; height: 36px; border-radius: 12px; margin-bottom: 14px;
  background: linear-gradient(180deg, var(--grad-top), var(--grad-bottom));
}
.home .card ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 5fr 7fr; gap: 48px; } }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding: 14px 16px 14px 54px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; }
.checks li::before {
  content: ""; position: absolute; left: 17px; top: 19px; width: 18px; height: 18px; border-radius: 50%;
  border: 5px solid var(--rose);
}

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--rose);
  background: var(--surface); font-weight: 500;
}
.note { color: var(--muted); font-size: 15px; max-width: 720px; margin: 20px 0 0; }

.wellness { text-align: center; }
.wellness p { max-width: 680px; margin: 0 auto 10px; color: var(--muted); }
.wellness .device { color: var(--text); font-weight: 600; }

@media (max-width: 600px) {
  .home section { padding: 40px 16px; }
  .hero .hero-name { font-size: 44px; }
  .hero h1 { font-size: 27px; }
  .home h2 { font-size: 25px; }
  .home .lede { font-size: 17px; }
  .badge { min-width: 0; flex: 1 1 150px; }
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 0.15s; }
}
