/* Togethr — shared design system.
   Colours are lifted from the app's asset catalogue so the site and the product
   are visibly the same thing: plum #8E2F55, peach #E8814F, warm off-white ground. */

:root {
  --plum: #8E2F55;          /* link and accent TEXT, read against the page ground */
  --plum-fill: #8E2F55;     /* filled surfaces: buttons, badges, the guests panel */
  --on-plum: #FFFFFF;       /* text ON a plum fill — always light, in both schemes */
  --plum-deep: #7A2848;
  --plum-soft: #F3E4EA;
  --peach: #E8814F;
  --peach-soft: #FBEDE4;
  --surface: #FBF6F4;
  --panel: #FFFFFF;
  --ink: #1F1419;
  --ink-soft: #6B5B63;
  --hairline: #EBE0DC;
  --shadow: 0 1px 2px rgba(31,20,25,.04), 0 8px 24px rgba(31,20,25,.06);
  --radius: 16px;
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --plum: #E28BA6;          /* lighter, so links clear AA against the near-black ground */
    --plum-fill: #8E2F55;     /* the fill stays deep, so white text on it holds ~7:1 */
    --on-plum: #FFFFFF;
    --plum-deep: #A8416D;
    --plum-soft: #2A1620;
    --peach: #F19A76;
    --peach-soft: #2E1D18;
    --surface: #0D0B0F;
    --panel: #1D181E;
    --ink: #F5EFF1;
    --ink-soft: #A99BA2;
    --hairline: #2E262F;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--plum); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 650; }
h3 { font-size: 19px; font-weight: 640; }
p { margin: 0 0 16px; }

/* ---- Header ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-in { display: flex; align-items: center; gap: 12px; height: 64px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 660; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; }
.wordmark:hover { text-decoration: none; }
.nav-links { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: 15px; font-weight: 500; padding: 10px 2px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--plum-fill); color: var(--on-plum); }
.btn-primary:hover { background: var(--plum-deep); }
.btn-ghost { border-color: var(--hairline); color: var(--ink); background: var(--panel); }

/* ---- Sections ---- */
section { padding: 84px 0; }
.eyebrow {
  font-size: 13px; font-weight: 680; letter-spacing: .1em; text-transform: uppercase;
  color: var(--plum); margin-bottom: 14px;
}
.lead { font-size: 20px; color: var(--ink-soft); }

.card {
  background: var(--panel); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--hairline); padding: 44px 0 60px;
  color: var(--ink-soft); font-size: 15px;
}
.foot-in { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.foot-in a { color: var(--ink-soft); padding: 8px 0; }
.foot-right { margin-left: auto; }

/* ---- Long-form documents (privacy, terms) ---- */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 44px); margin-bottom: 10px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc h3 { margin: 26px 0 6px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .updated { color: var(--ink-soft); font-size: 15px; margin-bottom: 34px; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.doc th { font-weight: 640; color: var(--ink-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.callout {
  background: var(--plum-soft); border-radius: var(--radius);
  padding: 18px 20px; margin: 22px 0; font-size: 16px;
}
.callout strong { color: var(--plum); }

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .nav-links { gap: 18px; }
  .nav-links .hide-sm { display: none; }
}
