/* Design direction "Daglicht" (docs/RESEARCH.md §3.5 A).
   Fonts: no runtime font downloads (privacy/CSP). System stacks below approximate
   Fraunces (display serif) + Inter (humanist sans). To self-host the real faces later:
   1. put fraunces-*.woff2 / inter-*.woff2 under /fonts/ (same origin; CSP font-src 'self'),
   2. add @font-face rules (font-display: swap) at the top of this file,
   3. prepend "Fraunces" / "Inter" to --font-display / --font-body. Nothing else changes. */

:root {
  --bg: #F7F3EE;
  --surface: #FFFFFF;
  --ink: #1F1D1B;
  --muted: #5C5651;
  --accent: #C8664A;
  --accent-hover: #A9513A;
  --sage: #8A9A7B;
  --info: #6F8FAF;
  --success: #4E8A5F;
  --warning: #D9A441;
  --error: #B94A48;
  --border: #E4DCD2;
  --focus: #2F4FBF;
  --radius: 12px;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-hover); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.3em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--accent) 0 40%, var(--sage) 40% 70%, var(--info) 70%); display: inline-block; }
.site-nav { display: none; gap: 20px; align-items: center; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.lang-switch { margin-left: auto; display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface); }
.site-nav + .lang-switch { margin-left: 0; }
.lang-switch button { border: 0; background: transparent; padding: 6px 12px; cursor: pointer; font-size: .85rem; letter-spacing: .04em; color: var(--muted); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (min-width: 760px) { .site-nav { display: flex; } }
.site-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 32px 0 48px; color: var(--muted); }
.site-footer p { margin-bottom: .4em; }
.banner { background: var(--warning); color: var(--ink); text-align: center; padding: 10px 16px; font-weight: 500; }
main { padding-top: 32px; min-height: 60vh; }
main:focus { outline: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 12px 20px; border: 1px solid transparent; background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; font-weight: 500; line-height: 1.2; min-height: 44px; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-secondary { border-color: var(--border); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--accent-hover); text-decoration: underline; padding-left: 8px; padding-right: 8px; }
.btn-danger { color: var(--error); border-color: var(--border); }
.btn-danger:hover { border-color: var(--error); }
.btn-sm { padding: 8px 14px; min-height: 36px; font-size: .95rem; }
.btn-lg { padding: 16px 28px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Cards / sections */
.section { padding: 48px 0; border-top: 1px solid var(--border); }
.section:first-child { border-top: 0; padding-top: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--muted); font-weight: 600; }
.notice { border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--border); background: var(--surface); }
.notice-info { border-left: 4px solid var(--info); }
.notice-warn { border-left: 4px solid var(--warning); }
.notice-error { border-left: 4px solid var(--error); }
.notice-success { border-left: 4px solid var(--success); }
.notice p:last-child { margin-bottom: 0; }

/* Hero */
.hero { display: grid; gap: 32px; align-items: center; padding: 12px 0 56px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.05fr .95fr; gap: 48px; } }
.hero-copy h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); letter-spacing: -.02em; margin-bottom: .35em; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.hero .btn-row { margin: 22px 0 14px; }
.hero-visual { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 50px -22px rgba(31,29,27,.45); background: var(--surface); }
.hero-visual img { display: block; width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 5; }
.trust-line { color: var(--ink); font-size: .98rem; font-weight: 500; margin-top: 6px; }
.trust-line::before { content: "✓"; color: var(--success); font-weight: 700; margin-right: 8px; }
.palette-strip { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 0; }
.palette-strip span { flex: 1; height: 18px; }
@media (min-width: 860px) { .palette-strip span { height: 24px; } }

/* Benefits */
.benefit { position: relative; padding-top: 22px; }
.benefit-ic { position: absolute; top: -18px; left: 20px; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; box-shadow: 0 6px 16px -6px rgba(200,102,74,.6); }

/* What you get — report shots */
.get-intro { max-width: 60ch; }
.showcase .shot { padding: 12px; overflow: hidden; }
.showcase .shot img { display: block; width: 100%; border-radius: 10px; }
.showcase figcaption { margin-top: 10px; color: var(--muted); font-size: .95rem; }

/* Photo teaser */
.photos-teaser { display: grid; gap: 28px; align-items: center; }
@media (min-width: 760px) { .photos-teaser { grid-template-columns: 1.2fr 1fr; } }
.face-row { display: flex; gap: -12px; justify-content: flex-start; }
.face-row img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--border); margin-left: -16px; }
.face-row img:first-child { margin-left: 0; }
@media (min-width: 480px) { .face-row img { width: 108px; height: 108px; } }

/* Reviews */
.reviews-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-bottom: 20px; }
.reviews-head h2 { margin: 0; }
.rating { margin: 0; font-size: 1.2rem; display: inline-flex; align-items: center; gap: 8px; }
.stars { letter-spacing: 1px; }
.stars .star { color: var(--border); }
.stars .star.on { color: var(--warning); }
.disclaimer { color: var(--accent-hover); text-transform: none; letter-spacing: 0; font-style: italic; }
.review { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.review p { margin: 0; }
.review footer { margin-top: auto; }

/* Price card */
.price-card { max-width: 460px; margin: 0 auto; text-align: center; padding: 32px 24px; border: 2px solid var(--accent); box-shadow: 0 18px 44px -24px rgba(200,102,74,.5); }
.price-big { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; margin: 4px 0 6px; color: var(--ink); }
.guarantee { display: inline-block; background: rgba(78,138,95,.12); color: var(--success); font-weight: 600; padding: 8px 16px; border-radius: 999px; margin: 10px 0 18px; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 52px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-family: var(--font-display); }

/* Slot illustration cards (landing) */
.slot-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.slot-mini { display: flex; gap: 12px; align-items: flex-start; }
.slot-mini img { width: 64px; height: 64px; flex: none; }
.slot-mini strong { display: block; }

/* Comparison table */
.table-wrap { overflow-x: auto; }
table.compare { border-collapse: collapse; width: 100%; min-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table.compare th, table.compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.compare th { font-weight: 600; }
table.compare td.us { font-weight: 600; color: var(--accent-hover); }

/* Sample report block */
.sample { display: grid; gap: 20px; }
@media (min-width: 760px) { .sample { grid-template-columns: 1fr 1fr; } }
.axis { display: grid; grid-template-columns: 1fr; gap: 4px; margin-bottom: 14px; }
.axis-line { position: relative; height: 4px; background: var(--border); border-radius: 2px; margin: 8px 0; }
.axis-dot { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.axis-labels { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.swatches span { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(0,0,0,.1); }

/* FAQ */
.faq details { border-top: 1px solid var(--border); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 20px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; }
.field .help { color: var(--muted); font-size: .92rem; }
.field .error-text { color: var(--error); font-size: .92rem; }
input[type="email"], input[type="text"], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); min-height: 46px;
}
input:focus, select:focus, textarea:focus { border-color: var(--focus); }
input[aria-invalid="true"] { border-color: var(--error); }
textarea { min-height: 110px; resize: vertical; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--border); }
.check:first-of-type { border-top: 0; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.check span { line-height: 1.45; }
.radio-list { display: grid; gap: 10px; }
.radio { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; }
.radio input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.radio:has(input:checked) { border-color: var(--accent); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.form-actions { display: grid; gap: 10px; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; border: 1px solid var(--border); background: var(--surface); }
.chip-ok { color: var(--success); border-color: var(--success); }
.chip-warn { color: #8a6412; border-color: var(--warning); }
.chip-error { color: var(--error); border-color: var(--error); }
.chip-info { color: var(--info); border-color: var(--info); }
.chip-muted { color: var(--muted); }

/* Order page */
.order-head { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; margin-bottom: 24px; }
.order-head h1 { margin: 0; font-size: 1.6rem; }
.checklist ul { list-style: none; padding: 0; margin: 0 0 16px; }
.checklist li { padding: 8px 0 8px 32px; position: relative; border-bottom: 1px solid var(--border); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 14px; height: 8px; border-left: 3px solid var(--success); border-bottom: 3px solid var(--success); transform: rotate(-45deg); }

.progress-bar { position: sticky; top: 64px; z-index: 10; background: var(--bg); padding: 10px 0 8px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.progress-bar .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
@media (max-width: 639px) { .progress-bar .row .small { display: none; } }
.progress-track { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.progress-fill { height: 100%; background: var(--accent); width: 0; transition: width .3s ease; }

.slot-group { margin: 32px 0; }
.slot-group h2 { display: flex; gap: 12px; align-items: baseline; }
.slot-cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .slot-cards { grid-template-columns: repeat(2, 1fr); } }
.slot-card { display: grid; gap: 12px; grid-template-columns: 72px 1fr; align-items: start; }
.slot-card .illus { width: 72px; height: 72px; }
.slot-card .slot-body { min-width: 0; }
.slot-card h3 { margin-bottom: 2px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.slot-card .why { color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.slot-card details { margin: 6px 0 10px; }
.slot-card summary { cursor: pointer; color: var(--accent-hover); font-size: .95rem; }
.slot-card .note { font-size: .92rem; color: var(--muted); }
.slot-card .examples { font-size: .88rem; margin: 6px 0; }
.slot-card .examples .good { color: var(--success); }
.slot-card .examples .bad { color: var(--error); }
.slot-card .thumb { display: block; width: 100%; max-width: 260px; border-radius: 8px; border: 1px solid var(--border); background: #7f7f7f; }
.slot-card .status-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.slot-card .warnings { margin: 6px 0; padding-left: 1.2em; font-size: .95rem; }
.slot-card .file-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.slot-card .file-buttons input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.slot-card .file-buttons label { cursor: pointer; }
.slot-card .file-buttons label:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Processing / preview panel inside a slot */
.prep { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; background: var(--bg); margin-top: 8px; grid-column: 1 / -1; }
.prep .preview-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.prep .preview-toggle button { border: 0; background: var(--surface); padding: 6px 14px; cursor: pointer; font-size: .9rem; }
.prep .preview-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.prep img.preview { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #7f7f7f; border-radius: 8px; }
.prep .hints { margin: 8px 0; }
.prep .hints .notice { margin-bottom: 8px; }
.tap-target { position: relative; cursor: crosshair; }
.tap-target::after { content: attr(data-hint); position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(31,29,27,.85); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: .85rem; pointer-events: none; }

/* Rect tool (crop / grey-out) */
.recttool { position: relative; user-select: none; -webkit-user-select: none; touch-action: none; outline-offset: 4px; }
.recttool canvas { display: block; width: 100%; height: auto; border-radius: 8px; background: #7f7f7f; }
.recttool .sr-help { position: absolute; left: -9999px; }

/* Questionnaire / price */
.two-col { display: grid; gap: 24px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1.4fr 1fr; align-items: start; } .sticky-side { position: sticky; top: 130px; } }
.price-lines { list-style: none; padding: 0; margin: 0 0 12px; }
.price-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.price-lines li.total { font-weight: 700; border-bottom: 0; font-size: 1.1rem; }
.pay-box .btn-primary { font-size: 1.15rem; }
.inline-form { display: grid; gap: 10px; margin-top: 10px; }
.danger-zone { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 16px 0; }
.timeline li { position: relative; padding: 0 0 18px 34px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 8px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--border); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
.timeline li::after { content: ""; position: absolute; left: 13px; top: 20px; bottom: -2px; width: 2px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--success); box-shadow: 0 0 0 1px var(--success); }
.timeline li.current { color: var(--ink); font-weight: 600; }
.timeline li.current::before { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.timeline .when { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }

/* Dialog */
dialog.confirm { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; max-width: 420px; width: calc(100% - 32px); background: var(--surface); color: var(--ink); }
dialog.confirm::backdrop { background: rgba(31,29,27,.4); }
dialog.confirm .btn-row { justify-content: flex-end; margin-top: 14px; }

.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Start screen + checkout step */
.start-screen .form { max-width: 560px; }
.checkout .field-email input { font-size: 1.1rem; min-height: 52px; }
.checkout .consents { margin: 12px 0; }
.checkout .consents .check { padding: 10px 0; font-size: .92rem; }
.checkout details.precontract { margin: 8px 0 4px; }
.checkout details.precontract summary { cursor: pointer; color: var(--accent-hover); font-size: .95rem; }
.checkout details.precontract ul { margin: 8px 0 0; color: var(--muted); }
.pay-box .btn-primary, .checkout .btn-primary { font-size: 1.15rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .spinner { border-top-color: var(--accent); animation: none; opacity: .7; }
}
