/* ==========================================================================
   Upfront Windows — main.css
   Design system + all shared components. No framework, no build step.

   Contents:
     1.  Tokens
     2.  Reset & base
     3.  Typography
     4.  Layout (container, sections)
     5.  Buttons
     6.  Header & nav
     7.  Hero
     8.  How it works
     9.  Price-bars comparison
     10. Trust band & warranty cards
     11. Photo grid
     12. What-we-install grid
     13. FAQ accordion
     14. Final CTA
     15. Footer
     16. Sticky mobile CTA bar
     17. Fade-up animation
     18. Chat widget (estimator)
     19. Utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --ink: #1F2C24;
  --ink-soft: #4C5B51;
  --paper: #FFFFFF;
  --warm: #F7F5F0;
  --blue: #2E4034;
  --blue-dark: #24332A;
  --blue-tint: #EDF2ED;
  --amber: #F4B740;
  --amber-tint: #FDF3DC;
  --success: #12855F;
  --line-warm: #E7E2D9;
  --line: #EAECF0;

  /* Type */
  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Shape & shadow */
  --radius-card: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 4px 24px rgba(16, 24, 40, 0.06);
  --shadow-lift: 0 12px 40px rgba(16, 24, 40, 0.10);

  /* Layout */
  --container: 1180px;
  --header-h: 68px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 38em;
}

.kicker {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.9em;
}

.section-head {
  max-width: 40em;
  margin-bottom: 2.5rem;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section--warm {
  background: var(--warm);
}

.section--tight {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.8em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}

.btn--primary:hover {
  background: var(--blue-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--lg {
  padding: 1em 2.2em;
  font-size: 1.05rem;
}

.btn--sm {
  padding: 0.6em 1.3em;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   6. Header & nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand__word {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand__word strong {
  font-weight: 700;
}

.brand__word span {
  font-weight: 400;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a:not(.btn) {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:not(.btn):hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  border-radius: 8px;
  color: var(--ink);
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--blue);
}

.nav-toggle__bars {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.nav-toggle__bars::before {
  top: -7px;
}

.nav-toggle__bars::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    padding: 0.5rem 20px 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a:not(.btn) {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .site-nav .btn {
    margin-top: 1rem;
  }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--warm) 0%, var(--paper) 100%);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3.5rem;
  }
}

.hero__copy h1 {
  margin-bottom: 0.55em;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero__ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.hero__ticks li {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.hero__ticks li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

/* On mobile the CTA button scrolls to the chat below; on desktop it's beside the copy */
@media (min-width: 960px) {
  .hero__cta-row .btn--jump {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   8. How it works
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step {
  counter-increment: step;
  background: var(--paper);
  border: 1px solid var(--line-warm);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
}

.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.step h3 {
  margin-bottom: 0.4em;
}

.step p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.97rem;
}

/* --------------------------------------------------------------------------
   9. Price-bars comparison
   -------------------------------------------------------------------------- */
.price-compare {
  display: grid;
  gap: 2rem;
  max-width: 780px;
}

.price-row__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.price-bar {
  display: flex;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
}

.price-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  min-width: 0;
}

.price-seg--base {
  flex: 8 1 0;
  background: var(--ink);
  color: #fff;
}

.price-seg--commission {
  flex: 2 1 0;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber),
    var(--amber) 8px,
    #e9a92c 8px,
    #e9a92c 16px
  );
  color: var(--ink);
}

.price-bar--upfront {
  width: 80%;
}

.price-bar--upfront .price-seg--base {
  background: var(--blue);
}

.price-row__note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0.6rem 0 0;
}

@media (max-width: 520px) {
  .price-bar {
    height: 50px;
  }

  .price-seg {
    font-size: 0.72rem;
  }
}

/* --------------------------------------------------------------------------
   10. Trust band & warranty cards
   -------------------------------------------------------------------------- */
.trust-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 760px) {
  .trust-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.trust-card {
  background: var(--paper);
  border: 1px solid var(--line-warm);
  border-radius: var(--radius-card);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.trust-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.trust-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35em;
}

.trust-card p {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin: 0;
}

.trust-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.trust-notes li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.trust-notes li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   11. Photo grid
   -------------------------------------------------------------------------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 760px) {
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.photo-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
}

.photo-grid img.photo--wide {
  aspect-ratio: 4 / 3;
}

/* --------------------------------------------------------------------------
   12. What-we-install grid
   -------------------------------------------------------------------------- */
.install-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 760px) {
  .install-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.install-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.install-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.install-card img {
  width: 100%;
  aspect-ratio: 590 / 428;
  object-fit: cover;
}

.install-card figcaption {
  padding: 0.8rem 1rem 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
}

.install-card figcaption small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   13. FAQ accordion
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line-warm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

.faq-item__body {
  padding: 0 0.25rem 1.4rem;
  color: var(--ink-soft);
  max-width: 42em;
}

.faq-item__body p:last-child {
  margin-bottom: 0;
}

.faq-more {
  text-align: center;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   14. Final CTA
   -------------------------------------------------------------------------- */
.final-cta {
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.final-cta h2 {
  color: #fff;
}

.final-cta .lede {
  color: rgba(255, 255, 255, 0.75);
  margin-left: auto;
  margin-right: auto;
}

.final-cta .btn--primary {
  margin-top: 1.5rem;
}

.final-cta__phone {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
}

.final-cta__phone a {
  color: #fff;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--warm);
  border-top: 1px solid var(--line-warm);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 760px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
  }
}

.site-footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9em;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.55em;
}

.site-footer a {
  color: var(--ink-soft);
}

.site-footer a:hover {
  color: var(--ink);
}

.site-footer__brandline {
  max-width: 34em;
}

.site-footer__legal {
  border-top: 1px solid var(--line-warm);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   16. Sticky mobile CTA bar
   -------------------------------------------------------------------------- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

.mobile-cta.is-visible {
  transform: translateY(0);
}

.mobile-cta .btn {
  width: 100%;
}

@media (min-width: 820px) {
  .mobile-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-cta {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   17. Fade-up animation
   -------------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   18. Chat widget (estimator)
   -------------------------------------------------------------------------- */
.estimator {
  width: 100%;
}

.estimator-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  padding: 20px 18px 16px;
}

/* Step indicator: 1 Describe → 2 Confirm → 3 Price by email */
.chat-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.chat-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  background: #F2F4F7;
  color: #98A2B3;
  transition: background 0.25s ease, color 0.25s ease;
}

.chat-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
  flex-shrink: 0;
  font-size: 0;
}

.chat-step.is-active {
  background: var(--blue);
  color: #fff;
}

.chat-step.is-active .chat-step__num {
  background: var(--amber);
}

.chat-step.is-done {
  background: var(--blue-tint);
  color: var(--blue-dark);
}

.chat-step__arrow {
  color: #D0D5DD;
  font-size: 0.85rem;
  line-height: 1;
}

/* Chat shell */
.chat-shell {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
}

.chat-header {
  padding: 13px 16px;
  background: var(--ink);
  color: #fff;
}

.chat-header__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0;
}

.chat-header__sub {
  margin: 3px 0 0;
  font-size: 0.78rem;
  opacity: 0.75;
}

.chat-messages {
  height: 330px;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #FBFAF8;
}

.msg {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.msg--user {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
  white-space: pre-wrap;
  border-bottom-right-radius: 4px;
}

.msg--ai {
  align-self: flex-start;
  background: #F2F4F7;
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.msg--ai p {
  margin: 0 0 0.6em;
}

.msg--ai p:last-child {
  margin-bottom: 0;
}

.msg--ai strong {
  font-weight: 600;
}

.msg--ai ul,
.msg--ai ol {
  margin: 0.4em 0 0.4em 1.2em;
  padding: 0;
}

.msg--ai a {
  color: var(--blue);
  text-decoration: underline;
}

.msg--system {
  align-self: center;
  background: var(--amber-tint);
  color: #6b5310;
  font-size: 0.78rem;
  max-width: 95%;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  background: #F2F4F7;
  border-radius: 12px;
  width: fit-content;
  align-self: flex-start;
}

.typing-indicator__dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  animation: uw-bounce 1.4s infinite ease-in-out both;
}

.typing-indicator__dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-indicator__dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes uw-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .typing-indicator__dot {
    animation: none;
    opacity: 0.6;
  }
}

/* Input row */
.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  margin: 0;
}

.chat-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--paper);
  color: var(--ink);
}

.chat-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 92, 211, 0.12);
}

.chat-send {
  height: 46px;
  min-width: 84px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0 18px;
  transition: background 0.2s ease;
}

.chat-send:hover {
  background: var(--blue-dark);
}

.chat-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.chat-send:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.chat-hint {
  padding: 10px 14px 12px;
  font-size: 0.76rem;
  color: #98A2B3;
  background: var(--paper);
  margin: 0;
  text-align: center;
}

@media (max-width: 480px) {
  .estimator-card {
    padding: 16px 12px 12px;
  }

  .chat-messages {
    height: 280px;
  }

  .chat-send {
    min-width: 68px;
    padding: 0 14px;
  }

  .chat-step {
    padding: 5px 10px;
    font-size: 0.7rem;
  }
}

/* --------------------------------------------------------------------------
   19. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   20. Direct Windows trust components (rebrand 2026-07)
   -------------------------------------------------------------------------- */
.stars {
  color: var(--amber);
  letter-spacing: 2px;
}

.gbadge {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.gbadge b { color: var(--ink); }

.proof-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-warm);
}
.proof-row b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
}
.proof-row span { color: var(--ink-soft); font-size: 0.88rem; }
@media (max-width: 640px) {
  .proof-row { grid-template-columns: repeat(2, 1fr); }
}

.review-card blockquote {
  margin: 0.6em 0 0.8em;
  font-size: 0.97rem;
  color: var(--ink);
}
.review-card cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
}
.review-card cite span {
  font-weight: 400;
  color: var(--ink-soft);
}

.photo-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.photo-grid figure img {
  flex: 1;
  height: auto;
  object-fit: cover;
}
.photo-grid figcaption {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.certs-strip {
  margin-top: 2.5rem;
  text-align: center;
}
.certs-strip img { max-width: 720px; width: 100%; height: auto; }
.certs-strip small { display: block; margin-top: 0.5rem; color: var(--ink-soft); }
