:root {
  color-scheme: light;
  --bg: #f4efe6;
  --bg-deep: #efe6d4;
  --ink: #1a1916;
  --muted: #4e4b45;
  --accent: #e0582d;
  --accent-dark: #9b3115;
  --card: #fdfaf4;
  --line: #d7cbb8;
  --shadow: 0 24px 60px rgba(26, 25, 22, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

.backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.35;
}

.orb-1 {
  background: radial-gradient(circle at 30% 30%, #f6bfa6, transparent 70%);
  top: -200px;
  right: -120px;
}

.orb-2 {
  background: radial-gradient(circle at 70% 70%, #b6c7b0, transparent 70%);
  bottom: -260px;
  left: -180px;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(26, 25, 22, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(26, 25, 22, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 32px;
  padding: 48px clamp(24px, 4vw, 64px) 64px;
}

.hero {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.hero-copy {
  max-width: 640px;
  display: grid;
  gap: 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--accent-dark);
}

h1 {
  font-family: "Fraunces", "Iowan Old Style", serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0 0 12px;
}

.lede {
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

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

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fdfaf4;
  border-color: var(--accent-dark);
  box-shadow: 0 12px 24px rgba(155, 49, 21, 0.18);
}

.btn.ghost {
  background: transparent;
  color: var(--accent-dark);
  border-color: rgba(155, 49, 21, 0.4);
}

.btn:hover {
  transform: translateY(-1px);
}

.hero-app {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.strip {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(253, 250, 244, 0.75);
}

.strip-text {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-row span {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3ede0;
  border: 1px solid rgba(155, 49, 21, 0.15);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section {
  grid-column: 1 / -1;
  background: rgba(253, 250, 244, 0.9);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
}

.section-alt {
  background: rgba(245, 238, 224, 0.95);
}

.section-head h2,
.section h2 {
  margin: 0 0 10px;
  font-family: "Fraunces", "Iowan Old Style", serif;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.section-head {
  display: grid;
  gap: 8px;
}

.section-lede {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

.section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

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

.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px 24px;
  min-width: 260px;
  box-shadow: var(--shadow);
}

.label {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  margin: 0 0 6px;
  color: var(--muted);
}

.status {
  font-size: 1.05rem;
  margin: 0 0 18px;
}

.stat-row {
  display: flex;
  gap: 24px;
}

.diag {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.stat-value {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px dashed var(--accent-dark);
  background: #fff7f1;
  color: var(--accent-dark);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upload input {
  display: none;
}

.upload:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(155, 49, 21, 0.12);
}

.export {
  border: none;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 600;
  background: #1a1916;
  color: #fdfaf4;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.export:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.export:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(26, 25, 22, 0.18);
}

.control-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 16px 40px rgba(26, 25, 22, 0.08);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.toggle input {
  width: 18px;
  height: 18px;
}

.slider {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.highlight-slider {
  overflow: hidden;
  transition: max-height 0.2s ease, opacity 0.2s ease, margin-top 0.2s ease;
  max-height: 200px;
}

.highlight-slider.is-collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

.highlight-body {
  display: grid;
  gap: 14px;
  overflow: hidden;
  transition: max-height 0.2s ease, opacity 0.2s ease, margin-top 0.2s ease;
  max-height: 600px;
  margin-top: 16px;
}

.highlight-body.is-collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

.slider input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.pill {
  justify-self: start;
  background: #1a1916;
  color: #fdfaf4;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.results li {
  border-radius: 14px;
  padding: 10px 12px;
  background: #f3ede0;
  border: 1px solid rgba(155, 49, 21, 0.12);
  font-size: 0.9rem;
  display: grid;
  gap: 6px;
}

.results li strong {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.finding-meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
}

.results li.empty {
  background: #efe6d4;
  border: 1px dashed var(--line);
  color: var(--muted);
}

.viewer {
  position: relative;
  min-height: 60vh;
  display: grid;
  gap: 16px;
}

.viewer-inner {
  background: #fdfaf4;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  min-height: 100%;
  box-shadow: var(--shadow);
}

.compare-bar {
  position: sticky;
  bottom: 16px;
  display: grid;
  gap: 10px;
  background: rgba(253, 250, 244, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 12px 24px rgba(26, 25, 22, 0.12);
}

.compare-bar input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.compare-bar.is-hidden {
  display: none;
}

.page {
  position: relative;
  margin-bottom: 32px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(26, 25, 22, 0.08);
  animation: rise 0.4s ease both;
}

.page canvas {
  display: block;
  width: 100%;
  height: auto;
}

.page .clean-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 calc(100% - var(--compare, 50%)) 0 0);
}

.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #1a1916;
  box-shadow: 0 0 0 1px #fdfaf4;
  left: calc(var(--compare, 50%) - 1px);
  pointer-events: none;
}

.viewer-inner:not(.compare-on) .clean-layer,
.viewer-inner:not(.compare-on) .compare-line {
  display: none;
}

.overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.overlay rect {
  fill: rgba(224, 88, 45, 0.25);
  stroke: rgba(155, 49, 21, 0.8);
  stroke-width: 2;
}

.overlay text.overlay-text {
  fill: #11100e;
  font-size: 12px;
  font-weight: 600;
  paint-order: stroke;
  stroke: #fdfaf4;
  stroke-width: 3px;
}

.viewer-inner.overlay-off .overlay {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.placeholder {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.feature-card {
  background: #fff7f1;
  border: 1px solid rgba(155, 49, 21, 0.16);
  border-radius: 20px;
  padding: 18px 20px;
  display: grid;
  gap: 8px;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.shot-card {
  background: #fff7f1;
  border: 1px solid rgba(155, 49, 21, 0.16);
  border-radius: 20px;
  padding: 18px 20px;
  display: grid;
  gap: 10px;
}

.shot-card h3 {
  margin: 0;
}

.shot-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.shot-placeholder {
  border: 1px dashed var(--line);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(253, 250, 244, 0.7);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
  display: grid;
  gap: 10px;
  box-shadow: 0 16px 40px rgba(26, 25, 22, 0.08);
}

.step-number {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-dark);
}

.split {
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  align-items: start;
}

.split-text {
  display: grid;
  gap: 14px;
}

.split-card {
  background: #f3ede0;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(26, 25, 22, 0.08);
}

.split-card h3 {
  margin: 0 0 12px;
}

.split-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.split-card strong {
  color: var(--ink);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  display: grid;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(26, 25, 22, 0.08);
}

.price-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.price-card.featured {
  border-color: rgba(155, 49, 21, 0.4);
  background: #fff7f1;
}

.price-lede {
  margin: 0;
  color: var(--muted);
}

.price {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.faq-grid {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 16px;
  background: #fffdf8;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.faq details[open] {
  box-shadow: 0 12px 24px rgba(26, 25, 22, 0.08);
}

.faq details p {
  margin-top: 10px;
}

.cta-banner {
  background: #1a1916;
  color: #fdfaf4;
  border-color: rgba(253, 250, 244, 0.2);
}

.cta-banner .eyebrow,
.cta-banner h2,
.cta-banner .section-lede {
  color: #fdfaf4;
}

.cta-banner .btn.ghost {
  border-color: rgba(253, 250, 244, 0.5);
  color: #fdfaf4;
}

.footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 4px 0;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

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

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

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .hero-app {
    grid-template-columns: 1fr;
  }

  .viewer {
    min-height: auto;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .strip {
    flex-direction: column;
    align-items: flex-start;
  }
}
