/* TapHum website: one shared stylesheet for every page.
   Matches the app (lib/ui.js): white, ink, soft surfaces with no borders,
   dark pill buttons, Outfit. Light theme only, like the app. */

:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --ink: #16202E;
  --muted: #6A7483;
  --faint: #98A1AE;
  --line: #EEF0F3;
  --fill: #F6F7F9;
  --soft: #F3F5F7;
  --blue: #2F66B3;
  --gold: #D9A94A;
  --link: #0E7A66;
  --mint: #E3F6EC; --mint-ink: #0E5A49;
  --sky: #EAF1FB;  --sky-ink: #244B7A;
  --sand: #FBF3DD; --sand-ink: #7A5E1C;
  --radius: 20px;
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}
h1, h2, h3 { font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 10; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* ── Nav ─────────────────────────────────────────────── */
.nav { border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; font-size: 19px; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 15px;
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; background: #253247; }
.btn-soft { background: var(--soft); color: var(--ink); }
.btn-soft:hover { background: #E9ECF0; }
.btn-block { display: flex; width: 100%; min-height: 50px; font-size: 16px; }
.btn svg { width: 20px; height: 20px; flex: none; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 18px 0 14px; border-radius: 14px;
  background: var(--ink); color: #fff; text-decoration: none;
}
.badge:hover { text-decoration: none; background: #253247; }
.badge svg { width: 24px; height: 24px; flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.1; }
.badge small { font-size: 11px; opacity: .8; font-weight: 400; }
.badge b { font-size: 17px; font-weight: 500; }

/* ── Home: hero ──────────────────────────────────────── */
.hero { padding: 72px 0 56px; }
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.025em; line-height: 1.04; }
.hero .sub { color: var(--muted); font-size: 19px; margin-top: 20px; max-width: 30em; }
.orbit { width: 100%; max-width: 420px; margin: 0 auto; display: block; }
.orbit .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.8s ease-out infinite; }
.orbit .pulse.late { animation-delay: 1.4s; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .75; } 100% { transform: scale(1.9); opacity: 0; } }

/* ── Sections ────────────────────────────────────────── */
.section { padding: 56px 0; }
.section-head { max-width: 620px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 18px; }
.eyebrow { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { border-radius: var(--radius); padding: 28px; background: var(--fill); }
.card h3 { font-size: 22px; margin-top: 18px; }
.card p { margin-top: 8px; font-size: 16px; }
.card .icon { width: 30px; height: 30px; display: block; }
.card.sand { background: var(--sand); color: var(--sand-ink); }
.card.mint { background: var(--mint); color: var(--mint-ink); }
.card.sky  { background: var(--sky);  color: var(--sky-ink); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { background: var(--fill); border-radius: var(--radius); padding: 28px; }
.steps .num { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 500; }
.steps h3 { font-size: 20px; margin-top: 18px; }
.steps p { color: var(--muted); margin-top: 8px; font-size: 16px; }

.promise { background: var(--fill); border-radius: 28px; padding: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.promise h3 { font-size: 19px; margin-bottom: 6px; }
.promise p { color: var(--muted); font-size: 16px; }
.promise .more { grid-column: 1 / -1; font-size: 15px; }

.cta-band { text-align: center; padding: 64px 0 80px; }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); }
.cta-band p { color: var(--muted); margin-top: 12px; }
.cta-band .badges { justify-content: center; }

/* ── Content pages ───────────────────────────────────── */
.page { padding: 56px 0 72px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.02em; }
.page .lead { color: var(--muted); font-size: 19px; margin-top: 14px; }
.page .updated { color: var(--muted); font-size: 15px; margin-top: 10px; }
.page h2 { font-size: 24px; margin: 44px 0 12px; }
.page h3 { font-size: 18px; margin: 24px 0 6px; }
.page p { margin-top: 12px; }
.page p:first-child { margin-top: 0; }
.page ul { padding-left: 22px; margin: 12px 0 0; }
.page li { margin-top: 6px; }
.page .box { background: var(--fill); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.page .box.mint { background: var(--mint); color: var(--mint-ink); }
.page .box h2:first-child, .page .box h3:first-child { margin-top: 0; }
.email-big { font-size: 24px; font-weight: 500; color: var(--ink); }

.faq { margin-top: 32px; }
.faq h2 { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin: 40px 0 12px; }
.faq details { background: var(--fill); border-radius: 18px; margin-top: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 300; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 22px 22px; color: #3A4555; }
.faq .a p { margin-top: 10px; }
.faq .a p:first-child { margin-top: 0; }

/* ── Invite pages ────────────────────────────────────── */
.invite { min-height: 100vh; display: flex; flex-direction: column; }
.invite main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.invite-card { width: 100%; max-width: 400px; text-align: center; }
.invite-card .mark { width: 64px; height: 64px; display: block; margin: 0 auto; }
.invite-card h1 { font-size: clamp(28px, 7vw, 34px); margin-top: 28px; line-height: 1.15; }
.invite-card .sub { color: var(--muted); margin-top: 12px; font-size: 17px; }
.invite-card .stores { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.invite-card .private { margin-top: 22px; background: var(--mint); color: var(--mint-ink); border-radius: 16px; padding: 14px 16px; text-align: left; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.invite-card .private svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.invite-card .already { color: var(--muted); margin-top: 22px; font-size: 16px; }
.invite-card .already a { color: var(--ink); font-weight: 500; }
.code-box { margin-top: 24px; background: var(--fill); border-radius: 16px; padding: 14px 18px; }
.code-box .label { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.code-box .value { font-size: 22px; font-weight: 600; letter-spacing: .08em; margin-top: 2px; word-break: break-all; }
.hidden { display: none !important; }

/* ── Footer ──────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 15px; }
.footer .container { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }
.footer .social { display: flex; gap: 14px; margin-left: auto; }
.footer .social a { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); align-items: center; justify-content: center; color: var(--ink); }
.footer .social svg { width: 18px; height: 18px; }
.footer .copy { width: 100%; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }

/* ── Phone and tablet ────────────────────────────────── */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 32px; }
  .orbit { max-width: 340px; }
  .grid3, .steps, .promise { grid-template-columns: 1fr; }
  .promise { padding: 28px 24px; gap: 22px; }
}
@media (max-width: 640px) {
  :root { --radius: 18px; }
  body { font-size: 16px; }
  .container, .invite main { padding-left: var(--gutter); padding-right: var(--gutter); }
  .nav .container { gap: 12px; min-height: 60px; }
  .nav-links a.hide-sm { display: none; }
  .nav-links { gap: 14px; }
  .btn { padding: 0 16px; }
  .hero .sub { font-size: 17px; }
  .card, .steps li { padding: 22px; }
  .section { padding: 40px 0; }
  .badge { flex: 1 1 160px; justify-content: center; }
  .footer .social { margin-left: 0; }
}
@media (max-width: 380px) {
  .nav-links a:not(.btn) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit .pulse { animation: none; opacity: 0; }
}
