/*
 * getkeepintouch.com
 *
 * Palette copied from apps/mobile/src/theme/tokens.ts, token names kept in the
 * comments. The site and the app should look like the same object; if the
 * palette moves there it must be moved here by hand, because nothing enforces it.
 */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ivory: #fbf8f4; /* palette.ivory   — background */
  --paper: #fffefc; /* palette.paper   — surface */
  --linen: #f2ede6; /* palette.linen   — surfaceSunken */
  --sand: #e7dfd4; /* palette.sand    — border */
  --ink: #231f1c; /* palette.ink     — textPrimary */
  --ink70: #57504a; /* palette.ink70   — textSecondary */
  --ink45: #6e6761; /* palette.ink45   — textMuted */
  --clay: #a94e36; /* palette.clay    — accent */
  --clay-deep: #8e3f2b; /* palette.clayDeep */
  --clay-wash: #f6e7e1; /* palette.clayWash */

  --bg: var(--ivory);
  --surface: var(--paper);
  --sunken: var(--linen);
  --border: var(--sand);
  --text: var(--ink);
  --text-2: var(--ink70);
  --text-3: var(--ink45);
  --accent: var(--clay);
  --accent-text: var(--clay-deep);
  --wash: var(--clay-wash);
  --shadow: rgba(35, 31, 28, 0.09);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* darkColors, same warmth inverted — never a cold grey theme. */
    --bg: #191614;
    --surface: #221e1b;
    --sunken: #141210;
    --border: #3a342f;
    --text: #f4efe9;
    --text-2: #bdb3aa;
    --text-3: #9b9189;
    --accent: #d9765a;
    --accent-text: #e08a70;
    --wash: #33231e;
    --shadow: rgba(0, 0, 0, 0.4);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: var(--surface);
  padding: 10px 16px;
  border-radius: 10px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── chrome ─────────────────────────────────────────────────────────────── */

header.site,
footer.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1060px;
  margin: 0 auto;
  padding: 22px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand img {
  border-radius: 8px;
}

header.site nav,
footer.site nav {
  display: flex;
  gap: 22px;
  font-size: 16px;
}
header.site nav a,
footer.site nav a {
  color: var(--text-2);
  text-decoration: none;
}
header.site nav a:hover,
footer.site nav a:hover {
  color: var(--accent);
}

footer.site {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 15px;
}
footer.site .copy {
  margin: 0;
}

main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: center;
  padding: 56px 0 84px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero .lede {
  font-size: clamp(21px, 2.6vw, 26px);
  color: var(--accent-text);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
}

.hero .sub {
  font-size: 18px;
  color: var(--text-2);
  margin: 0 0 30px;
  max-width: 46ch;
}

.hero-video video {
  width: 100%;
  border-radius: 26px;
  border: 1px solid var(--border);
  box-shadow: 0 22px 60px var(--shadow);
  background: var(--sunken);
}

.cta {
  margin: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta.soon {
  color: var(--text-3);
  font-size: 16px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--paper);
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover {
  background: var(--clay-deep);
  color: var(--paper);
}
.button.ghost {
  background: transparent;
  color: var(--accent-text);
  border: 1px solid var(--border);
}

/* ── sections ───────────────────────────────────────────────────────────── */

section h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.03em;
  margin: 0 0 26px;
  font-weight: 700;
}

.promises ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 26px;
}
.promises li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}
.promises h2 {
  font-size: 21px;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.promises p {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
}

.screens {
  padding: 84px 0 0;
}
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 34px;
}
.shots figure {
  margin: 0;
}
.shots img {
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 44px var(--shadow);
}
.shots figcaption {
  margin-top: 14px;
  color: var(--text-3);
  font-size: 15px;
}

.panel {
  margin: 84px 0 0;
  background: var(--wash);
  border-radius: 26px;
  padding: 44px;
}
.panel p {
  color: var(--text-2);
  max-width: 62ch;
}
.panel p:first-of-type {
  margin-top: 0;
}
.more {
  font-weight: 600;
}

.tiers {
  padding: 84px 0 0;
}
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.tier {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  background: var(--surface);
}
.tier h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
.tier p {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
}
.tiers .note {
  color: var(--text-3);
  font-size: 16px;
  max-width: 66ch;
  margin-top: 22px;
}

/* ── legal prose ────────────────────────────────────────────────────────── */

.prose {
  max-width: 68ch;
  margin: 48px auto 0;
}
.prose h1 {
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  font-weight: 800;
}
.prose h2 {
  font-size: 26px;
  letter-spacing: -0.025em;
  margin: 52px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.prose h3 {
  font-size: 20px;
  margin: 32px 0 10px;
  letter-spacing: -0.015em;
}
.prose p,
.prose li {
  color: var(--text-2);
}
.prose li {
  margin-bottom: 8px;
}
.prose strong {
  color: var(--text);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}
.prose th,
.prose td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.prose th {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.prose blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text-2);
}
.prose code {
  background: var(--sunken);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.9em;
}

/* ── narrow ─────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px 0 56px;
  }
  .hero-video {
    max-width: 320px;
  }
  .panel {
    padding: 28px;
  }
}
