/*
 * A photo viewer is always dark: it is the only background that does not
 * tint the viewer's perception of the image. There is no light theme.
 */
:root {
  --bg: #0b0b0d;
  --panel: #131317;
  --text: #f2f2f4;
  --muted: #8b8b95;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
p, h1, h2, ol, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

.muted { color: var(--muted); }
.urgent { color: #fbbf24; }
.small { font-size: 0.875rem; line-height: 1.25rem; }
.tiny { font-size: 0.75rem; line-height: 1.6; }

/* ------------------------------------------------------------ the viewer */

.shell { display: flex; flex-direction: column; min-height: 100dvh; }

/* Honour the camera's rotation tag when serving an original with no display
   copy. Modern browsers default to this; saying so costs nothing. */
img { image-orientation: from-image; }

.stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0.75rem; }
@media (min-width: 640px) { .stage { padding: 1.5rem; } }
.photo {
  max-width: 100%;
  max-height: calc(100dvh - 8.5rem);
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}
/* The checker behind a transparent PNG, so it reads as transparent rather
   than as a black rectangle. */
.checker {
  background-image:
    linear-gradient(45deg, #1a1a1f 25%, transparent 25%),
    linear-gradient(-45deg, #1a1a1f 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1a1a1f 75%),
    linear-gradient(-45deg, transparent 75%, #1a1a1f 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

.bar {
  position: sticky; bottom: 0;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(19 19 23 / 0.85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding: 0.75rem 1rem;
}
.bar-row {
  max-width: 48rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.bar-info { min-width: 0; }
.filename { font-size: 0.875rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { margin-top: 0.125rem; font-size: 0.75rem; }
.dot { margin: 0 0.375rem; }
.download {
  flex-shrink: 0;
  border-radius: 9999px; background: #fff; color: #000;
  padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 600;
  transition: transform 0.1s, background-color 0.15s;
}
.download:hover { background: rgb(255 255 255 / 0.9); text-decoration: none; }
.download:active { transform: scale(0.95); }
.fine { margin-top: 0.5rem; align-items: flex-start; font-size: 11px; line-height: 1.375; color: var(--muted); }
.links { display: flex; gap: 0.75rem; flex-shrink: 0; }

.notice {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; padding: 0 1rem; text-align: center;
}
.notice h1 { font-size: 1.125rem; font-weight: 500; }
.notice p { max-width: 20rem; font-size: 0.875rem; color: var(--muted); }
.notice-icon { margin-bottom: 0.25rem; font-size: 2.25rem; }
.developing { font-size: 1rem; font-weight: 500; }
#hint { margin-top: 0.25rem; }

@keyframes breathe { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.75; } }
.breathe {
  width: 4rem; height: 4rem; margin-bottom: 0.5rem;
  border-radius: 1rem; border: 2px solid rgb(139 139 149 / 0.4);
  animation: breathe 1.8s ease-in-out infinite;
}

.foot { padding: 1rem 1rem 1.5rem; text-align: center; font-size: 0.75rem; color: var(--muted); }

/* ------------------------------------------- the public site: home + reading */

/* Light by default, dark when the visitor's device is; the viewer above is
   always dark and does not use any of this. */
body.site {
  --ink: #141513;
  --ink-2: #5c5f58;
  --paper: #f4f3ef;
  --surface: #ebe9e3;
  --card: #fbfaf7;
  --line: rgb(20 21 19 / 0.1);
  --pill: #141513;
  --pill-ink: #f4f3ef;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  body.site {
    --ink: #f2f2f4;
    --ink-2: #9d9da6;
    --paper: #0b0b0d;
    --surface: #121215;
    --card: #17171b;
    --line: rgb(255 255 255 / 0.09);
    --pill: #f2f2f4;
    --pill-ink: #0b0b0d;
    color-scheme: dark;
  }
}
html:has(body.site), body.site { background: var(--paper); color: var(--ink); }
body.site { font-size: 17px; line-height: 1.55; }
.site a:hover { text-decoration: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.top .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em; }
.logo img { width: 28px; height: 28px; border-radius: 7px; }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 0.94rem; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
.btn {
  background: var(--pill); color: var(--pill-ink) !important;
  border-radius: 999px; padding: 0.55rem 1.05rem; font-weight: 600; font-size: 0.9rem;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; }

.eyebrow { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.grad {
  background: linear-gradient(90deg, #ff7a00, #ff2d8a 42%, #a64bff 72%, #2f8bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.06rem, 1.5vw, 1.2rem); line-height: 1.6; color: var(--ink-2); max-width: 34rem; }
.note { color: var(--ink-2); font-size: 0.95rem; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; }
.cta.center { justify-content: center; }
.soon {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.7rem 1.15rem; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}
.soon i {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, #ff7a00, #ff2d8a);
  box-shadow: 0 0 0 4px rgb(255 45 138 / 0.14);
}

/* A phone around a real screen. Everything scales with --w. */
.device {
  --w: min(300px, 68vw);
  position: relative; width: var(--w); flex-shrink: 0;
  padding: calc(var(--w) * 0.028);
  border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(160deg, #3a3a40, #16161a 40%, #2a2a30);
  box-shadow: 0 40px 80px -24px rgb(0 0 0 / 0.38), inset 0 0 0 1px rgb(255 255 255 / 0.07);
}
.device img { display: block; width: 100%; height: auto; border-radius: calc(var(--w) * 0.137); }
.device-dim { position: absolute; inset: calc(var(--w) * 0.028); border-radius: calc(var(--w) * 0.137); background: rgb(0 0 0 / 0.5); }

.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.hero .wrap, .feature .wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.hero .wrap { grid-template-columns: 1.25fr 0.75fr; }
.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: 0.98; letter-spacing: -0.04em; font-weight: 750;
  margin: 18px 0 22px;
}
/* "Gone in 12 hours." reads as one thought; never strand "hours." */
.hero h1 .grad { white-space: nowrap; }
.visual { display: flex; justify-content: center; }
/* Shrink-wrapped to the phone, so the card below can be sized against it. */
.hero-visual { position: relative; width: fit-content; margin: 0 auto; padding-bottom: 28px; }
.hero-visual::before {
  content: ""; position: absolute; inset: 6% -10% 10%; z-index: -1; filter: blur(60px); opacity: 0.45;
  background: radial-gradient(closest-side at 30% 40%, #ff7a00, transparent),
              radial-gradient(closest-side at 70% 50%, #ff2d8a, transparent),
              radial-gradient(closest-side at 50% 80%, #a64bff, transparent);
}
.float-card {
  position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%);
  width: 124%; max-width: calc(100vw - 32px); height: auto; border-radius: 20px;
  box-shadow: 0 30px 60px -12px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(255 255 255 / 0.12);
}

.feature { padding: clamp(64px, 9vw, 120px) 0; }
.feature.alt { background: var(--surface); }
.feature.flip .copy { order: 2; }
.feature h2, .private h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.06; letter-spacing: -0.03em; font-weight: 720;
  margin: 14px 0 18px; max-width: 30rem;
}
.feature .copy p:last-child { font-size: 1.06rem; line-height: 1.65; color: var(--ink-2); max-width: 30rem; }

.private { padding: clamp(64px, 9vw, 120px) 0; }
.private h2 { max-width: 40rem; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 26px 28px; }
.card h3 { font-size: 1.06rem; font-weight: 650; margin: 0 0 8px; }
.card p { font-size: 0.98rem; line-height: 1.6; color: var(--ink-2); }

.price { padding: clamp(72px, 10vw, 128px) 0; background: var(--surface); text-align: center; }
.price .lead { margin: 18px auto 0; }
.amount {
  margin: 18px 0 0; font-size: clamp(4rem, 11vw, 6.5rem); line-height: 1; letter-spacing: -0.05em; font-weight: 750;
}
.amount span { font-size: 0.24em; letter-spacing: 0; font-weight: 600; color: var(--ink-2); margin-left: 0.4em; }
.price .note { margin-top: 18px; }

.foot-site { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 0.9rem; color: var(--ink-2); }
.foot-site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.foot-site .logo { color: var(--ink); }
.foot-site .logo img { width: 24px; height: 24px; border-radius: 6px; }
.foot-site nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-site a:hover { color: var(--ink); }

/* Reading pages: privacy, terms, support. */
.reading { max-width: 46rem; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
.reading h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 720; letter-spacing: -0.03em; line-height: 1.1; }
.reading h2 { font-size: 1.12rem; font-weight: 650; margin-top: 2.2rem; }
.reading p, .reading li { font-size: 1rem; line-height: 1.7; color: var(--ink-2); margin-top: 0.75rem; }
.reading ul { list-style: disc; padding-left: 1.25rem; }
.reading li { margin-top: 0.4rem; }
.reading strong { color: var(--ink); font-weight: 600; }
.reading article a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.reading article a:hover { text-decoration-color: currentColor; }
.reading .updated { font-size: 0.85rem; margin-top: 0.6rem; }

@media (max-width: 880px) {
  .hero .wrap, .feature .wrap { grid-template-columns: 1fr; }
  .feature.flip .copy { order: 0; }
  .hero { padding-top: 32px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .device { --w: min(280px, 74vw); }
  .foot-site .wrap { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------ collections */

.grid {
  flex: 1; align-content: start;
  display: grid; gap: 3px; padding: 3px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 80rem; margin: 0 auto; width: 100%; } }
.tile { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--panel); border-radius: 2px; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.15s; }
.tile:hover img { opacity: 0.85; }
.tile.pending { display: flex; align-items: center; justify-content: center; }
.small-breathe { width: 2rem; height: 2rem; margin: 0; border-radius: 0.5rem; }

.itembar {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.75rem 1rem; font-size: 0.875rem;
  background: rgb(11 11 13 / 0.85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}
.back { font-weight: 500; }
.itemnav { display: flex; align-items: center; gap: 0.875rem; }
.itemnav a, .itemnav .off { font-size: 1.125rem; line-height: 1; padding: 0.125rem 0.25rem; }
.itemnav .off { color: rgb(139 139 149 / 0.35); }
.stage.with-nav .photo { max-height: calc(100dvh - 11.5rem); }

/* ----------------------------------------------------------------- videos */

.video-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; max-width: 100%; }
video.photo { background: #000; max-height: calc(100dvh - 8.5rem); width: auto; max-width: 100%; }
.stage.with-nav video.photo { max-height: calc(100dvh - 11.5rem); }
.novideo { font-size: 0.875rem; color: var(--muted); text-align: center; }
.tile-badge {
  position: absolute; right: 6px; bottom: 6px;
  padding: 2px 7px; border-radius: 999px;
  background: rgb(0 0 0 / 0.6); color: #fff;
  font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.5;
}
