/* Greensighter onboarding quiz (/quiz): mobile first, one question per screen. */
:root {
  --bg: #FAFAF9;
  --ink: #0D0F0C;
  --text: #3A3A3A;
  --muted: #7A7A7A;
  --line: #E6E6E3;
  --card: #FFFFFF;
  --accent: #6B56F0;
  --accent-soft: #EEEBFF;
  --track: #E9E8E4;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.q { min-height: 100%; min-height: 100dvh; display: flex; flex-direction: column; max-width: 480px; margin: 0 auto; }

/* top bar: logo + step counter + progress */
.q-top { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: env(safe-area-inset-top, 0px) 16px 0; }
.q-top__row { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.q-logo { display: inline-flex; align-items: center; gap: 8px; }
.q-logo__mark { width: 28px; height: 28px; border-radius: 7px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.q-logo__mark img { width: 18px; height: auto; }
.q-logo__word { height: 16px; width: auto; }
.q-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.q-count b { color: var(--ink); font-weight: 600; }
.q-bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.q-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .35s ease; }

/* screen */
.q-main { flex: 1; padding: 28px 16px 24px; }
.q-screen { animation: q-in .35s ease both; }
@keyframes q-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.q-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.q-h { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
.q-h em { font-style: normal; color: var(--accent); }
.q-p { margin: 12px 0 0; font-size: 16px; line-height: 1.5; color: var(--text); }
.q-hint { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.q-gap { height: 24px; }

/* inputs */
.q-input { width: 100%; height: 56px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); font-size: 17px; outline: none; transition: border-color .15s; }
.q-input:focus { border-color: var(--accent); }
.q-err { margin: 8px 0 0; font-size: 14px; color: #C2412D; min-height: 20px; }

/* options */
.q-opts { display: grid; gap: 10px; }
.q-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); text-align: left; font-size: 16px; line-height: 1.35; cursor: pointer; transition: border-color .15s, background-color .15s; }
.q-opt:hover { border-color: #CFCFCB; }
.q-opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.q-opt__box { flex: none; width: 22px; height: 22px; border: 1.5px solid #CFCFCB; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; }
.q-opts--multi .q-opt__box { border-radius: 6px; }
.q-opt[aria-pressed="true"] .q-opt__box { border-color: var(--accent); background: var(--accent); }
.q-opt__box svg { opacity: 0; }
.q-opt[aria-pressed="true"] .q-opt__box svg { opacity: 1; }
.q-opts--chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.q-opts--chips .q-opt { justify-content: center; min-height: 52px; text-align: center; }
.q-opts--chips .q-opt__box { display: none; }
.q-label { margin: 22px 0 10px; font-size: 15px; font-weight: 600; }

/* stat cards */
.q-stats { display: grid; gap: 12px; }
.q-stat { padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.q-stat__n { font-family: var(--font-display); font-weight: 500; font-size: 44px; line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.q-stat__t { margin: 10px 0 0; font-size: 16px; line-height: 1.45; color: var(--ink); }
.q-stat__s { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

/* cost compare */
.q-cost { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-cost__col { padding: 18px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.q-cost__col--us { border-color: var(--accent); background: var(--accent-soft); }
.q-cost__k { font-size: 13px; color: var(--muted); line-height: 1.3; }
.q-cost__v { margin-top: 10px; font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -0.03em; }
.q-cost__col--us .q-cost__v { color: var(--accent); }
.q-cost__off { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; line-height: 1.4; color: var(--text); }
.q-save { margin-top: 16px; padding: 18px 20px; border-radius: 18px; background: var(--ink); color: #fff; }
.q-save small { display: block; font-size: 13px; color: rgba(255,255,255,.7); }
.q-save b { display: block; margin-top: 4px; font-family: var(--font-display); font-weight: 500; font-size: 28px; letter-spacing: -0.03em; }

/* timeline (picture this) */
.q-tl { position: relative; display: grid; gap: 14px; padding-left: 26px; }
.q-tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.q-tl__i { position: relative; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); opacity: 0; animation: q-in .45s ease both; }
.q-tl__i:nth-child(1) { animation-delay: .15s; } .q-tl__i:nth-child(2) { animation-delay: .75s; } .q-tl__i:nth-child(3) { animation-delay: 1.35s; }
.q-tl__i::before { content: ""; position: absolute; left: -25px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.q-tl__d { font-size: 13px; font-weight: 600; color: var(--accent); }
.q-tl__t { margin: 4px 0 0; font-size: 16px; line-height: 1.45; }
.q-tl__ic { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 10px 5px 6px; border-radius: 999px; background: #F4F4F2; font-size: 13px; }
.q-tl__ic svg { width: 16px; height: 16px; }

/* how it works */
.q-steps { display: grid; gap: 10px; counter-reset: s; }
.q-step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.q-step__n { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.q-step b { display: block; font-size: 16px; font-weight: 600; }
.q-step div span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.45; color: var(--text); }

/* proof (before/after) */
.q-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 12px; background: #EFEFEC; }
.q-tab { height: 40px; border: 0; border-radius: 9px; background: transparent; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.q-tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.q-tab--us[aria-selected="true"] { color: var(--accent); }
.q-shot { margin-top: 14px; border-radius: 22px; overflow: hidden; background: #E9E9E6; display: flex; justify-content: center; padding: 18px 0; }
.q-shot img { width: auto; max-width: 62%; max-height: 52vh; max-height: 52dvh; object-fit: contain; border-radius: 22px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.35); }

/* booking */
.q-cal { margin-top: 18px; min-height: 520px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.q-cal__loading { display: flex; align-items: center; justify-content: center; gap: 10px; height: 520px; color: var(--muted); font-size: 15px; }
.q-cal__loading b { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: q-spin .8s linear infinite; }
@keyframes q-spin { to { transform: rotate(360deg); } }
.q-book-link { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 54px; margin-top: 16px; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; }

/* bottom bar */
.q-foot { position: sticky; bottom: 0; z-index: 5; background: linear-gradient(to bottom, rgba(250,250,249,0), var(--bg) 22%); padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.q-foot__row { display: flex; gap: 10px; }
.q-back { flex: none; width: 54px; height: 54px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.q-back[hidden] { display: none; }
.q-next { flex: 1; height: 54px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: opacity .15s; }
.q-next:disabled { opacity: .35; cursor: not-allowed; }
.q-trust { display: flex; justify-content: center; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.q-trust span { display: inline-flex; align-items: center; gap: 5px; }
.q-foot[hidden] { display: none; }

button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .q-screen, .q-tl__i { animation: none; opacity: 1; } .q-bar i { transition: none; } }

/* larger screens: same column, a little more air */
@media (min-width: 640px) {
  .q-main { padding-top: 48px; }
  .q-h { font-size: 36px; }
}

/* booked page */
.b-video { position: relative; margin-top: 20px; aspect-ratio: 1114 / 720; border-radius: 18px; overflow: hidden; background: var(--ink); }
.b-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.b-video__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: rgba(255,255,255,.8); font-size: 14px; }
.b-video__play { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.b-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.b-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.b-list li span { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.b-h2 { margin: 32px 0 0; font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }

.q-opts--logos .q-opt { justify-content: flex-start; gap: 10px; padding-left: 16px; text-align: left; font-weight: 500; }
.q-opt__logo { flex: none; display: flex; width: 24px; height: 24px; align-items: center; justify-content: center; }
.q-opt__logo svg { width: 24px; height: 24px; }

/* Visual screens: no cards, charts sit on the page */
.q-big { margin-top: 24px; font-family: var(--font-display); font-weight: 500; font-size: 64px; line-height: .95; letter-spacing: -0.05em; color: var(--accent); }
.q-info { margin-top: 4px; }
.q-info__t { margin: 16px 0 0; font-size: 18px; line-height: 1.45; color: var(--ink); max-width: 34ch; }
.q-kick { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.q-stat__s { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* dot grid */
.q-dots { display: grid; grid-template-columns: repeat(20, 1fr); gap: 5px; margin-top: 22px; }
.q-dots i { aspect-ratio: 1; border-radius: 50%; background: var(--track); }
.q-dots i.on { animation: q-dot .35s ease both; }
@keyframes q-dot { from { background: var(--track); transform: scale(.4); } to { background: var(--accent); transform: none; } }
.q-dots__legend { margin-top: 10px; font-size: 13px; color: var(--muted); }
.q-dots__legend span { display: inline-flex; align-items: center; gap: 6px; }
.q-dots__legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ring */
.q-ring { position: relative; width: 200px; height: 200px; margin: 28px 0 0; }
.q-donut { display: block; width: 100%; height: 100%; }
.q-donut__arc { stroke-dashoffset: var(--full); animation: q-arc 1.3s .15s cubic-bezier(.3,.7,.2,1) forwards; }
@keyframes q-arc { to { stroke-dashoffset: var(--off); } }
.q-ring__n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 500; font-size: 52px; letter-spacing: -0.05em; color: var(--accent); }

/* horizontal bars */
.q-bars { display: grid; gap: 18px; margin-top: 26px; }
.q-bars__r { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: baseline; }
.q-bars__t { grid-column: 1 / -1; height: 36px; border-radius: 10px; background: transparent; overflow: hidden; }
.q-bars__t i { display: block; height: 100%; width: 0; min-width: 8px; border-radius: 10px; background: repeating-linear-gradient(135deg, #C9C8C3 0 6px, #D6D5D0 6px 12px); animation: q-bar 1.1s .15s cubic-bezier(.3,.7,.2,1) forwards; }
.is-us .q-bars__t i { background: var(--accent); }
.q-bars__k { font-size: 14px; color: var(--muted); }
.q-bars__v { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.is-us .q-bars__k, .is-us .q-bars__v { color: var(--accent); }
@keyframes q-bar { to { width: var(--w); } }

/* vertical bars (cost screen) */
.q-vbars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; height: 230px; margin-top: 24px; }
.q-vbar { display: grid; grid-template-rows: 1fr auto auto; height: 100%; gap: 6px; }
.q-vbar__v { font-family: var(--font-display); font-weight: 500; font-size: 26px; letter-spacing: -0.03em; }
.is-us .q-vbar__v { color: var(--accent); }
.q-vbar__col { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 0; }
.q-vbar__col i { display: block; flex: none; width: 100%; height: 0; max-height: calc(100% - 40px); border-radius: 14px 14px 6px 6px; background: repeating-linear-gradient(135deg, #C9C8C3 0 6px, #D6D5D0 6px 12px); animation: q-vbar 1.1s .2s cubic-bezier(.3,.7,.2,1) forwards; }
.is-us .q-vbar__col i { background: var(--accent); min-height: 14px; }
@keyframes q-vbar { to { height: var(--h); } }
.q-vbar__k { font-size: 14px; font-weight: 600; line-height: 1.3; }
.q-vbar__s { font-size: 13px; color: var(--muted); }
.is-us .q-vbar__s { color: var(--accent); }
.q-save { margin-top: 18px; }

/* timeline and steps without cards */
.q-tl__i { background: transparent; border: 0; padding: 0 0 6px; }
.q-tl { gap: 26px; }
.q-tl__ic { background: #EFEEEA; }
.q-step { background: transparent; border: 0; padding: 0; }
.q-steps { gap: 22px; position: relative; }
.q-steps::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 36px; width: 2px; background: var(--line); }
.q-step__n { position: relative; z-index: 1; background: var(--accent); color: #fff; }
.q-shot { background: transparent; padding: 6px 0 0; }

@media (prefers-reduced-motion: reduce) { .q-dots i.on { animation: none; background: var(--accent); } .q-donut__arc { animation: none; stroke-dashoffset: var(--off); } .q-bars__t i { animation: none; width: var(--w); } .q-vbar__col i { animation: none; height: var(--h); } }

/* booking step: calendar fills the screen edge to edge */
.is-full .q-main { padding: 0; }
.is-full .q-cal { margin: 0; border: 0; border-radius: 0; min-height: calc(100dvh - 56px); background: #fff; }
.is-full .q-cal__loading { height: calc(100dvh - 56px); }
@media (min-width: 640px) { .is-full .q-main { padding: 0; } }

/* stats: number and sentence together, chart after */
.q-info .q-big { margin-top: 20px; }
.q-info .q-info__t { margin-top: 10px; }
.q-info .q-dots, .q-info .q-bars, .q-info .q-ring { margin-top: 24px; }
/* iOS: no tap flash or ghost outline between footer buttons */
.q-back, .q-next, .q-opt, .q-tab { -webkit-tap-highlight-color: transparent; }
.q-back:focus:not(:focus-visible), .q-next:focus:not(:focus-visible) { outline: none; }
.q-next { transition: background-color .15s; will-change: auto; }
.q-next:disabled { opacity: 1; background: #BDBDB8; }

.q-info--ring .q-ring { margin-top: 28px; }
.q-info--ring .q-info__t { margin-top: 20px; }

/* keep both bars on one baseline when a label wraps */
.q-vbar__k { min-height: 2.6em; }

.q-hint--tight { margin-top: 8px; }
.q-err:empty { display: none; }
