@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');
/* ────────────────────────────────────────────────────────────────────────
   PhotosApp — shared "Darkroom" theme stylesheet.
   Palette + type lifted verbatim from the product's `darkroom` preset
   (@photosapp/shared themes.ts). Used by the comparison pages and FAQ; the
   landing/features/early-access pages currently inline an identical copy.
   The Dark/Light bar in the nav swaps the two Darkroom palettes via the
   'darkroom-scheme' localStorage key.
─────────────────────────────────────────────────────────────────────────── */
:root {
  --bg: #070708;
  --bg-soft: #0e0e10;
  --panel: #121214;
  --border: #23232a;
  --border-strong: #33333c;
  --text: #eceae6;
  --text-dim: #a3a09a;
  --text-faint: #6f6c67;
  --accent: #e23b30;
  --accent-bright: #ff5247;
  --accent-soft: rgba(226, 59, 48, 0.12);
  /* Accessible button reds — white text on #e23b30 is only 4.28:1 (fails AA).
     These deeper reds carry white text at >=4.5:1 while staying on-brand. */
  --btn-bg: #d12f25;
  --btn-bg-hover: #d83228;
  --nav-bg: rgba(7, 7, 8, 0.6);
  --nav-bg-scrolled: rgba(7, 7, 8, 0.88);
  --radius: 8px;
  --maxw: 1120px;
  --display: "Spectral", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

html[data-scheme="light"] {
  --bg: #f7f5f2;
  --bg-soft: #ffffff;
  --panel: #f0ede8;
  --border: #e4e0d9;
  --border-strong: #d8d2c7;
  --text: #1a1714;
  --text-dim: #6b6660;
  --text-faint: #8a857d;
  --accent: #e23b30;
  --accent-bright: #c4271d;
  --accent-soft: rgba(226, 59, 48, 0.10);
  --nav-bg: rgba(247, 245, 242, 0.7);
  --nav-bg-scrolled: rgba(247, 245, 242, 0.9);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* ── cosmic backdrop (Spacebase): fixed nebula + starfield behind all content ── */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 82% -12%, #14111d 0%, transparent 55%),
    radial-gradient(75% 60% at 6% 108%, rgba(226,59,48,0.07) 0%, transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(1.3px 1.3px at 15% 22%, rgba(255,255,255,.75), transparent),
    radial-gradient(1px 1px at 62% 34%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.4px 1.4px at 82% 16%, #fff, transparent),
    radial-gradient(1px 1px at 34% 70%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 88% 62%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.2px 1.2px at 24% 88%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 72% 86%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 48% 48%, rgba(255,255,255,.4), transparent);
}
html[data-scheme="light"] body::before, html[data-scheme="light"] body::after { display: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}
p { margin: 0; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86em;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1px 6px;
  color: var(--text);
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 10px 2px var(--accent-soft);
}
.muted { color: var(--text-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 22px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: #fff; }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
header.nav.scrolled { border-bottom-color: var(--border); background: var(--nav-bg-scrolled); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 19px;
  letter-spacing: 0.01em; text-transform: uppercase;
}
.brand .mark {
  width: 26px; height: 26px; border-radius: var(--radius); background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a.link {
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--text-dim); transition: color .2s ease;
}
.nav-links a.link:hover, .nav-links a.link.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-right { display: flex; align-items: center; gap: 14px; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 40px; height: 40px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.theme-toggle:hover { color: var(--accent-bright); border-color: var(--accent); background: var(--accent-soft); }
.theme-toggle:active { transform: translateY(1px); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sun-and-moon { width: 21px; height: 21px; }
.sun-and-moon > .sun { fill: currentColor; transform-origin: center; transition: transform .5s cubic-bezier(.5, 1.25, .75, 1.25); }
.sun-and-moon > .sun-beams { stroke: currentColor; stroke-width: 2; stroke-linecap: round; transform-origin: center; transition: transform .5s cubic-bezier(.5, 1.5, .75, 1.25), opacity .5s ease; }
.sun-and-moon > .moon > circle { transition: transform .25s cubic-bezier(0, 0, 0, 1); }
html[data-scheme="dark"] .sun-and-moon > .sun { transform: scale(1.7); transition-timing-function: cubic-bezier(.25, 0, .3, 1); transition-duration: .25s; }
html[data-scheme="dark"] .sun-and-moon > .sun-beams { transform: rotateZ(-25deg); opacity: 0; transition-duration: .15s; }
html[data-scheme="dark"] .sun-and-moon > .moon > circle { transform: translateX(-7px); transition-delay: .25s; transition-duration: .5s; }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border-strong);
  border-radius: var(--radius); width: 42px; height: 42px; color: var(--text);
  cursor: pointer; align-items: center; justify-content: center;
}
.mobile-menu { display: none; border-top: 1px solid var(--border); padding: 12px 24px 24px; }
.mobile-menu.open { display: block; }
.mobile-menu a.link { display: block; padding: 14px 0; font-size: 16px; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 18px; }

/* ---------- Page header (interior pages) ---------- */
.page-head { position: relative; padding: 96px 0 56px; overflow: hidden; }
.page-glow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 760px; max-width: 90vw; height: 360px;
  background: radial-gradient(ellipse at center, rgba(226,59,48,0.16), rgba(226,59,48,0) 70%);
  filter: blur(24px); pointer-events: none; z-index: 0;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; max-width: 18ch; margin: 16px 0 20px; }
.page-head .sub { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-dim); max-width: 60ch; }

/* breadcrumb */
.crumbs { font-size: 13px; color: var(--text-faint); letter-spacing: .02em; margin-bottom: 8px; }
.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--text-faint); padding: 0 8px; }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section-pad { padding: 72px 0; }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin: 12px 0 14px; }
.section-head p { color: var(--text-dim); font-size: 18px; }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose p { color: var(--text-dim); font-size: 17px; margin-bottom: 18px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 44px 0 16px; }
.prose h3 { font-size: 20px; margin: 30px 0 10px; }
.prose a { color: var(--accent-bright); font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.prose ul { margin: 0 0 18px; padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 11px; color: var(--text-dim); }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 7px; height: 7px; background: var(--accent); }

/* ---------- Comparison table ---------- */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15px; }
table.cmp th, table.cmp td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.cmp thead th { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--text); background: var(--panel); }
table.cmp thead th.us { color: var(--accent-bright); }
table.cmp tbody th { font-weight: 600; color: var(--text); width: 26%; }
table.cmp td { color: var(--text-dim); }
table.cmp td.us { color: var(--text); }
table.cmp tr:last-child th, table.cmp tr:last-child td { border-bottom: none; }
.tick { color: var(--accent-bright); font-weight: 700; }
.cross { color: var(--text-faint); }

/* ---------- Callout ---------- */
.callout { border: 1px solid var(--border); background: var(--bg-soft); border-radius: var(--radius); padding: 26px 28px; }
.callout.accent { border-color: var(--accent); background: linear-gradient(180deg, rgba(226,59,48,0.08), var(--bg-soft) 60%); }
.callout h3 { font-size: 19px; margin-bottom: 10px; }
.callout p { color: var(--text-dim); font-size: 15.5px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- Compare hub cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.card { background: var(--bg); padding: 30px 28px; transition: background .25s ease; display: flex; flex-direction: column; }
.card:hover { background: var(--bg-soft); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 15px; flex: 1; margin-bottom: 18px; }
.card .go { color: var(--accent-bright); font-weight: 600; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 26px;
  font-family: var(--display); font-weight: 600; font-size: 17.5px; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: 0 0 auto; width: 20px; height: 20px; position: relative; color: var(--accent-bright); transition: transform .25s ease; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; background: currentColor; }
.faq summary .plus::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq summary .plus::after { left: 9px; top: 0; width: 2px; height: 20px; transition: transform .25s ease; }
.faq details[open] summary .plus::after { transform: rotate(90deg); opacity: 0; }
.faq .answer { padding: 0 26px 24px; color: var(--text-dim); font-size: 16px; line-height: 1.62; }
.faq .answer p { margin-bottom: 12px; }
.faq .answer a { color: var(--accent-bright); font-weight: 600; }
.faq .answer a:hover { text-decoration: underline; }

/* ---------- Closing CTA ---------- */
.closing { text-align: center; padding: 96px 0; }
.closing h2 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; margin-bottom: 20px; }
.closing p { color: var(--text-dim); font-size: 18px; max-width: 48ch; margin: 0 auto 32px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer is a self-contained component — see partials/footer.html */

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .two-col { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section-pad { padding: 56px 0; }
  .hero-ctas .btn, .closing .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .sun-and-moon > .sun, .sun-and-moon > .sun-beams, .sun-and-moon > .moon > circle { transition: none; }
}
