/* Demo site in Chris Szito's brand system (v4, the chrisszito.com look): warm paper, stone bands,
   Inter Display, royal blue, warm shadows. Every demo uses this file; a new demo changes only the
   "Per demo" block below, the copy (i18n.js), the questions (apps-script/Config.js) and the mark
   (the #kestrel symbol in index.html). README › Make the next demo.
   The page is built around the quote form: hero (the form's first question), who we work for,
   what happens after the form, the form. */

@font-face { font-family: "Inter Display"; font-weight: 400; font-display: swap; src: url(fonts/InterDisplay-Regular.woff2) format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 500; font-display: swap; src: url(fonts/InterDisplay-Medium.woff2) format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 600; font-display: swap; src: url(fonts/InterDisplay-SemiBold.woff2) format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 700; font-display: swap; src: url(fonts/InterDisplay-Bold.woff2) format("woff2"); }

/* Brand tokens (from chrisszito-site/src/styles/site.css). Don't change these per demo. */
:root {
  --sky-100: #DDEDFF; --sky-500: #1E96FC; --sky-700: #0965AF;
  --royal-100: #DDE8FE; --royal-500: #072AC8; --royal-900: #001437;
  --magenta-500: #D81159;
  --paper: #FBFAF7; --stone: #F3F1EB; --stone-2: #ECE9E2; --ink: #1B1A17; --graphite: #47443E;
  --muted: #77736B; --faint: #A7A39B; --mist: #E6E2DA;
  --deep: linear-gradient(160deg, #072AC8 0%, #0965AF 100%);
  --bar: linear-gradient(90deg, #072AC8 0%, #1E96FC 100%);
  --font: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --soft: 0 1px 0 rgba(40, 32, 20, .03), 0 8px 24px rgba(40, 32, 20, .05);
  --sheet: 0 1px 2px rgba(40, 32, 20, .05), 0 10px 26px rgba(40, 32, 20, .08);
  --float: 0 12px 40px rgba(40, 32, 20, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --max: 1040px;
  --gutter: clamp(16px, 4.5vw, 32px);
}

/* Per demo: the made-up business's accent. Royal by default, so every demo reads as Chris's. */
:root {
  --demo-accent: var(--royal-500);      /* buttons, prices, selected answers, the mark */
  --demo-accent-soft: var(--royal-100); /* selected answer background, icon tiles */
  --demo-band: var(--deep);             /* the band behind the form */
  --demo-bar: var(--bar);               /* the progress bar's fill */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.6; letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 500; letter-spacing: -.03em; color: var(--ink); }
h1 { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.06; letter-spacing: -.034em; }
h2 { font-size: clamp(28px, 3.7vw, 44px); line-height: 1.1; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.015em; }
p { color: var(--graphite); text-wrap: pretty; }
a { color: var(--demo-accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.sec { padding: 104px 0; }
.sec.band { background: var(--stone); }
.section-lead { margin-top: 14px; max-width: 54ch; font-size: 18px; line-height: 1.55; }
@media (max-width: 760px) { .sec { padding: 72px 0; } }

/* header: translucent paper bar, like chrisszito.com */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 250, 247, .8);
  -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--mist); }
.top-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 16px; height: 68px; padding-inline: var(--gutter); }
.brand-wrap { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.mark { width: 30px; height: 30px; fill: var(--demo-accent); flex-shrink: 0; }
.brand-name { display: flex; flex-direction: column; font-weight: 600; font-size: 16px; letter-spacing: -.015em; line-height: 1.1; color: var(--ink); }
.brand-sub { margin-top: 3px; font-weight: 400; font-size: 12.5px; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
/* "Demo": neutral, so it reads as a label and not as a warning */
.chip {
  flex-shrink: 0; font-size: 11.5px; font-weight: 600; line-height: 1; letter-spacing: .01em;
  padding: 5px 9px; border-radius: 999px; color: var(--ink); background: var(--stone);
  border: 1px solid rgba(27, 26, 23, .28);
}
.nav { display: none; gap: 24px; font-size: 14.5px; }
.nav a { color: var(--graphite); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--mist); }
.lang button { border: 0; background: transparent; cursor: pointer; font-size: 12.5px; font-weight: 600; padding: 6px 9px; border-radius: 999px; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.top-actions .top-cta { display: none; }

/* buttons: the glossy royal pill from chrisszito.com */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--demo-accent); color: #fff; font: 600 15.5px/1 var(--font); letter-spacing: -.015em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn--glow { background: linear-gradient(180deg, #3E6BFF 0%, var(--royal-500) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 1px rgba(7, 42, 200, .6), 0 8px 22px rgba(7, 42, 200, .3); }
.btn--glow:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 1px rgba(7, 42, 200, .7), 0 12px 30px rgba(7, 42, 200, .42); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
a.btn, a.btn:visited { color: #fff; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-large { min-height: 56px; padding: 0 32px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.text-link { background: none; border: 0; padding: 0 0 2px; cursor: pointer; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--mist); transition: border-color .2s; }
.text-link:hover { border-color: var(--ink); }

/* hero: the headline on the left, the form's first question on a paper sheet on the right */
.hero {
  max-width: var(--max); margin: 0 auto; display: grid; gap: 40px;
  padding: clamp(32px, 7vw, 80px) var(--gutter) clamp(64px, 9vw, 104px);
}
.hero h1 { max-width: 15ch; }
.lead { margin-top: 18px; font-size: 18px; line-height: 1.55; max-width: 44ch; }
.facts { margin-top: 28px; display: grid; gap: 10px; }
.facts li { display: flex; align-items: center; gap: 11px; font-size: 15.5px; color: var(--ink); }
.facts svg { width: 21px; height: 21px; flex-shrink: 0; color: var(--demo-accent); }
.hero-visual { position: relative; align-self: end; }
.hero-bird { display: none; }
.hero-card {
  position: relative; background: #fff; border: 1px solid var(--mist); border-radius: 14px;
  padding: 22px 18px 18px; box-shadow: var(--float);
}
.hero-card-title { font-size: 20px; font-weight: 500; letter-spacing: -.02em; padding-bottom: 14px; border-bottom: 1px solid var(--mist); }
.hero-card-q { margin-top: 16px; font-weight: 600; font-size: 16px; color: var(--ink); }
.hero-opts { margin-top: 12px; display: grid; gap: 8px; }
.hero-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 50px; padding: 11px 15px;
  border: 1px solid var(--mist); border-radius: 10px; background: var(--paper);
  font-size: 15.5px; font-weight: 500; text-align: left; cursor: pointer; color: var(--ink);
  transition: border-color .15s, background-color .15s, transform .12s;
}
.hero-opt svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--faint); transition: transform .2s var(--ease), color .15s; }
.hero-opt:hover { border-color: var(--demo-accent); background: #fff; }
.hero-opt:hover svg { color: var(--demo-accent); transform: translateX(3px); }
.hero-opt:active { transform: scale(.99); }
.hero-card-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* who we work for: three columns divided by lines on a stone band, no cards */
.groups { margin-top: 44px; display: grid; }
.group { padding: 28px 0; border-top: 1px solid var(--mist); display: grid; gap: 12px; align-content: start; }
.group:first-child { border-top: 0; padding-top: 0; }
.group-icon { width: 40px; height: 40px; border-radius: 13px; background: var(--demo-accent-soft); color: var(--demo-accent); display: grid; place-items: center; }
.group-icon svg { width: 21px; height: 21px; }
.group h3 { margin-top: 4px; }
.group .who { color: var(--muted); font-size: 15px; }
.group .price { margin-top: 6px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
.group .price .amount { font-size: clamp(30px, 6vw, 36px); font-weight: 500; letter-spacing: -.03em; color: var(--demo-accent); font-variant-numeric: tabular-nums; }
.group .price .from { font-size: 14px; color: var(--muted); }
.groups-foot { margin-top: 40px; color: var(--muted); font-size: 14.5px; max-width: 70ch; }
.checks { display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 26px; font-size: 15px; color: var(--graphite); }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 7px;
  border-left: 1.8px solid var(--demo-accent); border-bottom: 1.8px solid var(--demo-accent); transform: rotate(-45deg);
}

/* what happens after the form: a real sequence, dots on a dashed line (the steps from chrisszito.com) */
.how h2 { max-width: 20ch; }
.how-steps { margin-top: 40px; display: grid; gap: 28px; counter-reset: step; position: relative; }
.how-steps li { counter-increment: step; position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.how-steps li::before {
  content: counter(step); position: relative; z-index: 1;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--demo-accent); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 7px rgba(7, 42, 200, .12);
}
.how-steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 40px; bottom: -24px; border-left: 1.5px dashed #C2BBAE; }
.how-steps p { padding-top: 5px; max-width: 40ch; color: var(--ink); }

/* the quote form: the one deep blue band on the page, a white sheet on it */
.quote { background: var(--demo-band); padding: clamp(56px, 9vw, 104px) var(--gutter); scroll-margin-top: 60px; }
.qf { max-width: 620px; margin: 0 auto; }
.qf-start, .qf-card, .qf-thanks { background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 30px 70px rgba(0, 20, 55, .35); }
.qf-start { text-align: center; padding: clamp(34px, 7vw, 54px) clamp(22px, 5vw, 48px); }
.qf-mark { width: 48px; height: 48px; fill: var(--demo-accent); }
.qf-start h2 { margin-top: 12px; font-size: clamp(28px, 5.4vw, 38px); }
.qf-start p { margin: 12px auto 0; max-width: 38ch; color: var(--graphite); }
.qf-start .btn { margin-top: 26px; }
.qf-small { font-size: 13.5px; color: var(--muted) !important; }
.qf-start.leaving { animation: leave .22s var(--ease) forwards; }
@keyframes leave { to { opacity: 0; transform: scale(.97); } }

.qf-card { overflow: hidden; }
.qf-card.entering { animation: rise .32s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
/* progress: a stone track, the brand's blue bar filling it */
.qf-bar { height: 6px; margin: 20px clamp(18px, 4vw, 32px) 0; border-radius: 999px; background: var(--stone-2); overflow: hidden; }
.qf-bar span { display: block; height: 100%; width: 0; background: var(--demo-bar); border-radius: 999px; transition: width .45s var(--ease); }
.qf-bar-start { margin: 0 auto 26px; max-width: 220px; }
.qf-top { display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(18px, 4vw, 32px) 0; min-height: 44px; }
.qf-back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 14.5px; font-weight: 500; padding: 6px 8px 6px 2px; border-radius: 8px; }
.qf-back svg { width: 16px; height: 16px; }
.qf-back:hover { color: var(--ink); }
.qf-back[hidden] { display: inline-flex; visibility: hidden; }
.qf-count { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
#qf-form { padding: 6px clamp(18px, 4vw, 32px) clamp(22px, 4vw, 32px); }

.qf-step.in-fwd { animation: in-fwd .28s var(--ease); }
.qf-step.in-back { animation: in-back .28s var(--ease); }
@keyframes in-fwd { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes in-back { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
.step-title { font-size: clamp(23px, 4.8vw, 28px); line-height: 1.2; font-weight: 500; letter-spacing: -.025em; outline: none; }
.step-hint { margin-top: 6px; color: var(--muted); font-size: 15px; }
.qblock { margin-top: 22px; }
.qblock + .qblock { margin-top: 26px; }
.qblock.is-new { animation: rise .26s var(--ease); }
.qlabel { display: block; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.qf-step.no-heading .qblock:first-child { margin-top: 4px; }
.qf-step.no-heading .qlabel { font-size: clamp(20px, 4.4vw, 23px); font-weight: 500; line-height: 1.22; letter-spacing: -.02em; margin-bottom: 14px; }
.qf-step.no-heading .qlabel .hint { display: block; margin: 6px 0 0; font-size: 15px; letter-spacing: 0; line-height: 1.4; }
.qlabel .hint { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 4px; }

.opts { display: grid; gap: 9px; }
.opt { position: relative; display: block; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt-body {
  display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 12px 15px;
  border: 1px solid var(--mist); border-radius: 10px; background: var(--paper);
  cursor: pointer; user-select: none; transition: border-color .12s, background-color .12s, transform .12s;
}
.opt-key {
  display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--mist); font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.opt-text { flex: 1; font-size: 16px; line-height: 1.3; color: var(--ink); }
.opt-check { width: 20px; height: 20px; flex-shrink: 0; color: var(--demo-accent); opacity: 0; transition: opacity .12s; }
.opt:hover .opt-body { border-color: #CFC9BE; background: #fff; }
.opt input:checked + .opt-body { border-color: var(--demo-accent); background: var(--demo-accent-soft); }
.opt input:checked + .opt-body .opt-key { background: var(--demo-accent); box-shadow: none; color: #fff; }
.opt input:checked + .opt-body .opt-check { opacity: 1; }
.opt input:focus-visible + .opt-body { outline: 3px solid var(--sky-500); outline-offset: 2px; }
.opt input:active + .opt-body { transform: scale(.99); }
/* short choices sit in one row: the Anrede, the best time to call */
.qblock[data-key="salutation"] .opts, .qblock[data-key="call_time"] .opts { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qblock[data-key="salutation"] .opt-body, .qblock[data-key="call_time"] .opt-body { justify-content: center; min-height: 48px; padding: 10px 8px; text-align: center; }
.qblock[data-key="salutation"] .opt-key, .qblock[data-key="call_time"] .opt-key,
.qblock[data-key="salutation"] .opt-check, .qblock[data-key="call_time"] .opt-check { display: none; }
.qblock[data-key="salutation"] .opt-text, .qblock[data-key="call_time"] .opt-text { flex: none; font-size: 15px; }

.input {
  width: 100%; min-height: 52px; padding: 13px 15px;
  border: 1px solid var(--mist); border-radius: 10px; background: var(--paper);
  font: 400 16.5px/1.4 var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; background: #fff; border-color: var(--demo-accent); box-shadow: 0 0 0 3px rgba(7, 42, 200, .14); }
textarea.input { resize: vertical; min-height: 128px; }
.input-short { max-width: 160px; }

.err { margin-top: 10px; color: var(--magenta-500); font-size: 14.5px; font-weight: 500; }
.qblock.has-error .opt-body, .qblock.has-error .input { border-color: var(--magenta-500); }

.nowrap { white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.qf-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.qf-skip { border: 0; background: none; cursor: pointer; color: var(--muted); font-weight: 600; padding: 8px 4px; text-decoration: underline; text-decoration-color: var(--mist); text-underline-offset: 4px; }
.qf-skip:hover { color: var(--ink); }
.qf-enter { display: none; font-size: 13.5px; color: var(--muted); }
.qf-send-error { margin-top: 14px; color: var(--magenta-500); font-weight: 500; }

.qf-thanks { text-align: center; padding: clamp(40px, 8vw, 60px) 24px; }
.qf-thanks:focus { outline: none; }
.qf-thanks:not([hidden]) { animation: rise .34s var(--ease); }
.qf-thanks h2 { margin-top: 14px; font-size: clamp(27px, 5.2vw, 36px); }
.qf-thanks p { margin: 12px auto 0; max-width: 40ch; }
.qf-thanks .text-link { margin-top: 26px; }

/* footer: thin, like chrisszito.com's: the firm, its links, the language, then one line saying it's a demo */
.site-foot { border-top: 1px solid var(--mist); padding: 44px 0 0; background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.foot-about { grid-column: 1 / -1; display: grid; gap: 12px; align-content: start; max-width: 340px; }
.foot-about p { font-size: 14px; color: var(--muted); }
.foot-about .mark { width: 26px; height: 26px; }
.foot-col { display: grid; gap: 9px; align-content: start; justify-items: start; }
.foot-h { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.foot-col a { font-size: 14px; color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 20px;
  margin-top: 36px; padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--mist);
}
.foot-bottom p { font-size: 13px; color: var(--muted); max-width: 62ch; }
.foot-bottom p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-legal a { font-size: 13px; color: var(--muted); text-decoration: none; }
.foot-legal a:hover { color: var(--ink); }

@media (min-width: 600px) {
  .top-actions .top-cta { display: inline-flex; }
}
@media (min-width: 900px) {
  .nav { display: flex; margin-right: 8px; }
  .hero { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 64px; }
  .facts { display: flex; flex-wrap: wrap; gap: 10px 26px; }
  .facts li { white-space: nowrap; }
  .hero-card { padding: 28px 26px 24px; }
  .groups { grid-template-columns: repeat(3, 1fr); }
  .group { padding: 0 32px; border-top: 0; border-left: 1px solid var(--mist); display: flex; flex-direction: column; }
  .group .price { margin-top: auto; padding-top: 10px; } /* the prices line up across the three columns */
  .group:first-child { padding-left: 0; border-left: 0; }
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .how-steps li { grid-template-columns: 1fr; gap: 16px; }
  .how-steps li:not(:last-child)::after { display: none; }
  /* one dashed line from the first dot to the last, behind them */
  .how-steps::before { content: ""; position: absolute; top: 17px; left: 17px; right: calc((100% - 72px) / 3 - 17px); border-top: 1.5px dashed #C2BBAE; }
  .how-steps p { padding-top: 0; }
  .qf-enter { display: inline; }
  .foot-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, .7fr); }
  .foot-about { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
