/* MeetMiddle site styles, shared by every page.
   Colour ramp mirrors src/theme/tokens.ts in the app: indigo → violet → rose. */

:root {
  --indigo: #4F46E5;
  --violet: #7C3AED;
  --rose:   #EC4899;
  --grad: linear-gradient(100deg, var(--indigo), var(--violet) 52%, var(--rose));

  --bg:        #F6F7FB;
  --surface:   #FFFFFF;
  --surface-2: #EEF1F8;
  --border:    #E2E6F0;
  --text:      #0E1116;
  --muted:     #5B636D;
  --accent:    #4F46E5;
  --accent-soft: #EEEBFF;
  --shadow:    0 1px 2px rgba(14,17,22,.05), 0 12px 32px -12px rgba(14,17,22,.16);
  --shadow-lg: 0 2px 4px rgba(14,17,22,.06), 0 40px 80px -32px rgba(31,20,90,.38);

  --radius: 18px;
  --maxw: 1120px;
  --maxw-doc: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0B0E14;
    --surface:   #141922;
    --surface-2: #1B212C;
    --border:    #262E3B;
    --text:      #E7EBF0;
    --muted:     #9AA4B1;
    --accent:    #A5B4FC;
    --accent-soft: #1D1B3A;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 40px 80px -32px rgba(0,0,0,.8);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.12; margin: 0; font-weight: 800; }
p { margin: 0 0 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- site chrome ---------- */

.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-nav.is-stuck { border-bottom-color: var(--border); }
.site-nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 19px; letter-spacing: -0.03em; color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.brand em { font-style: normal; color: var(--indigo); }
@media (prefers-color-scheme: dark) { .brand em { color: #A78BFA; } }

.site-nav__links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.site-nav__links a { color: var(--muted); font-size: 15px; font-weight: 600; }
.site-nav__links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .site-nav__links { display: none; } }

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 96px; padding: 44px 0 56px;
  color: var(--muted); font-size: 15px;
}
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.site-footer nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 22px; }
@media (max-width: 640px) { .site-footer nav { margin-left: 0; } }

/* ---------- shared bits ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--indigo); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--indigo) 18%, transparent);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: #C4B5FD; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 16px;
  background: var(--grad); color: #fff; border: 0; box-shadow: var(--shadow);
}
.btn:hover { text-decoration: none; }
.btn--ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); box-shadow: none;
}

/* “Coming soon” plaque: deliberately not a link while the app is in review */
.badge-soon {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 24px 13px 20px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); color: var(--text);
}
.badge-soon svg { width: 26px; height: 26px; flex: none; }
.badge-soon span { display: block; }
.badge-soon .kicker { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.badge-soon .line { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }

/* ---------- phone frame ----------
   The screenshots are 1320×2868 with the Dynamic Island redacted in black;
   .phone__island sits exactly over that redaction so the frame reads as a device. */
.phone { width: 100%; max-width: 300px; margin: 0 auto; }
.phone__body {
  position: relative; padding: 2.4%;
  border-radius: 14.6% / 6.7%;
  background: linear-gradient(150deg, #3a3f4b, #101217 32%, #0a0c10 70%, #33384a);
  box-shadow: var(--shadow-lg);
}
.phone__screen {
  position: relative; display: block; overflow: hidden;
  border-radius: 12.6% / 5.9%; background: #000;
}
.phone__screen img { display: block; width: 100%; height: auto; }
.phone__island {
  position: absolute; top: 1.74%; left: 50%; transform: translateX(-50%);
  width: 27.5%; height: 3.25%; background: #000; border-radius: 999px;
}

/* ---------- long-form documents (privacy, support) ---------- */

.doc { max-width: var(--maxw-doc); margin: 0 auto; padding: 56px 22px 24px; }
.doc header.doc-head { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 14px; }
.doc .meta { color: var(--muted); font-size: 15px; margin: 0; }
.doc h2 { font-size: 22px; margin: 48px 0 14px; }
.doc h3 { font-size: 17.5px; font-weight: 700; margin: 28px 0 8px; }
.doc ul, .doc ol { margin: 0 0 18px; padding-left: 22px; }
.doc li { margin: 0 0 9px; }
.doc strong { font-weight: 700; }
.doc .callout {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px; margin: 26px 0; box-shadow: var(--shadow);
}
.doc .callout h2 { margin-top: 0; font-size: 20px; }
.doc .callout > :last-child { margin-bottom: 0; }
.doc .tldr { border-left: 4px solid transparent; border-image: var(--grad) 1; border-image-slice: 0 0 0 1; }
.doc .table-scroll { overflow-x: auto; margin: 0 0 20px; -webkit-overflow-scrolling: touch; }
.doc table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 15.5px; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { background: var(--surface-2); font-weight: 700; }
.doc code {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 6px; font-size: 14px;
}
