/* photostead.com. The landing page is designed dark, like the app's near-black canvas, with paper
   sections between; the support and legal pages follow the system theme. Type and marks are
   Photostead's own: Hanken Grotesk, Fragment Mono labels, the house-and-lens mark. */

:root {
  --black: #000;
  --ink: #0b0b0b;
  --paper: #f4f4f2;
  --white: #fff;
  --font: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Fragment Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --wide: 1240px;
  --gutter: max(16px, min(5vw, 40px));
  /* the theme of the page around the sections (legal pages follow it) */
  --bg: #fff;
  --fg: #0b0b0b;
  --muted: #64645f;
  --line: rgba(0, 0, 0, 0.1);
  --soft: rgba(0, 0, 0, 0.045);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) { --bg: #000; --fg: #f4f4f2; --muted: #8f8f8a; --line: rgba(255, 255, 255, 0.12); --soft: rgba(255, 255, 255, 0.06); }
}
:root[data-theme='dark'] { --bg: #000; --fg: #f4f4f2; --muted: #8f8f8a; --line: rgba(255, 255, 255, 0.12); --soft: rgba(255, 255, 255, 0.06); }

/* the landing page is always on black */
body.landing { --bg: #000; --fg: #f4f4f2; --muted: #9a9a95; --line: rgba(255, 255, 255, 0.12); --soft: rgba(255, 255, 255, 0.06); color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
/* filled controls are in --bg, so their ring takes --fg */
.btn:focus-visible, .s-chip[aria-pressed='true']:focus-visible { outline-color: var(--fg); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); text-decoration: none; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* type */
.eyebrow { margin: 0 0 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.eyebrow b { color: var(--fg); font-weight: 400; }
.eyebrow.plain { text-transform: none; letter-spacing: 0.06em; } /* for names that must keep their case */
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.display { font-size: clamp(52px, 9.2vw, 136px); font-weight: 300; letter-spacing: -0.055em; line-height: 0.94; }
.h2 { font-size: clamp(38px, 5.4vw, 76px); font-weight: 300; letter-spacing: -0.045em; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
em.s, .s { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.lede { max-width: 620px; margin: 26px 0 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.lede b, .lede strong { color: var(--fg); font-weight: 500; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--fg); color: var(--bg); font: 600 16px/1 var(--font); letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.3s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -12px color-mix(in srgb, var(--fg) 45%, transparent); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); box-shadow: none; }
.btn-soon { background: transparent; color: var(--muted); border-color: var(--line); cursor: default; }
.btn-soon:hover { transform: none; box-shadow: none; }
.btn-soon svg { width: 16px; height: 16px; }
.btn-soon:hover svg { transform: none; }
.btn-small { height: 38px; padding: 0 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.center .actions { justify-content: center; }

/* the mark */
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase; }
.mark { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* nav: clear over the hero, glass once the page moves */
.nav { position: fixed; z-index: 50; inset: 0 0 auto; padding-top: env(safe-area-inset-top); transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.nav[data-scrolled] { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; width: min(var(--wide), 100% - 2 * var(--gutter)); height: 68px; margin-inline: auto; }
.nav-in .brand { margin-right: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 14.5px; text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding: calc(150px + env(safe-area-inset-top)) 0 0; text-align: center; overflow: clip; }
.hero .eyebrow { margin-bottom: 30px; }
.hero .lede { margin-inline: auto; max-width: 660px; }
.hero .actions { justify-content: center; }
.hero-note { margin: 26px 0 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.hero-note span + span::before { content: '·'; margin: 0 12px; opacity: 0.6; }

/* a wall of the library's photos drifting behind the hero */
.wall { position: absolute; z-index: -1; inset: 0; display: grid; grid-template-columns: repeat(var(--cols, 7), 1fr); gap: 14px; padding: 0 14px;
  opacity: 0.34; mask-image: radial-gradient(120% 70% at 50% 18%, transparent 18%, #000 62%); -webkit-mask-image: radial-gradient(120% 70% at 50% 18%, transparent 18%, #000 62%); }
.wall::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2) 40%, #000 92%); }
.wall-col { display: flex; flex-direction: column; animation: drift var(--t, 90s) linear infinite; }
.wall-col:nth-child(even) { animation-direction: reverse; margin-top: -140px; }
/* each column is its pictures three times over; it drifts by one copy, so the spacing is a margin, not a gap */
.wall-col img { width: 100%; height: auto; aspect-ratio: 4 / 5; margin-bottom: 14px; border-radius: 10px; object-fit: cover; background: #111; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(calc(-100% / 3)); } }
@media (max-width: 900px) { .wall { --cols: 4; } .wall-col:nth-child(n + 5) { display: none; } }
/* stops the wall, the typing and the showcase (WCAG 2.2.2); site.js sets html.calm */
.calm-btn { position: absolute; z-index: 2; top: calc(92px + env(safe-area-inset-top)); right: var(--gutter); display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px 0 10px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px); color: var(--muted); font: 11.5px var(--mono); letter-spacing: 0.08em; cursor: pointer; }
.calm-btn:hover { color: var(--fg); }
.calm-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html:not(.js) .calm-btn { display: none; }
html.calm .wall-col { animation-play-state: paused; }
html.calm .s-text::after, html.calm .s-grid figure { animation: none; }

/* the app, in a plain window */
.window { position: relative; margin: 72px auto 0; width: min(1240px, 100% - 2 * var(--gutter)); border-radius: 18px; overflow: hidden; background: #0b0b0c;
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 60px 160px -40px rgba(0, 0, 0, 0.9), 0 30px 80px -50px rgba(120, 140, 255, 0.25); }
.window img { width: 100%; height: auto; }
.window.light { background: #fff; border-color: rgba(0, 0, 0, 0.12); box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.45); }
.hero .window { transform-origin: 50% 0; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero .window { animation: tilt linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes tilt { from { transform: perspective(1600px) rotateX(16deg) scale(0.92); } to { transform: none; } }
  }
}

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(110px, 14vw, 190px) 0; }
.sec.tight { padding-block: clamp(70px, 8vw, 110px) 0; }
.paper { --bg: var(--paper); --fg: #0b0b0b; --muted: #5f5f5a; --line: rgba(0, 0, 0, 0.1); --soft: rgba(0, 0, 0, 0.045); background: var(--bg); color: var(--fg); color-scheme: light; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.media { position: relative; }
.media .window { margin: 0; width: 100%; }
.points { display: grid; gap: 22px; margin: 40px 0 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; color: var(--muted); font-size: 16px; line-height: 1.5; }
.points b { display: block; color: var(--fg); font-weight: 600; }
.points svg { width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* the strip of facts under the hero */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.facts div { padding: 34px 28px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts b { display: block; font-size: clamp(28px, 3vw, 40px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.facts span { display: block; margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } .facts div:nth-child(3) { border-left: 0; } .facts div:nth-child(n + 3) { border-top: 1px solid var(--line); } }

/* ---------- search ---------- */
.search { margin-top: 64px; }
.s-bar { display: flex; align-items: center; gap: 12px; width: min(760px, 100%); height: 64px; margin: 0 auto; padding: 0 10px 0 22px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8); backdrop-filter: blur(20px); }
.s-bar svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; color: var(--muted); }
.s-text { flex: 1; min-width: 0; font-size: 19px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-text::after { content: ''; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.18em; background: var(--fg); animation: caret 1s steps(1) infinite; }
.s-text.done::after { animation: none; opacity: 0; } /* the caret blinks only while a query types */
@keyframes caret { 50% { opacity: 0; } }
.s-mode { height: 44px; padding: 0 16px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, 0.1); color: var(--fg); font: 500 14px var(--font); display: inline-flex; align-items: center; gap: 7px; }
.s-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; }
.s-chip { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); font: 15px var(--font); cursor: pointer; transition: color 0.2s, background 0.2s, border-color 0.2s; }
.s-chip:hover { color: var(--fg); }
.s-chip[aria-pressed='true'] { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.s-chip .k { margin-right: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg); }
.s-chip[aria-pressed='true'] .k { color: inherit; }
.s-answer { min-height: 28px; margin: 34px auto 0; max-width: 760px; color: var(--muted); font-size: 16px; text-align: center; }
.s-answer b { color: var(--fg); font-weight: 500; }
.s-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 26px; }
.s-grid figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #111 center / cover; animation: rise 0.6s var(--ease) both; }
.s-grid img { width: 100%; height: 100%; object-fit: cover; }
.s-grid figure:nth-child(2) { animation-delay: 0.04s; } .s-grid figure:nth-child(3) { animation-delay: 0.08s; } .s-grid figure:nth-child(4) { animation-delay: 0.12s; }
.s-grid figure:nth-child(5) { animation-delay: 0.16s; } .s-grid figure:nth-child(6) { animation-delay: 0.2s; } .s-grid figure:nth-child(n + 7) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .s-grid { grid-template-columns: repeat(3, 1fr); } .s-grid figure:nth-child(n + 10) { display: none; } }

/* ---------- people ---------- */
.faces { display: flex; flex-wrap: wrap; gap: clamp(14px, 2.4vw, 30px); margin-top: 52px; }
.face { display: flex; flex-direction: column; align-items: center; gap: 10px; width: clamp(84px, 9vw, 120px); }
.face img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: #ddd center / cover; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.5); }
.face b { font-weight: 600; font-size: 15px; }
.face span { margin-top: -8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted); }

/* memories: cards like the app's strip */
/* the strip runs off the right edge, as the app's does, so it reads as one to scroll */
.mems { display: flex; gap: 16px; margin-top: 56px; margin-right: calc(-1 * max(var(--gutter), (100vw - var(--wide)) / 2)); padding-right: var(--gutter); overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.mem { scroll-snap-align: start; }
.mem { position: relative; flex: 0 0 auto; width: clamp(200px, 22vw, 270px); aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: #111 center / cover; color: #fff; }
.mem img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.mem:hover img { transform: scale(1.04); }
.mem:focus-visible { outline: 3px solid #fff; outline-offset: -6px; } /* inside, since the strip clips what's outside */
.mem::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); }
.mem p { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; margin: 0; }
.mem b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.mem small { font-size: 13px; opacity: 0.85; }

/* ---------- made with AI ---------- */
.gen { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 14px; margin-top: 64px; }
@media (max-width: 900px) { .gen { grid-template-columns: 1fr; } }
.gen-pic { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: #111 center / cover; min-height: 420px; }
.gen-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gen-card { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 20px; background: #0e0e10; border: 1px solid rgba(255, 255, 255, 0.1); }
.gen-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gen-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.gen-tag svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gen-prompt { margin: 0; font-size: 17px; line-height: 1.55; color: #e8e8e4; }
.gen-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 14px; }
.gen-kv dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.gen-kv dd { margin: 0; }
.gen-note { margin: auto 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.gen-copy { align-self: flex-start; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); color: var(--fg);
  font: 500 13px var(--font); display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.gen-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gen-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 14px; }
.gen-strip figure { margin: 0; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #111 center / cover; }
.gen-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.gen-strip figure:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .gen-strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- household ---------- */
.whose { display: inline-flex; gap: 3px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.06); }
.whose span { height: 36px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 14.5px; color: var(--muted); }
.whose span[aria-current] { background: #fff; color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); }
.house { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.house figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #ddd center / cover; }
.house img { width: 100%; height: 100%; object-fit: cover; }
.house figcaption { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 4px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); color: #fff; font-size: 12px; font-weight: 500; }
.house figcaption i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #000; font-style: normal; font-size: 10px; font-weight: 700; }

/* ---------- iPhone ---------- */
/* the newest photos on a phone on their way to the server, drawn as panels: never as an iPhone */
.sync { display: grid; grid-template-columns: minmax(0, 1.3fr) 110px minmax(0, 1fr); align-items: center; max-width: 1040px; margin: 80px auto 0; text-align: left; }
.sync-roll, .sync-home { padding: 24px; border-radius: 26px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04); }
.sync-home { padding: 28px; background: #0e0e10; box-shadow: 0 40px 90px -50px rgba(120, 140, 255, 0.35); }
/* in its own case: "iPhone" is never set in capitals */
.sync-label { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.sync-label span { margin-left: auto; }
.sync-label svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sync-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sync-grid figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #111 center / cover; }
.sync-grid img { width: 100%; height: 100%; object-fit: cover; }
.sync-grid i { position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #2fb456; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }
.sync-grid i svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* the newest, on its way: a ring two-thirds round */
.sync-grid .going i { background: conic-gradient(#fff 0 66%, rgba(255, 255, 255, 0.28) 0); }
.sync-grid .going i::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: rgba(0, 0, 0, 0.7); }
.sync-wire { position: relative; height: 2px; margin: 0 16px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0 4px, transparent 4px 10px); }
.sync-wire span { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 3px rgba(160, 180, 255, 0.55); opacity: 0; }
.sync-home b { display: block; font-size: clamp(32px, 3.6vw, 46px); font-weight: 300; letter-spacing: -0.045em; line-height: 1.05; }
.sync-home p:not(.sync-label) { margin: 12px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 860px) {
  .sync { grid-template-columns: 1fr; max-width: 520px; }
  .sync-wire { width: 2px; height: 56px; margin: 0 auto; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0 4px, transparent 4px 10px); }
  .sync-wire span { top: 0; left: -3px; }
}
/* the dot crosses twice as the panels arrive, then rests (under five seconds) */
@media (prefers-reduced-motion: no-preference) {
  html:not(.calm) .sync.in .sync-wire span { animation: travel 2s var(--ease) 0.7s 2; }
  @keyframes travel { 15%, 85% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
  @media (max-width: 860px) { @keyframes travel { 15%, 85% { opacity: 1; } to { top: calc(100% - 8px); opacity: 0; } } }
}
.sync-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; max-width: 1040px; margin: 64px auto 0; padding: 0; list-style: none; text-align: left; }
@media (max-width: 900px) { .sync-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sync-points { grid-template-columns: 1fr; } }
.sync-points li { display: flex; flex-direction: column; gap: 14px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.sync-points svg { width: 24px; height: 24px; fill: none; stroke: var(--fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sync-points b { display: block; margin-bottom: 4px; color: var(--fg); font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; }

/* ---------- privacy ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 64px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { padding: 30px 28px 32px; border-radius: 22px; background: var(--soft); border: 1px solid var(--line); }
.card svg { width: 28px; height: 28px; margin-bottom: 22px; fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.card p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* ---------- how it runs ---------- */
.rig { display: grid; grid-template-columns: 1fr auto 1.25fr auto 1fr; align-items: center; gap: 18px; margin-top: 64px; }
@media (max-width: 900px) { .rig { grid-template-columns: 1fr; } .rig .wire { transform: rotate(90deg); justify-self: center; } }
.node { padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--soft); }
.node.main { background: #0e0e10; border-color: rgba(255, 255, 255, 0.16); box-shadow: 0 40px 90px -50px rgba(120, 140, 255, 0.35); }
.node h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.node h3 svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.node ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.node li::before { content: '—'; margin-right: 8px; opacity: 0.5; }
.wire { width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--fg), transparent); opacity: 0.4; }

/* ---------- closing ---------- */
.end { position: relative; isolation: isolate; min-height: 88vh; display: grid; place-items: center; padding: 140px 0; text-align: center; overflow: hidden; }
.end .lede { margin-inline: auto; }
.end .actions { justify-content: center; }
.end-bg { position: absolute; z-index: -1; inset: 0; background: #000 center / cover; }
.end-bg img { width: 100%; height: 100%; object-fit: cover; }
.end-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 50%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.82)), linear-gradient(#000, transparent 25%, transparent 75%, #000); }

/* ---------- footer ---------- */
.foot { padding: 80px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px; width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }
.foot-brand p { max-width: 300px; margin: 18px 0 0; color: var(--muted); font-size: 14.5px; }
.foot-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 520px) { .foot-links { grid-template-columns: 1fr 1fr; } }
.foot-links div { display: flex; flex-direction: column; gap: 10px; }
.foot-links h2 { margin: 0 0 6px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.foot-links a { color: var(--fg); font-size: 14.5px; text-decoration: none; opacity: 0.85; overflow-wrap: anywhere; }
.foot-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; width: min(var(--wide), 100% - 2 * var(--gutter)); margin: 64px auto 0; color: var(--muted); font-size: 12.5px; }
.foot-legal p { margin: 0; max-width: 720px; }

/* ---------- reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wall-col, .s-text::after, .s-grid figure { animation: none; }
  .calm-btn { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- support and legal pages ---------- */
.doc { width: min(760px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: calc(140px + env(safe-area-inset-top)) 0 120px; }
.doc h1 { font-size: clamp(42px, 6vw, 68px); font-weight: 300; letter-spacing: -0.045em; }
.doc .updated { margin: 18px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.doc .intro { margin: 34px 0 0; font-size: 20px; line-height: 1.55; color: var(--fg); }
.doc h2 { margin: 64px 0 0; padding-top: 28px; border-top: 1px solid var(--line); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.doc h3 { margin: 32px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.doc p, .doc li { color: color-mix(in srgb, var(--fg) 82%, var(--bg)); font-size: 16.5px; line-height: 1.7; }
.doc p { margin: 14px 0 0; }
.doc ul { margin: 14px 0 0; padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { text-underline-offset: 3px; }
.doc table { width: 100%; margin: 20px 0 0; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
.doc th { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.doc .toc { margin: 40px 0 0; padding: 22px 24px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); }
.doc .toc p { margin: 0 0 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.doc .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.doc .toc li { margin: 4px 0; font-size: 15px; break-inside: avoid; }
@media (max-width: 600px) { .doc .toc ol { columns: 1; } }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 40px 0 0; padding: 28px; border-radius: 22px; background: var(--soft); border: 1px solid var(--line); }
.contact p { margin: 0; }
.contact b { display: block; color: var(--fg); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.contact .btn { height: 48px; }
details.qa { border-bottom: 1px solid var(--line); }
details.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: '+'; flex: none; font-family: var(--mono); font-size: 20px; color: var(--muted); transition: transform 0.3s var(--ease); }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa > div { padding: 0 0 24px; }
details.qa > div p:first-child { margin-top: 0; }
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); }
.notfound h1 { font-size: clamp(60px, 12vw, 160px); font-weight: 300; letter-spacing: -0.06em; }
