/* CE The Villages: contractor survey landing page
   Brand source: CE Corporate Style Guide v1 (Jan 2024), web palette + type scale.
   Type: Proxima Nova per the guide (Adobe Fonts kit to be added by CE/HSIQ); the
   campaign brief names Helvetica, so the stack falls back to Helvetica Neue/Helvetica. */

:root {
  /* CE web palette (style guide, "Color - Web Palette") */
  --ce-purple: #3D2763;          /* Primary Purple (Eggplant), core */
  --ce-plum: #533587;            /* Highlight Purple (Plum) */
  --ce-purple-hi: #6843A9;       /* top of the purple gradient range */
  --ce-purple-700: #2C1C47;
  --ce-purple-800: #231639;
  --ce-purple-900: #1A112B;
  --ce-purple-shadow: #120B1D;
  --ce-neutral: #F0F0F4;
  --ce-cool-50: #F1F1F3;
  --ce-cool-100: #E3E3E7;
  --ce-cool-300: #B8BAC3;        /* CE Cool Gray, core */
  --ce-gravel: #505868;          /* guide Slate Gray; used for small grey text (passes contrast) */
  --ce-slate: #808A9D;           /* guide CTA Button Gray (Gravel) */
  --ce-text: #404048;            /* Text Black */
  --ce-link: #105693;            /* Text Link Blue */
  --ce-yellow: #F2B31E;          /* tertiary */
  --ce-orange: #E87D1E;          /* Product Delivery Orange */
  --ce-focus: #B4DEFA;           /* Focus state */
  --ce-error: #F03E3E;           /* Alert Red */
  --ce-error-bg: #FFF5F5;
  /* Drop 1 proof tints (derived from the purple range, not in the web palette) */
  --ce-lavender: #D6CBEB;        /* light sub-headline on purple (proof: "CE is here to help it grow.") */
  --ce-lavender-50: #EFE9F5;     /* $100 coupon fill */
  --ce-cream: #FAF7F2;           /* $5 gift card inner panel */

  --font: "proxima-nova", "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 1px 2px rgba(18, 11, 29, .06), 0 12px 32px rgba(18, 11, 29, .16), 0 40px 80px -24px rgba(18, 11, 29, .35);
  --wrap: 1320px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;                 /* guide: body 16/24 tablet-mobile */
  line-height: 1.5;
  color: var(--ce-text);
  background: var(--ce-neutral);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 1024px) { body { font-size: 18px; line-height: 1.4; } }  /* guide: body 18/24 desktop */

img, svg { display: block; max-width: 100%; }
a { color: var(--ce-link); }
:focus-visible { outline: 3px solid var(--ce-focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: #fff; color: var(--ce-purple); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- type ---------- */
.eyebrow {                          /* guide: eyebrow 20 medium, uppercase identifier */
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ce-plum);
}
.eyebrow--light { color: var(--ce-cool-100); }
@media (min-width: 1024px) { .eyebrow { font-size: 15px; } }

.section-title {                    /* guide: H3 36/40 mobile, 48/52 desktop, extra bold */
  margin: 0;
  font-size: clamp(28px, 3.2vw + 14px, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--ce-purple);
  text-wrap: balance;
}
.section-title--light { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--ce-purple); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary:hover { --btn-bg: var(--ce-plum); }
.btn--accent { --btn-bg: #fff; --btn-fg: var(--ce-purple); box-shadow: 0 8px 24px rgba(18, 11, 29, .28); }
.btn--accent:hover { --btn-bg: var(--ce-cool-50); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ce-purple); }
.btn--light:hover { --btn-bg: var(--ce-cool-100); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ce-purple); border-color: var(--ce-purple); }
.btn--ghost:hover { --btn-bg: var(--ce-purple); --btn-fg: #fff; }
.btn--small { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn--large { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }

/* ---------- review banner ---------- */
.review-banner {
  background: var(--ce-yellow); color: var(--ce-purple-shadow);
  text-align: center; font-size: 13px; font-weight: 600; padding: 8px var(--gutter);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 11, 29, .92);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.site-header__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.site-header__brand .logo { height: 30px; width: auto; }
.site-header__place {
  padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .28);
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ce-cool-100);
}
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
}
.header-phone svg { width: 20px; height: 20px; fill: currentColor; }
.header-phone span, .header-cta { display: none; }
@media (min-width: 720px) { .header-phone span { display: inline; } .header-phone { padding: 0 6px; } }
@media (min-width: 1024px) { .header-cta { display: inline-flex; } }
@media (max-width: 340px) { .site-header__place { display: none; } }
@media (min-width: 1024px) { :root { --header-h: 64px; } }

.logo--white { color: #fff; }

/* ---------- hero ---------- */
.hero {
  /* clip, not hidden: a hidden box is still a scroll container, so focus() and scrollIntoView()
     on the survey card scrolled the hero sideways on phones (QA 2026-12-04 R-1). */
  position: relative; overflow: hidden; overflow: clip; isolation: isolate;
  color: #fff;
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(104, 67, 169, .55) 0%, rgba(104, 67, 169, 0) 60%),
    linear-gradient(160deg, var(--ce-purple) 0%, var(--ce-purple-800) 55%, var(--ce-purple-shadow) 100%);
  padding: 22px 0 0;
}
/* angled bottom edge (proof direction "Angled headline"): the neutral page cuts in */
.hero::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: -1px; height: 120px;
  background: var(--ce-neutral);
  clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%);
}
.hero__dial {
  position: absolute; z-index: -1; right: -180px; top: -120px; width: 560px; height: 560px;
  fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 34; stroke-linecap: round;
}
.hero__dial circle { stroke-width: 2; stroke: rgba(255, 255, 255, .08); }
.hero__grid { display: grid; gap: 18px; }
.hero__copy { padding-bottom: 0; }
.hero .eyebrow--light { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--ce-lavender); }
.hero .eyebrow--light::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.hero__title {                      /* guide: H1 extra bold; tuned down so the sub-headline reads as its own tier (proof) */
  margin: 0;
  font-size: clamp(32px, 4.2vw + 14px, 58px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.hero__title span { display: block; }
.hero__title-alt {                  /* guide p5: extra-bold headline + semi-bold sub-headline in a contrasting colour (proof: lavender, smaller) */
  margin-top: .32em;
  font-size: .6em; line-height: 1.12; font-weight: 600; letter-spacing: -.015em;
  color: var(--ce-lavender);
}
.hero__sub {                        /* proof tagline "Built by you. Backed by CE." as a quiet accent bar */
  display: inline-block; margin: 18px 0 0; padding: 8px 14px 8px 12px;
  border-left: 3px solid var(--ce-lavender); border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, .07);
  font-size: clamp(15px, .6vw + 12px, 18px); font-weight: 700; letter-spacing: .005em; color: #fff;
}
.hero__sub span { color: var(--ce-lavender); }
.hero__unit { display: none; }
@keyframes fan-spin { to { transform: rotate(360deg); } }
/* gusts travel outward along each air line (dash moves from the unit to the right) */
@keyframes air-flow { from { stroke-dashoffset: 170; } to { stroke-dashoffset: 0; } }
@keyframes led { 50% { opacity: .35; } }
.hero__body { display: none; margin: 20px 0 0; max-width: 27em; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .76); }


@media (min-width: 1024px) {
  .hero { padding: 56px 0 0; }
  .hero::after { height: 200px; }
  .hero__body { display: block; }
  .hero__unit { display: block; width: 380px; max-width: 100%; height: auto; margin-top: 48px; fill: none; stroke: rgba(214, 203, 235, .32); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .hero__unit .hero__fan-ring { stroke: var(--ce-lavender); stroke-opacity: .5; }
  .hero__fan { transform-box: view-box; transform-origin: 160px 130px; animation: fan-spin 1.6s linear infinite; }
  .hero__fan path { fill: rgba(214, 203, 235, .14); stroke: rgba(214, 203, 235, .55); }
  .hero__fan circle { fill: var(--ce-purple-800); stroke: var(--ce-lavender); }
  .hero__air-trail use { stroke: var(--ce-lavender); stroke-opacity: .2; stroke-width: 2; }
  .hero__air use { stroke: var(--ce-lavender); stroke-opacity: .85; stroke-width: 3; stroke-dasharray: 54 116; animation: air-flow 1.4s linear infinite; }
  .hero__air use:nth-child(1), .hero__air use:nth-child(5) { stroke-width: 2; stroke-opacity: .6; stroke-dasharray: 36 134; animation-duration: 1.7s; }
  .hero__air use:nth-child(1) { animation-delay: -.9s; }
  .hero__air use:nth-child(2) { animation-delay: -.35s; }
  .hero__air use:nth-child(3) { animation-delay: -1.05s; }
  .hero__air use:nth-child(4) { animation-delay: -.6s; }
  .hero__air use:nth-child(5) { animation-delay: -.2s; }
  .hero__led { fill: #6FD38A; stroke: none; animation: led 2s ease-in-out infinite; }
  .hero__dial { right: auto; left: -220px; top: auto; bottom: -140px; width: 720px; height: 720px; }
  .hero__grid { grid-template-columns: minmax(340px, 1fr) minmax(0, 600px); gap: 56px; align-items: start; }
  .hero__title { font-size: clamp(40px, 2.6vw + 14px, 54px); }
  .survey-card { padding: 28px 32px 24px; }
  .hero__copy { position: sticky; top: calc(var(--header-h) + 48px); padding-bottom: 120px; }
}

/* ---------- survey card ---------- */
.survey-card {
  position: relative;
  background: #fff; color: var(--ce-text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 18px 16px 16px;
  margin: 0 calc(var(--gutter) * -0.4) 40px;
  /* No scroll-margin here: html's scroll-padding-top already clears the sticky header, and the
     two add up (card landed 136px down instead of ~69px; QA 2026-12-04 R-2). */
}
.survey-card:focus { outline: none; }
@media (min-width: 560px) { .survey-card { padding: 26px 28px 22px; margin-left: 0; margin-right: 0; } }
@media (min-width: 1024px) { .survey-card { margin-bottom: 72px; } }

.survey-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.survey-card__title { margin: 0 0 4px; font-size: clamp(21px, 1.4vw + 15px, 28px); line-height: 1.1; font-weight: 800; letter-spacing: -.015em; color: var(--ce-purple); }
.survey-card__lede { margin: 0 0 12px; font-size: 14px; color: var(--ce-gravel); }
.gift-pill { flex: none; display: inline-flex; align-items: baseline; gap: 5px; margin: 2px 0 0; padding: 5px 11px; border-radius: 999px; background: var(--ce-purple); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 12px rgba(61, 39, 99, .25); }
.gift-pill span { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.tracker { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 14px 0 0; padding: 0; }
.tracker li { display: grid; gap: 7px; min-width: 0; }
.tracker__dot { height: 5px; border-radius: 999px; background: var(--ce-cool-100); transition: background-color .25s ease; }
.tracker li.is-done .tracker__dot { background: var(--ce-plum); }
.tracker li.is-current .tracker__dot { background: linear-gradient(90deg, var(--ce-purple), var(--ce-purple-hi)); }
.tracker__label { display: none; font-size: 12px; font-weight: 600; color: var(--ce-slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tracker li.is-current .tracker__label { color: var(--ce-purple); }
.tracker li.is-done .tracker__label { color: var(--ce-gravel); }
@media (min-width: 560px) { .tracker__label { display: block; } }

.survey { margin-top: 4px; }
.panel__count { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ce-plum); }
.panel__count:empty { display: none; }
.is-wizard .panel { position: relative; z-index: 2; padding-top: 22px; }  /* above the nav bar so the state list can overlap it */
.is-wizard .panel:not(.is-active) { display: none; }
.is-wizard .panel.is-active { animation: panel-in .28s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.is-wizard .step { padding: 0; border-top: 0; }
.is-wizard .step + .step { margin-top: 22px; }
.is-wizard .step legend { margin-bottom: 16px; font-size: clamp(20px, 1vw + 16px, 24px); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.step { margin: 0; padding: 14px 0 2px; border: 0; border-top: 1px solid var(--ce-cool-100); min-width: 0; }
.step:first-of-type { border-top: 0; }
.step legend + * { clear: both; }
.step legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 700; color: var(--ce-purple); }
.step__num {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ce-neutral); color: var(--ce-purple); font-size: 12px; font-weight: 800;
  transition: background-color .2s ease, color .2s ease;
}
.step.is-complete .step__num { background: var(--ce-purple); color: #fff; }

.field { margin-bottom: 16px; min-width: 0; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ce-text); }
.opt { font-weight: 400; color: var(--ce-slate); font-size: 13px; margin-left: 4px; }
.field__hint { margin: -4px 0 8px; font-size: 12.5px; line-height: 1.45; color: var(--ce-gravel); }
.field input:not([type="checkbox"]) + .field__hint { margin: 4px 0 0; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1.5px solid var(--ce-cool-100); border-radius: 12px;
  background: #F8F8FB; color: var(--ce-text);
  font: inherit; font-size: 16px;             /* 16px stops iOS zoom on focus */
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
input::placeholder { color: #A4A4A8; }
input:hover, select:hover { border-color: var(--ce-cool-300); }
input:focus, select:focus { outline: none; border-color: var(--ce-plum); background: #fff; box-shadow: 0 0 0 4px var(--ce-focus); }
.is-invalid input, .is-invalid select, input.is-invalid { border-color: var(--ce-error); background: var(--ce-error-bg); }
.field__error { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: #C92A2A; }
.field__error::before { content: "! "; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.field-row--pair { grid-template-columns: 1fr; }
@media (min-width: 360px) { .field-row--pair { grid-template-columns: 1fr 1fr; } }
.field-row--address { grid-template-columns: 1.6fr 1fr; }


.combo { position: relative; }
.combo::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; border: solid var(--ce-gravel); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.combo input[type="text"] { padding-right: 40px; }
.combo__list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  max-height: 240px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--ce-cool-100); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(18, 11, 29, .18);
}
.combo__opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding: 8px 12px; border-radius: 8px; font-size: 15px; cursor: pointer; }
.combo__opt small { font-size: 12px; font-weight: 700; color: var(--ce-slate); }
.combo__opt:hover, .combo__opt.is-active { background: var(--ce-lavender-50); color: var(--ce-purple); }
.combo__opt[aria-selected="true"] { font-weight: 700; color: var(--ce-purple); }
.combo__empty { padding: 10px 12px; font-size: 14px; color: var(--ce-slate); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; border: solid var(--ce-gravel); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select { padding-right: 40px; cursor: pointer; }

/* brand chips */
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 50px; padding: 10px 12px;
  border: 1.5px solid var(--ce-cool-100); border-radius: 12px; background: #F8F8FB;
  font-size: 14px; font-weight: 600; color: var(--ce-text); cursor: pointer; user-select: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip span::before {
  content: ""; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--ce-cool-300);
  transition: inherit; flex: none;
}
.chip:hover span { border-color: var(--ce-plum); }
.chip input:checked + span { background: var(--ce-purple); border-color: var(--ce-purple); color: #fff; }
.chip input:checked + span::before {
  border-color: #fff; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%233D2763' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--ce-focus); }
.chips.is-invalid .chip span { border-color: var(--ce-error); }
.field--other { margin-top: 10px; }

/* stepper */
.stepper { display: grid; grid-template-columns: 52px 1fr 52px; border: 1.5px solid var(--ce-cool-100); border-radius: 12px; overflow: hidden; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.stepper:focus-within { border-color: var(--ce-plum); box-shadow: 0 0 0 4px var(--ce-focus); }
.stepper input { border: 0 !important; border-radius: 0; text-align: center; font-weight: 700; font-size: 17px; box-shadow: none !important; padding: 10px 4px; min-width: 0; }
.stepper__btn { border: 0; background: var(--ce-neutral); color: var(--ce-purple); font: inherit; font-size: 22px; font-weight: 700; cursor: pointer; min-height: 52px; }
.stepper__btn:hover { background: var(--ce-cool-100); }
.stepper__btn:active { background: var(--ce-cool-300); }
.is-invalid .stepper { border-color: var(--ce-error); }

/* consent checkbox */
.opening-q { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--ce-purple); line-height: 1.35; }
.choice { display: grid; gap: 8px; }
@media (min-width: 560px) { .choice { grid-template-columns: 1.4fr 1fr 1fr; } }
.choice__opt { position: relative; margin: 0 !important; }
.choice__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__opt span {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 14px;
  border: 1.5px solid var(--ce-cool-100); border-radius: 12px; background: #F8F8FB;
  font-size: 14px; font-weight: 600; color: var(--ce-text); cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.choice__opt span::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ce-cool-300); background: #fff; transition: inherit; }
.choice__opt:hover span { border-color: var(--ce-plum); }
.choice__opt input:checked + span { background: var(--ce-purple); border-color: var(--ce-purple); color: #fff; }
.choice__opt input:checked + span::before { border: 5px solid #fff; background: var(--ce-purple); }
.choice__opt input:focus-visible + span { box-shadow: 0 0 0 4px var(--ce-focus); }
.field--opening .field__hint { margin: 8px 0 0; }
.consent { margin: 4px 0 2px; padding: 11px 12px; border-radius: var(--radius-sm); background: var(--ce-cool-50); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; cursor: pointer; margin: 0; font-weight: 400 !important; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 22px; height: 22px; margin-top: 1px; border: 2px solid var(--ce-slate); border-radius: 6px; background: #fff; transition: background-color .15s ease, border-color .15s ease; }
.check input:checked + .check__box { background: var(--ce-purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3L12.5 5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--ce-purple); }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 4px var(--ce-focus); }
.check__text { font-size: 12.5px; line-height: 1.5; color: var(--ce-text); }
.consent.is-invalid .check__box { border-color: var(--ce-error); }
.check__text a { color: var(--ce-purple); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.survey [data-submit] { position: relative; }
.wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ce-cool-100); }
.wizard-nav .btn--large { flex: 1; }
@media (min-width: 560px) { .wizard-nav .btn--large { flex: 0 0 auto; min-width: 200px; } }
.btn--text { --btn-bg: transparent; --btn-fg: var(--ce-gravel); padding: 10px 8px; min-height: 48px; }
.btn--text:hover { --btn-fg: var(--ce-purple); }
.btn--text:hover svg { transform: translateX(-3px); }
.survey:not(.is-wizard) [data-back], .survey:not(.is-wizard) [data-next] { display: none; }
.survey:not(.is-wizard) .wizard-nav__submit { flex: 1; }
.is-wizard.is-first [data-back] { display: none; }
.is-wizard:not(.is-last) .wizard-nav__submit, .is-wizard.is-last .wizard-nav__next { display: none; }
.is-wizard:not(.is-last) .survey__fine { display: none; }
.spinner { display: none; width: 20px; height: 20px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.is-sending .spinner { display: inline-block; }
.is-sending [data-submit] { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.survey__fine { margin: 8px 0 0; text-align: center; font-size: 12px; line-height: 1.6; color: var(--ce-gravel); }   /* guide: legal 12 medium */
.form-status { margin: 8px 0 0; text-align: center; font-size: 14px; font-weight: 600; color: #C92A2A; }
.form-status:empty { display: none; }

.error-summary { margin: 4px 0 8px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--ce-error-bg); border-left: 4px solid var(--ce-error); }
.error-summary h3 { margin: 0 0 6px; font-size: 15px; color: #C92A2A; }
.error-summary ul { margin: 0; padding-left: 18px; font-size: 14px; }
.error-summary a { color: #C92A2A; font-weight: 600; }
.error-summary:focus { outline: none; }

/* success */
.success { padding: 8px 0 4px; }
.success:focus { outline: none; }
.success__top { text-align: center; }
.success__mark { width: 64px; height: 64px; margin: 0 auto 14px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.success__mark circle { stroke: none; fill: var(--ce-purple); }
.success__mark path { stroke: #fff; stroke-width: 5; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .6s .2s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success__title { margin: 0 0 6px; font-size: clamp(22px, 1.6vw + 15px, 28px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; color: var(--ce-purple); text-wrap: balance; }
.success__lede { margin: 0 0 20px; font-size: 16px; color: var(--ce-gravel); }

.reward { padding: 16px; border-radius: 18px; background: var(--ce-purple); color: #fff; }
.reward__kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ce-lavender); }
.reward__card {
  position: relative; overflow: hidden; display: flex; align-items: baseline; gap: 10px;
  padding: 18px 20px; border-radius: 14px; background: var(--ce-cream); color: var(--ce-purple);
  box-shadow: 0 10px 24px rgba(18, 11, 29, .35); animation: pop .5s .35s cubic-bezier(.2, .9, .3, 1.3) both;
}
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(6px); } to { opacity: 1; transform: none; } }
.reward__amount { font-size: clamp(44px, 4vw + 28px, 56px); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.reward__label { font-size: 20px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.reward__dial { position: absolute; right: -14px; top: 50%; width: 110px; height: 110px; transform: translateY(-50%); fill: none; stroke: var(--ce-purple); stroke-opacity: .12; stroke-width: 9; stroke-linecap: round; }
.reward__title { margin: 18px 0 6px; font-size: 17px; font-weight: 800; color: #fff; }
.reward__text { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.reward__text strong { color: #fff; word-break: break-word; }
.reward__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.reward__steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .88); }
.reward__steps strong { color: #fff; word-break: break-word; }
.reward__num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 13px; font-weight: 800; }
.reward__steps li:last-child .reward__num { background: var(--ce-cream); color: var(--ce-purple); }
.reward__help { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; color: var(--ce-lavender); }

.success__next { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; margin: 14px 0 0; padding: 16px; border-radius: 16px; background: var(--ce-lavender-50); text-align: left; }
.success__cal { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: #fff; fill: none; stroke: var(--ce-plum); stroke-width: 1.8; stroke-linecap: round; }
.success__next p { margin: 0; font-size: 15px; line-height: 1.5; }
.success__next .success__next-title { margin-bottom: 2px; font-weight: 800; color: var(--ce-purple); }
.success__demo { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--ce-gravel); background: #FFF9DB; padding: 8px 12px; border-radius: 8px; }

/* ---------- value ---------- */
.value { padding: 8px 0 40px; }
.value .section-title { max-width: 18em; margin-bottom: 22px; font-size: clamp(24px, 2.4vw + 14px, 38px); }
/* big screens: one sentence per line (two lines); smaller screens keep the natural wrap */
@media (min-width: 1100px) {
  .value .section-title { max-width: none; }
  .value__line { display: block; white-space: nowrap; }
}
.value__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.value-card { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 18px; border-radius: var(--radius); background: #fff; box-shadow: 0 1px 2px rgba(18, 11, 29, .05); border: 1px solid rgba(61, 39, 99, .06); }
.value-card svg { grid-row: span 2; width: 36px; height: 36px; margin: 0; fill: none; stroke: var(--ce-plum); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.value-card h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.2; font-weight: 800; color: var(--ce-purple); }
.value-card p { margin: 0; font-size: 15px; }
@media (min-width: 760px) { .value__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } .value-card { display: block; padding: 24px; } .value-card svg { width: 44px; height: 44px; margin-bottom: 14px; } }
@media (min-width: 1024px) { .value { padding: 24px 0 64px; } }

/* ---------- offers: the $5 card drawn as a real card, copy beside it ---------- */
.offers { padding: 8px 0 48px; }
.offer-panel {
  position: relative; display: grid; gap: 28px; align-items: center;
  padding: 28px 22px 26px; border-radius: var(--radius-lg);
  background: #fff; box-shadow: 0 1px 2px rgba(18, 11, 29, .05), 0 18px 40px -20px rgba(18, 11, 29, .25);
  overflow: hidden; overflow: clip;
}
/* faint dial arc in the panel corner, echoing the hero */
.offer-panel::before {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 360px; height: 360px;
  border-radius: 50%; border: 36px solid var(--ce-lavender-50); pointer-events: none; display: none;
}
.offer-panel > * { position: relative; }

.giftcard {
  --tilt: -3deg;
  justify-self: center; width: min(88%, 300px); aspect-ratio: 1.586; /* ISO card proportions */
  position: relative; display: grid; grid-template-rows: auto 1fr auto auto; padding: 18px 20px;
  border-radius: 16px; color: #fff; overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(104, 67, 169, .9) 0%, rgba(104, 67, 169, 0) 60%),
    linear-gradient(150deg, var(--ce-plum) 0%, var(--ce-purple) 45%, var(--ce-purple-800) 100%);
  box-shadow: 0 2px 4px rgba(18, 11, 29, .2), 0 22px 40px -12px rgba(35, 22, 57, .55);
  transform: rotate(var(--tilt));
}
.giftcard::after { /* soft sheen along the top edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(170deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 38%);
}
.giftcard__arcs { position: absolute; right: -54px; top: -46px; width: 210px; height: 210px; fill: none; stroke: var(--ce-lavender); stroke-width: 14; opacity: .16; }
.giftcard__arcs path { stroke-width: 22; stroke-linecap: round; opacity: .9; }
.giftcard__logo { width: 84px; height: auto; }
.giftcard__chip { width: 36px; height: 27px; border-radius: 6px; align-self: center; background: linear-gradient(135deg, #F7D774, var(--ce-yellow)); box-shadow: inset 0 0 0 1px rgba(18, 11, 29, .15); opacity: .9; }
.giftcard__amount { margin: 0; font-size: 58px; line-height: .9; font-weight: 800; letter-spacing: -.04em; }
.giftcard__label { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--ce-lavender); }

.offer-panel__copy { display: grid; gap: 10px; justify-items: start; }
.offer-panel__title { margin: 0; font-size: clamp(24px, 1.6vw + 16px, 34px); line-height: 1.1; font-weight: 800; letter-spacing: -.015em; color: var(--ce-purple); }
.offer-panel__text { margin: 0; max-width: 34em; font-size: 17px; color: var(--ce-text); }
.offer-panel__text strong { color: var(--ce-purple); }
.offer-panel__cta { margin-top: 8px; }

/* $100 coupon (proof: dashed lavender coupon), shown only with config.offer100 */
.coupon { display: grid; gap: 4px; padding: 16px 20px; border-radius: var(--radius); background: var(--ce-lavender-50); border: 2px dashed var(--ce-plum); }
.coupon[hidden] { display: none; }
.coupon__amount { margin: 0; font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--ce-purple); }
.coupon__amount span { font-size: .5em; letter-spacing: 0; text-transform: uppercase; }
.coupon__terms { margin: 0; font-size: 15px; font-weight: 700; color: var(--ce-purple); }

@media (min-width: 760px) {
  .offer-panel { grid-template-columns: minmax(260px, 340px) 1fr; column-gap: 56px; padding: 40px 48px; }
  .giftcard { --tilt: -6deg; width: 100%; }
  .offer-panel::before { display: block; }
  .coupon { grid-column: 2; justify-self: start; }
}
@media (min-width: 1024px) {
  .offers { padding: 16px 0 72px; }
  .offer-panel { grid-template-columns: 340px 1fr auto; padding: 48px 64px; }
  .coupon { grid-column: 3; max-width: 260px; }
}

/* ---------- grand opening ---------- */
.opening { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, var(--ce-purple-shadow) 0%, var(--ce-purple) 70%, var(--ce-plum) 100%); padding: 40px 0; }
.opening__inner { display: grid; gap: 20px; align-items: center; }
.opening__copy p { color: rgba(255, 255, 255, .86); max-width: 34em; margin: 14px 0 24px; }
.opening__dial { display: none; width: 160px; height: auto; justify-self: start; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }
@media (min-width: 760px) { .opening { padding: 64px 0; } .opening__inner { grid-template-columns: 1fr auto; } .opening__dial { display: block; width: 200px; justify-self: end; transform: rotate(-6deg); } }

/* ---------- branch: details on the left, drawn location tile on the right ---------- */
.branch { padding: 48px 0; background: #fff; }
.branch__inner { display: grid; gap: 32px; align-items: center; }
.branch__info .section-title { margin-bottom: 22px; }
.branch__facts { display: grid; gap: 18px; margin: 0 0 26px; }
.branch__facts dt { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 14px; font-weight: 600; color: var(--ce-gravel); }
.branch__facts dt svg { width: 18px; height: 18px; fill: none; stroke: var(--ce-plum); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.branch__facts dd { margin: 0 0 0 26px; font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--ce-text); }
.branch__facts a { color: var(--ce-purple); text-decoration: none; border-bottom: 2px solid var(--ce-lavender); }
.branch__facts a:hover { border-color: var(--ce-plum); }
.branch__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.branch__map {
  position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ce-neutral); box-shadow: inset 0 0 0 1px var(--ce-cool-100);
  text-decoration: none;
}
.branch__map img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.branch__map-wrap { position: relative; margin: 0; }
.map__credit { position: absolute; right: 8px; bottom: 6px; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .8); font-size: 10px; color: var(--ce-gravel); }
@media (min-width: 760px) { .map__credit { right: 10px; bottom: 8px; padding: 2px 8px; font-size: 11px; } }
.map__credit a { color: inherit; }
.map__pin { /* tip on the OSM address point: (346.7, 266.7) of 800x500 in branch-map.svg */
  --pin: 32px;               /* scales with the tile; every offset below is a ratio of it */
  position: absolute; left: 43.33%; top: 53.33%; width: var(--pin); height: var(--pin);
  margin: calc(var(--pin) * -1.107) 0 0 calc(var(--pin) * -.5); /* rotated tip lands 1.107 x pin below the box top */
}
.map__pin::before { /* teardrop: rounded square with one sharp corner, turned to point down */
  content: ""; position: absolute; inset: 0; border-radius: 50% 50% 50% 0; rotate: -45deg; translate: 0 calc(var(--pin) * -.087);
  background: var(--ce-purple); box-shadow: -6px 6px 18px -6px rgba(35, 22, 57, .55);
}
.map__pin::after { /* white centre */
  content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--pin) * .35); height: calc(var(--pin) * .35);
  margin: calc(var(--pin) * -.262) 0 0 calc(var(--pin) * -.175); border-radius: 50%; background: #fff;
}
@media (min-width: 760px) { .map__pin { --pin: 46px; } }
.branch__map:hover .map__pin::before { background: var(--ce-plum); }

@media (min-width: 1024px) {
  .branch { padding: 80px 0; }
  .branch__inner { grid-template-columns: 5fr 7fr; column-gap: 64px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ce-purple-shadow); color: rgba(255, 255, 255, .72); padding: 40px 0 calc(104px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .site-footer { padding-bottom: 40px; } }
.site-footer__inner { display: grid; gap: 28px; }
.site-footer__brand .logo { height: 44px; width: auto; }
.site-footer__tag { margin: 12px 0 0; font-weight: 700; font-style: italic; color: #fff; }
.site-footer__legal p { margin: 0 0 10px; font-size: 12px; line-height: 1.8; }      /* guide: legal 12 / 22 */
.site-footer__legal strong { color: #fff; font-weight: 600; }
.site-footer__legal a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.site-footer__copy { color: rgba(255, 255, 255, .5); }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 240px 1fr; gap: 56px; } }

/* ---------- mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(18, 11, 29, 0), rgba(18, 11, 29, .5) 40%);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { box-shadow: 0 10px 30px rgba(18, 11, 29, .4); }
.sticky-cta__pill { padding: 2px 10px; border-radius: 999px; background: var(--ce-purple); color: #fff; font-size: 14px; font-weight: 800; }
@media (min-width: 1024px) { .sticky-cta { display: none !important; } }

/* ---- privacy.html: program privacy notice + gift card terms ---- */
.legal-page { background: var(--ce-neutral); }
.legal-page .site-header__brand { color: #fff; }
.legal { max-width: 720px; margin: 0 auto; padding: 40px 20px 72px; color: var(--ce-text); font-size: 16px; line-height: 1.65; }
.legal h1 { margin: 0 0 6px; font-size: clamp(28px, 5vw, 38px); line-height: 1.15; color: var(--ce-purple); }
.legal__meta { margin: 0 0 28px; color: var(--ce-gravel); font-size: 14px; }
.legal h2 { margin: 36px 0 10px; font-size: 21px; line-height: 1.3; color: var(--ce-purple); scroll-margin-top: 96px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 0 0 6px; }
.legal a { color: var(--ce-link); }
.legal__draft { margin: 0 0 24px; padding: 12px 14px; border-left: 4px solid var(--ce-plum); background: var(--ce-lavender-50); font-size: 14px; }
.legal__back { display: inline-block; margin-top: 32px; font-weight: 700; color: var(--ce-purple) !important; }
