/* Tidify landing page — dark only, standalone.
   Deliberately does NOT load main.css: that file is light-first, so sharing it
   would mean overriding a whole token set on a #000 page. The genuinely shared
   base is a dozen declarations, duplicated below.
   Values mirror the Claude Design handoff prototype. */

:root {
  color-scheme: dark;

  --bg: #000;
  --bg-band: #08080a;
  --surface: #121214;
  --surface-2: #0e0e10;

  --fg: #f5f5f7;
  --fg-2: #a1a1a6;
  --fg-3: #86868b;
  --fg-4: #6e6e73;

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.16);
  --line-dash: rgba(255, 255, 255, 0.14);

  --accent: #0a84ff;
  --accent-hi: #4aa8ff;

  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1160px;
  --pad: 24px;
  --r-card: 22px;
  --r-screen: 42px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
::selection { background: var(--accent); color: #fff; }

/* Visible only when tabbed to — the design has no focus styling of its own. */
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 20px;
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-nav { background: rgba(0, 0, 0, 0.94); }
}
.site-nav .wrap {
  height: 56px; display: flex; align-items: center;
  justify-content: space-between; gap: var(--pad);
}
.site-nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg); font-size: 19px; font-weight: 700; letter-spacing: -0.03em;
}
.site-nav__brand:hover { color: var(--fg); }
.site-nav__brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-nav__links { display: flex; align-items: center; gap: 28px; }
.site-nav__links a { color: var(--fg-2); font-size: 13px; }
.site-nav__links a:hover { color: var(--fg); }
/* Scoped under .site-nav__links so it outranks the `.site-nav__links a` grey
   above — otherwise (0,1,1) beats (0,1,0) and the pill's label goes grey. */
.site-nav__links .site-nav__cta {
  display: inline-flex; align-items: center; height: 32px; padding: 0 16px;
  border-radius: 16px; background: var(--accent);
  color: #fff; font-size: 13px; font-weight: 600;
}
.site-nav__links .site-nav__cta:hover { background: var(--accent-hi); color: #fff; }

/* ---------- section scaffolding ---------- */
.section { padding: 120px 0; }
.section--band {
  background: var(--bg-band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head { max-width: 760px; margin-bottom: 72px; }
.section__head h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  margin: 0 0 24px;
}
.section__head p {
  font-size: 18px; line-height: 1.55; color: var(--fg-2);
  max-width: 52ch; margin: 0; text-wrap: pretty;
}

/* ---------- device frame ---------- */
.device {
  position: relative;
  width: var(--dw, 320px);
  max-width: 100%;
  border-radius: 52px;
  padding: 10px;
  /* Titanium band: catch-light top-left, near-black underside, faint kick back
     at the bottom edge — a flat two-stop gradient reads as plastic. */
  background: linear-gradient(160deg, #3a3a3f 0%, #202024 28%, #101013 62%, #232328 100%);
  /* Ring order matters: earlier shadows paint on top, so the 1px polished-edge
     highlight sits over the wider dark gap ring behind it. */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 0 2.25px rgba(0, 0, 0, 0.9),
    0 60px 120px -30px rgba(0, 0, 0, 1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
/* Inner radius = outer radius − padding, per size, or the corners go
   non-concentric (the default 42px already equals the large frame's 52 − 10). */
.device--sm { --dw: 300px; border-radius: 50px; padding: 9px; --r-screen: 41px; }
/* The media IS the whole screen, status bar and all — nothing is drawn over it
   by the page. (The clean status bar is composited into the assets themselves
   by prep-assets.sh; the real captures showed SOS + a recording indicator.) */
.device__screen {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-screen); background: #000;
  box-shadow: 0 0 0 3px #010102;   /* matte bezel ring between glass and band */
}

/* ---------- hero ---------- */
/* min(Npx, 100%) rather than the prototype's bare minmax(Npx, 1fr): below
   ~408px the bare version makes the track wider than the padded content box,
   so the column creeps into the right gutter. */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 72px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 96px;
}
.hero h1 {
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 700; letter-spacing: -0.045em; line-height: 0.94;
  margin: 0 0 26px;
}
.hero__lead {
  font-size: 19px; line-height: 1.5; color: var(--fg-2);
  max-width: 44ch; margin: 0 0 36px; text-wrap: pretty;
}
.hero .eyebrow { margin-bottom: 22px; }
.hero__cta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px; margin-bottom: 22px;
}
.hero__cta .badge img { height: 56px; width: auto; }
.hero__more {
  display: inline-flex; align-items: center; height: 56px; padding: 0 4px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
}
.hero__meta { font-family: var(--mono); font-size: 12px; color: var(--fg-3); margin: 0; }
.hero__device { display: flex; justify-content: center; }

/* Pause control — not in the prototype. A 9.7s loop that never stops is
   auto-playing motion >5s, which WCAG 2.2.2 requires a stop mechanism for;
   prefers-reduced-motion only covers users who set it. Kept out of the way:
   invisible until the frame is hovered, the button is focused, or it's paused. */
.hero__pause {
  position: absolute; right: 20px; bottom: 20px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--fg); font: inherit; font-size: 11px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transition: opacity 0.18s ease;
}
.device:hover .hero__pause,
.hero__pause:focus-visible,
.hero__pause[aria-pressed="true"] { opacity: 1; }

/* ---------- rediscover ---------- */
.arc-host { position: relative; }
.arcs {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible;          /* bezier control points bulge outside the box */
  /* Below the phones (z-index 2 on .split__device .device). The arcs are
     routed to miss the phones outright; the layering is insurance so a
     grazing pass near a rounded corner hides instead of clipping it. */
  pointer-events: none; z-index: 1;
  opacity: 0; transition: opacity 0.18s ease;
}
.arcs.is-on { opacity: 1; }
.arc__line, .arc__head {
  fill: none; stroke: var(--fg); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round; opacity: 0.9;
}

.split {
  display: grid;
  /* min 480, not 320: below the side-by-side breakpoint the three cells
     (cards, home shot, detail shot) go two-up — equal-width three-across
     would crush the card-to-shot run below tidify.js's 48px MIN_RUN and
     hide every arrow. */
  grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr));
  gap: 36px;
  align-items: start;
}
.split__col { display: flex; flex-direction: column; gap: 36px; }
.split__device { display: flex; justify-content: center; }
/* Paired with .arcs z-index 1 — phones win if an arc ever grazes one. */
.split__device .device { z-index: 2; }
/* In the narrow band where the auto-fit grid pairs [cards | home shot] and
   wraps the detail shot to its own row, span and centre that phone rather
   than leaving it under the card rail. Arcs hide here (the wrap breaks
   every run). */
@media (min-width: 1044px) and (max-width: 1139.98px) {
  .split > :nth-child(3) { grid-column: 1 / -1; }
}

/* ≥1140px the two phones sit side by side. Explicit tracks: the wide [2] keeps
   the arcs' run at ~95px, the narrow [4] is the gutter between the phones.
   Between ~1044-1139px the auto-fit grid above pairs the cells 2-up instead;
   narrower still, everything stacks. */
@media (min-width: 1140px) {
  .split {
    grid-template-columns: minmax(0, 1fr) 108px 300px 52px 300px;
    column-gap: 0;
  }
  /* DOM order: cards column, home shot, detail shot. */
  .split > .split__col { grid-column: 1; }
  .split > :nth-child(2) { grid-column: 3; }
  .split > :nth-child(3) { grid-column: 5; }
}

.card {
  padding: 34px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line);
}
.card h3 {
  font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.2; margin: 0 0 12px;
}
.card p { font-size: 16px; line-height: 1.55; color: var(--fg-2); margin: 0; }
.card--ghost { background: transparent; border: 1px dashed var(--line-dash); }
.card--ghost h3 {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 10px;
}
.card--ghost p { font-size: 15px; line-height: 1.6; color: var(--fg-3); }

/* ---------- browse ---------- */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 36px;
  align-items: stretch;
}
.card--stack {
  background: var(--surface-2);
  display: flex; flex-direction: column; gap: 26px;
  /* The grid stretches this card to phone height (~630px); spread the three
     blocks over it instead of pooling the slack below the last one. In the
     stacked layouts the card is content-height and this is a no-op. */
  justify-content: space-between;
}
.card--stack h3 { font-size: 20px; margin-bottom: 10px; }
.card--stack p { font-size: 15px; color: var(--fg-3); }
.browse-grid .split__device { align-items: flex-start; }

/* ---------- privacy ---------- */
.privacy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 56px; align-items: center;
  /* Longhands only: these elements are also .wrap, and a `padding` shorthand
     here would reset .wrap's horizontal gutters to 0. */
  padding-top: 100px; padding-bottom: 100px;
}
.privacy h2 {
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin: 0;
}
.privacy__body { display: flex; flex-direction: column; gap: 24px; }
.privacy__body p {
  font-size: 18px; line-height: 1.55; color: var(--fg-2);
  margin: 0; max-width: 46ch; text-wrap: pretty;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chips li {
  padding: 8px 16px; border-radius: 18px; border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 12px; color: var(--fg-2);
}

/* ---------- faq ---------- */
.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 64px; align-items: start;
  padding-top: 110px; padding-bottom: 110px;   /* longhands — see .privacy */
}
.faq h2 {
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin: 0;
}
.faq__list { display: flex; flex-direction: column; }
.faq__list > div { padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.faq__list > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.faq__list h3 { font-size: 17px; font-weight: 600; line-height: 1.3; margin: 0 0 10px; }
.faq__list p {
  font-size: 15px; line-height: 1.6; color: var(--fg-2); margin: 0; max-width: 52ch;
}

/* ---------- download ---------- */
.download {
  padding-top: 140px; padding-bottom: 120px;   /* longhands — see .privacy */
  text-align: center;
}
.download h2 {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 700; letter-spacing: -0.045em; line-height: 0.98;
  margin: 0 0 26px;
}
.download p {
  font-size: 19px; line-height: 1.5; color: var(--fg-2);
  max-width: 44ch; margin: 0 auto 40px; text-wrap: pretty;
}
.download .badge { display: inline-flex; }
.download .badge img { height: 64px; width: auto; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); }
.site-foot .wrap {
  padding-top: 36px; padding-bottom: 36px;
  display: flex; flex-wrap: wrap; gap: var(--pad);
  align-items: center; justify-content: space-between;
}
.site-foot__copy { font-size: 13px; color: var(--fg-4); }
.site-foot__links { display: flex; flex-wrap: wrap; gap: 26px; }
.site-foot__links a { color: var(--fg-3); font-size: 13px; }
.site-foot__links a:hover { color: var(--fg); }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .section { padding: 84px 0; }
  .section__head { margin-bottom: 48px; }
  .hero { padding-top: 56px; padding-bottom: 64px; gap: 48px; }
  /* Longhands here too — a shorthand would zero .wrap's gutters (see .privacy). */
  .privacy { padding-top: 72px; padding-bottom: 72px; gap: 36px; }
  .faq { padding-top: 76px; padding-bottom: 76px; gap: 36px; }
  .download { padding-top: 96px; padding-bottom: 84px; }
  .card { padding: 26px; }
  .split, .split__col, .browse-grid { gap: 24px; }
  .site-foot__links { gap: 18px; }
}
/* Brand + three section links + the Download pill need ~430px of nav; below
   that they collide, so the section links drop and the pill carries the nav. */
@media (max-width: 560px) {
  .site-nav__links { gap: 16px; }
  .site-nav__links .site-nav__link { display: none; }
}

/* ---------- motion safety ---------- */
/* The arcs are static geometry, not animation — they stay. Only the fade that
   fires when they appear/disappear mid-resize is gated. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .arcs, .hero__pause, .appcard { transition: none; }
}
