/* Tax Launch — static rebuild of tax-launch.com with client portal + chatbot placeholders.
   Colors and type are taken from the live site's Elementor theme. */

:root {
  --teal: #00A79E;          /* primary / accent */
  --teal-dark: #008c84;
  --green: #184341;         /* dark green used for headings and overlays */
  --gold: #FFB400;          /* hover accent */
  --gold-icon: #E9C31E;     /* icon circles */
  --ink: #282828;           /* body text */
  --muted: #616670;
  --line: #E9E9E9;
  --bg-soft: #F3F5F8;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow: 0 0 10px rgba(0, 0, 0, .2);
  --container: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Lato", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--green); }

h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--green); line-height: 1.2; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 100px 0; }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; }

/* Section headings: small teal eyebrow + big dark-green title */
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 8px;
  background: var(--teal);
}
.center .eyebrow::after { margin-left: auto; margin-right: auto; }

.title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.3;
}

.lead { color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
  font: 700 15px/1 "Lato", Arial, sans-serif;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover,
.btn:focus-visible { background: var(--white); color: var(--green); border-color: var(--white); }
.btn--small { padding: 12px 20px; font-size: 13px; }
.btn--outline { background: transparent; color: var(--teal); }
.btn--outline:hover,
.btn--outline:focus-visible { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn--light { background: transparent; border-color: var(--white); color: var(--white); }
.btn--light:hover,
.btn--light:focus-visible { background: var(--white); color: var(--green); }
.btn--on-white:hover,
.btn--on-white:focus-visible { background: var(--green); color: var(--white); border-color: var(--green); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }

/* "Coming soon" pop-up for buttons not connected yet (built in js/main.js) */
.coming-soon {
  width: min(440px, calc(100% - 32px));
  padding: 32px;
  border: 0;
  border-top: 6px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.coming-soon::backdrop { background: rgba(24, 67, 65, .6); }
.coming-soon__title { margin: 0 0 12px; color: var(--green); font-size: 24px; }
.coming-soon__text { margin: 0 0 18px; }
.coming-soon__contact { margin: 0 0 24px; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line); }
.coming-soon__contact li { margin: 0 0 6px; }
.coming-soon__contact a { color: var(--teal-dark); font-weight: 700; overflow-wrap: anywhere; }
.coming-soon__close { width: 100%; }

/* Case study articles (the four case study pages) */
.article { max-width: 820px; }
.article h2 { margin: 40px 0 14px; font-size: 30px; }
.article h2:first-child { margin-top: 0; }
.article ul { margin: 0 0 20px; padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article-figure { margin: 36px 0; }
.article-figure img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Privacy policy (privacy.html), built on the .article styles above */
.policy h2 { font-size: 26px; }
.policy ul ul { margin: 8px 0 0; }
.draft-banner { margin: 0 0 30px; padding: 16px 20px; border-left: 6px solid var(--gold); border-radius: var(--radius); background: #FFF6DC; color: var(--ink); }
mark.draft-fill { padding: 0 4px; border-radius: 4px; background: #FFE58A; color: var(--ink); }

/* "Coming soon" label on portal features not live yet (portal.html) */
.badge-soon {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--green);
  font: 700 12px/1.4 "Lato", Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
}
h3 .badge-soon { margin: 0 0 0 8px; }
p.badge-soon { display: block; width: fit-content; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 85px;
  padding: 0 5%;
}
.logo img { width: 190px; height: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 15px;
  color: var(--ink);
}
.nav a:hover,
.nav a.active { color: var(--teal); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  position: relative;
  content: "";
}
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 900px;
  display: flex;
  align-items: center;
  padding: 120px 0 220px;
  background: url("../assets/img/businessman-sitting-at-his-workplace-at-office.jpg") center/cover no-repeat;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 67, 65, .92) 0%, rgba(24, 67, 65, .75) 55%, rgba(24, 67, 65, .35) 100%);
}
.hero .container { position: relative; }
.hero-content { max-width: 720px; }
.hero .eyebrow { color: var(--white); }
.hero .eyebrow::after { background: var(--gold); }
.hero h1 {
  color: var(--white);
  font-size: 60px;
  font-weight: 800;
  line-height: 1.2;
}
.hero p { font-size: 18px; max-width: 600px; }

/* Small page hero (portal page) */
.page-hero {
  position: relative;
  padding: 110px 0;
  background: url("../assets/img/office-building-skyscraper-exterior-of-building.jpg") center/cover no-repeat;
  color: var(--white);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(24, 67, 65, .88);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); font-size: 52px; font-weight: 800; }
.page-hero p { max-width: 640px; font-size: 18px; }
.breadcrumb { font-size: 14px; opacity: .85; }
.breadcrumb a { color: var(--white); }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Welcome + call-back form ---------- */
.welcome-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: start;
}
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--green); }
.checklist svg { flex: none; width: 18px; height: 18px; fill: var(--teal); }

.callback-card {
  margin-top: -260px;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}
.callback-card .title { font-size: 32px; }

.form-grid { display: grid; gap: 14px; }
.form-grid label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--green); }
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font: inherit;
  color: var(--ink);
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.form-grid .btn { width: 100%; }
.form-note { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Icon service boxes ---------- */
.icon-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.icon-box { padding: 10px 20px 10px 0; }
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--gold-icon);
  transition: background .3s;
}
.icon-box:hover .icon-circle { background: var(--ink); }
.icon-circle svg { width: 32px; height: 32px; fill: var(--white); }
.icon-box h3 { font-size: 25px; font-weight: 600; line-height: 1.3; }
.icon-box p { color: var(--muted); }

/* ---------- Split (text + image) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.free-word { color: var(--teal); }

/* ---------- Client portal promo (new) ---------- */
.portal-promo {
  position: relative;
  background: url("../assets/img/cropped-shot-of-accounting-staff-are-using-calculators-and-graphing-to-pay-annual-taxes-2.jpeg") center/cover no-repeat;
  color: var(--white);
}
.portal-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(24, 67, 65, .93);
}
.portal-promo .container { position: relative; }
.portal-promo .eyebrow,
.portal-promo .title { color: var(--white); }
.portal-promo .eyebrow::after { background: var(--gold); }
.portal-promo .lead { color: rgba(255, 255, 255, .85); }

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.feature-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
}
.feature-card h3 { color: var(--white); font-size: 22px; font-weight: 700; }
.feature-card p { color: rgba(255, 255, 255, .8); margin: 0; }
.feature-card .icon-circle { width: 56px; height: 56px; }
.feature-card .icon-circle svg { width: 26px; height: 26px; }

/* ---------- Service cards ---------- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.service-card {
  padding: 40px 30px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 5px 25px rgba(0, 0, 0, .07);
  border-bottom: 4px solid var(--teal);
  transition: transform .3s;
}
.service-card:hover { transform: translateY(-6px); }
.service-card h2 { font-size: 26px; }
.service-card p { color: var(--muted); margin: 0; }

/* ---------- Counters ---------- */
.counters {
  position: relative;
  padding: 90px 0;
  background: url("../assets/img/office-building-skyscraper-exterior-of-building.jpg") center/cover fixed no-repeat;
  color: var(--white);
}
.counters::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 167, 158, .9);
}
.counters .container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}
.counter-number { font-size: 56px; font-weight: 800; line-height: 1; }
.counter h2 { margin-top: 12px; color: var(--white); font-size: 20px; font-weight: 600; }

/* ---------- Team ---------- */
.team-card {
  max-width: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.team-card img { width: 100%; aspect-ratio: 812 / 1024; object-fit: cover; }
.team-card-body { padding: 24px; text-align: center; }
.team-card-body h2 { font-size: 26px; margin-bottom: 4px; }
.team-card-body h3 { font-size: 16px; font-weight: 400; color: var(--teal); margin-bottom: 12px; }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.testimonial {
  padding: 36px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 5px 25px rgba(0, 0, 0, .07);
}
.testimonial blockquote { margin: 0 0 24px; color: var(--muted); font-style: italic; }
.testimonial blockquote::before {
  content: "\201C";
  display: block;
  height: 40px;
  color: var(--teal);
  font: 800 64px/1 Georgia, serif;
}
.person { display: flex; align-items: center; gap: 14px; }
.person img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.person strong { display: block; color: var(--green); }
.person span { font-size: 14px; color: var(--muted); }

/* ---------- Client logos ---------- */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}
.logo-row img { height: 70px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.logo-row img:hover { filter: none; opacity: 1; }

/* ---------- Case studies / blog cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 5px 25px rgba(0, 0, 0, .07);
}
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.post-card h2,
.post-card h3 { font-size: 22px; }
.post-card p { color: var(--muted); }
.post-card .read-more { margin-top: auto; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 14px; }
.tag {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}
.tag:hover { color: var(--white); background: var(--green); }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.faq-item {
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 3px 15px rgba(0, 0, 0, .06);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--green);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--teal);
  font-size: 26px;
  line-height: 1;
}
.faq-item[open] summary { background: var(--teal); color: var(--white); }
.faq-item[open] summary::after { content: "\2212"; color: var(--white); }
.faq-item .faq-body { padding: 18px 24px 6px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: 110px 0;
  background: url("../assets/img/business-team-meeting.jpg") center/cover no-repeat;
  color: var(--white);
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(24, 67, 65, .88);
}
.cta .container { position: relative; }
.cta h2 { color: var(--white); font-size: 40px; font-weight: 800; max-width: 820px; margin: 0 auto 16px; }
.cta .btn-row { justify-content: center; }

/* ---------- Portal page ---------- */
.portal-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.login-card {
  padding: 40px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  margin-top: -170px;
  position: relative;
  z-index: 2;
}
.login-card .title { font-size: 30px; }
.login-card .btn { width: 100%; margin-top: 10px; }
.login-card ul { margin: 20px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.login-card ul li { margin-bottom: 6px; }

.tool-list { display: grid; gap: 20px; }
.tool {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 5px 25px rgba(0, 0, 0, .07);
}
.tool .icon-circle { margin: 0; width: 60px; height: 60px; }
.tool .icon-circle svg { width: 28px; height: 28px; }
.tool h3 { font-size: 22px; }
.tool p { color: var(--muted); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 50px; }
.step { position: relative; padding: 30px 24px 24px; border-radius: var(--radius); background: var(--white); box-shadow: 0 5px 25px rgba(0, 0, 0, .07); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
}
.step h3 { font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding: 70px 0 50px;
}
.footer-grid img { width: 220px; height: auto; margin-bottom: 18px; }
.footer-grid h2 { font-size: 22px; margin-bottom: 18px; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid li a { color: var(--ink); }
.footer-grid li a::before { content: "\203A"; margin-right: 8px; color: var(--green); }
.footer-grid li a:hover { color: var(--gold); }
.footer-grid p { color: var(--muted); }
.contact-item { display: flex; gap: 14px; margin-bottom: 18px; }
.contact-item .icon-circle { flex: none; width: 46px; height: 46px; margin: 0; }
.contact-item .icon-circle svg { width: 20px; height: 20px; }
.contact-item small { display: block; color: var(--muted); }
.contact-item a { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.contact-item a:hover { color: var(--teal); }

.footer-bottom {
  background: var(--teal);
  color: var(--white);
  font-size: 14px;
}
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.footer-bottom a { color: var(--white); text-decoration: underline; }
.social { display: flex; gap: 10px; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  text-decoration: none;
}
.social svg { width: 16px; height: 16px; fill: var(--teal); }

/* ---------- Floating chat button (placeholder) ---------- */
.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font: 700 15px/1 "Lato", Arial, sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  cursor: pointer;
  transition: background .3s, transform .3s;
}
.chat-fab:hover,
.chat-fab:focus-visible { background: var(--green); transform: translateY(-2px); }
.chat-fab svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Tax question chat window (js/chat.js) ---------- */
.chat-open .chat-fab { display: none; }
.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(420px, calc(100vw - 32px));
  height: min(640px, calc(100vh - 48px));
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}
.chat-panel[hidden] { display: none; }
.chat-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--green); color: var(--white); }
.chat-panel__title { margin: 0; color: var(--white); font-size: 20px; }
.chat-panel__subtitle { margin: 2px 0 0; color: rgba(255, 255, 255, .8); font-size: 13px; }
.chat-panel__close { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: var(--white); font-size: 22px; line-height: 1; cursor: pointer; }
.chat-panel__close:hover,
.chat-panel__close:focus-visible { background: var(--gold); color: var(--green); }
.chat-panel__disclaimer { margin: 0; padding: 10px 18px; border-bottom: 1px solid var(--line); background: #FFF6DC; color: var(--ink); font-size: 12.5px; line-height: 1.45; }
.chat-panel__disclaimer:empty { display: none; }
.chat-panel__log { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-soft); }
.chat-panel__status { margin: 0; padding: 8px 18px; color: var(--teal-dark); font-size: 13px; font-style: italic; }
.chat-panel__form { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.chat-panel__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat-panel__input { flex: 1; min-height: 44px; max-height: 120px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: 15px/1.4 "Lato", Arial, sans-serif; resize: vertical; }
.chat-panel__input:focus { outline: 2px solid var(--teal); outline-offset: 0; }
.chat-panel__send { flex: none; }

.chat-msg { max-width: 88%; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-msg p { margin: 0; }
.chat-msg--user { margin-left: auto; background: var(--teal); color: var(--white); border-bottom-right-radius: 4px; white-space: pre-wrap; }
.chat-msg--bot { margin-right: auto; background: var(--white); color: var(--ink); border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.chat-msg--problem { border-left: 4px solid var(--gold); }
.chat-source { margin: 10px 0 0; padding: 8px 10px; border-left: 3px solid var(--teal); background: var(--bg-soft); font-size: 13.5px; }
.chat-source__quote { margin: 0 0 6px; font-style: italic; }
.chat-source__link { color: var(--teal-dark); font-weight: 700; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.chat-feedback { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.chat-feedback__btn { padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: 600 13px/1.6 "Lato", Arial, sans-serif; cursor: pointer; }
.chat-feedback__btn:hover,
.chat-feedback__btn:focus-visible { border-color: var(--teal); color: var(--teal-dark); }

@media (max-width: 640px) {
  .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .hero h1 { font-size: 48px; }
}

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-soft);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 5%; border-top: 1px solid var(--line); font-size: 16px; }
  .header-actions .btn--schedule { display: none; }

  .welcome-grid,
  .split,
  .faq-grid,
  .portal-grid { grid-template-columns: 1fr; gap: 40px; }
  .callback-card,
  .login-card { margin-top: 0; }
  .hero { min-height: 0; padding: 110px 0; }
  .icon-boxes,
  .service-cards,
  .feature-cards,
  .card-grid--3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .title,
  .cta h2 { font-size: 30px; }
  .hero h1,
  .page-hero h1 { font-size: 36px; }
  .logo img { width: 150px; }
  .header-actions .btn--login { padding: 10px 14px; }
  .checklist,
  .icon-boxes,
  .service-cards,
  .feature-cards,
  .testimonials,
  .card-grid,
  .card-grid--3,
  .steps,
  .footer-grid,
  .counters .container { grid-template-columns: 1fr; }
  .callback-card,
  .login-card { padding: 28px 22px; }
  .chat-fab span { display: none; }
  .chat-fab { padding: 16px; }
  .counters { background-attachment: scroll; }
}

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