/* ==========================================================================
   Lumen Official Website — Editorial Paper & Darkroom Studio
   Palette grounded directly in AtelierColors (Theme.kt)
   ========================================================================== */

:root {
  --paper: #ffffff;
  --linen: #f2ece4;
  --linen-deep: #e8dfd4;
  --divider: #e3dace;
  --ink: #181615;
  --muted: #5d5650;
  --subtle: #787069;

  --coral: #e85d3f;
  --coral-hover: #d14c2f;
  --coral-soft: #ffede8;
  --teal: #1e7e74;
  --teal-soft: #e3f4f2;
  --amber: #e5952e;
  --amber-soft: #fff3e0;

  --darkroom: #14161b;
  --darkroom-surface: #1c1f27;
  --darkroom-raised: #242833;
  --darkroom-border: #2e3340;
  --darkroom-ink: #f5f3ef;
  --darkroom-muted: #a4a8b5;
  --darkroom-coral: #ff6e4e;
  --darkroom-teal: #4ecdc4;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1180px;
  --narrow-width: 780px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  border-radius: var(--radius-sm);
}

.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
}

.container-narrow {
  width: min(var(--narrow-width), calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Site Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(24, 22, 21, 0.08);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.025em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.16s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--divider);
  background: var(--paper);
  padding: 16px 24px 22px;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.btn-sm {
  padding: 9px 17px;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--coral);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--coral-hover);
}

.btn-dark {
  background: var(--ink);
  color: #ffffff;
}

.btn-dark:hover {
  background: #2f2c2a;
}

.btn-outline {
  background: transparent;
  border-color: var(--divider);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--linen);
}

.btn-darkroom-outline {
  background: transparent;
  border-color: var(--darkroom-border);
  color: var(--darkroom-ink);
}

.btn-darkroom-outline:hover {
  border-color: var(--darkroom-muted);
  background: var(--darkroom-surface);
}

.btn-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ==========================================================================
   Hero — Editorial Split Showcase
   ========================================================================== */

.hero-band {
  background: var(--paper);
  padding-block: 56px 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 4.7vw, 4.1rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 15ch;
}

.hero-lead {
  margin: 24px 0 0;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.hero-note {
  margin: 14px 0 0;
  font-size: 0.86rem;
  color: var(--subtle);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
}

.fact-item dt {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--subtle);
  margin-bottom: 4px;
}

.fact-item dd {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

/* Hero Device Stage */
.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.stage-backdrop {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 26px 28px 24px;
  border-radius: 28px;
  background: var(--linen);
  border: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-chassis {
  position: relative;
  z-index: 2;
  width: min(290px, 100%);
  padding: 10px;
  border-radius: 34px;
  background: #14161b;
  box-shadow: 0 24px 48px -20px rgba(24, 22, 21, 0.28), 0 0 0 1px rgba(24, 22, 21, 0.14);
}

.phone-screen-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #0e0f12;
  aspect-ratio: 716 / 1418;
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.22s ease;
}

.phone-screen-img.is-swapping {
  opacity: 0.25;
}

.hero-switcher {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 18px;
  width: 100%;
}

.switch-btn {
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.switch-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}

.switch-btn[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--divider);
}

/* ==========================================================================
   Section Headers (Clean, Left-Aligned, No All-Caps Eyebrows)
   ========================================================================== */

.band-linen {
  background: var(--linen);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding-block: 84px;
}

.band-paper {
  background: var(--paper);
  padding-block: 88px;
}

.band-darkroom {
  background: var(--darkroom);
  color: var(--darkroom-ink);
  padding-block: 92px;
}

.section-intro {
  max-width: 62ch;
  margin-bottom: 44px;
}

.section-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.section-desc {
  margin: 14px 0 0;
  font-size: 1.03rem;
  color: var(--muted);
  line-height: 1.65;
}

.band-darkroom .section-desc {
  color: var(--darkroom-muted);
}

/* ==========================================================================
   Section 2: Four Creative Modes — Contact Sheet Grid
   ========================================================================== */

.modes-sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mode-cell {
  background: var(--paper);
  padding: 36px 36px 38px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mode-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mode-glyph {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--linen);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mode-capacity {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.mode-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.mode-body {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 48ch;
}

.mode-highlights {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--ink);
}

.mode-highlights li {
  position: relative;
  padding-left: 14px;
}

.mode-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

/* ==========================================================================
   Section 3: Centerpiece — Interactive Darkroom Film Lab & Screen Gallery
   ========================================================================== */

.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: start;
}

.lab-preview-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d0e12;
  border: 1px solid var(--darkroom-border);
}

.lab-canvas-wrap {
  position: relative;
  aspect-ratio: 490 / 470;
  overflow: hidden;
  background: #171416;
}

.lab-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: filter;
}

.lab-photo.is-graded {
  filter: url(#lumen-color-matrix);
}

.lab-overlay-bar {
  position: absolute;
  inset-inline: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.lab-readout {
  background: rgba(14, 15, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--darkroom-ink);
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
}

.compare-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(14, 15, 18, 0.84);
  color: var(--darkroom-ink);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.compare-btn:hover,
.compare-btn.is-active {
  background: var(--darkroom-coral);
  border-color: var(--darkroom-coral);
  color: #ffffff;
}

/* Lab Controls Panel */
.lab-panel {
  background: var(--darkroom-surface);
  border: 1px solid var(--darkroom-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.lab-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.lab-panel-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--darkroom-ink);
}

.lab-panel-meta {
  font-size: 0.85rem;
  color: var(--darkroom-muted);
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.preset-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid var(--darkroom-border);
  background: var(--darkroom);
  color: var(--darkroom-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.preset-btn:hover {
  border-color: #495064;
  color: var(--darkroom-ink);
}

.preset-btn[aria-pressed="true"] {
  border-color: var(--darkroom-coral);
  background: rgba(255, 110, 78, 0.12);
  color: var(--darkroom-ink);
}

.preset-swatch {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.intensity-block {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--darkroom-border);
}

.intensity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.intensity-label {
  font-weight: 600;
  color: var(--darkroom-ink);
}

.intensity-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--darkroom-coral);
}

.intensity-slider {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--darkroom-raised);
  outline: none;
  cursor: pointer;
}

.intensity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--darkroom-coral);
  border: 2px solid #ffffff;
  cursor: pointer;
}

.intensity-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--darkroom-coral);
  border: 2px solid #ffffff;
  cursor: pointer;
}

.lab-controls-note {
  margin: 18px 0 0;
  font-size: 0.86rem;
  color: var(--darkroom-muted);
  line-height: 1.55;
}

/* App Screen Strip inside Darkroom */
.gallery-subhead {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--darkroom-border);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.gallery-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.gallery-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--darkroom-muted);
}

.screen-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.screen-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: var(--darkroom-surface);
  border: 1px solid var(--darkroom-border);
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.screen-card:hover {
  border-color: var(--darkroom-coral);
  background: var(--darkroom-raised);
}

.screen-thumb-wrap {
  border-radius: 12px;
  overflow: hidden;
  background: #0d0e12;
  aspect-ratio: 716 / 1418;
}

.screen-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-meta {
  padding-inline: 2px;
}

.screen-name {
  display: block;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--darkroom-ink);
}

.screen-caption {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--darkroom-muted);
}

/* ==========================================================================
   Section 4: Editorial Craft & Technical Spec Sheet
   ========================================================================== */

.specs-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: start;
}

.craft-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 28px;
}

.craft-item h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
}

.craft-item p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--muted);
  max-width: 50ch;
}

.spec-ledger {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--divider);
  margin: 0;
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.42fr) minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--divider);
  align-items: baseline;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row dt {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--subtle);
}

.spec-row dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

/* ==========================================================================
   Section 5: Privacy by Design (Google Play Transparency)
   ========================================================================== */

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.privacy-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.pillar {
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 20px;
}

.pillar h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.pillar p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--muted);
  line-height: 1.55;
}

.manifest-card {
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.manifest-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.manifest-lead {
  margin: 0 0 22px;
  font-size: 0.94rem;
  color: var(--muted);
}

.perm-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.perm-item {
  padding-top: 16px;
  border-top: 1px solid var(--divider);
}

.perm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.perm-name {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--ink);
}

.perm-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--teal-soft);
  color: var(--teal);
}

.perm-badge-none {
  background: var(--linen);
  color: var(--muted);
}

.perm-item p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--muted);
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ==========================================================================
   Section 6: Frequently Asked Questions
   ========================================================================== */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 48px;
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--divider);
}

.faq-item {
  border-bottom: 1px solid var(--divider);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--subtle);
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "\2212";
  color: var(--coral);
}

.faq-answer {
  padding: 0 0 22px;
  max-width: 64ch;
  color: var(--muted);
  font-size: 0.96rem;
}

.faq-answer p {
  margin: 0;
}

/* ==========================================================================
   Closing CTA & Footer
   ========================================================================== */

.closing-band {
  background: var(--linen);
  border-top: 1px solid var(--divider);
  padding-block: 68px;
}

.closing-card {
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.closing-left {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 560px;
}

.closing-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid rgba(24, 22, 21, 0.08);
  flex-shrink: 0;
}

.closing-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.closing-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--divider);
  padding-block: 36px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--ink);
}

.pkg-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84em;
  background: var(--linen);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--ink);
}

/* ==========================================================================
   Accessible Screenshot Lightbox Modal
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 15, 18, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--darkroom-ink);
}

.lightbox-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lightbox-caption-title {
  font-weight: 600;
  font-size: 1rem;
}

.lightbox-close,
.lightbox-nav {
  background: var(--darkroom-surface);
  border: 1px solid var(--darkroom-border);
  color: var(--darkroom-ink);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  border-color: var(--darkroom-coral);
}

.lightbox-img {
  max-height: 74vh;
  width: auto;
  border-radius: 22px;
  border: 6px solid #1e212a;
}

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--darkroom-muted);
}

/* ==========================================================================
   Legal Document Pages (Privacy Policy & Terms of Use)
   ========================================================================== */

.legal-header {
  background: var(--linen);
  border-bottom: 1px solid var(--divider);
  padding-block: 52px 44px;
}

.legal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.legal-meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.legal-fact {
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
}

.legal-body {
  padding-block: 52px 84px;
}

.legal-section {
  padding-block: 28px;
  border-bottom: 1px solid var(--divider);
}

.legal-section:first-child {
  padding-top: 0;
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.legal-section p {
  margin: 0 0 12px;
  color: var(--muted);
  max-width: 68ch;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 10px 0 12px;
  padding-left: 20px;
  max-width: 68ch;
  color: var(--muted);
}

.legal-section li {
  margin-bottom: 9px;
}

.legal-section strong {
  color: var(--ink);
}

.legal-section a {
  color: var(--coral);
  text-underline-offset: 3px;
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.notfound-wrap {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
  padding-block: 64px;
}

.notfound-card {
  max-width: 520px;
  text-align: left;
}

.notfound-code {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 650;
  line-height: 1;
  color: var(--coral);
  margin: 0 0 12px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 980px) {
  .hero-grid,
  .lab-grid,
  .specs-layout,
  .privacy-grid,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    max-width: 18ch;
  }

  .screen-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container,
  .container-narrow {
    width: min(var(--max-width), calc(100% - 32px));
  }

  .site-nav,
  .header-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-band {
    padding-block: 36px 56px;
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }

  .modes-sheet,
  .privacy-pillars {
    grid-template-columns: 1fr;
  }

  .mode-cell {
    padding: 26px 24px 28px;
  }

  .preset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .band-linen,
  .band-paper,
  .band-darkroom {
    padding-block: 60px;
  }

  .closing-card {
    padding: 28px 24px;
  }

  .closing-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .legal-highlights {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
