/* Tripkeep — marketing + policies. Self-contained, no external resources
   (fast, private: nothing about a visitor leaves their browser). Palette and
   type mirror the app: graphite near-black, one blue accent, gold for "like". */

:root {
  --ink:      #16181D;   /* app background (graphite) */
  --surface:  #1F222A;   /* lifted card */
  --surface2: #282C35;   /* higher card */
  --line:     #363B45;   /* hairline / border */
  --text:     #F2F4F8;   /* primary text */
  --muted:    #9AA3B2;   /* secondary text */
  --accent:   #3B82F6;   /* brand blue */
  --accent-2: #2563EB;   /* blue pressed */
  --like:     #FBBF24;   /* gold — like/favorite only */
  --good:     #34D399;   /* green — safety/positive */
  --maxw:     720px;
  --radius:   16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(22, 24, 29, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(160deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #fff; font-size: 16px;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
}
.nav a { color: var(--muted); font-size: 15px; margin-left: 22px; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* ---- hero ---- */
.hero { padding: 84px 0 64px; text-align: center; }
.hero h1 {
  font-size: clamp(32px, 6vw, 52px); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 18px; font-weight: 800;
}
.hero .lede { font-size: clamp(18px, 3vw, 21px); color: var(--muted); max-width: 32ch; margin: 0 auto 32px; }
.hero .arrow { color: var(--accent); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 16px;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
}
.btn:hover { background: var(--accent-2); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--muted); background: var(--surface); }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge-note { display: block; margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 56px 0; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; text-align: center;
}
.step .n {
  width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--surface2); color: var(--accent); font-weight: 700;
  display: grid; place-items: center; font-size: 15px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---- promise strip ---- */
.promise {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin: 40px 0; text-align: center;
}
.promise strong { color: var(--good); }

/* ---- content pages ---- */
.page { padding: 48px 0 72px; }
.page h1 { font-size: clamp(28px, 5vw, 38px); letter-spacing: -0.02em; margin: 0 0 6px; }
.page .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.page h2 { font-size: 21px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.page h3 { font-size: 17px; margin: 24px 0 6px; }
.page p, .page li { color: #D7DCE4; }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--good);
  border-radius: 12px; padding: 16px 18px; margin: 20px 0;
}
.callout.blue { border-left-color: var(--accent); }
.faq h3 { margin-top: 28px; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; margin-top: 40px; color: var(--muted); }
.site-footer .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); font-size: 15px; }
.site-footer a:hover { color: var(--text); }
.site-footer .links a { margin-right: 18px; }
.site-footer .fine { font-size: 13px; margin-top: 18px; }

/* light-mode: keep the dark brand look but respect reduced motion */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
