/*
 * FourDinks marketing site — shared styles.
 * Mirrors the in-app design tokens from constants/theme.ts.
 */

:root {
  /* Surface */
  --bg: #F3EEE4;          /* warm cream */
  --bg-elev: #FBF7EE;
  --surface: #FFFFFF;
  --hairline: rgba(31, 61, 58, 0.10);
  --hairline-2: rgba(31, 61, 58, 0.06);

  /* Ink */
  --ink: #1B1A17;
  --ink-2: #4B4A45;
  --ink-3: #8A887E;
  --ink-4: #B8B5A8;

  /* Brand */
  --court: #1F3D3A;
  --court-deep: #142A28;
  --court-soft: #2B5450;
  --court-tint: #DCE6E2;
  --coral: #E07856;
  --coral-deep: #B85838;
  --coral-tint: #F8DCCC;
  --dink: #C4DB2B;
  --dink-deep: #8FA51A;

  /* Geometry */
  --r-card: 22px;
  --r-pill: 999px;
  --r-tile: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--court); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Header ─── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 960px;
  margin: 0 auto;
}
.site-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.site-header-brand:hover { text-decoration: none; }
.site-header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}
.site-header-nav a { color: var(--ink-3); }
.site-header-nav a:hover { color: var(--ink); text-decoration: none; }

/* ─── Page container ─── */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Hero ─── */
.hero {
  padding: 64px 0 48px;
  text-align: center;
}
.hero h1 {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 0 0 20px;
  color: var(--ink);
}
.hero h1 .accent { color: var(--coral); }
.hero p.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 auto 36px;
  max-width: 540px;
}
.hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
@media (min-width: 600px) {
  .hero h1 { font-size: 68px; }
}

/* ─── App Store badge ─── */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.3px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.appstore-badge:hover {
  opacity: 0.88;
  text-decoration: none;
  transform: translateY(-1px);
}
.appstore-badge svg { width: 26px; height: 26px; }
.appstore-badge .small { font-size: 11px; font-weight: 400; opacity: 0.7; display: block; }

.appstore-badge.coming-soon {
  background: transparent;
  color: var(--ink-3);
  border: 1.5px dashed var(--ink-4);
  font-style: italic;
}
.appstore-badge.coming-soon:hover {
  transform: none;
  opacity: 1;
}

/* ─── Mode cards section ─── */
.modes {
  padding: 32px 0 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .modes { grid-template-columns: 1fr 1fr; }
}
.mode-card {
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-card);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(27, 26, 23, 0.04);
}
.mode-card .mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 8px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 16px;
}
.mode-card .mode-chip.open {
  background: var(--court-tint);
  color: var(--court);
}
.mode-card .mode-chip.targeted {
  background: var(--coral-tint);
  color: var(--coral-deep);
}
.mode-card .dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: currentColor;
}
.mode-card h3 {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}
.mode-card p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
}

/* ─── "Built for your crew" section ─── */
.values {
  padding: 48px 0 64px;
  text-align: center;
}
.values h2 {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -1px;
  margin: 0 0 14px;
}
.values p.subhead {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.5;
}
.values-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}
.value-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: 14px;
}
.value-row .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--court);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}
.value-row strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}
.value-row span {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.5;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--hairline-2);
  padding: 32px 24px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}
.site-footer .footer-links a { color: var(--ink-3); }

/* ─── Content pages (privacy, support) ─── */
.content-page {
  padding: 32px 0 64px;
}
.content-page h1 {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -1.5px;
  margin: 0 0 8px;
  color: var(--ink);
}
.content-page .updated {
  color: var(--ink-3);
  font-size: 13px;
  margin: 0 0 36px;
}
.content-page h2 {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  margin: 36px 0 12px;
  color: var(--ink);
}
.content-page h3 {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-weight: 600;
  font-size: 17px;
  margin: 24px 0 10px;
  color: var(--ink);
}
.content-page p,
.content-page li {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
}
.content-page ul { padding-left: 22px; }
.content-page li { margin-bottom: 6px; }
.content-page a { color: var(--court); }
.content-page strong { color: var(--ink); font-weight: 600; }
.content-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
}
.content-page th,
.content-page td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline-2);
  font-size: 14.5px;
}
.content-page th {
  color: var(--ink-3);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.content-page blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--court-tint);
  background: var(--bg-elev);
  border-radius: 4px;
  color: var(--ink-2);
}

/* ─── Support page specifics ─── */
.support-cta {
  background: var(--court);
  color: #fff;
  border-radius: var(--r-card);
  padding: 32px;
  text-align: center;
  margin: 24px 0 32px;
}
.support-cta h2 {
  color: #fff;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 8px;
}
.support-cta p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 20px;
  font-size: 15px;
}
.support-cta .mailto-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.support-cta .mailto-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  text-decoration: none;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq-item strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 6px;
}
.faq-item span {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.5;
}
