/* Landing, privacy, and not-found pages. Dark like the app, with its dusk colors. */

:root {
  --bg: #140b20;
  --bg-2: #1d1230;
  --text: #fff;
  --text-2: rgba(255, 255, 255, 0.74);
  --text-3: rgba(255, 255, 255, 0.52);
  --line: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.05);
  --accent: #ffd27a;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --rounded: ui-rounded, "SF Pro Rounded", Nunito, system-ui, sans-serif;
  --ink: 255, 255, 255;
  --text-shadow: rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

/* Light mode (docs/light-mode.md). */
:root[data-theme="light"] {
  --bg: #f8f4fb;
  --bg-2: #efe7f5;
  --text: #211d26;
  --text-2: rgba(33, 29, 38, 0.72);
  --text-3: rgba(33, 29, 38, 0.52);
  --line: rgba(33, 29, 38, 0.1);
  --card: rgba(255, 255, 255, 0.6);
  --accent: #a86a00;
  --ink: 33, 29, 38;
  --text-shadow: rgba(255, 255, 255, 0.6);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--rounded);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }
h1, h2, h3 { line-height: 1.12; margin: 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 26px;
  background: rgba(var(--ink), 0.12);
  border: 0.5px solid rgba(var(--ink), 0.18);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1), background 0.2s;
}
.button:hover { background: rgba(var(--ink), 0.22); }
.button:active { transform: scale(0.95); }
.button.primary { background: var(--text); color: var(--bg); border-color: transparent; }
.button.primary:hover { opacity: 0.9; }
.button.small { height: 40px; padding: 0 18px; font-size: 15px; }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* MARK: Nav */

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px max(20px, env(safe-area-inset-left));
  max-width: 1200px;
  margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; }
.logo img { border-radius: 8px; }
.nav nav { display: flex; align-items: center; gap: 20px; }
.nav nav > a:not(.button) { font-weight: 700; text-decoration: none; color: var(--text-2); }
.nav nav > a:not(.button):hover { color: var(--text); }

/* MARK: Hero */

.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 96px 20px 64px;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(transparent, var(--bg));
}
.ambient-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 48px;
}
.hero-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); margin-bottom: 28px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(42px, 6.4vw, 76px); letter-spacing: -0.01em; text-shadow: 0 2px 20px var(--text-shadow); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 34em; margin: 22px 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.store { margin-top: 18px; color: var(--text-3); font-size: 15px; font-weight: 600; }

/* The phone preview: a small, live version of the feed. */
.phone {
  justify-self: center;
  width: min(340px, 80vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 54px;
  padding: 11px;
  background: linear-gradient(145deg, #3a3446, #18141f);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
  rotate: 3deg;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: var(--bg-2); container-type: inline-size; }
.phone-bg { position: absolute; inset: 0; }
/* Sized in container units so the preview keeps the app's proportions at any width (100cqw ≈ 393 pt). */
.phone-island { position: absolute; top: 3cqw; left: 50%; translate: -50% 0; width: 32%; height: 9cqw; border-radius: 5cqw; background: #000; }
.phone-status { position: absolute; top: 4.2cqw; left: 10cqw; right: 8cqw; display: flex; justify-content: space-between; align-items: center; font-size: 4.1cqw; font-weight: 700; }
.ph-status-icons { display: flex; align-items: center; gap: 1.4cqw; }
.ph-status-icons i { width: 4.4cqw; height: 2.8cqw; border-radius: 0.6cqw; background: var(--text); }
.ph-status-icons i:nth-child(2) { width: 3.6cqw; border-radius: 50% 50% 0.4cqw 0.4cqw; }
.ph-status-icons b { width: 6.4cqw; height: 3cqw; border-radius: 1cqw; border: 0.3cqw solid rgba(var(--ink), 0.5); background: linear-gradient(90deg, var(--text) 75%, transparent 75%) content-box; padding: 0.3cqw; }
.phone-top { position: absolute; top: 15cqw; left: 3.6cqw; right: 3.6cqw; display: grid; grid-template-columns: 1fr auto 1fr; gap: 2cqw; align-items: center; }
.ph-side { display: flex; }
.ph-side.end { justify-content: flex-end; }
.ph-glass {
  height: 12.2cqw;
  border-radius: 6.1cqw;
  background: rgba(var(--ink), 0.13);
  border: 0.5px solid rgba(var(--ink), 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3.9cqw;
  font-weight: 700;
}
.ph-pill { padding: 0 3.6cqw; gap: 1.5cqw; white-space: nowrap; }
.ph-cite { font-weight: 600; min-width: 0; }
.ph-cite-text { overflow: hidden; text-overflow: ellipsis; }
.ph-round { width: 12.2cqw; flex: none; }
.ph-icon { width: 5.6cqw; height: 5.6cqw; stroke-width: 2.2; }
.ph-icon.tiny { width: 3cqw; height: 3cqw; stroke-width: 3.4; flex: none; }
.phone-verse {
  position: absolute;
  top: 30cqw;
  bottom: 30cqw;
  left: 8cqw;
  right: 8cqw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 4cqw;
  text-shadow: 0 2px 8px var(--text-shadow);
  transition: opacity 0.45s, filter 0.45s, transform 0.45s;
}
.phone-verse.leaving { opacity: 0; filter: blur(4px); transform: translateY(-24px) scale(0.94); }
.phone-verse .t { margin: 0; font: 400 7.2cqw/1.38 var(--serif); }
.phone-verse .r { margin: 0; font-size: 3.8cqw; font-weight: 600; color: var(--text-2); letter-spacing: 0.02em; }
.phone-rail { position: absolute; right: 2.6cqw; bottom: 16cqw; display: flex; flex-direction: column; gap: 4.4cqw; }
.ph-action { display: flex; flex-direction: column; align-items: center; gap: 1cqw; font-size: 2.9cqw; font-weight: 600; text-shadow: 0 1px 4px var(--text-shadow); }
.ph-disc { width: 13.2cqw; height: 13.2cqw; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--ink), 0.08); border: 0.5px solid rgba(var(--ink), 0.12); }
.ph-disc .ph-icon { width: 6.6cqw; height: 6.6cqw; }
.phone-home { position: absolute; bottom: 2.2cqw; left: 50%; translate: -50% 0; width: 35%; height: 1.3cqw; border-radius: 1cqw; background: rgba(var(--ink), 0.85); }

/* MARK: Sections */

section { padding: 88px 20px; }
section > h2, .try h2, .get h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4vw, 46px); text-align: center; }
.eyebrow { text-align: center; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin: 0 0 18px; }
.sub { text-align: center; color: var(--text-3); margin: 18px auto 24px; max-width: 30em; }

.votd { display: flex; flex-direction: column; align-items: center; padding-top: 24px; }
.votd-card {
  position: relative;
  margin: 0;
  width: min(100%, 720px);
  min-height: 300px;
  padding: 56px clamp(24px, 6vw, 72px);
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.votd-bg { position: absolute; inset: 0; }
a.votd-card { color: inherit; text-decoration: none; cursor: pointer; transition: transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.3s; }
a.votd-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 36px 90px rgba(0, 0, 0, 0.5); }
a.votd-card:active { transform: scale(0.98); }
.votd-card blockquote { position: relative; margin: 0; font: 400 clamp(22px, 3.2vw, 32px)/1.4 var(--serif); text-shadow: 0 2px 10px var(--text-shadow); }
.votd-card .votd-ref { position: relative; margin-top: 18px; font-weight: 700; color: var(--text-2); }

.features h2 { margin-bottom: 44px; }
.grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--card);
  border: 0.5px solid var(--line);
  border-radius: 26px;
  padding: 26px;
}
.card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }
.card.span-2 { grid-column: span 3; display: grid; grid-template-columns: 1fr 1.8fr; gap: 28px; align-items: center; }
.card.span-2 h3 { grid-column: 1; }
.swatch-row { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.mini { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--bg-2); }
.mini span { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 12px; font-weight: 800; text-shadow: 0 1px 6px var(--text-shadow); z-index: 1; }
.tags { display: flex; gap: 8px; margin-top: 14px !important; }
.tags span { font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 10px; background: rgba(var(--ink), 0.1); color: var(--text); }

.try { text-align: center; }
.try p { color: var(--text-2); max-width: 34em; margin: 18px auto 28px; }
.try .cta { justify-content: center; }

.get { display: flex; flex-direction: column; align-items: center; text-align: center; background: linear-gradient(transparent, var(--bg-2)); }
.get .get-icon { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
.get p { color: var(--text-2); max-width: 30em; margin: 14px 0 28px; }
.get { background: none; padding-bottom: 40px; }
.try { padding-top: 40px; }
.try h2 { font-size: clamp(24px, 3vw, 32px) !important; }
.app-store { display: inline-block; border-radius: 12px; transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); }
.app-store img { height: 56px; width: auto; }
.app-store:hover { transform: scale(1.03); }
.app-store:active { transform: scale(0.96); }
.store a { color: var(--text-2); }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
  color: var(--text-3);
  font-size: 15px;
  border-top: 0.5px solid var(--line);
}
.footer p { margin: 0; }
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-icon { margin-left: auto; margin-right: auto; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero .cta { justify-content: center; }
  .phone { width: min(300px, 76vw); margin-top: 16px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .card.span-2 { grid-column: span 2; grid-template-columns: 1fr; }
  .swatch-row { grid-column: 1; grid-row: auto; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .card.span-2 { grid-column: span 1; }
  .nav nav > a:not(.button) { display: none; }
  section { padding: 64px 16px; }
  .hero { padding: 88px 16px 40px; }
}

/* MARK: Documents (privacy, not found) */

.doc { background: linear-gradient(var(--bg-2), var(--bg) 400px); min-height: 100vh; }
.doc-main { max-width: 720px; margin: 0 auto; padding: 32px 20px 80px; }
.doc-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; margin-bottom: 40px; }
.doc-brand img { border-radius: 7px; }
.doc h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5vw, 48px); margin-bottom: 12px; }
.doc h2 { font-size: 21px; font-weight: 800; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc .updated { color: var(--text-3); font-size: 15px; }
.notfound { text-align: center; padding-top: 18vh; }
.notfound .doc-brand { margin-bottom: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone-verse, .button { transition: none; }
}

@media (min-width: 901px) {
  .grid > .card:last-child { grid-column: span 2; }
}

/* The phone preview's glass is white in light mode, like the app. */
:root[data-theme="light"] .ph-glass, :root[data-theme="light"] .ph-disc { background: rgba(255, 255, 255, 0.55); border-color: rgba(255, 255, 255, 0.7); }
:root[data-theme="light"] .button:not(.primary) { background: rgba(255, 255, 255, 0.6); border-color: rgba(33, 29, 38, 0.1); }
:root[data-theme="light"] .votd-card { box-shadow: 0 24px 60px rgba(80, 50, 110, 0.18); }
:root[data-theme="light"] a.votd-card:hover { box-shadow: 0 30px 70px rgba(80, 50, 110, 0.24); }

.legal ul { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal a { color: var(--text); }
.todo { background: rgba(255, 196, 0, 0.3); color: var(--text); border-radius: 4px; padding: 0 4px; }
