/* CalenBar landing — plain CSS, no build step.
   1. Tokens  2. Base  3. Nav  4. Hero  5. Demo (Mac screen replica)
   6. Features  7. Privacy  8. Closing + footer  9. Document pages */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --fg: #1d1d1f;
  --fg-2: #6e6e73;
  --fg-3: #86868b;
  --line: rgba(0, 0, 0, 0.12);
  --link: #0066cc;
  --green: #34c759;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* Replica of the app's materials (light). */
  --m-fg: rgba(0, 0, 0, 0.85);
  --m-fg-2: rgba(0, 0, 0, 0.56);
  --m-fg-3: rgba(0, 0, 0, 0.3);
  --m-glass: rgba(246, 246, 250, 0.8);
  --m-glass-edge: rgba(255, 255, 255, 0.6);
  --m-stroke: rgba(0, 0, 0, 0.1);
  --m-hover: rgba(0, 0, 0, 0.1);
  --m-hover-quiet: rgba(0, 0, 0, 0.06);
  --m-divider: rgba(0, 0, 0, 0.1);
  /* Liquid Glass control: clear body, bright rim, specular top edge */
  --m-button: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.14) 58%, rgba(255, 255, 255, 0.3));
  --m-button-rim: rgba(255, 255, 255, 0.8);
  --m-button-spec: rgba(255, 255, 255, 0.95);
  --m-button-shade: rgba(0, 0, 0, 0.12);
  --m-bar-fg: rgba(255, 255, 255, 0.96);
  --m-bar-active: rgba(255, 255, 255, 0.24);
  --m-accept: #28a745;
  --m-decline: #ff3b30;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #161617;
    --fg: #f5f5f7;
    --fg-2: #a1a1a6;
    --fg-3: #86868b;
    --line: rgba(255, 255, 255, 0.16);
    --link: #2997ff;
    --green: #30d158;

    --m-fg: rgba(255, 255, 255, 0.92);
    --m-fg-2: rgba(255, 255, 255, 0.55);
    --m-fg-3: rgba(255, 255, 255, 0.28);
    --m-glass: rgba(34, 34, 40, 0.72);
    --m-glass-edge: rgba(255, 255, 255, 0.16);
    --m-stroke: rgba(0, 0, 0, 0.5);
    --m-hover: rgba(255, 255, 255, 0.15);
    --m-hover-quiet: rgba(255, 255, 255, 0.08);
    --m-divider: rgba(255, 255, 255, 0.14);
    --m-button: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05) 58%, rgba(255, 255, 255, 0.12));
    --m-button-rim: rgba(255, 255, 255, 0.26);
    --m-button-spec: rgba(255, 255, 255, 0.45);
    --m-button-shade: rgba(0, 0, 0, 0.4);
    --m-bar-fg: rgba(255, 255, 255, 0.94);
    --m-bar-active: rgba(255, 255, 255, 0.2);
    --m-accept: #30d158;
    --m-decline: #ff453a;
  }
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
}
.wrap { max-width: 1028px; margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 3. Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 52px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--fg); font-size: 19px; font-weight: 600; letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.nav nav { display: flex; gap: 24px; }
.nav nav a { color: var(--fg-2); font-size: 13px; letter-spacing: -0.01em; }
@media (hover: hover) and (pointer: fine) {
  .nav nav a { transition: color 150ms ease; }
  .nav nav a:hover { color: var(--fg); text-decoration: none; }
}
.nav nav a[aria-current="page"] { color: var(--fg); }

/* ---------- 4. Hero ---------- */
.hero { padding: clamp(56px, 9vw, 96px) 0 0; text-align: center; }
.hero-icon { width: clamp(88px, 12vw, 116px); height: auto; margin: 0 auto 20px; }
h1 {
  margin: 0 auto;
  max-width: 12em;
  font-size: clamp(44px, 8.4vw, 80px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.lead {
  margin: 22px auto 0;
  max-width: 27em;
  font-size: clamp(19px, 2.5vw, 24px);
  line-height: 1.33;
  letter-spacing: -0.015em;
  color: var(--fg-2);
  text-wrap: balance;
}
.cta { margin-top: 30px; }
.pill {
  display: inline-flex; align-items: center;
  padding: 11px 22px;
  border-radius: 980px;
  background: var(--bg-2);
  color: var(--fg);
  font-size: 17px; font-weight: 500; letter-spacing: -0.02em;
}
.cta-note { margin: 12px 0 0; font-size: 14px; letter-spacing: -0.01em; color: var(--fg-3); }

/* ---------- 5. Demo ---------- */
.demo { padding: clamp(40px, 6vw, 64px) 0 0; }
.demo .wrap { max-width: 1008px; }

/* A display: black bezel all round, 16:10 screen. */
.mac-frame {
  position: relative;
  padding: 6px;
  border-radius: 25px;
  background: #070709;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 1.5px #1a1a1e,
    0 10px 24px -14px rgba(0, 0, 0, 0.35);
}
.mac-frame::before { /* camera */
  content: ""; position: absolute; top: 1.5px; left: 50%;
  width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%;
  background: #14161c; box-shadow: inset 0 0 0 1px #2a2e3a;
}
.mac {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 500px;
  overflow: hidden;
  border-radius: 19px;
  background: #2a1fb8;
  color: var(--m-fg);
  font-size: 13px;
  line-height: 16px;
  letter-spacing: -0.006em;
  -webkit-user-select: none; user-select: none;
  isolation: isolate;
}
.mac :where(button) {
  font: inherit; letter-spacing: inherit; color: inherit;
  margin: 0; padding: 0; border: 0; background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mac svg { display: block; }

/* Wallpaper: an animated mesh gradient. Six large, soft colour fields
   over an indigo base; each wanders on its own loop, so the colours keep
   flowing into one another. The fields overlap heavily and the base is
   never exposed, so no single shape reads. Transform only; paused
   off-screen (demo.js) and for reduced motion. */
.wall { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #2a1fb8; }
.wall i { position: absolute; border-radius: 50%; will-change: transform; }
.wall .f1 {
  width: 120%; height: 150%; left: -45%; top: -70%;
  background: radial-gradient(closest-side, #1f5dff, #1f5dff00);
  animation: field-1 17s ease-in-out -4s infinite;
}
.wall .f2 {
  width: 110%; height: 140%; left: 35%; top: -75%;
  background: radial-gradient(closest-side, #7b35f5, #7b35f500);
  animation: field-2 21s ease-in-out -9s infinite;
}
.wall .f3 {
  width: 110%; height: 140%; left: 25%; top: 30%;
  background: radial-gradient(closest-side, #ff3f6c, #ff3f6c00);
  animation: field-3 19s ease-in-out -2s infinite;
}
.wall .f4 {
  width: 100%; height: 130%; left: -45%; top: 35%;
  background: radial-gradient(closest-side, #ff8f4a, #ff8f4a00);
  animation: field-4 23s ease-in-out -12s infinite;
}
.wall .f5 {
  width: 80%; height: 110%; left: 0%; top: -15%;
  background: radial-gradient(closest-side, #25b4ff, #25b4ff00);
  opacity: 0.75;
  animation: field-5 15s ease-in-out -6s infinite;
}
.wall .f6 {
  width: 80%; height: 110%; left: 45%; top: 0%;
  background: radial-gradient(closest-side, #b438f0, #b438f000);
  opacity: 0.8;
  animation: field-6 25s ease-in-out -15s infinite;
}
.wall::after { /* fine grain, hides gradient banding */
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.1;
  mix-blend-mode: overlay;
}
.wall.is-paused i { animation-play-state: paused; }
@keyframes field-1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(26%, 14%, 0) scale(1.15); }
  66% { transform: translate3d(8%, 30%, 0) scale(0.92); }
}
@keyframes field-2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(-30%, 18%, 0) scale(0.9); }
  66% { transform: translate3d(-10%, 34%, 0) scale(1.14); }
}
@keyframes field-3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(-34%, -10%, 0) scale(1.12); }
  66% { transform: translate3d(-12%, -26%, 0) scale(0.9); }
}
@keyframes field-4 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(32%, -8%, 0) scale(0.92); }
  66% { transform: translate3d(54%, 6%, 0) scale(1.12); }
}
@keyframes field-5 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(40%, 28%, 0) scale(1.2); }
  66% { transform: translate3d(-10%, 44%, 0) scale(0.85); }
}
@keyframes field-6 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(-42%, 24%, 0) scale(0.88); }
  66% { transform: translate3d(-16%, -22%, 0) scale(1.16); }
}

/* Menu bar */
.menubar {
  position: absolute; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: flex-end;
  height: 30px; padding: 0 12px;
  color: var(--m-bar-fg);
  background: linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0));
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}
.mb-right { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mb-glyph { padding: 0 6px; opacity: 0.9; }
.mb-item {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 9px;
  border-radius: 7px;
  font-weight: 500;
  transition: background-color 100ms ease-out;
}
.mb-item[aria-expanded="true"] { background: var(--m-bar-active); }
.mb-clock { padding: 0 4px 0 8px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Shared glass surface */
.glass {
  background: var(--m-glass);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  backdrop-filter: blur(36px) saturate(190%);
  box-shadow:
    0 0 0 0.5px var(--m-stroke),
    inset 0 0 0 0.5px var(--m-glass-edge),
    0 18px 50px -8px rgba(0, 0, 0, 0.32),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Dropdown — Metrics.swift: width 320, padding 10 */
.dropdown {
  position: absolute; top: 35px; right: 10px;
  width: 320px; max-width: calc(100% - 16px);
  padding: 10px;
  border-radius: 16px;
  z-index: 2;
  transition: opacity 120ms ease-out, visibility 0s;
}
.dropdown.is-closed {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 120ms ease-out, visibility 0s 120ms;
}
.day-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 6px;
}
.chev {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  transition: background-color 100ms ease-out;
}
.chev svg { width: 12px; height: 12px; }
.chev:disabled { color: var(--m-fg-3); cursor: default; }
.day-title { font-weight: 600; padding: 2px 6px; border-radius: 6px; }

.list { overflow: hidden; transition: height 250ms var(--ease-out); }
.rows { display: flex; flex-direction: column; gap: 2px; }
.row {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 4px 8px 4px 0;
  border-radius: 10px;
  outline-offset: -2px;
  transition: background-color 100ms ease-out;
  animation: row-in 180ms ease-out both;
  animation-delay: calc(var(--i, 0) * 25ms);
}
.row.is-active { background: var(--m-hover); }
.rows[data-still] .row { animation: none; }
.dot-col { display: flex; justify-content: center; flex: none; width: 22px; padding-top: 4px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(color-mix(in srgb, var(--c) 84%, #fff), var(--c));
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.5),
    inset 0 -0.5px 0.5px rgba(0, 0, 0, 0.1),
    0 0.5px 1.5px rgba(0, 0, 0, 0.18);
}
.row-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.row-title, .row-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { font-size: 11px; line-height: 14px; letter-spacing: 0.005em; color: var(--m-fg-2); }
.row.is-dimmed .dot-col, .row.is-dimmed .row-text { opacity: 0.55; }

.join {
  flex: none; align-self: center;
  height: 22px; margin-left: 4px; padding: 0 10px;
  border-radius: 11px;
  background: var(--m-button);
  -webkit-backdrop-filter: blur(6px) saturate(180%);
  backdrop-filter: blur(6px) saturate(180%);
  box-shadow:
    inset 0 0 0 0.5px var(--m-button-rim),
    inset 0 1px 0.5px -0.5px var(--m-button-spec),
    inset 0 -1px 1px -0.5px var(--m-button-rim),
    0 0.5px 1px var(--m-button-shade),
    0 3px 8px -2px var(--m-button-shade);
  font-size: 11px; font-weight: 500; letter-spacing: 0.005em;
  white-space: nowrap;
  transition: transform 140ms ease-out, filter 140ms ease-out;
}
.join:active { transform: scale(0.96); }

.m-divider { height: 1px; margin: 6px 0; background: var(--m-divider); }
.empty { padding: 12px 0; color: var(--m-fg-2); }

.footer-rows { margin: 0 -4px; }
.menu-row {
  display: block; width: 100%;
  padding: 5px 8px;
  border-radius: 10px;
  text-align: left;
  transition: background-color 100ms ease-out;
}

@keyframes row-in {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: none; }
}

/* Details flyout — Metrics.swift: width 260 + padding 12 */
.flyout {
  position: absolute; top: 60px; left: 0;
  width: 284px; max-width: calc(100% - 16px);
  padding: 12px;
  border-radius: 16px;
  z-index: 3;
  -webkit-user-select: text; user-select: text;
  transition: opacity 90ms ease-out;
}
.flyout[hidden] { display: block; opacity: 0; visibility: hidden; pointer-events: none; }
.fl-title { font-weight: 500; }
.fl-time { margin-top: 2px; color: var(--m-fg-2); }
.fl-div { height: 1px; margin: 10px 0; background: var(--m-divider); opacity: 0.7; }
.fl-div.is-faint { opacity: 0.45; }
.fl-notes { color: var(--m-fg-2); white-space: pre-line; }
.fl-notes u, .fl-loc u { text-underline-offset: 2px; }
.att-head { display: flex; justify-content: space-between; align-items: center; color: var(--m-fg-2); margin-bottom: 4px; }
.att-list { margin: 0 -6px; }
.att {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 6px; border-radius: 10px;
  color: var(--m-fg-2);
  transition: background-color 100ms ease-out;
}
.att-status { flex: none; width: 14px; height: 14px; display: grid; place-items: center; }
.att-status svg { width: 12px; height: 12px; }
.att-status.is-accepted { color: var(--m-accept); }
.att-status.is-declined { color: var(--m-decline); }
.att-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-org { flex: none; color: var(--m-fg-3); }
.att-copy { flex: none; margin-left: auto; width: 14px; height: 14px; display: grid; place-items: center; opacity: 0; color: var(--m-fg-2); }
.att-copy svg { width: 11px; height: 11px; }
.att-more { padding: 4px 0 0 26px; color: var(--m-fg-2); }
.fl-loc { display: flex; gap: 6px; margin-top: 4px; color: var(--m-fg-2); }
.fl-loc svg { flex: none; width: 13px; height: 13px; margin-top: 1.5px; }
.fl-cal { display: flex; align-items: center; gap: 6px; color: var(--m-fg-2); }
.fl-cal i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* Notification banner */
.notif {
  position: absolute; top: 38px; right: 10px;
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px;
  width: 344px; max-width: calc(100% - 20px);
  padding: 12px;
  border-radius: 20px;
  z-index: 4;
  transform: translateX(calc(100% + 24px));
  visibility: hidden;
  transition: transform 220ms var(--ease-out), visibility 0s 220ms;
}
.notif.is-in {
  transform: none; visibility: visible;
  transition: transform 460ms var(--ease-out), visibility 0s;
}
.notif img { width: 36px; height: 36px; }
.notif-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-body { color: var(--m-fg); }

@media (hover: hover) and (pointer: fine) {
  .mb-item:hover { background: var(--m-bar-active); }
  .chev:not(:disabled):hover { background: var(--m-hover); }
  .menu-row:hover { background: var(--m-hover); }
  .join:hover { filter: brightness(1.06); }
  .att:hover { background: var(--m-hover-quiet); }
  .att:hover .att-copy { opacity: 1; }
}
.att-copy:focus-visible { opacity: 1; }

/* Controls under the screen */
.demo-controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px;
  margin-top: 22px;
  font-size: 15px; letter-spacing: -0.015em;
}
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track {
  position: relative; width: 40px; height: 24px; border-radius: 12px;
  background: color-mix(in srgb, var(--fg) 22%, transparent);
  transition: background-color 200ms ease;
}
.switch-track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 200ms var(--ease-out);
}
.switch input:checked + .switch-track { background: var(--green); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--link); outline-offset: 2px; }
.btn-quiet {
  font: inherit; letter-spacing: inherit; color: var(--fg);
  padding: 8px 16px; border-radius: 980px;
  border: 1px solid var(--line); background: transparent;
  cursor: pointer;
  transition: transform 160ms ease-out, background-color 150ms ease;
}
.btn-quiet:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn-quiet:hover { background: var(--bg-2); }
}
.hint {
  margin: 16px auto 0; max-width: 40em; min-height: 3em;
  text-align: center; font-size: 14px; line-height: 1.43; letter-spacing: -0.01em;
  color: var(--fg-3);
  text-wrap: balance;
}

/* ---------- 6. Features ---------- */
.features { padding: clamp(72px, 11vw, 136px) 0 clamp(80px, 12vw, 144px); }
h2 {
  margin: 0;
  font-size: clamp(32px, 5.4vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.features h2 { max-width: 13em; }
.feature-list { margin: clamp(40px, 6vw, 72px) 0 0; }
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 40px;
  padding: 26px 0 28px;
  border-top: 1px solid var(--line);
}
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature h3 {
  margin: 0;
  font-size: clamp(21px, 2.6vw, 26px); font-weight: 600; line-height: 1.19; letter-spacing: -0.02em;
  text-wrap: balance;
}
.feature p {
  margin: 0;
  font-size: clamp(17px, 2vw, 19px); line-height: 1.42; letter-spacing: -0.015em;
  color: var(--fg-2);
  text-wrap: pretty;
}

/* ---------- 7. Privacy ---------- */
.privacy { background: var(--bg-2); padding: clamp(80px, 12vw, 144px) 0; text-align: center; }
.privacy h2 { margin: 0 auto; }
.privacy .lead { max-width: 30em; }
.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
  margin: clamp(48px, 7vw, 80px) 0 0; padding: 0; list-style: none;
  text-align: left;
}
.facts li { padding-top: 18px; border-top: 1px solid var(--line); }
.facts strong { display: block; font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: -0.02em; }
.facts span { display: block; margin-top: 6px; color: var(--fg-2); text-wrap: pretty; }

/* ---------- 8. Closing + footer ---------- */
.closing { padding: clamp(80px, 12vw, 144px) 0; text-align: center; }
.closing img { width: 76px; height: 76px; margin: 0 auto 18px; }
.site-footer { border-top: 1px solid var(--line); padding: 20px 0 36px; font-size: 12px; letter-spacing: -0.005em; color: var(--fg-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--fg-2); }

/* ---------- 9. Document pages (privacy, support) ---------- */
.doc { max-width: 740px; margin: 0 auto; padding: clamp(48px, 8vw, 88px) 24px clamp(72px, 10vw, 120px); }
.doc h1 { margin: 0; max-width: none; font-size: clamp(40px, 7vw, 56px); letter-spacing: -0.028em; text-align: left; }
.doc .updated { margin: 14px 0 0; font-size: 14px; color: var(--fg-3); }
.doc .summary {
  margin: 28px 0 0;
  color: var(--fg);
  font-size: clamp(21px, 3vw, 24px); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em;
  text-wrap: pretty;
}
.doc h2 { margin: 52px 0 0; font-size: 24px; line-height: 1.17; letter-spacing: -0.02em; }
.doc p, .doc ul { margin: 12px 0 0; color: var(--fg-2); text-wrap: pretty; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--fg); font-weight: 600; }
.doc address { font-style: normal; margin: 12px 0 0; color: var(--fg-2); }
.doc .contact-line { margin: 28px 0 0; font-size: clamp(24px, 4vw, 32px); font-weight: 600; line-height: 1.19; letter-spacing: -0.02em; }

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav nav { gap: 18px; }
  .mac { aspect-ratio: auto; height: 500px; border-radius: 15px; }
  .mac-frame { padding: 5px; border-radius: 20px; }
  .mac-frame::before { top: 1px; }
  .mb-glyph { display: none; }
  .menubar { padding: 0 8px; }
  .feature { grid-template-columns: 1fr; }
  .privacy { text-align: left; }
  .privacy h2, .privacy .lead { margin-left: 0; margin-right: 0; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts li { padding: 18px 0; }
}
@media (max-width: 400px) {
  .mb-clock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .row { animation: none; }
  .wall i { animation: none; }
  .list { transition: none; }
  .notif, .notif.is-in { transition: opacity 200ms ease, visibility 0s; transform: none; opacity: 0; }
  .notif.is-in { opacity: 1; }
  .join:active, .btn-quiet:active { transform: none; }
  .switch-track::after { transition: none; }
}
