/* Only the requested demo form; existing site design comes from celeste-overrides.css. */
.celeste-home-update .home-demo {
  max-width: 650px; margin: 40px auto 0; padding: 25px 28px 20px; text-align: left;
  border: 1px solid var(--celeste-border); border-radius: 24px;
  background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(14,99,252,.035));
  box-shadow: 0 24px 70px rgba(0,0,0,.2);
}
.celeste-home-update .home-wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 36px; margin-bottom: 20px; }
.celeste-home-update .home-wave span { width: 4px; height: 13px; border-radius: 5px; background: #528eff; animation: home-voice 2.4s ease-in-out 2; }
.celeste-home-update .home-wave span:nth-child(2), .celeste-home-update .home-wave span:nth-child(4) { height: 24px; animation-delay: -.4s; }
.celeste-home-update .home-wave span:nth-child(3) { height: 34px; animation-delay: -.8s; }
@keyframes home-voice { 0%,100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.celeste-home-update label { display: block; font-size: 15px; margin-bottom: 12px; }
.celeste-home-update .home-form-row { display: flex; gap: 10px; }
.celeste-home-update input { min-width: 0; width: 100%; flex: 1; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; background: #070a12; color: white; padding: 16px; font: inherit; font-size: 17px; }
.celeste-home-update input::placeholder { color: #8e96a7; }
.celeste-home-update input[aria-invalid="true"] { border-color: #ff9f9f; }
.celeste-home-update button { cursor: pointer; white-space: nowrap; }
.celeste-home-update button:disabled { opacity: .5; cursor: default; }
.celeste-home-update .home-help { color: #9ba4b6; font-size: 13px; line-height: 1.5; margin: 12px 0 0; }
.celeste-home-update .home-error, .celeste-home-update .home-status { font-size: 14px; line-height: 1.5; margin: 12px 0 0; }
.celeste-home-update .home-error { color: #ffb5b5; }
.celeste-home-update .home-status { color: #b8d1ff; }
.celeste-home-update .home-error:empty, .celeste-home-update .home-status:empty { margin: 0; }

.celeste-home-update .home-demo { width: 100%; text-align: left; }
.celeste-home-update :focus-visible { outline: 2px solid #79aaff; outline-offset: 5px; }
@media (max-width: 640px) {
  .celeste-home-update .home-demo { padding: 22px 16px; margin-top: 10px; }
  .celeste-home-update .home-form-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .celeste-home-update *, .celeste-home-update *::before, .celeste-home-update *::after { animation: none !important; transition: none !important; }
  .celeste-home-update .celeste-hero-title-enter, .celeste-home-update .celeste-hero-copy-enter { opacity: 1; transform: none; }
}

/* Preserve the existing navigation and CTA, with the remaining links centered. */
@media (min-width: 810px) {
  body.celeste-home-update .celeste-nav:not(.celeste-nav--mobile) {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
  .celeste-home-update .celeste-topbar-cta { justify-self: end; }
}

/* Calculator extends the site's existing cards, headings and button styles. */
.celeste-home-update #calculateur { scroll-margin-top: 110px; }
.celeste-calculator { width: min(1050px, calc(100% - 48px)); margin: 0 auto; }
.celeste-calculator [hidden] { display: none !important; }
.celeste-calculator .celeste-faq-heading { max-width: 960px; }
.celeste-calculator .calculator-card {
  max-width: 760px; margin: 48px auto 0; padding: 38px;
  border: 1px solid var(--celeste-border); border-radius: 24px;
  background: linear-gradient(180deg, rgba(20,26,40,.94), rgba(8,10,16,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), var(--celeste-shadow);
}
.celeste-calculator .calculator-progress { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; color: var(--celeste-muted); font-size: 14px; }
.celeste-calculator progress { width: 130px; height: 4px; border: 0; border-radius: 4px; background: #263042; accent-color: var(--celeste-accent); }
.celeste-calculator progress::-webkit-progress-bar { background: #263042; border-radius: 4px; }
.celeste-calculator progress::-webkit-progress-value { background: var(--celeste-accent); border-radius: 4px; }
.celeste-calculator #calculator-question { font-size: clamp(23px,3vw,30px); line-height: 1.2; letter-spacing: -.035em; margin-bottom: 14px; }
.celeste-calculator .calculator-input-wrap { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.celeste-calculator #calculator-value { font-size: 30px; font-variant-numeric: tabular-nums; }
.celeste-calculator #calculator-unit { color: var(--celeste-muted); white-space: nowrap; font-size: 15px; }
.celeste-calculator .calculator-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 32px; }
.celeste-calculator #calculator-next { margin-left: auto; }
.celeste-calculator .calculator-loading { padding: 65px 0; text-align: center; font-size: 23px; }
.celeste-calculator .calculator-loading .home-wave span { animation-iteration-count: infinite; }
.celeste-calculator .calculator-card.has-results { max-width: 960px; padding: 48px 40px 28px; }
.celeste-calculator .calculator-result-label { margin: 0 0 32px; font-size: 20px; text-align: center; color: var(--celeste-muted); }
.celeste-calculator .calculator-totals { text-align: center; }
.celeste-calculator .calculator-annual { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.celeste-calculator .calculator-annual strong { max-width: 100%; font-size: clamp(56px,7vw,96px); line-height: 1.05; font-weight: 500; letter-spacing: -.04em; color: #ff827e; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.celeste-calculator .calculator-annual span { font-size: 24px; color: #ffb5b0; }
.celeste-calculator .calculator-monthly { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 12px; margin: 32px 0 0; padding: 28px 0 0; border-top: 1px solid var(--celeste-border); }
.celeste-calculator .calculator-monthly strong { max-width: 100%; font-size: 42px; line-height: 1.1; font-weight: 500; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.celeste-calculator .calculator-monthly span { font-size: 18px; color: var(--celeste-muted); }
.celeste-calculator .calculator-result-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 40px; }
.celeste-calculator .calculator-result-footer span { font-size: 12px; color: var(--celeste-muted); }
.celeste-calculator #calculator-result-back { padding: 10px 0; border: 0; background: transparent; color: var(--celeste-muted); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.celeste-calculator #calculator-result-back:hover { color: #fff; }
.celeste-calculator .calculator-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 640px) {
  .celeste-calculator { width: calc(100% - 32px); }
  .celeste-calculator .celeste-faq-heading { font-size: 38px; }
  .celeste-calculator .calculator-card { padding: 24px 18px; margin-top: 32px; }
  .celeste-calculator .calculator-actions { flex-direction: column-reverse; }
  .celeste-calculator #calculator-next { margin-left: 0; }
  .celeste-calculator .calculator-actions button { width: 100%; padding: 12px; white-space: normal; font-size: 16px; }
  .celeste-calculator .calculator-input-wrap { gap: 12px; }
  .celeste-calculator .calculator-card.has-results { padding: 32px 18px 20px; }
  .celeste-calculator .calculator-annual strong { font-size: clamp(36px,10.5vw,64px); }
  .celeste-calculator .calculator-monthly strong { font-size: 32px; }
  .celeste-calculator .calculator-result-label { font-size: 17px; }
  .celeste-calculator .calculator-result-footer { gap: 12px; }
}

/* Keep panel transitions inside the existing rounded card. */
.celeste-calculator .calculator-card { overflow: clip; }

.celeste-home-update .home-demo-intro { margin: 0 0 24px; text-align: left; }
.celeste-home-update .home-demo-intro h2 { margin: 0 0 10px; font-size: 24px; font-weight: 500; letter-spacing: -.03em; line-height: 1.2; }
.celeste-home-update .home-demo-intro p { margin: 0; color: var(--celeste-muted); font-size: 16px; line-height: 1.5; }

/* The existing blue light follows viewport coordinates over the whole page. */
.celeste-home-update > .celeste-site-ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; contain: strict; }
@property --call-border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 270deg;
}
#call-demo .call-button-shine, #calculator-cta .call-button-shine {
  position: absolute; inset: 0; padding: 3px; border-radius: inherit;
  z-index: 3; opacity: 0; pointer-events: none;
  background: conic-gradient(from var(--call-border-angle), transparent 0deg, rgba(102,167,255,.3) 20deg, #d7eaff 65deg, transparent 90deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

#call-demo #demo-first-name { margin-bottom: 20px; }

/* Mobile uses the current content height, not the old landing's 1160px stage. */
@media (max-width: 809.98px) {
  body.celeste-home-update .celeste-nav--mobile {
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding-left: 10px; gap: 8px;
  }
  .celeste-home-update .celeste-nav--mobile .celeste-topbar-cta { justify-self: end; }
  .celeste-home-update .celeste-nav--mobile .celeste-brand-link { width: min(122px, 100%) !important; }

  body.celeste-home-update [data-framer-name="Section - Hero"] {
    min-height: 0 !important;
    padding: 110px 0 40px;
  }
  .celeste-home-update .celeste-hero-shell,
  .celeste-home-update .celeste-hero-copy {
    width: 100%; max-width: 650px;
  }
  .celeste-home-update .celeste-hero-shell { gap: 22px; }
  .celeste-home-update .celeste-hero-title {
    max-width: 580px; font-size: clamp(32px, 8.2vw, 52px);
    line-height: 1.04; text-wrap: balance; overflow-wrap: normal;
  }
  .celeste-home-update .celeste-hero-copy { max-width: 520px; line-height: 1.55; }
  .celeste-home-update .home-demo { margin-top: 12px; }
  .celeste-home-update .home-demo-intro { text-align: center; }
  body.celeste-home-update [data-framer-name="Section - Calculator"],
  body.celeste-home-update [data-framer-name="Section - FAQ"] {
    min-height: 0 !important; padding: 40px 0;
  }
  .celeste-home-update .calculator-card { overflow-anchor: none; }
}
@media (max-width: 640px) {
  .celeste-home-update .celeste-faq-heading { font-size: clamp(30px, 8.2vw, 38px); line-height: 1.08; text-wrap: balance; }
  .celeste-home-update .celeste-faq-lead { font-size: 16px; line-height: 1.55; }
  .celeste-home-update .home-demo-intro h2 { font-size: 23px; }
  .celeste-home-update .home-demo { border-radius: 22px; }
}

.celeste-calculator .calculator-cta { text-align:center; margin-top:32px; padding-top:28px; border-top:1px solid var(--celeste-border); opacity:0; transform:translateY(10px); transition:opacity .6s ease,transform .6s ease; }
.celeste-calculator .calculator-cta.is-visible { opacity:1; transform:none; }
.celeste-calculator .calculator-cta h3 { max-width:650px; margin:0 auto 12px; font-size:clamp(25px,3vw,38px); font-weight:500; letter-spacing:-.035em; line-height:1.12; text-wrap:balance; }
.celeste-calculator .calculator-cta p { max-width:550px; margin:0 auto 20px; color:var(--celeste-muted); font-size:16px; line-height:1.5; }
.celeste-calculator .calculator-cta small { display:block; margin-top:10px; color:var(--celeste-muted); font-size:13px; }
.celeste-calculator .calculator-cta a:focus-visible { outline:2px solid white; outline-offset:4px; }
@media(max-width:640px) {
 .celeste-calculator .calculator-card.has-results { padding:24px 18px 18px; }
 .celeste-calculator .calculator-result-label { margin-bottom:18px; font-size:15px; }
 .celeste-calculator .calculator-monthly { margin-top:18px; padding-top:18px; }
 .celeste-calculator .calculator-cta { margin-top:22px; padding-top:22px; }
 .celeste-calculator .calculator-cta h3 { font-size:25px; }
 .celeste-calculator .calculator-cta p { font-size:14px; margin-bottom:16px; }
 .celeste-calculator .calculator-cta a { width:100%; box-sizing:border-box; }
 .celeste-calculator .calculator-result-footer { margin-top:22px; }
}
@media(prefers-reduced-motion:reduce) { .celeste-calculator .calculator-cta { transition:none; transform:none; } }

#call-demo #demo-status:not(:empty) { margin-top:18px; padding:14px 16px; border:1px solid rgba(83,143,255,.32); border-radius:14px; background:rgba(20,76,171,.12); color:#dce8ff; font-size:15px; line-height:1.5; }
#call-demo[aria-busy="true"] button:disabled { opacity:1; cursor:wait; }

/* Blue emphasis highlights the outcome without changing typography or layout. */
.celeste-home-update .celeste-hero-title { background:none; color:#f5f7ff; -webkit-text-fill-color:currentColor; }
.celeste-home-update .celeste-word-accent { color:#80b0ff; -webkit-text-fill-color:currentColor; }

/* Keep the outcome together and balance the headline across its lines. */
.celeste-home-update .celeste-hero-title { text-wrap: balance; }
.celeste-home-update .celeste-hero-title .celeste-word-accent { white-space: nowrap; }

/* One entrance sequence, with the final text layout reserved from first paint. */
body.celeste-home-update .celeste-hero-title-enter,
body.celeste-home-update .celeste-hero-copy-enter { animation:none; opacity:1; transform:none; will-change:auto; }
.celeste-home-update .hero-word { display:inline-block; animation:celeste-word-enter 650ms cubic-bezier(.16,1,.3,1) var(--word-delay) both; }
.celeste-home-update .celeste-hero-copy .hero-word { animation-duration:450ms; }
.celeste-home-update .home-demo { animation:celeste-demo-enter 600ms cubic-bezier(.16,1,.3,1) 1450ms both; }
.celeste-home-update .home-demo:focus-within { animation:none; }
@keyframes celeste-word-enter { from { opacity:0; transform:translateY(12px); filter:blur(6px); } to { opacity:1; transform:none; filter:blur(0); } }
@keyframes celeste-demo-enter { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
