:root {
  --teal: #184f4a;
  --teal-deep: #103d39;
  --teal-soft: #dfeae6;
  --gold: #b68a37;
  --gold-soft: #e6d2a7;
  --paper: #fbf8f1;
  --paper-deep: #f2ece0;
  --ink: #233331;
  --muted: #687572;
  --coral: #b96a56;
  --line: #d9d2c4;
  --white: #fffdf8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}
body {
  min-height: 100%;
  height: auto;
  margin: 0;
  overflow-x: hidden;
  overflow-y: visible;
  color: var(--ink);
  background:
    linear-gradient(rgba(251,248,241,.96), rgba(251,248,241,.96)),
    url('/assets/soulhome-labyrinth.png') center 15% / 640px auto fixed;
  font-family: var(--sans);
  line-height: 1.6;
}


@media (max-width: 767px) {
  html {
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body {
    overscroll-behavior-y: auto;
  }
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.page-shell { width: min(1180px, 100%); margin: 0 auto; background: var(--paper); box-shadow: 0 0 60px rgba(30,55,51,.1); }
.brand-bar {
  min-height: 76px;
  padding: 12px clamp(20px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(182,138,55,.35);
  background: rgba(251,248,241,.96);
}
.brand, .report-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img, .report-brand img { width: 50px; height: 50px; object-fit: contain; background: var(--teal-deep); border-radius: 50%; }
.brand span, .report-brand span { display: grid; line-height: 1.08; }
.brand strong, .report-brand strong { font: 700 20px/1 var(--serif); color: var(--teal-deep); }
.brand small, .report-brand small { margin-top: 5px; text-transform: uppercase; letter-spacing: .12em; font-size: 9px; color: var(--gold); }
.brand-note { color: var(--gold); font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }

.intro {
  min-height: 540px;
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vw, 100px) clamp(24px, 7vw, 86px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(13,55,51,.96) 0%, rgba(13,55,51,.88) 48%, rgba(13,55,51,.2) 76%, rgba(13,55,51,.08) 100%),
    url('/assets/soulhome-mirror.png') 78% 52% / cover no-repeat;
}
.intro-copy { width: min(650px, 100%); }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.intro h1 { max-width: 620px; margin: 0; font: 500 clamp(48px, 7vw, 86px)/.98 var(--serif); letter-spacing: 0; }
.lead { max-width: 620px; margin: 26px 0 0; color: rgba(255,253,248,.92); font-size: clamp(18px, 2vw, 23px); line-height: 1.55; }
.what-you-get { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.what-you-get span { padding: 9px 13px; border: 1px solid rgba(230,210,167,.45); background: rgba(255,255,255,.08); font-size: 13px; }

.lead-form { width: min(900px, calc(100% - 40px)); margin: -32px auto 72px; padding: clamp(28px, 5vw, 52px); position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border: 1px solid var(--gold-soft); background: var(--white); box-shadow: 0 24px 50px rgba(31,54,50,.12); }
.field-wide { grid-column: 1 / -1; }
.form-heading h2 { margin: 0; font: 500 clamp(30px, 4vw, 48px)/1.08 var(--serif); color: var(--teal-deep); }
.form-heading > p:last-child { margin: 12px 0 8px; color: var(--muted); }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 13px; font-weight: 750; color: var(--teal-deep); }
.field input { width: 100%; min-height: 52px; padding: 12px 14px; color: var(--ink); border: 1px solid #c8c2b6; border-radius: 0; background: #fff; outline: none; }
.field input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(24,79,74,.12); }
.date-entry { display: grid; grid-template-columns: minmax(0, 1fr) 56px; gap: 8px; }
.date-entry input { min-width: 0; }
.calendar-button { min-height: 52px; position: relative; display: grid; place-items: center; border: 1px solid #c8c2b6; background: #fff; }
.calendar-button:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(24,79,74,.12); }
.calendar-symbol { width: 23px; height: 21px; position: relative; display: block; border: 2px solid var(--teal); border-radius: 2px; pointer-events: none; }
.calendar-symbol::before { content: ""; position: absolute; left: -2px; right: -2px; top: 4px; border-top: 2px solid var(--teal); }
.calendar-symbol::after { content: ""; width: 2px; height: 6px; position: absolute; top: -5px; left: 4px; background: var(--teal); box-shadow: 9px 0 0 var(--teal); }
.date-entry .calendar-picker { width: 100%; height: 100%; min-height: 0; position: absolute; inset: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.calendar-picker::-webkit-calendar-picker-indicator { width: 100%; height: 100%; position: absolute; inset: 0; margin: 0; cursor: pointer; }
.gender-field { margin: 0; padding: 0; border: 0; }
.field-hint { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.segment { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segment input { position: absolute; opacity: 0; }
.segment span { min-height: 52px; display: grid; place-items: center; border: 1px solid #c8c2b6; cursor: pointer; }
.segment input:checked + span { color: white; border-color: var(--teal); background: var(--teal); }
.check { display: flex; align-items: flex-start; gap: 10px; color: #4f5e5b; font-size: 13px; }
.check input { margin-top: 5px; accent-color: var(--teal); }
.check.optional { color: #74807d; }
.submit-row { margin-top: 8px; display: flex; align-items: center; gap: 18px; }
.primary, .cta, .download-button { border: 0; text-decoration: none; cursor: pointer; }
.primary { min-height: 56px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; color: #fff; background: var(--teal); font-weight: 750; }
.primary:hover { background: var(--teal-deep); }
.primary:disabled { opacity: .65; cursor: wait; }
.submit-row p { margin: 0; color: var(--muted); font-size: 13px; }
.form-error { margin: 0; padding: 14px; color: #812e22; border-left: 3px solid var(--coral); background: #f8e8e2; }

.result { padding-bottom: max(72px, env(safe-area-inset-bottom)); }
.result-heading { padding: clamp(34px, 6vw, 74px) clamp(24px, 7vw, 82px); display: grid; grid-template-columns: 1fr auto; gap: 28px; border-top: 1px solid var(--gold-soft); border-bottom: 1px solid var(--line); background: var(--white); }
.report-brand { grid-column: 1 / -1; }
.result-title-block h2 { max-width: 780px; margin: 0; color: var(--teal-deep); font: 500 clamp(38px, 6vw, 68px)/1.04 var(--serif); }
.result-title-block > p:last-child { max-width: 780px; margin: 20px 0 0; font-size: 18px; color: #586663; }
.download-button { align-self: end; min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; gap: 10px; color: var(--teal); border: 1px solid var(--teal); background: transparent; font-weight: 700; }
.download-button:hover { color: #fff; background: var(--teal); }

.reading-section { padding: clamp(52px, 8vw, 92px) clamp(24px, 7vw, 82px); border-bottom: 1px solid var(--line); }
.reading-section:nth-of-type(even) { background: #f6f1e7; }
.section-copy { display: grid; grid-template-columns: 54px minmax(0, 760px); gap: 20px; align-items: start; margin-bottom: 38px; }
.section-number { margin: 5px 0 0; color: var(--gold); font: 500 25px/1 var(--serif); }
.section-copy h3 { margin: 0; color: var(--teal-deep); font: 500 clamp(32px, 4.5vw, 50px)/1.08 var(--serif); }
.section-copy div > p { max-width: 720px; margin: 14px 0 0; color: var(--muted); font-size: 17px; }

.synthesis-card { margin: 0 0 26px 74px; padding: clamp(24px, 4vw, 38px); border-left: 3px solid var(--gold); background: var(--teal-soft); }
.synthesis-label { margin: 0 0 10px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.synthesis-text { margin: 0; font: 500 clamp(20px, 2.6vw, 27px)/1.55 var(--serif); }

.archetype-line, .deeper-grid { margin-left: 74px; display: grid; gap: 16px; }
.arc-card, .deeper-card { position: relative; padding: clamp(24px, 4vw, 38px) clamp(22px, 4vw, 40px) clamp(24px, 4vw, 38px) clamp(82px, 9vw, 112px); border: 1px solid var(--line); background: var(--white); }
.arc-index { position: absolute; top: 30px; left: 28px; width: 48px; height: 48px; display: grid; place-items: center; color: var(--white); background: var(--teal); font: 700 17px/1 var(--serif); }
.arc-role, .figure-kicker { margin: 0 0 6px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.arc-card h4, .deeper-card h4, .figure-header h4 { margin: 0; color: var(--teal-deep); font: 500 clamp(25px, 3vw, 34px)/1.12 var(--serif); }
.arc-name { margin: 7px 0 0; color: var(--gold); font-weight: 750; }
.position-context { margin: 15px 0 0; color: var(--muted); font-size: 15px; }
.arc-meaning { margin: 16px 0 0; font-size: 18px; }
.arc-essence { margin: 13px 0 0; color: #42514e; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.chips span { padding: 5px 10px; color: var(--teal); border: 1px solid #b7cdc7; background: #f6fbf8; font-size: 12px; font-weight: 700; }
.reading-poles { margin-top: 22px; display: grid; gap: 8px; }
.pole { padding: 16px 18px; border-left: 3px solid; background: #f7f5ef; }
.pole-light { border-color: #6f8b62; }
.pole-shadow { border-color: var(--coral); }
.pole h5 { margin: 0 0 5px; color: var(--teal-deep); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.pole p { margin: 0; color: #4f5d5a; }
.context-note { margin: 20px 0 0; padding-top: 16px; color: var(--teal); border-top: 1px solid var(--line); font-style: italic; }

.figure-reading { margin-left: 74px; border: 1px solid var(--gold-soft); background: var(--white); }
.figure-header { padding: clamp(24px, 4vw, 40px); background: linear-gradient(135deg, #edf3ef, #f8f3e8); }
.figure-header > div:first-child > p:last-child { max-width: 700px; color: var(--muted); }
.figure-flow { display: flex; align-items: stretch; gap: 10px; margin-top: 26px; }
.figure-node { flex: 1; min-width: 0; padding: 16px; border: 1px solid var(--gold-soft); background: var(--white); }
.figure-node span { display: block; color: var(--gold); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.figure-node strong { display: block; margin-top: 6px; font-family: var(--serif); font-size: 18px; }
.figure-arrow { align-self: center; color: var(--gold); font-size: 22px; }
.figure-copy { padding: clamp(24px, 4vw, 40px); }
.figure-copy h5 { margin: 0 0 13px; color: var(--teal-deep); font: 500 27px/1.2 var(--serif); }
.figure-copy p { margin: 0; font-size: 17px; }
.figure-question { margin-top: 22px !important; padding: 18px; color: var(--teal-deep); border-left: 3px solid var(--gold); background: var(--paper-deep); font-weight: 700; }

.locked-section { padding: clamp(60px, 9vw, 106px) clamp(24px, 7vw, 82px); color: var(--white); background: var(--teal-deep); }
.locked-copy { max-width: 850px; }
.locked-copy h3 { margin: 0; font: 500 clamp(38px, 5.4vw, 65px)/1.04 var(--serif); }
.locked-copy > p:last-child { max-width: 760px; margin: 22px 0 0; color: rgba(255,253,248,.82); font-size: 18px; }
.locked-visual { min-height: 360px; margin: 42px 0; display: flex; align-items: flex-end; padding: 34px; background: linear-gradient(0deg, rgba(13,55,51,.75), rgba(13,55,51,.05)), url('/assets/soulhome-labyrinth.png') center / cover no-repeat; border: 1px solid rgba(230,210,167,.35); }
.locked-visual span { max-width: 520px; font: 500 clamp(26px, 4vw, 42px)/1.1 var(--serif); }
.locked-outcomes { max-width: 850px; }
.locked-outcomes h4, .offer-next-step h4 { margin: 0; font: 500 clamp(25px, 3vw, 36px)/1.2 var(--serif); }
.locked-list { margin: 22px 0 0; padding: 0; list-style: none; }
.locked-list li { position: relative; padding: 15px 0 15px 34px; border-top: 1px solid rgba(230,210,167,.24); font-size: 17px; }
.locked-list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.offer-next-step { margin-top: 48px; padding-top: 36px; border-top: 1px solid rgba(230,210,167,.42); }
.offer-label { margin: 0 0 8px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta { min-height: 56px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--teal-deep); background: var(--gold-soft); font-weight: 800; }
.cta:hover { background: #f1dfb7; }
.cta-secondary { color: var(--white); border: 1px solid rgba(255,255,255,.55); background: transparent; }
.cta-secondary:hover { background: rgba(255,255,255,.08); }

footer { padding: 24px clamp(20px, 4vw, 52px); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
footer p { margin: 0; }
footer a { color: var(--teal); font-weight: 700; }
.mobile-scroll-end { display: none; }

@media (max-width: 760px) {
  html {
    width: 100%;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    background-attachment: scroll !important;
  }

  body {
    width: 100%;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
  }

  .page-shell {
    width: 100%;
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: none !important;
    overflow: visible !important;
    touch-action: pan-y;
  }

  .result {
    position: relative;
    height: auto !important;
    min-height: 0;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
    scroll-margin-top: 12px;
    touch-action: pan-y;
  }

  .result-heading,
  .result-title-block,
  .report-brand,
  .reading-section,
  .section-copy,
  .synthesis-card,
  .archetype-line,
  .deeper-grid,
  .arc-card,
  .deeper-card,
  .arc-role,
  .arc-name,
  .position-context,
  .arc-meaning,
  .arc-essence,
  .chips,
  .reading-poles,
  .pole,
  .context-note,
  .figure-reading,
  .figure-header,
  .figure-flow,
  .figure-node,
  .figure-copy,
  .figure-question,
  .locked-section,
  .locked-copy,
  .locked-visual,
  .locked-outcomes,
  .locked-list,
  .offer-next-step,
  footer {
    touch-action: pan-y !important;
    overscroll-behavior-y: auto;
  }

  input, select, button, a, label { touch-action: manipulation; }
  .calendar-picker { touch-action: auto; }

  .mobile-scroll-end {
    display: block;
    width: 100%;
    height: calc(144px + env(safe-area-inset-bottom));
    flex: 0 0 auto;
    pointer-events: none;
  }

  .brand-note { display: none; }
  .intro { min-height: 520px; align-items: flex-end; padding-bottom: 56px; background-position: 64% center; }
  .intro h1 { font-size: 48px; }
  .lead-form { width: calc(100% - 24px); grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .submit-row, .cta-group { align-items: stretch; flex-direction: column; }
  .primary, .cta { width: 100%; }
  .result-heading { grid-template-columns: 1fr; }
  .download-button { justify-self: start; }
  .section-copy { grid-template-columns: 1fr; gap: 8px; }
  .section-number { margin: 0; }
  .synthesis-card, .archetype-line, .deeper-grid, .figure-reading { margin-left: 0; }
  .arc-card, .deeper-card { padding: 88px 20px 24px; }
  .arc-index { left: 20px; top: 24px; }
  .figure-flow { flex-direction: column; }
  .figure-arrow { transform: rotate(90deg); }
  .locked-visual { min-height: 280px; }
  footer { flex-direction: column; }
}

@page { size: A4; margin: 14mm 14mm 16mm; }
@media print {
  :root { --paper: #fff; --white: #fff; }
  html, body { height: auto !important; max-height: none !important; overflow: visible !important; }
  body { background: #fff; font-size: 10.5pt; }
  .page-shell { width: 100%; height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; box-shadow: none; }
  .brand-bar, .tool, .download-button, footer { display: none !important; }
  .mobile-scroll-end { display: none !important; }
  .result { display: block !important; }
  .result-heading, .reading-section, .locked-section { padding: 11mm 0; }
  .result-heading { display: block; }
  .report-brand { margin-bottom: 9mm; }
  .report-brand img { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .result-title-block h2 { font-size: 30pt; }
  .section-copy h3 { font-size: 23pt; }
  .section-copy { grid-template-columns: 12mm 1fr; margin-bottom: 8mm; }
  .synthesis-card, .archetype-line, .deeper-grid, .figure-reading { margin-left: 0; }
  .synthesis-card { padding: 7mm; background: #eef3ef; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .arc-card, .deeper-card, .figure-reading, .pole, .locked-list li { break-inside: avoid; page-break-inside: avoid; }
  .arc-card, .deeper-card { padding: 24mm 7mm 7mm; }
  .arc-index { top: 7mm; left: 7mm; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .figure-flow { gap: 3mm; }
  .figure-node { padding: 4mm; }
  .locked-section { color: var(--ink); background: #fff; }
  .locked-copy h3, .locked-outcomes h4, .offer-next-step h4 { color: var(--teal-deep); }
  .locked-copy > p:last-child { color: var(--muted); }
  .locked-visual { min-height: 70mm; color: #fff; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .locked-list li, .offer-next-step { border-color: var(--line); }
  .cta-group { display: none; }
}
