/* CleanQuest — site styles (Direction D: specimen journey) */
:root {
  --bg: #EEF2EE;
  --ink: #0E1A15;
  --body: #33413A;
  --muted: #4C5A53;
  --line: #DCE3DE;
  --card: #FFFFFF;
  --ribbon: #9BD54A;
  --photo: #C9D6CD;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1280px;
  --gutter: clamp(16px, 3vw, 32px);
  --radius: 20px;
  --shadow: 0 24px 50px -30px rgba(14, 26, 21, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: #2B3B33; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.page { position: relative; overflow: hidden; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.layer { position: relative; z-index: 1; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-weight: 400; }
.serif { font-family: var(--serif); letter-spacing: -0.02em; }
.display {
  font-family: var(--serif);
  font-size: clamp(52px, 7.6vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.h3 { font-family: var(--serif); font-size: clamp(34px, 3.4vw, 52px); line-height: 1; letter-spacing: -0.02em; }
em { font-style: italic; }
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.mono { font-family: var(--mono); }
.lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--body); margin: 0; max-width: 560px; }
.fine { font-size: 13px; color: var(--muted); margin: 0; }
p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 24px; border-radius: 12px;
  font: 600 16px/1.2 var(--sans); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #1F2E27; }
.btn-light { background: var(--card); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn .dot {
  width: 22px; height: 22px; border-radius: 50%; background: var(--ribbon); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em;
  text-decoration: none; border-bottom: 2px solid var(--ribbon);
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; padding: 14px var(--gutter) 0; }
.nav {
  max-width: var(--wrap); margin: 0 auto; background: var(--card); border-radius: 14px;
  padding: 8px 8px 8px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 10px 30px -18px rgba(14, 26, 21, 0.35);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%; background: var(--ribbon);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-name { font-family: var(--serif); font-size: 27px; line-height: 1; }
.logo { height: 38px; width: auto; }
.logo-footer { height: 36px; width: auto; align-self: flex-start; }
@media (max-width: 600px) { .logo { height: 30px; } }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn) { text-decoration: none; padding: 10px 0; }
.nav-links a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ribbon); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav-links .portal { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.nav-toggle {
  display: none; min-width: 48px; min-height: 48px; border: 0; border-radius: 10px;
  background: var(--bg); cursor: pointer; align-items: center; justify-content: center;
}
@media (max-width: 960px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 10px 12px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; }
}

/* ---------- Ribbon (the specimen's path) ---------- */
.ribbon {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: visible;
}
.ribbon path { fill: none; stroke: var(--ribbon); stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(64px, 10vw, 140px); }
.hero-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-media { flex: 1 1 360px; min-width: 0; position: relative; }
.hero-photo {
  aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: var(--photo);
  border-radius: 240px 240px 28px 240px;
}
.readout {
  position: absolute; left: -16px; bottom: 40px; background: var(--card); border-radius: 14px;
  padding: 14px 18px; display: flex; flex-direction: column; box-shadow: 0 16px 30px -18px rgba(14, 26, 21, 0.4);
}
.readout span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.readout strong { font-family: var(--mono); font-weight: 500; font-size: 30px; letter-spacing: -0.03em; }
@media (max-width: 600px) { .readout { left: 12px; bottom: 16px; } }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: clamp(28px, 3.4vw, 40px); box-shadow: var(--shadow); }
.card-lg { border-radius: 28px; padding: clamp(28px, 5vw, 64px); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.chip {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
  border: 1px solid #C9D3CC; border-radius: 999px; padding: 8px 12px;
}
.chip-fill { background: var(--ribbon); border-color: var(--ribbon); }

/* ---------- Setup ---------- */
.setup-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.setup-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; }
.setup-steps li { border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--ribbon);
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px;
}
.setup-steps strong { font-size: 18px; font-weight: 600; }
.setup-steps span:last-child { font-size: 15px; line-height: 1.55; color: var(--body); }

/* ---------- Journey ---------- */
.journey { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 120px); padding-top: 40px; padding-bottom: 80px; }
.stop { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.stop.reverse { flex-direction: row-reverse; }
.stop-media { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; align-items: center; }
.stop-card { flex: 1 1 420px; min-width: 0; }
.photo-circle {
  width: min(380px, 100%); aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  background: var(--photo); border: 10px solid var(--card);
}
.stop-label { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.stop-card p { color: var(--body); }
@media (max-width: 760px) {
  .stop, .stop.reverse { flex-direction: column; align-items: stretch; gap: 24px; }
  .stop-media, .stop-card { flex: none; }
  .photo-circle { width: min(260px, 70%); }
  .hero-photo { aspect-ratio: 1 / 1; border-radius: 200px 200px 24px 200px; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; padding-top: 40px; padding-bottom: 80px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 8px; }
.stat strong { font-family: var(--mono); font-weight: 500; font-size: clamp(42px, 4.4vw, 64px); letter-spacing: -0.05em; line-height: 1; }
.stat span { font-size: 15px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-grid { display: flex; flex-wrap: wrap; gap: 48px; }
.faq-head { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.faq-list { flex: 999 1 520px; min-width: 0; border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-size: clamp(18px, 1.6vw, 21px); font-weight: 500; min-height: 44px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .plus {
  width: 30px; height: 30px; border-radius: 50%; background: var(--ribbon); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; transition: transform .2s ease;
}
.faq-list details[open] .plus { transform: rotate(45deg); }
.faq-list details p { margin-top: 10px; color: var(--body); max-width: 640px; }

/* ---------- Tour ---------- */
.tour { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; padding-top: 80px; padding-bottom: 120px; }
.tour-photo { flex: 1 1 460px; min-width: 0; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 28px; background: var(--photo); }
.tour-card { flex: 1 1 340px; min-width: 0; }

/* ---------- CTA band ---------- */
.cta { position: relative; z-index: 1; background: var(--ribbon); }
.cta-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.cta-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.cta-title { font-family: var(--serif); font-size: clamp(60px, 8.4vw, 140px); line-height: 0.88; letter-spacing: -0.035em; }
.cta-contact { display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.cta-contact a { font-family: var(--mono); text-decoration: none; text-align: center; }
.form-card { flex: 1 1 440px; min-width: 0; background: var(--card); border-radius: 24px; padding: clamp(24px, 3vw, 36px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
input, textarea, select {
  font: 400 16px/1.4 var(--sans); color: var(--ink); background: #fff;
  border: 1px solid #A9B5AE; border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--ribbon); outline-offset: 0; border-color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 13px; color: var(--muted); }
.form-status { font-size: 15px; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; background: var(--ink); color: #B9C4BE; font-size: 14px; line-height: 1.7; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; padding-top: 56px; padding-bottom: 40px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .brand-name { color: #fff; font-size: 30px; }
.footer-col { display: flex; flex-direction: column; }
.footer-col .eyebrow { color: #93A099; font-size: 12px; margin-bottom: 6px; }
.footer-base { border-top: 1px solid #2B3B33; padding-top: 18px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #93A099; }

/* ---------- Inner pages ---------- */
.page-hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: 48px; display: flex; flex-direction: column; gap: 22px; max-width: 860px; }
.panel-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.panel-search { max-width: 420px; }
.panel-grid { columns: 3 300px; column-gap: 16px; padding-bottom: 96px; }
.panel-group { break-inside: avoid; background: var(--card); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 16px; }
.panel-group h2 { font-family: var(--serif); font-size: 32px; line-height: 1.05; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.panel-group h2 span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.panel-group ul { list-style: none; margin: 14px 0 0; padding: 0; }
.panel-group li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; }
.panel-group[hidden], .panel-group li[hidden] { display: none; }
.no-match { padding: 24px 0 96px; color: var(--body); }

.pay-card { max-width: 720px; margin: 0 0 96px; }
.prose { max-width: 760px; padding-bottom: 96px; }
.prose h2 { font-family: var(--serif); font-size: 34px; line-height: 1.1; margin: 40px 0 12px; }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--body); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; }

/* Reveal on scroll (progressive: content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
