/* =============================================================
   AI Sustainers — Material Design 3 system
   AI growth for service & trades businesses.
   ============================================================= */

/* ----------  M3 tokens  ---------- */
:root {
  /* color — light scheme (Google blue) */
  --primary:            #0b57d0;
  --primary-hover:      #0a4fc0;
  --on-primary:         #ffffff;
  --primary-container:  #d3e3fd;
  --on-primary-container:#041e49;

  --secondary:          #00639b;
  --tertiary:           #146c2e;   /* green accent for "success/growth" */

  --background:         #f8fafd;
  --surface:            #ffffff;
  --surface-1:          #f0f4f9;
  --surface-2:          #e9eef6;

  --on-surface:         #1f1f1f;
  --on-surface-variant: #444746;
  --muted:              #5f6368;

  --outline:            #dadce0;
  --outline-variant:    #e8eaed;

  --state-hover:        rgba(11,87,208,0.08);
  --state-press:        rgba(11,87,208,0.12);

  /* elevation — soft ambient */
  --elev-1: 0 1px 2px 0 rgba(60,64,67,.30), 0 1px 3px 1px rgba(60,64,67,.15);
  --elev-2: 0 1px 2px 0 rgba(60,64,67,.30), 0 2px 6px 2px rgba(60,64,67,.15);
  --elev-3: 0 4px 8px 3px rgba(60,64,67,.15), 0 1px 3px 0 rgba(60,64,67,.30);

  /* shape */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 28px;
  --r-full: 100px;

  /* type */
  --font: "Roboto", "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  color-scheme: light;
}

/* ----------  base / reset  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--background);
  color: var(--on-surface);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--primary-container); color: var(--on-primary-container); }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  user-select: none;
}

/* ----------  M3 type scale  ---------- */
.display  { font-size: clamp(2.6rem, 1.8rem + 3.6vw, 4rem); line-height: 1.08; font-weight: 400; letter-spacing: -0.015em; }
.display-sm { font-size: clamp(2.1rem, 1.6rem + 2.3vw, 2.9rem); line-height: 1.12; font-weight: 400; letter-spacing: -0.01em; }
.headline { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.1rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.005em; }
.title    { font-size: 1.375rem; line-height: 1.3; font-weight: 500; }
.title-sm { font-size: 1.05rem; line-height: 1.4; font-weight: 500; }
.body-lg  { font-size: 1.125rem; line-height: 1.55; font-weight: 400; }
.label    { font-size: 0.875rem; line-height: 1.3; font-weight: 500; letter-spacing: 0.01em; }
.overline { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.muted    { color: var(--muted); }
.balance  { text-wrap: balance; }

/* ----------  layout  ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-head { max-width: 40ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .headline { margin-top: 0.75rem; }
.section-head p { margin-top: 1rem; color: var(--muted); }

/* ----------  buttons (M3)  ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; height: 3rem; padding: 0 1.6rem; border-radius: var(--r-full);
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap;
  transition: box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  isolation: isolate;
}
.btn .material-symbols-rounded { font-size: 20px; }
.btn::after { /* state layer */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: currentColor; opacity: 0; transition: opacity .2s ease;
}
.btn:hover::after { opacity: 0.08; }
.btn:active::after { opacity: 0.12; }

.btn-filled { background: var(--primary); color: var(--on-primary); }
.btn-filled:hover { box-shadow: var(--elev-1); }
.btn-tonal { background: var(--primary-container); color: var(--on-primary-container); }
.btn-outlined { border: 1px solid var(--outline); color: var(--primary); background: var(--surface); }
.btn-text { color: var(--primary); padding-inline: 1rem; }
.btn-lg { height: 3.4rem; padding-inline: 2rem; font-size: 1rem; }

/* ----------  top app bar  ---------- */
.appbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 68px; padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.appbar.scrolled { box-shadow: var(--elev-1); background: color-mix(in srgb, var(--surface) 92%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--on-surface); }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary);
}
.brand .logo .material-symbols-rounded { font-size: 21px; font-variation-settings: 'FILL' 1, 'wght' 500; }
.appbar-nav { display: flex; align-items: center; gap: 0.35rem; }
.appbar-nav .navlink {
  padding: 0.55rem 0.95rem; border-radius: var(--r-full); font-size: 0.925rem; font-weight: 500;
  color: var(--on-surface-variant); transition: background-color .2s ease, color .2s ease;
}
.appbar-nav .navlink:hover { background: var(--surface-1); color: var(--on-surface); }
.appbar-actions { display: flex; align-items: center; gap: 0.6rem; }
@media (max-width: 860px) { .appbar-nav { display: none; } }
@media (max-width: 520px) { .appbar-actions .btn-text { display: none; } }

/* ----------  hero  ---------- */
.hero { padding-top: clamp(7rem, 12vw, 10rem); padding-bottom: clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.hero::before { /* soft tonal wash */
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 640px; z-index: 0;
  background: radial-gradient(60% 60% at 78% 12%, var(--primary-container) 0%, transparent 60%),
              radial-gradient(50% 50% at 8% 0%, #e6f4ea 0%, transparent 55%);
  opacity: 0.7; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { max-width: 34rem; }
.pill-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; height: 2rem; padding: 0 0.9rem 0 0.7rem;
  border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--outline);
  font-size: 0.82rem; font-weight: 500; color: var(--on-surface-variant); box-shadow: var(--elev-1);
}
.pill-badge .material-symbols-rounded { font-size: 18px; color: var(--primary); font-variation-settings: 'FILL' 1; }
.hero h1 { margin-top: 1.4rem; }
.hero h1 .accent { color: var(--primary); }
.hero-copy .body-lg { margin-top: 1.4rem; color: var(--muted); max-width: 32rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2.2rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.875rem; color: var(--muted); }
.hero-proof .material-symbols-rounded { font-size: 19px; color: var(--tertiary); font-variation-settings: 'FILL' 1; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* ----------  hero visual (M3 cards)  ---------- */
.hero-visual { display: grid; gap: 1rem; position: relative; }
.mcard {
  background: var(--surface); border-radius: var(--r-lg); padding: 1.25rem 1.35rem;
  box-shadow: var(--elev-2); border: 1px solid var(--outline-variant);
}
.mcard-row { display: flex; align-items: center; gap: 0.9rem; }
.mcard .avatar {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center;
}
.avatar.blue { background: var(--primary-container); color: var(--primary); }
.avatar.green { background: #c4eed0; color: var(--tertiary); }
.mcard .avatar .material-symbols-rounded { font-size: 24px; font-variation-settings: 'FILL' 1; }
.mcard .grow { flex: 1; min-width: 0; }
.mcard .k { font-size: 0.78rem; color: var(--muted); }
.mcard .v { font-weight: 500; font-size: 1.02rem; margin-top: 1px; }
.mcard .v .hl { color: var(--primary); font-weight: 700; }
.mcard .status {
  display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; font-weight: 500;
  color: var(--tertiary); background: #e6f4ea; padding: 0.25rem 0.6rem; border-radius: var(--r-full);
}
.mcard .status .material-symbols-rounded { font-size: 16px; font-variation-settings: 'FILL' 1; }
/* the "AI answer" card */
.mcard.answer { padding-bottom: 1.1rem; }
.mcard.answer .prompt { font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.mcard.answer .prompt .material-symbols-rounded { font-size: 18px; }
.mcard.answer .reply { margin-top: 0.85rem; font-size: 0.98rem; line-height: 1.5; }
.mcard.answer .reply .biz {
  color: var(--primary); font-weight: 700;
  border-bottom: 2px solid var(--primary-container);
}
.mcard.answer .chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.mcard.answer .chip {
  font-size: 0.72rem; font-weight: 500; color: var(--on-surface-variant);
  background: var(--surface-1); border-radius: var(--r-full); padding: 0.28rem 0.7rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.mcard.answer .chip .material-symbols-rounded { font-size: 14px; color: var(--tertiary); font-variation-settings: 'FILL' 1; }
.mcard.floating { position: relative; }
.mcard.floating.tag {
  position: absolute; right: -0.4rem; bottom: -1.1rem; padding: 0.7rem 1rem; box-shadow: var(--elev-3);
  display: inline-flex; align-items: center; gap: 0.7rem; z-index: 2;
}
@media (max-width: 480px) { .mcard.floating.tag { position: static; margin-top: 0; } }

/* ----------  logos / niche band  ---------- */
.niche { background: var(--surface); border-block: 1px solid var(--outline-variant); }
.niche .lead-row { text-align: center; margin-bottom: 2.2rem; }
.chips-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }
.trade-chip {
  display: inline-flex; align-items: center; gap: 0.5rem; height: 2.75rem; padding: 0 1.15rem;
  border-radius: var(--r-full); background: var(--surface-1); color: var(--on-surface-variant);
  font-weight: 500; font-size: 0.925rem; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.trade-chip:hover { background: var(--primary-container); color: var(--on-primary-container); box-shadow: var(--elev-1); }
.trade-chip .material-symbols-rounded { font-size: 20px; color: var(--primary); }
.trade-chip:hover .material-symbols-rounded { color: var(--on-primary-container); }

/* ----------  services  ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.svc {
  background: var(--surface); border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--outline-variant); transition: box-shadow .25s ease, transform .25s ease;
  display: flex; flex-direction: column;
}
.svc:hover { box-shadow: var(--elev-2); transform: translateY(-3px); }
.svc .svc-icon {
  width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--primary-container); color: var(--primary); margin-bottom: 1.4rem;
}
.svc .svc-icon.green { background: #c4eed0; color: var(--tertiary); }
.svc .svc-icon .material-symbols-rounded { font-size: 30px; font-variation-settings: 'FILL' 1; }
.svc h3 { font-size: 1.35rem; font-weight: 500; }
.svc > p { margin-top: 0.7rem; color: var(--muted); }
.svc ul { list-style: none; margin-top: 1.3rem; display: grid; gap: 0.7rem; }
.svc li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.95rem; }
.svc li .material-symbols-rounded { font-size: 20px; color: var(--tertiary); flex: 0 0 auto; margin-top: 1px; font-variation-settings: 'FILL' 1; }
.svc .svc-cta { margin-top: auto; padding-top: 1.6rem; }
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } }

/* ----------  process  ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: s; }
.step {
  background: var(--surface-1); border-radius: var(--r-lg); padding: 1.8rem;
  position: relative;
}
.step .num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); font-weight: 700; margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.2rem; font-weight: 500; }
.step p { margin-top: 0.5rem; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ----------  metrics strip  ---------- */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; text-align: center; }
.metric-card { background: var(--surface); border: 1px solid var(--outline-variant); border-radius: var(--r-lg); padding: 2rem 1.5rem; }
.metric-card .big { font-size: clamp(2.4rem, 1.8rem + 2.5vw, 3.2rem); font-weight: 700; color: var(--primary); letter-spacing: -0.02em; }
.metric-card .cap { margin-top: 0.4rem; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 700px) { .metrics { grid-template-columns: 1fr; } }

/* ----------  CTA  ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary), #1b6ef3);
  border-radius: var(--r-xl); padding: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--on-primary); text-align: center; box-shadow: var(--elev-2);
  position: relative; overflow: hidden;
}
.cta-band::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; height: 300px; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); }
.cta-band h2 { position: relative; }
.cta-band p { position: relative; margin: 1rem auto 0; max-width: 44ch; opacity: 0.92; }

/* contact form card */
.contact-card {
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--elev-2);
  padding: clamp(1.6rem, 4vw, 2.6rem); max-width: 560px; margin: 2.5rem auto 0; text-align: left;
  border: 1px solid var(--outline-variant); color: var(--on-surface);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { position: relative; grid-column: span 1; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--on-surface);
  background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-xs);
  padding: 1rem 0.9rem 0.5rem; transition: border-color .2s ease, box-shadow .2s ease; resize: vertical;
}
.field textarea { min-height: 96px; padding-top: 1.2rem; }
.field label {
  position: absolute; left: 0.75rem; top: 0.9rem; padding: 0 0.25rem; pointer-events: none;
  color: var(--muted); background: var(--surface); transition: all .15s ease; font-size: 1rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); border-width: 2px; padding-inline: calc(0.9rem - 1px); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: -0.55rem; font-size: 0.75rem; color: var(--primary); font-weight: 500;
}
.contact-card .btn-filled { width: 100%; margin-top: 0.4rem; }
.form-note { grid-column: 1 / -1; min-height: 1.2em; margin-top: 0.2rem; font-size: 0.875rem; color: var(--muted); }
.form-note.ok { color: var(--tertiary); }
.form-note.err { color: #b3261e; }

/* ----------  footer  ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--outline-variant); padding-block: 3rem 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer .brand { margin-bottom: 0.9rem; }
.footer .tagline { color: var(--muted); max-width: 32ch; font-size: 0.95rem; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 3rem; }
.fcol h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.9rem; font-weight: 500; }
.fcol a { display: block; padding: 0.3rem 0; color: var(--on-surface-variant); font-size: 0.95rem; }
.fcol a:hover { color: var(--primary); }
.footer-base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--outline-variant); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; color: var(--muted); font-size: 0.85rem; }

/* ----------  hero photo + floating cards  ---------- */
.hero-photo { position: relative; margin-inline: clamp(1.2rem, 3vw, 1.8rem); }
.hero-photo > img {
  width: 100%; height: auto; aspect-ratio: 5 / 5.6; object-fit: cover;
  border-radius: var(--r-xl); box-shadow: var(--elev-2); display: block;
}
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 0.75rem;
  background: var(--surface); border-radius: var(--r-md); box-shadow: var(--elev-3);
  padding: 0.85rem 1.1rem; border: 1px solid var(--outline-variant); max-width: 70%;
}
.float-card .k { font-size: 0.74rem; color: var(--muted); }
.float-card .v { font-weight: 500; font-size: 1rem; }
.float-card .v .hl { color: var(--primary); font-weight: 700; }
.float-card .v .mini { font-size: 0.78rem; color: var(--muted); font-weight: 400; }
.float-card.top { top: 1.4rem; left: clamp(-1.4rem, -2vw, -0.6rem); }
.float-card.bottom { bottom: 1.4rem; right: clamp(-1.4rem, -2vw, -0.6rem); }
@media (max-width: 480px) {
  .float-card { max-width: 82%; }
  .float-card.top { left: 0.4rem; } .float-card.bottom { right: 0.4rem; }
}

/* ----------  photo gallery  ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
figure.shot { position: relative; margin: 0; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--elev-1); }
figure.shot img { width: 100%; height: 260px; object-fit: cover; display: block; transition: transform .5s ease; }
figure.shot:hover img { transform: scale(1.05); }
figure.shot figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2rem 1rem 0.9rem; color: #fff;
  font-weight: 500; font-size: 0.92rem; display: flex; align-items: center; gap: 0.45rem;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
}
figure.shot figcaption .material-symbols-rounded { font-size: 19px; }
@media (max-width: 820px) { .gallery { grid-template-columns: 1fr 1fr; } figure.shot img { height: 200px; } }

/* ----------  testimonials  ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quote-card { background: var(--surface); border: 1px solid var(--outline-variant); border-radius: var(--r-lg); padding: 2rem; display: flex; flex-direction: column; }
.quote-card .stars { display: flex; gap: 1px; color: #f9ab00; margin-bottom: 1rem; }
.quote-card .stars .material-symbols-rounded { font-size: 19px; font-variation-settings: 'FILL' 1; }
.quote-card blockquote { font-size: 1.05rem; line-height: 1.55; color: var(--on-surface); flex: 1; }
.quote-card .who { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.6rem; }
.avatar-initials { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1rem; }
.quote-card .name { font-weight: 500; }
.quote-card .role { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 820px) { .quotes { grid-template-columns: 1fr; } }

/* ----------  FAQ  ---------- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 0.8rem; }
details.faq-item { background: var(--surface); border: 1px solid var(--outline-variant); border-radius: var(--r-md); padding: 0 1.4rem; transition: box-shadow .2s ease; }
details.faq-item[open] { box-shadow: var(--elev-1); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.3rem 0; font-weight: 500; font-size: 1.05rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .material-symbols-rounded { color: var(--primary); transition: transform .25s ease; flex: 0 0 auto; }
.faq-item[open] summary .material-symbols-rounded { transform: rotate(180deg); }
.faq-item p { padding: 0 0 1.3rem; margin: 0; color: var(--muted); }

/* ----------  reveal  ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.9,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; } .reveal.d3 { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }
