/* Seventh Heaven Strategy: the business checklist.
   Builds on ../styles.css (tokens, buttons, header, eyebrow). Light page, mobile first. */

body.cl {
  --cl-col: 720px;
  background: var(--paper);
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

/* ---------- Header: logo, label, step count, gold progress ---------- */
.cl-header { background: var(--ink); }
.cl-header .wrap { max-width: calc(var(--cl-col) + var(--gutter) * 2); }
.cl-header-inner { min-height: 64px; }
.cl-head-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  line-height: 1.1;
  min-width: 0;
}
.cl-head-label { font-family: var(--serif); font-size: 1.15rem; color: var(--on-dark); white-space: nowrap; }
.cl-head-step {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.cl-progress {
  display: block;
  width: 100%;
  height: 4px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: rgba(250, 248, 244, 0.12);
  color: var(--gold);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.cl-progress::-webkit-progress-bar { background: rgba(250, 248, 244, 0.12); }
.cl-progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  transition: width 0.35s var(--ease);
}
.cl-progress::-moz-progress-bar { background: linear-gradient(90deg, var(--gold-soft), var(--gold)); }

@media (max-width: 359px) {
  .cl-header .brand-text { display: none; }
}

/* ---------- Page ---------- */
.cl-main {
  width: 100%;
  max-width: calc(var(--cl-col) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 56px) var(--gutter) 24px;
}
.cl-kicker { margin-bottom: 14px; }
.cl-title {
  font-size: clamp(2.3rem, 1.6rem + 3vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0 0 14px;
}
.cl-title:focus { outline: none; }
.cl-intro { color: var(--text-2); font-size: 1.0625rem; line-height: 1.6; max-width: 36em; margin: 0 0 24px; }
.cl-intro a { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Question cards ---------- */
.cl-q {
  margin: 0 0 14px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.cl-q[hidden] { display: none; }
.cl-fs { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.cl-label {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.cl-optional { font-weight: 500; color: var(--muted); }
.cl-hint { margin: -6px 0 12px; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }

.cl-input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--field);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font: 400 1rem/1.45 var(--sans);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cl-textarea { min-height: 108px; resize: vertical; }
.cl-big { min-height: 240px; }
.cl-input::placeholder { color: #6F7A8A; opacity: 1; }
.cl-input:hover { border-color: var(--ink-3); }
.cl-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(201, 165, 92, 0.38); }

/* Choices: the whole row is the tap target */
.cl-opts { display: grid; gap: 8px; }
.cl-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--field);
  border-radius: 14px;
  background: var(--white);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.cl-opt:hover { border-color: var(--ink-3); }
.cl-opt input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--ink); cursor: pointer; }
.cl-opt:has(input:checked) { border-color: var(--gold-deep); background: #FBF6EC; box-shadow: inset 0 0 0 1px var(--gold-deep); }
.cl-opt:has(input:focus-visible) { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(201, 165, 92, 0.38); }
.cl-opt input:focus-visible { outline: none; }
@supports not selector(:has(*)) {
  .cl-opt input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
}

@media (min-width: 560px) {
  .cl-opts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Info lines */
.cl-info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(160deg, #FBF6EC, #F5EEDF);
  border-color: rgba(133, 102, 42, 0.28);
  box-shadow: none;
}
.cl-icon { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--gold-deep); }
.cl-info-text { margin: 0; color: var(--ink); font-size: 0.98rem; line-height: 1.55; overflow-wrap: anywhere; }

/* ---------- Welcome ---------- */
.cl-welcome { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--line-strong); }
.cl-welcome li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 1.02rem;
  line-height: 1.5;
}
.cl-welcome li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 7px;
  height: 7px;
  background: var(--gold-deep);
  transform: rotate(45deg);
  border-radius: 1px;
}
.cl-note {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--paper-2);
  border: 1px dashed rgba(133, 102, 42, 0.45);
  color: var(--ink);
  font-size: 0.95rem;
}

/* ---------- Review and send ---------- */
.cl-summary {
  margin: 0 0 18px;
  padding: 16px;
  max-height: 46vh;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--white);
  border: 1px solid var(--field);
  border-radius: 14px;
  color: var(--ink);
  font: 400 0.85rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.cl-summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.cl-send { display: grid; gap: 10px; margin: 0 0 14px; }
.cl-small { margin: 0 0 6px; font-size: 0.9rem; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.cl-status { min-height: 1.5em; margin: 0; font-size: 0.95rem; font-weight: 500; color: var(--gold-deep); }
.cl-thanks {
  margin-top: 22px;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #F6F1E7, var(--mist));
  border: 1px solid rgba(133, 102, 42, 0.25);
}
.cl-thanks p { color: var(--text-2); }
.cl-thanks .cl-thanks-title { margin: 0 0 6px; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: var(--ink); }
.cl-clear {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--text-2);
  font: 500 0.92rem/1.3 var(--sans);
  text-decoration: underline;
  text-decoration-color: rgba(133, 102, 42, 0.6);
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.cl-clear:hover { color: var(--ink); }
.cl-offscreen { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }

/* ---------- Back and Next ---------- */
.cl-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(250, 248, 244, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-strong);
}
.cl-nav-inner { display: flex; gap: 10px; max-width: var(--cl-col); margin: 0 auto; }
.cl-nav .btn { flex: 1 1 0; min-width: 0; padding: 0 16px; }
.cl-nav .cl-back { flex: 0 1 34%; }
.cl-nav-inner:has(.cl-next[hidden]) .cl-back { flex: 1 1 auto; }
.cl-nav [hidden] { display: none !important; }

@media print {
  .cl-nav, .cl-progress { display: none; }
  body.cl { padding-bottom: 0; }
  .cl-summary { max-height: none; }
}
