/* Pathtale landing. Tokens mirror ios/PlaceHolder/DesignSystem/Tokens.swift. */

:root {
  color-scheme: light dark;

  --brand: #2563eb;
  --brand-fill: #2563eb;
  --brand-fill-deep: #1d4ed8;
  --sky: #0369a1;
  --bg: #f2f2f7;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --sunken: rgba(118, 118, 128, 0.12);
  --hairline: rgba(60, 60, 67, 0.18);
  --text: #111318;
  --text-2: #5c6370;
  --on-brand: #ffffff;

  --c-place: #2563eb;
  --c-hangout: #c2410c;
  --c-trip: #0f766e;
  --c-memory: #b45309;
  --c-home: #1d4ed8;
  --c-success: #15803d;

  --shadow-card: 0 1px 2px rgba(17, 19, 24, 0.04), 0 8px 24px rgba(17, 19, 24, 0.06);
  --shadow-float: 0 12px 36px rgba(29, 78, 216, 0.22);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 24px;
  --r-xl: 28px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #5b9bff;
    --sky: #38bdf8;
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-raised: #2c2c2e;
    --sunken: rgba(118, 118, 128, 0.24);
    --hairline: rgba(84, 84, 88, 0.6);
    --text: #f2f3f5;
    --text-2: #a0a6b1;

    --c-place: #5b9bff;
    --c-hangout: #ff8a65;
    --c-trip: #2dd4bf;
    --c-memory: #fbbf24;
    --c-home: #7fb0ff;
    --c-success: #4ade80;

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-float: 0 12px 36px rgba(0, 0, 0, 0.5);
  }
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brand-fill);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: var(--bg); }
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand-link { display: inline-flex; border-radius: 8px; }
.brand-link img { width: 118px; height: auto; }
@media (prefers-color-scheme: dark) {
  /* The wordmark's deep indigo letters are too dim on black. */
  .brand-link img, .footer-top img { filter: brightness(1.45) saturate(1.1); }
}

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { background: var(--sunken); }
.site-nav .nav-optional { display: none; }
@media (min-width: 720px) {
  .site-nav .nav-optional { display: list-item; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(180deg, var(--brand-fill), var(--brand-fill-deep));
  color: var(--on-brand);
  box-shadow: var(--shadow-float);
}
.btn-primary:hover { text-decoration: none; box-shadow: 0 16px 40px rgba(29, 78, 216, 0.3); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.btn-secondary:hover { background: var(--surface-raised); text-decoration: none; }

/* App Store CTA. TODO: replace the text button with Apple's official "Download on the
   App Store" badge (Apple Marketing Resources) once downloaded; see README. */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 22px 10px 18px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease;
}
.appstore-btn:hover { text-decoration: none; }
.appstore-btn:active { transform: scale(0.98); }
.appstore-btn svg { width: 26px; height: 26px; flex: none; }
.appstore-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.appstore-btn small { font-size: 0.75rem; font-weight: 500; opacity: 0.85; }
.appstore-btn strong { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; }
.appstore-btn:focus-visible { outline-color: var(--brand); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.cta-note { color: var(--text-2); font-size: 0.9375rem; }

/* Sections */

.section { padding-block: clamp(64px, 10vw, 112px); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section h2 { font-size: clamp(2rem, 5vw, 3rem); }
.section-head p { margin-top: 16px; color: var(--text-2); font-size: 1.1875rem; }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 8vw, 96px) clamp(56px, 9vw, 112px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.28), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -20%;
  width: min(800px, 110vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(37, 99, 235, 0.16), transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(48px, 7vw, 72px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; }
}

.hero-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 24px;
  border-radius: 22.37%;
  box-shadow: var(--shadow-float);
}
.hero h1 {
  font-size: clamp(2.5rem, 7.5vw, 4.25rem);
  letter-spacing: -0.035em;
}
.hero h1 .accent {
  background: linear-gradient(100deg, #0ea5e9 0%, var(--brand-fill) 45%, #4f1df0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: dark) {
  .hero h1 .accent { background-image: linear-gradient(100deg, #38bdf8 0%, #5b9bff 50%, #a78bfa 100%); }
}
@media (forced-colors: active) {
  .hero h1 .accent { background: none; color: CanvasText; }
}
.hero .lead {
  max-width: 560px;
  margin-top: 20px;
  margin-bottom: 32px;
  color: var(--text-2);
  font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
}

/* Hero illustration (decorative) */

.showcase {
  position: relative;
  width: min(360px, 100%);
  margin-inline: auto;
}
.phone {
  position: relative;
  aspect-ratio: 9 / 18.5;
  border-radius: 48px;
  padding: 12px;
  background: #0b0d12;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 40px 80px rgba(17, 19, 24, 0.28);
}
.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background:
    radial-gradient(circle at 70% 20%, rgba(56, 189, 248, 0.18), transparent 40%),
    linear-gradient(0deg, transparent 49.5%, rgba(120, 140, 170, 0.18) 50%, transparent 50.5%) 0 0 / 56px 56px,
    linear-gradient(90deg, transparent 49.5%, rgba(120, 140, 170, 0.18) 50%, transparent 50.5%) 0 0 / 56px 56px,
    #e8eef6;
}
@media (prefers-color-scheme: dark) {
  .phone-screen {
    background:
      radial-gradient(circle at 70% 20%, rgba(56, 189, 248, 0.14), transparent 40%),
      linear-gradient(0deg, transparent 49.5%, rgba(140, 160, 190, 0.12) 50%, transparent 50.5%) 0 0 / 56px 56px,
      linear-gradient(90deg, transparent 49.5%, rgba(140, 160, 190, 0.12) 50%, transparent 50.5%) 0 0 / 56px 56px,
      #111827;
  }
}
.map-road {
  position: absolute;
  left: -10%;
  width: 130%;
  height: 14px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 7px;
}
@media (prefers-color-scheme: dark) {
  .map-road { background: rgba(71, 85, 105, 0.7); }
}
.map-road.r1 { top: 30%; transform: rotate(-18deg); }
.map-road.r2 { top: 62%; transform: rotate(12deg); }
.map-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-path path {
  fill: none;
  stroke: var(--brand-fill);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 2 12;
  opacity: 0.7;
}
.pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transform: translate(-50%, -50%);
}
.pin .avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid #fff;
  color: #fff;
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 1.125rem;
  box-shadow: 0 4px 12px rgba(17, 19, 24, 0.25);
}
.pin .label {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(17, 19, 24, 0.15);
}
.pin.p1 { left: 32%; top: 24%; }
.pin.p1 .avatar { background: linear-gradient(135deg, #2563eb, #0ea5e9); }
.pin.p2 { left: 70%; top: 46%; }
.pin.p2 .avatar { background: linear-gradient(135deg, #c2410c, #d97706); }
.pin.p3 { left: 38%; top: 66%; }
.pin.p3 .avatar { background: linear-gradient(135deg, #0f766e, #0d9488); }
.approx-ring {
  position: absolute;
  left: 70%;
  top: 46%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -58%);
  border-radius: 50%;
  background: rgba(194, 65, 12, 0.12);
  border: 2px dashed rgba(194, 65, 12, 0.45);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 32px rgba(17, 19, 24, 0.18);
  font-size: 0.8125rem;
  line-height: 1.3;
  max-width: 250px;
}
@media (prefers-color-scheme: dark) {
  .float-card { background: var(--surface-raised); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6); }
}
.float-card .ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
}
.float-card .ic svg { width: 18px; height: 18px; }
.float-card strong { display: block; font-size: 0.8125rem; }
.float-card span { color: var(--text-2); }
.float-card.f1 { left: -18px; top: 12%; }
.float-card.f1 .ic { background: linear-gradient(180deg, #2563eb, #1d4ed8); }
.float-card.f2 { right: -14px; bottom: 26%; }
.float-card.f2 .ic { background: linear-gradient(180deg, #15803d, #166534); }
.float-card.f3 { left: -8px; bottom: 6%; }
.float-card.f3 .ic { background: linear-gradient(180deg, #b45309, #92400e); }
@media (max-width: 400px) {
  .float-card.f1 { left: -6px; }
  .float-card.f2 { right: -6px; }
}

@media (prefers-reduced-motion: no-preference) {
  .float-card { animation: float 6s ease-in-out infinite; }
  .float-card.f2 { animation-delay: -2s; }
  .float-card.f3 { animation-delay: -4s; }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }
}

/* Sharing controls */

.sharing-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 860px) {
  .sharing-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.panel {
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.panel h3 { font-size: 1.375rem; margin-bottom: 8px; }
.panel > p { color: var(--text-2); }

.option-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.option-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--sunken);
}
.option-list .ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--brand);
}
@media (prefers-color-scheme: dark) {
  .option-list .ic { background: var(--surface-raised); }
}
.option-list .ic svg { width: 20px; height: 20px; }
.option-list strong { display: block; font-weight: 600; }
.option-list span { color: var(--text-2); font-size: 0.9375rem; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-fill) 12%, transparent);
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Feature cards */

.feature-grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.feature .tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #fff;
  margin-bottom: 4px;
}
.feature .tile svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.25rem; }
.feature p { color: var(--text-2); }
.feature .fine { font-size: 0.875rem; margin-top: auto; padding-top: 4px; }

.tile.t-place { background: linear-gradient(180deg, #2563eb, #1d4ed8); }
.tile.t-memory { background: linear-gradient(180deg, #d97706, #b45309); }
.tile.t-hangout { background: linear-gradient(180deg, #ea580c, #c2410c); }
.tile.t-trip { background: linear-gradient(180deg, #0d9488, #0f766e); }
.tile.t-sky { background: linear-gradient(180deg, #0284c7, #0369a1); }
.tile.t-success { background: linear-gradient(180deg, #16a34a, #15803d); }

/* Privacy */

.privacy {
  background: linear-gradient(145deg, #1e4fd6 0%, #1d4ed8 45%, #1a3fae 100%);
  color: #fff;
}
.privacy .eyebrow { color: #bfdbfe; }
.privacy .section-head p { color: #dbeafe; }
.privacy a { color: #fff; }
.privacy-grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .privacy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .privacy-grid { grid-template-columns: repeat(3, 1fr); } }
.privacy-grid li {
  padding: 24px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.privacy-grid svg { width: 28px; height: 28px; margin-bottom: 12px; color: #bfdbfe; }
.privacy-grid h3 { font-size: 1.125rem; margin-bottom: 6px; }
.privacy-grid p { color: #e0ecff; font-size: 0.9375rem; }

.disclaimer {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: var(--r-md);
  background: #fff;
  color: #111318;
}
.disclaimer svg { flex: none; width: 24px; height: 24px; color: #b45309; margin-top: 2px; }
.disclaimer p { font-size: 0.9375rem; }
.disclaimer strong { display: block; margin-bottom: 2px; }

.privacy-links { margin-top: 24px; color: #dbeafe; font-size: 0.9375rem; }

/* FAQ */

.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq-list details {
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-md);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-list .answer { padding: 0 24px 22px; color: var(--text-2); }
.faq-list .answer p + p { margin-top: 10px; }

/* Final CTA */

.final-cta .panel {
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
  padding-block: clamp(40px, 7vw, 72px);
}
.final-cta img { width: 80px; height: 80px; border-radius: 22.37%; box-shadow: var(--shadow-float); }
.final-cta h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); }
.final-cta p { color: var(--text-2); max-width: 520px; }

/* Footer */

.site-footer {
  padding-block: 48px 40px;
  border-top: 1px solid var(--hairline);
  color: var(--text-2);
  font-size: 0.9375rem;
}
.site-footer .wrap { display: grid; gap: 24px; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-top img { width: 104px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a { color: var(--text); text-decoration: none; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }
.footer-disclaimer { max-width: 760px; font-size: 0.8125rem; }
.footer-legal { font-size: 0.8125rem; }

/* Simple pages: invite, 404, legal */

.simple-main { padding-block: clamp(40px, 8vw, 96px); }
.simple-card {
  max-width: 560px;
  margin-inline: auto;
  padding: clamp(28px, 6vw, 48px);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.simple-card img.icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: 22.37%;
  box-shadow: var(--shadow-float);
}
.simple-card h1 { font-size: clamp(1.875rem, 6vw, 2.5rem); }
.simple-card .lead { margin-top: 12px; color: var(--text-2); font-size: 1.125rem; }
.simple-card .cta-row { justify-content: center; margin-top: 28px; }

.steps {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  text-align: left;
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--sunken);
}
.steps li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-fill);
  color: #fff;
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 0.875rem;
}

.invite-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.invite-code code {
  padding: 10px 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand-fill) 12%, var(--surface));
  color: var(--brand);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(1.375rem, 6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  word-break: break-all;
}
.copy-btn { min-height: 44px; padding: 8px 16px; font-size: 0.9375rem; }
.copy-status { min-height: 1.5em; margin-top: 8px; color: var(--text-2); font-size: 0.875rem; }
.muted { color: var(--text-2); }
.small { font-size: 0.875rem; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 28px; }

[hidden] { display: none !important; }

/* Legal documents */

.legal { padding-block: clamp(32px, 6vw, 72px); }
.legal .wrap { max-width: 800px; }
.draft-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 32px;
  padding: 16px 20px;
  border-radius: var(--r-sm);
  background: #fef3c7;
  color: #78350f;
  box-shadow: inset 0 0 0 1px #fcd34d;
  font-size: 0.9375rem;
}
@media (prefers-color-scheme: dark) {
  .draft-banner { background: #3a2a06; color: #fde68a; box-shadow: inset 0 0 0 1px #92400e; }
}
.draft-banner svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 8px; }
.legal .doc-meta { color: var(--text-2); margin-bottom: 32px; }
.legal .toc {
  margin-bottom: 40px;
  padding: 20px 24px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.legal .toc h2 { font-size: 1rem; margin: 0 0 8px; }
.legal .toc ol { margin: 0; padding-left: 1.25em; columns: 2 220px; column-gap: 32px; }
.legal .toc li { margin: 4px 0; break-inside: avoid; }
.legal .prose h2 { font-size: 1.5rem; margin: 48px 0 16px; padding-top: 8px; }
.legal .prose h3 { font-size: 1.1875rem; margin: 32px 0 12px; }
.legal .prose p, .legal .prose ul, .legal .prose ol { margin: 0 0 16px; }
.legal .prose ul, .legal .prose ol { padding-left: 1.4em; }
.legal .prose li { margin: 6px 0; }
.legal .prose li > ul { margin: 6px 0 0; }
.legal .prose blockquote {
  margin: 0 0 16px;
  padding: 12px 20px;
  border-left: 4px solid var(--brand);
  background: var(--surface);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.legal .prose code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--sunken);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
}
.table-scroll {
  overflow-x: auto;
  margin: 0 0 20px;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.table-scroll:focus-visible { outline-offset: 2px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.legal th, .legal td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}
.legal th { background: var(--surface); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }
.legal td { min-width: 140px; }
.placeholder {
  padding: 0 4px;
  border-radius: 4px;
  background: color-mix(in srgb, #f59e0b 22%, transparent);
}

/* Motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}
