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

:root {
  --navy: #0b1d3a;
  --navy-2: #10284b;
  --navy-3: #18355f;
  --copper: #b87333;
  --copper-soft: #d6a06b;
  --cream: #fbf7f0;
  --paper: #fffdf9;
  --ink: #242938;
  --muted: #667085;
  --line: rgba(17, 24, 39, 0.1);
  --success: #0f766e;
  --success-bg: #dff7f3;
  --warning: #b45309;
  --warning-bg: #fff4dd;
  --danger: #b42318;
  --danger-bg: #fde8e8;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 50px rgba(15, 23, 42, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Outfit', 'Inter', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(184, 115, 51, 0.14), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, #f7f4ed 100%);
}

body.receipt-page {
  background: #fff;
}

a { color: inherit; }

.site-shell { min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 29, 58, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-logo-svg {
  flex-shrink: 0;
  display: block;
}

.brand-wordmark {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.brand-wordmark .accent {
  color: var(--copper-soft);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(184, 115, 51, 0.95), rgba(255, 224, 190, 0.9));
  display: grid;
  place-items: center;
  color: var(--navy);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.brand-copy span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topnav a {
  text-decoration: none;
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 999px;
  transition: 160ms ease;
}

.topnav a:hover,
.topnav a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.topnav .cta {
  background: linear-gradient(135deg, var(--copper), #d99654);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(184, 115, 51, 0.22);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(11,29,58,0.98), rgba(24,53,95,0.96)),
    radial-gradient(circle at 20% 10%, rgba(214, 160, 107, 0.14), transparent 30%);
  color: #fff;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  top: -80px;
  right: -120px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(214, 160, 107, 0.28), transparent 70%);
}

.hero::after {
  bottom: -140px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 72%);
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 24px 62px;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 30px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.84);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd5a8, var(--copper));
}

.hero h1 {
  margin: 20px 0 14px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.8rem, 5.8vw, 5rem);
  line-height: 0.97;
  letter-spacing: -0.045em;
}

.hero h1 span {
  display: block;
  color: #f4d3b2;
}

.hero p {
  max-width: 650px;
  color: rgba(255,255,255,0.74);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: 14px;
  font: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--copper), #d99756);
  color: #fff;
  box-shadow: 0 14px 28px rgba(184, 115, 51, 0.26);
}

.button-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}

.button-soft {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.hero-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.hero-panel .price {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-panel .price small {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
}

.hero-points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-points li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  color: rgba(255,255,255,0.82);
}

.hero-points strong { color: #fff; }

.main {
  max-width: var(--container);
  margin: -28px auto 0;
  padding: 0 24px 80px;
  position: relative;
  z-index: 2;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card-header {
  padding: 24px 24px 0;
}

.card-body {
  padding: 24px;
}

.card h2, .card h3, .section h2 {
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -0.03em;
}

.subtle {
  color: var(--muted);
  line-height: 1.7;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.95rem;
  font-weight: 600;
}

.field small {
  color: var(--muted);
}

.field select,
.field input[type="file"] {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
}

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

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
  font-size: 0.95rem;
}

.consent input {
  margin-top: 3px;
}

.camera-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.preview-stage {
  display: grid;
  gap: 14px;
}

.media-surface {
  position: relative;
  min-height: 260px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(15,23,42,0.05) 25%, transparent 25%) 0 0/20px 20px,
    linear-gradient(-45deg, rgba(15,23,42,0.05) 25%, transparent 25%) 0 0/20px 20px,
    linear-gradient(45deg, transparent 75%, rgba(15,23,42,0.05) 75%) 0 0/20px 20px,
    linear-gradient(-45deg, transparent 75%, rgba(15,23,42,0.05) 75%) 0 0/20px 20px,
    #faf7f0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
}

.media-surface video,
.media-surface img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.media-surface.active video,
.media-surface.active img {
  display: block;
}

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

.media-placeholder strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.status-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
}

.status-banner.show { display: flex; }
.status-banner.success { background: var(--success-bg); color: var(--success); }
.status-banner.warning { background: var(--warning-bg); color: var(--warning); }
.status-banner.error { background: var(--danger-bg); color: var(--danger); }

.result-summary {
  display: grid;
  gap: 16px;
}

.result-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 600;
}

.pill.success { background: var(--success-bg); color: var(--success); }
.pill.warning { background: var(--warning-bg); color: var(--warning); }
.pill.neutral { background: #eef2f6; color: #445065; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-box {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.stat-box span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.stat-box strong {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.checks {
  display: grid;
  gap: 12px;
}

.check-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.check-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-height: 34px;
}

.check-state.pass { background: var(--success-bg); color: var(--success); }
.check-state.warning { background: var(--warning-bg); color: var(--warning); }
.check-state.fail { background: var(--danger-bg); color: var(--danger); }

.side-stack {
  display: grid;
  gap: 24px;
}

.mini-card {
  padding: 22px;
}

.icon-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.icon-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
}

.section {
  margin-top: 44px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 22px;
}

.feature-card strong {
  display: block;
  margin-bottom: 8px;
}

.legal-notice {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(184, 115, 51, 0.09);
  border: 1px solid rgba(184, 115, 51, 0.16);
  color: #6b4b30;
}

.footer {
  padding: 26px 24px 42px;
  color: var(--muted);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 22px;
}

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

.legal-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal-hero {
  background: linear-gradient(160deg, rgba(11,29,58,0.98), rgba(24,53,95,0.96));
  color: #fff;
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow-lg);
}

.legal-card {
  margin-top: 24px;
  padding: 28px;
}

.legal-card h2 {
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.legal-card p {
  color: var(--muted);
  line-height: 1.8;
}

.receipt-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.receipt-frame {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
  padding: 14px;
}

.receipt-brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(11, 29, 58, 0.98), rgba(24, 53, 95, 0.96));
  color: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.receipt-brandbar-copy {
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
}

.receipt-hero-card,
.receipt-head,
.receipt-body {
  padding: 28px;
}

.receipt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.receipt-title {
  margin: 18px 0 12px;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 0.98;
}

.receipt-intro {
  margin-bottom: 20px;
}

.receipt-status-line {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  margin-bottom: 22px;
}

.receipt-status-line.ok {
  background: var(--success-bg);
  color: var(--success);
}

.receipt-status-line.warn {
  background: var(--warning-bg);
  color: var(--warning);
}

.receipt-offer-list {
  display: grid;
  gap: 18px;
}

.receipt-offer {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 160px;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.receipt-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.receipt-offer-copy strong,
.receipt-next-step strong {
  display: block;
  margin-bottom: 4px;
}

.receipt-offer-copy span,
.receipt-offer-copy small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.receipt-offer-preview {
  display: flex;
  justify-content: flex-end;
}

.receipt-offer-preview img {
  width: 88px;
  height: 112px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  background: #fff;
}

.receipt-print-sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(58px, 1fr));
  gap: 12px;
  justify-items: end;
}

.print-photo {
  position: relative;
  width: 72px;
  height: 92px;
  padding: 4px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.print-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.crop {
  position: absolute;
  width: 10px;
  height: 10px;
}

.crop::before,
.crop::after {
  content: "";
  position: absolute;
  background: #1f2937;
  border-radius: 2px;
}

.crop::before { width: 10px; height: 1.5px; }
.crop::after { width: 1.5px; height: 10px; }

.crop.tl { top: -4px; left: -4px; }
.crop.tr { top: -4px; right: -4px; transform: rotate(90deg); }
.crop.bl { bottom: -4px; left: -4px; transform: rotate(-90deg); }
.crop.br { bottom: -4px; right: -4px; transform: rotate(180deg); }

.receipt-actions {
  margin-top: 24px;
}

.receipt-next-step {
  margin-top: 28px;
}

.receipt-side-card {
  background: linear-gradient(180deg, #fffaf2, #fff);
  border: 1px solid rgba(184, 115, 51, 0.12);
  border-radius: 22px;
  padding: 20px;
}

.receipt-side-card h3 {
  margin: 14px 0 8px;
}

.receipt-side-photo {
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(184, 115, 51, 0.12), transparent 38%),
    linear-gradient(180deg, #fff, #f7efe5);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.receipt-side-photo img {
  width: 200px;
  max-width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
  border: 8px solid #fff;
}

.receipt-side-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
}

.receipt-table td,
.receipt-table th {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 14px 0;
  text-align: left;
}

.receipt-total {
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.hidden-canvas { display: none; }

@media (max-width: 980px) {
  .hero-grid,
  .main-grid,
  .section-grid,
  .receipt-hero-grid,
  .receipt-grid,
  .studio-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .topbar-inner,
  .hero-inner,
  .main,
  .footer { padding-left: 16px; padding-right: 16px; }
  .topnav { display: none; }
  .hero h1 { font-size: 2.6rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .check-item { grid-template-columns: 1fr; }
  .media-surface { min-height: 220px; }
  .hero-panel .price { font-size: 2.4rem; }
  .receipt-frame { padding: 10px; border-radius: 22px; }
  .receipt-offer {
    grid-template-columns: 22px 1fr;
  }
  .receipt-offer-preview,
  .receipt-print-sheet {
    justify-content: flex-start;
    margin-left: 38px;
  }
  .receipt-brandbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  body {
    background: #fff;
  }

  body.receipt-page {
    background: #fff;
  }

  .topbar,
  .receipt-side-links,
  .button {
    display: none !important;
  }

  .receipt-wrap {
    max-width: none;
    padding: 0;
  }

  .receipt-frame {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .card {
    box-shadow: none;
    border-color: #ddd;
  }

  .receipt-hero-card,
  .receipt-body {
    break-inside: avoid;
  }
}
