/* Runeflake onboarding quiz (quiz/index.html). Standalone: it does not load
   styles.css, so the palette, the dark pill buttons and the heading weights
   below mirror that file. Plain page-grey background (the gold scene was
   tried behind the card and removed on request, 2026-10-10). Violet is an accent
   only (progress, focus, ticks), as on the homepage. No transitions or
   animations, in line with the rest of the site. */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg:          #f4f2f6;
  --surface:     #ffffff;
  --ink:         #141218;
  --ink-soft:    #6c6875;
  --ink-faint:   #97939f;
  --line:        rgba(20, 18, 24, .10);
  --violet:      #8b84f7;
  --violet-deep: #5f55e4;
  --violet-dark: #4c42cf;
  --violet-wash: #eeecfd;
  --lime:        #d9f26b;
  --error:       #c2272d;
  --radius:      clamp(20px, 2.4vw, 30px);
  --dark-fill:   linear-gradient(180deg, #2a2733, #141218 62%);
  --dark-hover:  linear-gradient(180deg, #37333f, #201d27 62%);
  --dark-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 12px 28px -14px rgba(20, 18, 24, .95), 0 2px 6px -3px rgba(20, 18, 24, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet-deep); outline-offset: 3px; border-radius: 6px; }
.qz-title:focus, .qz-q:focus { outline: none; }

/* ---- shell ---- */

.qz { padding: clamp(16px, 4vw, 48px) 16px; }
.qz__card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(20px, 4.4vw, 44px);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 1px 2px rgba(20, 18, 24, .04), 0 18px 50px -24px rgba(20, 18, 24, .18);
}
.qz__progress {
  height: 4px;
  border-radius: 99px;
  background: #e9e6ef;
  overflow: hidden;
  margin-bottom: clamp(20px, 3vw, 28px);
}
.qz__progress span { display: block; height: 100%; width: 0; background: var(--violet-deep); border-radius: inherit; }

.qz__logo {
  display: inline-block;
  text-decoration: none;
  font-weight: 800; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: clamp(20px, 3.2vw, 30px);
}

/* ---- type ---- */

.qz-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #f7f5fa;
  font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: #4b4754;
}
.qz-eyebrow::before { content: '\2726'; color: var(--violet-deep); font-size: .8rem; }
.qz-count {
  margin: 0 0 10px;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);
}
.qz-title {
  margin: 0 0 clamp(18px, 3vw, 26px);
  font-size: clamp(1.95rem, 5vw, 2.75rem); line-height: 1.04; font-weight: 400; letter-spacing: -.042em;
  color: #16131c;
  text-wrap: balance;
}
.qz-title--sm { font-size: clamp(1.8rem, 4.4vw, 2.35rem); margin-bottom: 10px; }
.qz-q {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 3.6vw, 1.85rem); line-height: 1.12; font-weight: 500; letter-spacing: -.032em;
  text-wrap: balance;
}
.qz-q--lg { font-size: clamp(1.5rem, 4vw, 1.95rem); }
.qz-sub { margin: 0 0 20px; color: var(--ink-soft); font-size: .98rem; }
.qz-sub b { color: var(--ink); font-weight: 600; }
.qz-note { margin: 18px 0 0; color: var(--ink-soft); font-size: .9rem; }

/* ---- hero visual (step 1) ---- */

.qz-hero {
  position: relative;
  margin: 0 0 clamp(24px, 3.6vw, 32px);
  aspect-ratio: 16 / 10.5;
  border-radius: clamp(16px, 2vw, 22px);
  overflow: hidden;
  background: #1d2a33;
}
.qz-hero__photo { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.qz-hero__phone {
  position: absolute;
  left: 6%; top: 15%;
  width: 31%; height: auto;
  border-radius: 13% / 6.5%;
  box-shadow: 0 22px 44px -12px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
}
.qz-hero__label, .qz-hero__badge {
  position: absolute;
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 99px;
  font-size: .78rem; font-weight: 650; line-height: 1;
}
.qz-hero__label {
  left: 6%; top: 5%;
  padding: 7px 12px;
  background: rgba(13, 13, 17, .72);
  color: #fff;
  letter-spacing: .02em;
}
.qz-hero__label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.qz-hero__badge {
  right: 4%; bottom: 6%;
  padding: 7px 14px 7px 7px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .35);
}
.qz-hero__badge svg { width: 20px; height: 20px; }
.qz-hero__badge circle { fill: var(--violet-deep); }
.qz-hero__badge path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- answer tiles ---- */

.qz-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.qz-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 112px;
  padding: 20px 14px;
  border: 0; border-radius: 16px;
  background: var(--dark-fill);
  color: #fff;
  font-weight: 500; font-size: 1rem; line-height: 1.25; letter-spacing: -.01em; text-align: center;
  cursor: pointer;
  box-shadow: var(--dark-shadow);
}
.qz-tile:hover { background: var(--dark-hover); }
.qz-tile[aria-pressed="true"] { box-shadow: var(--dark-shadow), 0 0 0 3px var(--surface), 0 0 0 5px var(--violet-deep); }
.qz-tile__icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  color: var(--lime);
}
.qz-tile__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qz-tile__icon--text { font-size: 1.15rem; font-weight: 700; }

.qz-lock {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 16px 0 0;
  color: var(--ink-soft); font-size: .86rem; text-align: center;
}
.qz-lock svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---- links + buttons ---- */

.qz-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.qz-back, .qz-skip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px;
  margin-top: 12px; padding: 10px 0;
  border: 0; background: none; cursor: pointer;
  color: var(--ink-soft); font-size: .92rem;
  text-decoration: none;
}
.qz-back::before { content: '←'; display: inline-block; }
.qz-back:hover, .qz-skip:hover { color: var(--ink); }
.qz-skip { font-weight: 500; color: var(--ink); }

.qz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--dark-fill);
  color: #fff;
  font-weight: 500; font-size: .98rem; letter-spacing: -.01em; text-decoration: none; line-height: 1.2;
  cursor: pointer;
  box-shadow: var(--dark-shadow);
}
.qz-btn:hover { background: var(--dark-hover); }
.qz-btn[disabled] { opacity: .6; cursor: progress; }
.qz-btn--wide { width: 100%; }
.qz-btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
.qz-btn--ghost:hover { background: #f2f0f5; }
.qz-btn__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.qz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }

/* ---- details form ---- */

.qz-form { display: grid; gap: 16px; }
.qz-field label { display: block; margin-bottom: 7px; font-weight: 600; font-size: .92rem; }
.qz-field input, .qz-field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #dcd8e3; border-radius: 14px;
  background: var(--surface);
  font-size: 16px; /* 16px stops iOS zooming on focus */
}
.qz-field input::placeholder { color: var(--ink-faint); }
.qz-field input:focus, .qz-field select:focus { outline: none; border-color: var(--violet-deep); box-shadow: 0 0 0 3px rgba(95, 85, 228, .2); }
.qz-field input[aria-invalid="true"] { border-color: var(--error); }
.qz-phone { display: grid; grid-template-columns: minmax(0, 128px) minmax(0, 1fr); gap: 10px; }
.qz-hint { margin: 7px 0 0; color: var(--ink-soft); font-size: .85rem; }
.qz-err { margin: 6px 0 0; color: var(--error); font-size: .86rem; font-weight: 600; }
.qz-err--form { margin: 0; }
.qz-fine { margin: 0; color: var(--ink-soft); font-size: .85rem; }
.qz-fine a { color: var(--ink); }
.qz-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- booking (Calendly iframe) ---- */

.qz-calendly {
  position: relative;
  margin: 4px -8px 0;
  min-height: 700px;
  border-radius: 16px;
  overflow: hidden;
}
.qz-calendly__frame { display: block; width: 100%; height: 700px; border: 0; }
.qz-calendly__loading {
  position: absolute; inset: 0 0 auto;
  margin: 0; padding: 14px 16px;
  border-radius: 12px; background: var(--bg);
  color: var(--ink-soft); font-size: .92rem;
}
.qz-tz { margin: 12px 0 0; color: var(--ink-soft); font-size: .85rem; }
.qz-tz a { color: var(--ink); }

/* ---- booked ---- */

.qz-done-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 50%;
  background: var(--violet-wash); color: var(--violet-deep);
}
.qz-done-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.qz-appt {
  margin-top: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 16px;
}
.qz-appt b { display: block; font-size: 1.02rem; font-weight: 700; }
.qz-appt > span { display: block; margin-top: 2px; color: var(--ink-soft); font-size: .9rem; }
.qz-steps { list-style: none; counter-reset: s; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.qz-steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.qz-steps li::before {
  content: counter(s);
  flex: none;
  display: grid; place-items: center;
  width: 24px; height: 24px; margin-top: 1px;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  font-size: .78rem; font-weight: 700;
}

/* ---- footer ---- */

.qz-foot { margin-top: clamp(28px, 4vw, 40px); display: grid; justify-items: center; gap: 12px; text-align: center; }
.qz-trust { display: grid; justify-items: center; gap: 6px; }
.qz-stars { width: 116px; height: auto; }
.qz-trust__text { font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.qz-foot__link { font-size: .8rem; color: var(--ink-soft); text-underline-offset: 3px; }

/* ---- narrow ---- */

@media (max-width: 620px) {
  .qz-calendly { margin-inline: -12px; min-height: 1000px; }
  .qz-calendly__frame { height: 1000px; }
  .qz-hero { aspect-ratio: 4 / 3.3; }
  .qz-hero__phone { width: 36%; top: 17%; }
  .qz-actions .qz-btn { width: 100%; }
}
@media (max-width: 480px) {
  /* the label is too long for one line in a pill; as plain text it wraps cleanly */
  .qz-eyebrow { display: flex; align-items: baseline; padding: 0; border: 0; background: none; letter-spacing: .12em; }
}
@media (max-width: 400px) {
  .qz-tiles:not(.qz-tiles--two) { grid-template-columns: minmax(0, 1fr); }
  .qz-tiles:not(.qz-tiles--two) .qz-tile { flex-direction: row; justify-content: flex-start; min-height: 68px; text-align: left; }
  .qz-phone { grid-template-columns: minmax(0, 92px) minmax(0, 1fr); gap: 8px; }
  .qz-phone select { padding-inline: 10px 6px; }
  .qz-btn { padding-inline: 16px; font-size: .94rem; }
  .qz-btn[data-whatsapp] { white-space: nowrap; }
}
