/*
 * THEME "cover" component layer (Design Option 1, The Cover). PROVISIONAL.
 * Loaded after app.css only when app.theme = 'cover'. Presentation only: no content, no behaviour, no text via CSS
 * except the decorative "/" before eyebrows (aria-hidden by nature of CSS generated content being decorative).
 * Signature device: THE CUT, a 9-degree diagonal edge on every photograph, traced by a red hairline.
 */

/* ---------- Base type ---------- */
body { font-family: var(--f-body); font-size: var(--fs-1); color: #2b2926; background: var(--c-bg); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; color: var(--c-ink); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-4); line-height: 0.98; }
h2 { font-size: var(--fs-3); line-height: 1.06; }
h3, .h3 { font-family: var(--f-narrow); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; }
a { color: var(--c-accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-accent); }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; }
::selection { background: var(--c-accent); color: #fff; }
.lede, .hero__sub, .supporting { color: var(--c-ink-muted); }
.supporting { font-family: var(--f-display); font-style: italic; font-size: var(--fs-3); line-height: 1.15; color: var(--c-ink); }

/* Eyebrows and progress: narrow caps with the red "/" cover-line mark */
.eyebrow, .progress {
  font-family: var(--f-narrow); font-weight: 700; font-size: 0.78rem; letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--c-accent-deep);
}
.eyebrow::before { content: "/"; font-family: var(--f-display); font-size: 1.5em; font-weight: 400; letter-spacing: 0; color: var(--c-accent); margin-right: 0.35em; }

/* ---------- Masthead: the cover black ---------- */
.masthead { background: var(--c-ink); border-bottom: 0; color: var(--c-on-dark); }
.wordmark, .wordmark:hover { color: #fff; text-decoration: none; }
.wordmark__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.35rem, 3.4vw, 2rem); letter-spacing: 0.16em; color: #fff; }
.wordmark__tag { font-family: var(--f-narrow); font-weight: 500; font-size: 0.72rem; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-on-dark-muted); }
.sitenav a { font-family: var(--f-narrow); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-on-dark); text-decoration: none; }
.sitenav a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--c-on-dark-accent); }
.masthead :focus-visible { outline-color: #fff; }

/* ---------- Buttons: square red, narrow caps ---------- */
.btn {
  border-radius: 0; min-height: 52px; padding-inline: 1.6rem;
  font-family: var(--f-narrow); font-weight: 700; font-size: 0.86rem; letter-spacing: var(--tracking-caps); text-transform: uppercase;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn--primary { background: var(--c-accent); border: 1px solid var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.btn--secondary, .btn--ghost { background: transparent; color: var(--c-ink); border: 1px solid var(--c-ink); }
.btn--secondary:hover, .btn--ghost:hover { background: var(--c-ink); color: #fff; }
.btn--link { color: var(--c-accent-deep); font-family: var(--f-narrow); letter-spacing: 0.1em; }
input[type=radio], input[type=checkbox] { accent-color: var(--c-accent); }

/* ---------- Hero: the cover ---------- */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem); }
.hero__h1 { font-size: var(--fs-5); line-height: 0.92; letter-spacing: -0.02em; max-width: 11ch; margin-bottom: var(--s-5); }
.hero__sub { font-size: var(--fs-2); max-width: 34rem; }
.hero__note { font-size: var(--fs-0); color: var(--c-ink-muted); }

/* THE CUT: Soraia's photograph with a 9-degree diagonal edge and a red hairline */
.portrait { margin: 0; min-width: 0; position: relative; }
.portrait__frame { position: relative; background: transparent; padding: 0; border: 0; }
.portrait__frame img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%);
}
.portrait__frame::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--cut); pointer-events: none;
  background: linear-gradient(to bottom right, transparent calc(50% - 1px), var(--c-accent) calc(50% - 1px), var(--c-accent) calc(50% + 1px), transparent calc(50% + 1px));
}
.portrait figcaption { font-size: 0.75rem; line-height: 1.5; color: var(--c-ink-muted); margin: 0.6rem 0 0; padding-left: var(--cut); }
.portrait figcaption a { color: var(--c-ink); }
.portrait__flag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--c-ph-bg); border: 1px dashed var(--c-ph-line); padding: 0 var(--s-2); margin-bottom: var(--s-2); }
.has-portrait { display: grid; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 768px) {
  .has-portrait { grid-template-columns: 1.15fr 0.85fr; }
  .has-portrait .portrait { max-width: 34rem; justify-self: end; width: 100%; }
  .offer .has-portrait { align-items: stretch; }
  .offer .has-portrait .portrait { max-width: 24rem; align-self: center; }
}

/* ---------- Bands ---------- */
.band { border-top: 1px solid var(--c-line-light); padding-block: clamp(2.25rem, 6vw, 4.5rem); }
.band--quiet { background: var(--c-surface); }
/* The core statement is printed on the cover black */
.band--quiet:has(> .statement) { background: var(--c-ink); color: var(--c-on-dark); border-top: 0; }
.band--quiet:has(> .statement) .statement { color: #fff; }
.band--quiet:has(> .statement) p { color: var(--c-on-dark); }
.band--quiet:has(> .statement) a { color: #fff; }
.band--quiet:has(> .statement) :focus-visible { outline-color: #fff; }
.statement { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-4); line-height: 0.98; letter-spacing: -0.015em; max-width: 16ch; }
.statement em, .statement i { font-style: italic; }

/* Numbered steps read as cover lines "/01" */
.steps li::marker { font-family: var(--f-narrow); font-weight: 700; color: var(--c-accent); }

/* Cards, notes, trust */
.card, .rstmt, .price, .rp-field { background: var(--c-paper); border: 1px solid var(--c-line-light); border-radius: 0; }
.note { border-left: 3px solid var(--c-accent); background: var(--c-surface); }
.trust__col h3 { border-bottom: 1px solid var(--c-ink); padding-bottom: var(--s-2); }
.decision-card, .context-line { background: var(--c-surface); border: 1px solid var(--c-line-light); border-left: 3px solid var(--c-accent); }

/* ---------- Evidence ladder ---------- */
.ladder__step { background: var(--c-paper); border: 1px solid var(--c-line-light); border-radius: 0; }
.ladder__num { font-family: var(--f-display); font-size: 1.6rem; border: 0; color: var(--c-accent); background: transparent; }
.ladder__name { font-family: var(--f-display); font-size: 1.25rem; font-weight: 400; color: var(--c-ink); }
.ladder__ex { font-style: italic; color: var(--c-ink-muted); }
.ladder__step.is-here { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-on-dark); }
.ladder__step.is-here .ladder__num { background: transparent; color: var(--c-on-dark-accent); border: 0; }
.ladder__step.is-here .ladder__name { color: #fff; }
.ladder__step.is-here .ladder__ex, .ladder__step.is-here .ladder__here { color: var(--c-on-dark); }

/* ---------- Assessment ---------- */
.q__h { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-4); line-height: 1; }
.option { border: 1px solid var(--c-line-light); background: var(--c-paper); border-radius: 0; transition: border-color .2s ease; }
.option:hover { border-color: var(--c-ink); }
.option__mark { border-color: var(--c-ink); }
.option input:checked ~ .option__mark { background: radial-gradient(circle, var(--c-accent) 45%, transparent 50%); border-color: var(--c-accent); }
.option:has(input:checked) { border: 2px solid var(--c-ink); background: #fff; }
.seg label { border-color: var(--c-line-light); background: var(--c-paper); border-radius: 0; }
.seg label:has(input:checked) { border-color: var(--c-ink); background: #fff; }

/* Forms */
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=date], .field select, .field textarea {
  border-radius: 0; border: 1px solid var(--c-line); background: #fff;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 0; border-color: var(--c-accent); }
.field label { font-family: var(--f-narrow); font-weight: 700; letter-spacing: 0.06em; }

/* ---------- Private offer ---------- */
.offer .hero--offer { background: var(--c-paper); border: 0; border-top: 3px solid var(--c-ink); padding: clamp(1rem, 4vw, 2.5rem) 0; }
.cards5 .card::before { color: var(--c-accent); font-family: var(--f-display); }
.price { border-top: 3px solid var(--c-accent); }
.price__line { font-family: var(--f-display); font-size: var(--fs-3); }

/* ---------- Footer: the cover black ---------- */
.footer { background: var(--c-ink); color: var(--c-on-dark-muted); border-top: 0; }
.footer__links a { color: var(--c-on-dark); font-family: var(--f-narrow); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.footer__links a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--c-on-dark-accent); }
.footer__ai, .footer__legal, .footer__copy { color: var(--c-on-dark-muted); }
.footer :focus-visible { outline-color: #fff; }

/* ---------- Workspace ---------- */
.ws-nav { border-bottom: 1px solid var(--c-line-light); }
.ws-nav a { font-family: var(--f-narrow); font-weight: 500; letter-spacing: 0.04em; }
.ws-nav a[aria-current="page"] { color: var(--c-accent-deep); font-weight: 700; }
.ws-next { background: var(--c-ink); color: var(--c-on-dark); border: 0; border-top: 3px solid var(--c-accent); padding: clamp(1rem, 4vw, 2.5rem); }
.ws-next__action { font-family: var(--f-display); font-size: var(--fs-3); line-height: 1.15; color: #fff; }
.ws-next .eyebrow, .ws-next .muted, .ws-next .hint { color: var(--c-on-dark-muted); }
.ws-next .eyebrow::before { color: var(--c-on-dark-accent); }
.ws-next a:not(.btn) { color: #fff; }
.ws-next .btn--primary:hover { background: #fff; color: var(--c-ink); border-color: #fff; }
.ws-next .btn--secondary, .ws-next .btn--ghost { color: #fff; border-color: #fff; }
.ws-next :focus-visible { outline-color: #fff; }
.ws-table th { font-family: var(--f-narrow); color: var(--c-ink-muted); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; }

/* ---------- Decision report ---------- */
.rp-cover { border-bottom: 3px solid var(--c-ink); }
.rp-big { font-family: var(--f-display); }
.rp-page { border-top-color: var(--c-line-light); }
.report thead th { background: var(--c-surface); }

@media (max-width: 460px) {
  .wordmark__tag { display: none; }
  .hero .btn--primary { width: 100%; }
}
@media print {
  .masthead, .footer { background: #fff !important; color: #000 !important; }
  .wordmark__name, .footer__links a { color: #000 !important; }
  .ws-next, .band--quiet:has(> .statement), .ladder__step.is-here { background: #fff !important; color: #000 !important; }
  .portrait { display: none; }
}
