/* DateTrails website — single shared stylesheet.
   Design goals: warm/romantic (coral accent matching the app's palette),
   fast (system fonts, no JS frameworks), and responsive from small phones
   to wide desktops. */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --fg: #231f1c;
  --body: #46403a;
  --muted: #8a8178;
  --accent: #e8836b;
  --accent-dark: #d3654c;
  --accent-soft: #fdf0ec;
  --border: #f0e6e0;
  --shadow: 0 1px 2px rgba(35, 31, 28, 0.04), 0 8px 24px rgba(35, 31, 28, 0.06);
  --radius: 14px;
  --max: 860px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 40px 20px 72px; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.3px;
  color: var(--fg);
  text-decoration: none;
}
.brand img { width: 26px; height: 26px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
}
nav a:hover { color: var(--accent-dark); }

/* ---------- Typography ---------- */
h1 { color: var(--fg); font-size: 34px; letter-spacing: -0.6px; line-height: 1.15; margin: 20px 0 10px; }
h2 { color: var(--fg); font-size: 21px; letter-spacing: -0.2px; margin: 36px 0 10px; }
h3 { color: var(--fg); font-size: 17px; margin: 20px 0 6px; }
p, li { color: var(--body); }
.muted { color: var(--muted); }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

/* Informational callout (tips, non-warning notes). */
.note {
  background: var(--accent-soft);
  border: 1px solid #f6dcd2;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14.5px;
  color: #7c4a3a;
  margin: 18px 0;
}
.note p { color: inherit; margin: 6px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 15.5px;
  box-shadow: 0 6px 16px rgba(232, 131, 107, 0.35);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(232, 131, 107, 0.4);
}
.btn.secondary {
  background: var(--surface);
  color: var(--accent-dark);
  border: 1.5px solid var(--accent);
  box-shadow: none;
}
.btn.secondary:hover { background: var(--accent-soft); transform: translateY(-1px); }

/* ---------- Landing: hero ---------- */
.hero { text-align: center; padding: 48px 0 8px; }
.hero .mark { width: 84px; height: 84px; margin-bottom: 4px; }
.hero h1 { font-size: 44px; margin: 12px 0 10px; }
.hero h1 em { font-style: normal; color: var(--accent-dark); }
.hero p {
  font-size: 18.5px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

/* "Coming soon" pill under the hero CTA. */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid #f6dcd2;
  color: #a05a44;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 18px;
}
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- Landing: steps & feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 8px; }
.cards.four { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 20px 16px;
}
.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 10px;
}
.card .glyph { font-size: 24px; line-height: 1; margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-size: 16.5px; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); }

section.center { text-align: center; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 18px;
  margin: 10px 0;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--fg);
  padding: 12px 24px 12px 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p { margin: 12px 0 10px; font-size: 15px; }

/* ---------- Tables (privacy data-retention matrix) ---------- */
table.data { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
table.data th, table.data td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--border);
}
table.data th { background: #faf6f3; font-weight: 700; color: var(--fg); }

/* Wide tables scroll inside their container on small screens. */
.table-scroll { overflow-x: auto; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--border); background: var(--surface); }
footer.site .wrap {
  padding: 26px 20px 32px;
  display: flex;
  gap: 8px 22px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13.5px;
  color: var(--muted);
}
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--accent-dark); }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .wrap { padding: 28px 18px 56px; }
  h1 { font-size: 28px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 33px; }
  .hero p { font-size: 16.5px; }
  .hero .mark { width: 68px; height: 68px; }
  .cards, .cards.four { grid-template-columns: 1fr; }
  header.site .wrap { justify-content: center; text-align: center; }
  nav { justify-content: center; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .cards.four { grid-template-columns: repeat(2, 1fr); }
}
