/* Layr – shared styles for the marketing, support and privacy pages. */

:root {
  --ink: #1c1a18;
  --ink-raised: #262320;
  --ink-line: #3a3530;
  --ground: #faf7f3;
  --panel: #f3ece4;
  --line: #ece5dd;
  --text: #1c1a18;
  --text-body: #4a423a;
  --text-muted: #6b6259;
  --brand: #7a6246;
  --accent: #d9c2a8;
  --on-ink: #ffffff;
  --on-ink-body: rgba(255, 255, 255, 0.75);
  --radius-card: 28px;
  --max: 1200px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-weight: 800;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 960px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
}
.dark .eyebrow { color: var(--accent); }

.accent { color: var(--accent); }

/* ---------- Dark sections and navigation ---------- */

.dark { background: var(--ink); color: var(--on-ink); }

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: Manrope, Inter, sans-serif;
  font-size: 26px;
  line-height: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.brand img { width: 40px; height: auto; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a { text-decoration: none; color: rgba(255, 255, 255, 0.8); }
.nav-links a:hover { color: var(--on-ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  line-height: 24px;
}
.button-light { background: var(--on-ink); color: var(--ink); }
.button-dark { background: var(--ink); color: var(--on-ink); }
.button-accent { background: var(--accent); color: var(--ink); }
.nav-links .button-accent { min-height: 40px; padding: 8px 20px; color: var(--ink); }

/* ---------- Marketing hero ---------- */

.hero { overflow: hidden; }

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -2.5px;
}

.hero-lede { max-width: 520px; font-size: 20px; line-height: 30px; color: var(--on-ink-body); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-note { font-size: 15px; line-height: 22px; color: rgba(255, 255, 255, 0.6); }

.hero-shots {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-shots img {
  width: 34%;
  max-width: 230px;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--ink-line);
}
.hero-shots img:nth-child(1) { transform: rotate(-6deg) translate(18%, 4%); }
.hero-shots img:nth-child(2) { position: relative; z-index: 1; width: 38%; max-width: 260px; }
.hero-shots img:nth-child(3) { transform: rotate(6deg) translate(-18%, 4%); }

/* ---------- Sections ---------- */

.section { padding-top: 96px; padding-bottom: 96px; }

.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -1.5px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--line);
}
.card-number { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--brand); }
.card h3 { font-size: 22px; line-height: 28px; }
.card p { color: var(--text-body); line-height: 25px; }

/* Screenshot gallery: scrolls sideways inside its own box on narrow screens. */
.gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
}
.gallery img {
  flex: none;
  width: 240px;
  height: auto;
  border-radius: 22px;
  scroll-snap-align: start;
  box-shadow: 0 0 0 1px var(--line), 0 18px 36px rgba(92, 70, 48, 0.12);
}

.privacy-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.privacy-grid > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.privacy-grid h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -1.5px; }
.privacy-grid p { font-size: 18px; line-height: 28px; color: var(--on-ink-body); }

.checks { flex: 1 1 360px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 14px; padding: 18px 20px; border-radius: 20px; background: var(--ink-raised); font-size: 17px; line-height: 26px; }
.checks li::before { content: "✓"; color: var(--accent); font-weight: 800; }

.cta { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.cta h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: -1.5px; }
.cta p { max-width: 520px; font-size: 18px; line-height: 28px; color: var(--text-body); }

/* ---------- Support and privacy pages ---------- */

.page-hero { padding-top: 24px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 16px; }
.page-hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -2px; }
.page-hero p { max-width: 560px; font-size: 19px; line-height: 29px; color: var(--on-ink-body); }

.page-body { display: flex; flex-direction: column; gap: 48px; padding-bottom: 80px; }

.contact {
  margin-top: -36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px rgba(92, 70, 48, 0.1);
}
.contact h2 { font-size: 24px; line-height: 30px; }
.contact p { color: var(--text-body); }

.faq-group { display: flex; flex-direction: column; gap: 16px; }
.faq-group > h2 { font-size: 30px; line-height: 38px; }

.faq { border-radius: 24px; background: #ffffff; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--panel); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 500; color: var(--text-muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 28px 24px; color: var(--text-body); line-height: 26px; }

/* Long-form text, for the privacy policy. */
.prose { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.prose h2 { margin-top: 24px; font-size: 26px; line-height: 34px; }
.prose p, .prose li { color: var(--text-body); line-height: 27px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--text); }
.table-box { overflow-x: auto; border-radius: 20px; box-shadow: 0 0 0 1px var(--line); background: #ffffff; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--panel); }
.prose th { font-size: 14px; color: var(--text-muted); }
.prose tr:last-child td { border-bottom: none; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 40px;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
