/* Kith Health / Tappy — shared styles
   Palette: pine, sage, marigold, paper, ink
   Type: Bitter (display) + Atkinson Hyperlegible (body, designed for low-vision readers) */

:root {
  --pine: #1e4d3b;
  --pine-deep: #14382a;
  --sage: #e9f0e9;
  --sage-line: #cfdccf;
  --marigold: #e2a238;
  --paper: #fcfcfa;
  --ink: #22302a;
  --ink-soft: #4e5e56;
  --radius: 14px;
  --maxw: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  font-size: 1.125rem;      /* 18px base — legible by design */
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: "Bitter", Georgia, serif;
  color: var(--pine-deep);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--pine); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* Header / nav */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--sage-line);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.75rem;
  padding-top: 1rem; padding-bottom: 1rem;
}
.brand {
  font-family: "Bitter", Georgia, serif;
  font-weight: 700; font-size: 1.3rem;
  color: var(--pine-deep); text-decoration: none;
  display: flex; align-items: center; gap: 0.55rem;
}
.brand-dot {
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--marigold);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.15);
}
nav.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
nav.site-nav a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 1rem; padding: 0.25rem 0;
}
nav.site-nav a[aria-current="page"] {
  color: var(--pine-deep); font-weight: 700;
  border-bottom: 3px solid var(--marigold);
}
nav.site-nav a:hover { color: var(--pine-deep); }

/* Hero */
.hero { padding: 3.5rem 0 3rem; }
.hero h1 { color: var(--ink); }
.tappy-mark {
  margin: 0 0 2rem;
  display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap;
}
.tappy-mark em {
  font-family: "Bitter", Georgia, serif;
  font-style: italic; font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  color: #a9701a; /* deepened marigold for contrast on white */
  line-height: 1;
}
.tappy-mark .tappy-by {
  font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.hero .wrap {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem; align-items: center;
}
.hero .kicker {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.85rem; font-weight: 700; color: var(--pine);
  margin-bottom: 0.75rem;
}
.hero p.lede { font-size: 1.3rem; color: var(--ink-soft); }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* Signature element: the tap button */
.tap-figure { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.tap-button {
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #f4c46a, var(--marigold) 60%);
  border: none;
  box-shadow: 0 10px 0 #b57d24, 0 18px 30px rgba(30,77,59,0.25);
  font-family: "Bitter", Georgia, serif;
  font-size: 1.6rem; font-weight: 700; color: var(--pine-deep);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.tap-button:active {
  transform: translateY(8px);
  box-shadow: 0 2px 0 #b57d24, 0 6px 12px rgba(30,77,59,0.25);
}
.tap-caption { font-size: 0.95rem; color: var(--ink-soft); text-align: center; max-width: 240px; }

/* Sections */
section.band { padding: 3rem 0; }
section.band.tint { background: var(--sage); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.card {
  background: #fff; border: 1px solid var(--sage-line);
  border-radius: var(--radius); padding: 1.5rem;
}
.card h3 { margin-top: 0; }

/* Step list (setup flow) */
ol.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.75rem 3.4rem;
  border-left: 2px solid var(--sage-line);
  margin-left: 1.1rem;
}
ol.steps > li:last-child { border-left-color: transparent; padding-bottom: 0.5rem; }
ol.steps > li::before {
  content: counter(step);
  position: absolute; left: -1.2rem; top: -0.15rem;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--pine); color: #fff;
  font-family: "Bitter", Georgia, serif; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
ol.steps h3 { margin-bottom: 0.35rem; }

/* SMS message samples as bubbles */
.bubble {
  background: var(--sage);
  border: 1px solid var(--sage-line);
  border-radius: 18px 18px 18px 4px;
  padding: 0.85rem 1.1rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  max-width: 34rem;
  margin: 0 0 0.9rem;
}

/* Consent text block */
.consent-quote {
  border-left: 5px solid var(--marigold);
  background: #fff;
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  margin: 1rem 0;
}

/* Screenshot figures */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.75rem; margin: 1.5rem 0; }
figure.shot { margin: 0; text-align: center; }
figure.shot img {
  width: 100%; max-width: 300px;
  border: 1px solid var(--sage-line);
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(30,77,59,0.14);
  background: #fff;
}
figure.shot figcaption {
  font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.6rem;
}

/* Definition rows (About / Contact) */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.5rem; }
.facts dt { font-weight: 700; color: var(--pine-deep); }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 0.6rem; } }

/* Footer */
.site-footer {
  background: var(--pine-deep); color: #e6efe9;
  padding: 2.5rem 0; margin-top: 3.5rem;
  font-size: 1rem;
}
.site-footer a { color: #fff; }
.site-footer .wrap { display: grid; gap: 0.4rem; }
.site-footer .legal { color: #b9cfc2; font-size: 0.9rem; margin-top: 0.75rem; }

.btn {
  display: inline-block; background: var(--pine); color: #fff;
  text-decoration: none; font-weight: 700;
  padding: 0.8rem 1.5rem; border-radius: 999px;
}
.btn:hover { background: var(--pine-deep); }
