/* meqa.app (2026-11-17). Meqa's own colours: ivory ground, navy ink, rose gold, the card's serif. */
:root {
  --ground: #FBF7F2;
  --linen: #F3EBE3;
  --blush: #F8E8E2;
  --surface: #FFFFFF;
  --ink: #1B2240;
  --ink-soft: #585C73;
  --ink-faint: #6E6B80;
  --navy: #182241;
  --on-navy: #FBF7F2;
  --rose: #9E5A4E;
  --rose-light: #E9B6A2;
  --forest: #2C4A3C;
  --forest-soft: #DFEAE3;
  --brass: #D9B259;
  --brass-soft: #F1E2B8;
  --hair: rgba(27, 34, 64, 0.1);
  --shadow: 0 24px 60px rgba(74, 48, 40, 0.16);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
a { color: var(--rose); }
a:hover { color: #7E4338; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; text-wrap: balance; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--rose); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font-family: var(--serif); font-size: 28px; line-height: 1; }
.top nav { display: flex; gap: 18px; font-size: 15px; }
.top nav a { color: var(--ink-soft); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 78px); margin: 14px 0 18px; }
.hero p.lede { font-size: 19px; color: var(--ink-soft); max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 16px; }
.button.primary { background: var(--navy); color: var(--on-navy); }
.button.primary:hover { background: #0F1730; color: var(--on-navy); }
.button.quiet { background: var(--linen); color: var(--ink); }
.button.quiet:hover { background: #ECE1D6; color: var(--ink); }
.soon { margin-top: 14px; font-size: 14px; color: var(--ink-faint); }
.phones { position: relative; display: flex; justify-content: center; gap: 18px; }
.phone { width: min(260px, 44vw); border-radius: 34px; padding: 8px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--hair); }
.phone img { border-radius: 27px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; width: 100%; }
.phones .phone:nth-child(2) { transform: translateY(46px); }

/* Chapters */
.chapter { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 72px 0; border-top: 1px solid var(--hair); }
.chapter.flip .copy { order: 2; }
.chapter h2 { font-size: clamp(36px, 4.6vw, 54px); margin: 12px 0 16px; }
.chapter p { color: var(--ink-soft); margin: 0 0 14px; max-width: 32em; }
.chapter ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.chapter li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.chapter li::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: 9px; border-radius: 50%; background: var(--rose-light); box-shadow: 0 0 0 3px var(--blush); }
.chapter .phone { margin: 0 auto; width: min(300px, 80vw); }

/* Safety */
.safety { background: var(--navy); color: var(--on-navy); border-radius: 32px; padding: 56px 48px; margin: 24px 0 72px; }
.safety h2 { font-size: clamp(34px, 4.2vw, 50px); margin: 10px 0 26px; }
.safety .eyebrow { color: var(--brass); }
.safety .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 28px; }
.safety h3 { font-size: 24px; margin-bottom: 6px; color: var(--brass-soft); }
.safety p { margin: 0; color: rgba(251, 247, 242, 0.82); font-size: 16px; }

/* Join */
.join { text-align: center; padding: 8px 0 80px; }
.join h2 { font-size: clamp(34px, 4.2vw, 50px); margin: 10px 0 14px; }
.join p { color: var(--ink-soft); margin: 0 auto 24px; max-width: 30em; }
.join .cta { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--hair); padding: 32px 0 48px; font-size: 14px; color: var(--ink-faint); }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }
footer .links a { color: var(--ink-soft); text-decoration: none; }
footer .credits { font-size: 12.5px; line-height: 1.6; max-width: 70em; }
footer .credits a { color: var(--ink-faint); }

/* Long pages: privacy, terms, support */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 20px 80px; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); margin: 12px 0 10px; }
.doc .updated { color: var(--ink-faint); font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-size: 30px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .box { background: var(--linen); border-radius: 18px; padding: 18px 20px; margin: 18px 0; }

@media (max-width: 860px) {
  .hero, .chapter { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 16px; }
  .chapter.flip .copy { order: 0; }
  .safety { padding: 40px 22px; border-radius: 24px; }
  .safety .grid { grid-template-columns: 1fr; }
  .top nav { gap: 12px; font-size: 14px; }
}
@media (max-width: 420px) {
  .phones .phone:nth-child(2) { display: none; }
  .phone { width: min(280px, 82vw); }
}

/* Long pages, continued (2026-11-17): the lede, sub-heads, tables that scroll inside themselves, questions. */
.doc .lede { font-size: 19px; color: var(--ink-soft); margin: 0 0 24px; }
.doc h3 { font-size: 23px; margin: 26px 0 6px; }
.doc .box p { margin: 0 0 10px; }
.doc .box p:last-child { margin-bottom: 0; }
.doc .table { overflow-x: auto; margin: 14px 0 18px; border: 1px solid var(--hair); border-radius: 16px; background: var(--surface); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--hair); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; background: var(--linen); }
.doc td:first-child { font-weight: 600; width: 34%; }
.doc details { border-top: 1px solid var(--hair); padding: 4px 0; }
.doc details:last-of-type { border-bottom: 1px solid var(--hair); }
.doc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-family: var(--serif); font-size: 23px; line-height: 1.2; color: var(--ink); }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; font-family: var(--sans); font-size: 22px; line-height: 1; color: var(--rose); flex: none; }
.doc details[open] summary::after { content: "–"; }
.doc details p { margin: 0 0 14px; color: var(--ink-soft); }
.top nav a[aria-current="page"] { color: var(--ink); }

/* Not found */
.lost { max-width: 640px; margin: 0 auto; padding: 72px 20px 110px; text-align: center; }
.lost h1 { font-size: clamp(40px, 7vw, 64px); margin: 14px 0 16px; }
.lost p { color: var(--ink-soft); margin: 0 auto 28px; max-width: 30em; }
.lost .cta { justify-content: center; }

@media (max-width: 520px) {
  .doc td:first-child { width: 40%; }
  .doc th, .doc td { padding: 10px 12px; }
}
