/* OWN T quiz (own-t.com/apply). Colors and font names come from /brand/brand.css only.
   Night top bar, cream question screens with white tiles, night results. Own file: the shared theme is not touched. */
:root {
  --bg: var(--cream); --card: var(--paper); --card-border: var(--line-light); --ink: var(--night); --soft: var(--muted-light);
  --accent: var(--gold-deep); --footer: var(--muted-light);
  --consent-bg: var(--night); --consent-fg: var(--cream); --consent-accept-bg: var(--gold); --consent-accept-fg: var(--night);
}
html.dark, html.dark body { --bg: var(--night); --card: var(--night-2); --card-border: var(--line); --ink: var(--cream); --soft: var(--muted); --accent: var(--gold); --footer: var(--muted); }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input { font-family: inherit; }
html.resuming #app { visibility: hidden; }
.num { font-variant-numeric: tabular-nums; }
.label { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; line-height: 1.6; }

.shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; }
.bar { background: var(--night); height: 56px; display: flex; align-items: center; justify-content: center; position: relative; }
.wordmark { display: block; height: 20px; width: auto; }
.back { position: absolute; left: 6px; top: 6px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--cream); display: none; align-items: center; justify-content: center; cursor: pointer; }
.back svg { width: 24px; height: 24px; }
.shell.has-back .back { display: flex; }
.progress { height: 4px; background: var(--line-light); }
.progress i { display: block; height: 100%; width: 0; background: var(--gold-deep); transition: width .3s ease; }
.shell:not(.has-progress) .progress { visibility: hidden; }

#app { flex: 1; width: 100%; max-width: 600px; margin: 0 auto; padding: 28px 20px 24px; }
.screen { animation: in .22s ease both; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } }

/* Questions: Inter 600. Break titles and quotes: Newsreader. */
.q-label { text-align: center; color: var(--soft); margin: 0 0 6px; }
.q-title { font-family: var(--font-body); font-weight: 600; font-size: 24px; line-height: 1.3; margin: 6px 0 10px; text-align: center; letter-spacing: -0.005em; }
.serif-title { font-family: var(--font-head); font-weight: 500; font-size: 30px; line-height: 1.2; margin: 8px 0 12px; text-align: center; letter-spacing: -0.01em; }
.sub { text-align: center; color: var(--soft); margin: 0 0 8px; font-size: 15px; }
.small { font-size: 13px; color: var(--soft); text-align: center; margin: 14px 0 0; }

.options { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.opt { width: 100%; min-height: 58px; padding: 14px 18px; display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; font-size: 16px; font-weight: 500; color: var(--night);
  background: var(--paper); border: 1px solid var(--line-light); border-radius: 12px; cursor: pointer; transition: border-color .12s, box-shadow .12s; -webkit-tap-highlight-color: transparent; }
.opt:hover { border-color: var(--gold-deep); }
.opt.selected { border-color: var(--gold-deep); box-shadow: 0 0 0 1px var(--gold-deep) inset; }
.multi .opt { justify-content: flex-start; text-align: left; }
.opt .tick { margin-left: auto; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-light); flex: none; display: none; position: relative; }
.multi .opt .tick { display: block; }
.opt.selected .tick { background: var(--gold-deep); border-color: var(--gold-deep); }
.opt.selected .tick::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Q1 with photos: photo on top, label under it, 2 per row, the last one centered */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-grid .opt.photo { flex-direction: column; padding: 0 0 12px; overflow: hidden; gap: 10px; }
.photo-grid .opt.photo:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 6px); justify-self: center; }
.opt-img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--cream); }

/* One button style everywhere: gold, night text, Inter 600. A soft shadow on light screens. */
.cta { display: block; width: 100%; height: 56px; margin-top: 24px; border: 0; border-radius: 999px; background: var(--gold); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 80%, #fff) 0%, var(--gold) 100%); color: var(--night); font-size: 16px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; line-height: 56px; box-shadow: 0 6px 18px rgba(1, 12, 18, .16); }
html.dark .cta { box-shadow: none; }
.cta:disabled { opacity: .4; cursor: default; }
.cta.ghost { background: transparent; color: var(--ink); border: 1px solid var(--accent); box-shadow: none; height: auto; min-height: 52px; line-height: 1.4; padding: 15px 16px; font-weight: 500; }

/* Break screens */
.break .img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; margin: 0 0 20px; background: var(--line-light); }
.break .img[src*="ole"] { object-position: 50% 22%; }
.break p.text { text-align: center; font-size: 17px; margin: 0; }
.quote-break { padding-top: 24px; }
.big-quote { font-family: var(--font-head); font-weight: 500; font-style: italic; font-size: 26px; line-height: 1.35; text-align: center; margin: 0 0 18px; color: var(--night); }
.quote-name { text-align: center; color: var(--soft); margin: 0; }

/* Contact */
.field { margin-top: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input[type=text], .field input[type=tel] { width: 100%; height: 54px; padding: 0 14px; font-size: 16px; color: var(--night); background: var(--paper); border: 1px solid var(--line-light); border-radius: 12px; }
.field input:focus { outline: 2px solid var(--gold-deep); outline-offset: 1px; }
.field input.bad { border: 2px solid var(--gold-deep); }
.field .iti { display: block; width: 100%; }
.err { color: var(--night); font-size: 13px; font-weight: 600; margin-top: 4px; }
.err:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; color: var(--night); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--gold-deep); }

/* Loader */
.loader-title { font-size: 26px; margin: 8px 0 0; }
.loader-sub { margin: 8px 0 16px; font-weight: 500; }
.ring { position: relative; width: 128px; height: 128px; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: var(--line-light); }
.ring .fill { stroke: var(--gold-deep); stroke-linecap: round; }
.ring .pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-weight: 600; }
.steps { list-style: none; margin: 16px auto 0; padding: 0; max-width: 320px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--muted-light); font-weight: 600; transition: color .3s; }
.steps li.active, .steps li.done { color: var(--night); }
.steps .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-light); display: grid; place-items: center; }
.steps li.active .dot { border-color: var(--gold-deep); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.done .dot { border-color: var(--gold-deep); background: var(--gold-deep); }
.steps li.done .dot::after { content: ""; width: 9px; height: 5px; border: solid var(--paper); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.quotes { display: flex; margin: 16px 0 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 12px; }
.quotes::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 100%; scroll-snap-align: start; margin: 0; padding: 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line-light); }
.tm-title { margin: 0; font-size: 14px; font-weight: 600; color: var(--night); }
.tm-text { margin: 8px 0 0; font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: 17px; line-height: 1.45; color: var(--night); }
.tm-byline { margin-top: 8px; font-size: 13px; }
.tm-name { font-weight: 600; color: var(--night); }
.tm-role { color: var(--muted-light); }
.tm-small { margin: 8px 0 0; font-size: 11px; line-height: 15px; color: var(--muted-light); }

/* Results: night. One job: he books the call. Compact on top so the calendar shows almost at once on a phone. */
html.dark .site-footer { display: none; }
.results { text-align: left; }
.res-label { color: var(--gold); margin: 0 0 6px; }
.res-headline { font-family: var(--font-head); font-weight: 500; font-size: 34px; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 10px; color: var(--cream); }
.res-title { font-family: var(--font-body); font-weight: 600; font-size: 18px; line-height: 1.35; margin: 0 0 8px; color: var(--cream); }
.res-text { font-size: 15px; line-height: 1.55; margin: 0 0 8px; color: var(--cream); }
.res-price { font-size: 13px; color: var(--gold); margin: 4px 0 12px; }
.max-row { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.max-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.max-name { margin: 0; font-size: 14px; font-weight: 600; color: var(--cream); line-height: 1.3; }
.max-role { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.3; }
#cal { width: 100%; min-height: 560px; overflow: auto; border-radius: 12px; background: var(--night-2); }
.booked { margin-top: 14px; text-align: center; }
.booked:empty { display: none; }
.no-time { margin: 14px 0 0; }
.res-link a { color: var(--gold); text-decoration: underline; font-weight: 600; }

.res-below { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.res-steps-label { color: var(--gold); margin: 0 0 12px; }
.res-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.res-steps li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--cream); }
.res-steps .ico { flex: none; width: 26px; height: 26px; color: var(--gold); margin-top: -1px; }
.res-steps .ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.res-quote { margin: 28px 0 0; padding: 20px; background: var(--night-2); border: 1px solid var(--line); border-radius: 12px; }
.res-quote blockquote { margin: 0 0 10px; font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: 19px; line-height: 1.45; color: var(--cream); }
.res-quote figcaption { color: var(--gold); }
.res-quote .tiny { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.trust { margin: 26px 0 0; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-align: center; line-height: 2.2; }
.trust-item { white-space: nowrap; }
.dot-sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--line); vertical-align: middle; margin: 0 9px; }
.res-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: 12px; line-height: 1.6; color: var(--muted); }
.res-legal p { margin: 0 0 8px; }
.res-legal a { color: inherit; text-decoration: none; }

.site-footer { margin-top: auto; }
body.has-consent #app { padding-bottom: calc(var(--consent-h, 130px) + 24px); }
.legal-block { margin-top: 28px; }
.legal-line { margin: 0; text-align: center; color: var(--soft); font-size: 12px; line-height: 18px; }
.legal-line a { color: inherit; text-decoration: underline; }
.legal-line + .legal-line { margin-top: 2px; }
@media (max-width: 380px) { .q-title { font-size: 22px; } .res-headline { font-size: 30px; } .big-quote { font-size: 23px; } }
@media (min-width: 768px) {
  #app { max-width: 640px; }
  /* Desktop results: the calendar gets the width Cal.com's column view needs, the text stays a readable column. */
  html.dark #app { max-width: 1000px; }
  .results > *:not(#cal) { max-width: 640px; margin-left: auto; margin-right: auto; }
  .results #cal { min-height: 620px; }
}

/* Welcome: full height, disclaimer at the very bottom under the button (never between text and button, never fixed).
   The screen fills the space between the top bar and the footer, so it fits without scrolling. */
#app:has(> [data-screen="welcome"]) { display: flex; flex-direction: column; }
[data-screen="welcome"] { flex: 1; display: flex; flex-direction: column; }
.welcome-disclaimer { margin: auto auto 0; padding: 24px 0 16px; max-width: 420px; text-align: center; font-family: var(--font-body); font-weight: 400; font-size: 11px; line-height: 1.5; color: var(--soft); }

/* Welcome: required health consent under the text */
.consent-health { margin-top: 20px; font-size: 14px; }
.consent-health a { color: inherit; }
[data-screen="welcome"] .cta { margin-top: 14px; }

/* Start screen: a calm first screen before Q1 */
.start { padding-top: 56px; }
.start .text { margin-bottom: 8px; }

/* Quiz footer: on phones the Consumer Health Data link sits on its own second line, without the dot before it. */
.fbrk { display: none; }
@media (max-width: 600px) { .fbrk { display: block; } .fsep { display: none; } }

/* Trust line: dots between items on desktop; on phones every item is its own sentence with a full stop, centred. */
.trust .end { display: none; }
@media (max-width: 600px) {
  .trust { letter-spacing: .1em; }
  .trust-item { display: block; white-space: normal; }
  .trust .dot-sep { display: none; }
  .trust .end { display: inline; }
}

/* Cookie card (Europe only, after the first answer). Floating bottom left on a desktop, a slim card at the bottom on a phone. It never covers the quiz: no overlay, and the page keeps room above it. */
.ck-card { position: fixed; z-index: 50; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 10px 12px; background: #0E1B2E; color: #fff; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .35); font-size: 12.5px; line-height: 1.4; }
.ck-card p { margin: 0 0 8px; }
.ck-actions { display: flex; gap: 8px; }
.ck-actions button { flex: 1 1 0; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ck-actions .ck-no { background: transparent; color: #fff; }
.ck-actions .ck-yes { background: var(--gold); color: var(--night); border-color: var(--gold); }
body.has-ck #app { padding-bottom: calc(var(--ck-h, 100px) + 14px); }
@media (min-width: 720px) {
  .ck-card { left: 20px; right: auto; bottom: 56px; width: 340px; padding: 16px; font-size: 14px; }
  .ck-actions button { height: 42px; font-size: 14px; }
  body.has-ck #app { padding-bottom: 0; }
}
