/* Duxa surveys: the look of the Founding Leader Presentation cover.
   Colors and fonts follow Brand Book.md (deep green, gold, ivory; Playfair Display + Jost). */
:root {
  --green: #0F2A24;
  --gold: #C9A96B;
  --gold-soft: #DBC28F;
  --taupe: #B7A99A;
  --ivory: #F7F5EF;
  --line: rgba(201, 169, 107, .42);
  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --fi: clamp(14px, 2.6vw, 36px);            /* frame inset, as on the deck cover */
}
* { box-sizing: border-box; margin: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--sans); font-weight: 300; color: var(--ivory);
  background: var(--green); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.bgfix { position: fixed; inset: 0; z-index: -1; background: var(--green) url(cover-bg.jpg) 50% 50% / cover no-repeat; }
button { font: inherit; color: inherit; }
::selection { background: rgba(201,169,107,.35); }

/* the thin gold frame and the slim progress line along its top edge */
.frame { position: fixed; inset: var(--fi); border: 1px solid var(--line); pointer-events: none; z-index: 2; }
.progress { position: fixed; z-index: 3; top: var(--fi); left: var(--fi); right: var(--fi); height: 2px; margin-top: -1px; pointer-events: none; }
.progress i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .7s cubic-bezier(.2,.7,.1,1); }
.foot { position: fixed; z-index: 3; left: calc(var(--fi) + 26px); right: calc(var(--fi) + 26px); bottom: calc(var(--fi) + 18px);
  display: flex; justify-content: space-between; align-items: center; font-size: .64rem; letter-spacing: .38em; text-transform: uppercase; color: var(--taupe); pointer-events: none; }
.foot .n { color: var(--gold); letter-spacing: .2em; }
/* the deck-style footer only where there is room for it, so it never sits on top of a question */
@media (max-height: 759px), (max-width: 600px) { .foot { display: none; } }

/* page layout */
.page { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--fi) + 64px) calc(var(--fi) + 28px) calc(var(--fi) + 76px); }
.screen { width: min(640px, 100%); }
.screen.center { text-align: center; }
.enter { animation: enter .7s cubic-bezier(.2,.7,.1,1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .enter { animation: none; } .progress i { transition: none; } }

/* the deck cover logo: DUXA, MENTORS letter-spaced underneath, a short gold line */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; font-size: clamp(46px, 8vh, 66px); }
.logo .dx { font-family: var(--serif); font-weight: 700; letter-spacing: .057em; margin-right: -.057em; color: var(--ivory); }
.logo .mt { font-family: var(--sans); font-weight: 400; font-size: .2em; letter-spacing: .61em; margin-right: -.61em; margin-top: .53em; color: var(--gold); }
.logo .gl { display: block; width: .69em; height: 1px; background: var(--gold); margin-top: .36em; }

.eyebrow { font-size: .7rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.lead { font-family: var(--serif); font-weight: 300; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.45; color: var(--ivory); }
.intro .logo { margin-bottom: clamp(36px, 7vh, 64px); }
.intro .lead { margin: 0 auto; max-width: 30em; }
.intro .eyebrow { margin-bottom: 22px; }
.intro .actions { justify-content: center; margin-top: clamp(34px, 6vh, 52px); }
.small { margin-top: 22px; font-size: .78rem; letter-spacing: .08em; color: var(--taupe); }

/* question */
.q .eyebrow { margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.q .eyebrow::after { content: ""; width: 40px; height: 1px; background: var(--gold); opacity: .6; }
.q h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 3.6vw, 2.35rem); line-height: 1.22; color: var(--ivory); }
.q .help { margin-top: 12px; font-size: .9rem; color: var(--taupe); letter-spacing: .02em; }
.part { margin-top: clamp(26px, 4vh, 36px); }
.part + .part { margin-top: 26px; }
.part[hidden] { display: none; }
.lab { display: block; font-size: .64rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
input[type=text], textarea {
  width: 100%; background: transparent; color: var(--ivory); font: 300 1.06rem/1.55 var(--sans); letter-spacing: .02em;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0 10px; outline: 0; transition: border-color .3s;
}
textarea { resize: none; min-height: 3.4em; overflow: hidden; }
input[type=text]:focus, textarea:focus { border-bottom-color: var(--gold); }
input::placeholder, textarea::placeholder { color: var(--taupe); opacity: .7; }
input:disabled, textarea:disabled { opacity: .75; }
.locked { margin-top: 10px; font-size: .78rem; color: var(--taupe); }

/* choices */
.opts { display: grid; gap: 10px; }
.opts.cols { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.opt { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: 1px solid rgba(201,169,107,.3); padding: 14px 18px; font: 300 1rem/1.35 var(--sans); color: var(--ivory);
  transition: border-color .3s, background .3s; }
.opt:hover { border-color: rgba(201,169,107,.7); }
.opt .mk { flex: none; width: 12px; height: 12px; border: 1px solid var(--gold); transition: background .25s; }
.opts.single .opt .mk { border-radius: 50%; }
.opt[aria-checked="true"], .opt[aria-pressed="true"] { border-color: var(--gold); background: rgba(201,169,107,.09); }
.opt[aria-checked="true"] .mk, .opt[aria-pressed="true"] .mk { background: var(--gold); }
.opt:focus-visible, .btn:focus-visible, .link:focus-visible, input:focus-visible, textarea:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.other { margin-top: 12px; }

/* buttons */
.actions { display: flex; align-items: center; gap: 26px; margin-top: clamp(34px, 5vh, 46px); flex-wrap: wrap; }
.btn { font: 500 .74rem var(--sans); letter-spacing: .26em; text-transform: uppercase; padding: 16px 34px; cursor: pointer; border-radius: 0;
  background: var(--gold); color: var(--green); border: 1px solid var(--gold); transition: background .3s, border-color .3s; }
.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn:disabled { opacity: .6; cursor: default; }
.link { background: none; border: 0; padding: 6px 0; cursor: pointer; font: 500 .68rem var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--taupe); transition: color .3s; }
.link:hover { color: var(--gold); }
.hint { font-size: .72rem; letter-spacing: .06em; color: var(--taupe); opacity: .8; }
.err { margin-top: 18px; font-size: .9rem; color: var(--gold-soft); }

/* thank-you */
.rose { width: 56px; margin: 0 auto 30px; color: var(--gold); }
.rose svg { display: block; width: 100%; height: auto; }
.rose svg * { vector-effect: non-scaling-stroke; }
.thanks h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.15; }
.thanks .lead { margin: 22px auto 0; max-width: 26em; }
.thanks .rl { display: block; width: 1px; height: 46px; margin: 36px auto 0; background: linear-gradient(var(--gold), transparent); }
.thanks .logo { font-size: 40px; margin-top: 34px; }
.preview-note { margin: 34px auto 0; max-width: 30em; font-size: .78rem; line-height: 1.6; color: var(--taupe); border-top: 1px solid rgba(201,169,107,.25); padding-top: 18px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* phones */
@media (max-width: 600px) {
  .page { align-items: flex-start; padding: calc(var(--fi) + 44px) calc(var(--fi) + 18px) calc(var(--fi) + 70px); }
  .intro, .thanks { padding-top: 6vh; }
  .opt { padding: 13px 15px; }
  .actions { gap: 18px; }
  .actions .btn { flex: 1 1 100%; }
  .foot { left: calc(var(--fi) + 16px); right: calc(var(--fi) + 16px); letter-spacing: .3em; }
}
