/*
 * Ivory & Ink, the app's palette (apps/mobile-rn/src/theme/theme.ts), carried
 * over to the web. Keep these values in step with that file.
 */
:root {
  --background: #F4EFE5;
  --surface: #FBF8F1;
  --surface-raised: #FFFDF8;
  --hairline: #DDD3C0;
  --border: #C9BDA6;
  --gold-deep: #6B500F;
  --gold: #846412;
  --gold-bright: #C9A227;
  --gold-pale: #E6CC80;
  --gold-ink: #7A5C12;
  --on-gold: #FFFBF0;
  --text: #17150F;
  --text-dim: #6A6255;
  --text-faint: #8A8172;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --page: 1080px;
  --gutter: 24px;
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--gold-ink); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }

img, svg { display: block; }

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.wordmark {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--text);
  font-weight: 500;
}

.wordmark b { color: var(--gold); font-weight: 700; }

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 14.5px;
  font-weight: 500;
}

.site-nav a { color: var(--text-dim); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Type */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: clamp(36px, 6vw, 54px); }
h2 { font-size: clamp(26px, 4vw, 32px); }
h3 { font-size: 21px; }

.label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.lead {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 34em;
}

.dim { color: var(--text-dim); }

/* Store buttons */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 12px;
}

/* The official badges, as Apple and Google supply them. Both are 3.375:1, so
   the same height gives the same width. */
.badge { display: inline-block; border-radius: 9px; line-height: 0; }
.badge img { height: 52px; width: auto; }
.badge:hover { opacity: 0.85; }
.badge:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.fine { font-size: 13px; color: var(--text-faint); }

/* Landing */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 64px;
}

.phone {
  justify-self: center;
  width: 100%;
  max-width: 300px;
  padding: 14px;
  border-radius: 40px;
  background: var(--text);
  box-shadow: 0 30px 60px -30px rgba(23, 21, 15, 0.45);
}

.screen {
  border-radius: 28px;
  background: var(--background);
  padding: 26px 16px 20px;
  min-height: 520px;
}

.screen .lockup { justify-content: center; width: 100%; margin-bottom: 22px; }
.screen .wordmark { font-size: 18px; }

.match {
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
}

.match-top { display: flex; justify-content: space-between; align-items: center; }
.match-name { font-weight: 600; font-size: 14.5px; }
.match-line { font-size: 12.5px; color: var(--text-dim); margin: 2px 0 10px; }

.score {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-ink);
  border: 1px solid var(--gold-pale);
  border-radius: 999px;
  padding: 2px 9px;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--surface);
}

.connect {
  display: block;
  text-align: center;
  margin-top: 16px;
  padding: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--on-gold);
  font-weight: 600;
  font-size: 14px;
}

.section { padding: 64px 0; border-top: 1px solid var(--hairline); }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--text-dim); font-size: 15px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps li::before {
  content: counter(step);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold-pale);
  font-family: var(--serif);
  font-size: 19px;
  color: var(--gold-ink);
  background: var(--surface-raised);
}
.steps strong { display: block; margin-top: 9px; }
.steps span { color: var(--text-dim); }

.cta { text-align: center; }
.cta .stores { justify-content: center; }

/* Document pages: policy, terms, support */

.doc { max-width: 760px; padding: 56px 0 72px; }
.doc h2 { font-size: 24px; margin-top: 40px; }
.doc h3 { font-size: 18px; font-family: var(--sans); font-weight: 600; margin: 24px 0 8px; }
.doc p, .doc li { color: #2E2A21; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.updated { color: var(--text-faint); font-size: 14px; margin-bottom: 32px; }

.note {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold-bright);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
}

.note p { margin: 0; }

.contact-card {
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 28px 0;
}

.contact-card .email {
  font-family: var(--serif);
  font-size: clamp(20px, 4vw, 26px);
  word-break: break-word;
}

.button {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--on-gold);
  font-weight: 600;
  text-decoration: none;
}

.button:hover { color: var(--on-gold); filter: brightness(1.05); }

details {
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
}

summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 0 40px;
  font-size: 14px;
  color: var(--text-dim);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 40px; }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  :root { --gutter: 16px; }
  .site-nav { gap: 16px; font-size: 14px; }
}
