/* ==========================================================================
   Smart Text — homepage styles
   Colors: brand red #AC2020, teal #36AED4, ink #1A1D23, gray #5B6472
   ========================================================================== */

:root {
  --ink: #1A1D23;
  --gray: #5B6472;
  --gray-light: #8A93A0;
  --border: #E1E8ED;
  --red: #AC2020;
  --teal: #36AED4;
  --teal-dark: #278CAC;
  --teal-bg: #EAF7FB;
  --teal-border: #C9DCFB;
  --bg: #FFFFFF;
  --footer-bg: #E3E3E3;
  --footer-text: #8B8B8B;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

button { font-family: inherit; }

img { max-width: 100%; display: block; }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 48px;
}

.logo {
  height: 36px;
  width: auto;
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--ink);
  font-weight: 500;
  font-size: 14.5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-link-active { color: var(--teal); font-weight: 700; }

.header-right { display: flex; align-items: center; gap: 10px; }

/* Hamburger. Hidden entirely on desktop; the mobile block below reveals it.
   The middle bar is the element itself, the outer two are its pseudo
   elements, so the whole icon is one span. */
.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, background-color .2s ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: '';
  position: absolute;
  left: 12px;
}

.nav-toggle-bar::before { transform: translateY(-6px); }
.nav-toggle-bar::after { transform: translateY(6px); }

/* Open: the middle bar drops out and the other two cross into an X. */
.site-header.is-open .nav-toggle-bar { background: transparent; }
.site-header.is-open .nav-toggle-bar::before { transform: rotate(45deg); }
.site-header.is-open .nav-toggle-bar::after { transform: rotate(-45deg); }

.nav-solutions {
  position: relative;
}

.nav-solutions-trigger {
  color: var(--ink);
  font-weight: 500;
  font-size: 14.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
}

.nav-solutions-trigger .chev { font-size: 10px; color: var(--gray); }

.nav-dropdown {
  position: absolute;
  top: 28px;
  left: -16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(20, 30, 40, .12);
  padding: 8px;
  width: 280px;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 7px;
  cursor: pointer;
}

.nav-dropdown-item:hover { background: var(--teal-bg); }

.nav-dropdown-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.nav-dropdown-tagline { font-size: 12px; color: var(--gray); margin-top: 2px; }

.flagship-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-bg);
  border: 1px solid var(--teal-border);
  border-radius: 20px;
  padding: 3px 8px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  border: none;
  transition: background .15s ease, opacity .15s ease;
}

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { opacity: .9; }

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-outline:hover { background: var(--teal-bg); }

.btn-lg { font-size: 16px; padding: 13px 26px; }
.btn-block { width: 100%; margin-top: 6px; }
.btn-sm { font-size: 12.5px; padding: 9px 16px; }
.btn-danger { color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: #FBEAEA; }

/* ---------- Layout helpers ---------- */

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px;
  border-top: 1px solid var(--border);
}

.section-tight { padding-top: 36px; }
.section-center { text-align: center; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 16px;
}

.eyebrow-left { text-align: left; }
.eyebrow-on-dark { color: rgba(255, 255, 255, .85); font-size: 10px; }

.section h2 { font-size: 28px; font-weight: 900; margin: 0 0 10px; }
.section-lead { font-size: 15px; color: var(--gray); max-width: 560px; margin: 0; }

.visual-placeholder {
  border: 2px dashed #B9DCE8;
  background: var(--teal-bg);
  border-radius: var(--radius);
  padding: 30px;
  color: var(--teal-dark);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}

.visual-placeholder-dark {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .45);
  color: #fff;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ---------- Hero ---------- */

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  position: relative;
  overflow: hidden;
}

/* Text on the left, the phone mock-up on the right. The artwork carries its
   own soft gradient, so the hero needs no glow behind it. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  align-items: center;
  gap: 24px;
}

.hero-visual {
  display: block;
  width: 100%;
  height: auto;
  /* The artwork sits on white, so it blends into the page rather than
     reading as a photo in a box. */
  margin-right: -24px;
}

.hero-inner { position: relative; }

.hero h1 {
  font-size: 46px;
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 18px;
}

.hero .accent { color: var(--teal); }

.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray);
  max-width: 520px;
  margin: 0 0 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-bg);
  color: var(--teal-dark);
  border: 1px solid var(--teal-border);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 24px;
}

.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-row .pill { margin-bottom: 0; font-size: 12px; }

.trust-line {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 24px;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-cta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 10px;
}

.hero-vertical-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.hero-vertical { max-width: 560px; }
.hero-vertical h1 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 900;
  margin: 0 0 16px;
  letter-spacing: -.01em;
}

.hero-vertical-banner {
  border-radius: 14px;
  overflow: hidden;
  min-height: 320px;
  background: var(--teal-bg);
}

.hero-banner-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* ---------- Vertical hero: full-bleed video background with text overlay ---------- */

.hero-video-banner {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1900 / 672;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: #000;
}

.hero-video-banner .hero-banner-video,
.hero-video-banner .hero-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-banner-placeholder-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #3a6fd0 0%, #6a4fc9 100%);
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
  font-weight: 600;
}

.hero-video-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 18, 38, .68) 0%, rgba(8, 18, 38, .4) 42%, rgba(8, 18, 38, 0) 72%);
}

.hero-video-overlay {
  position: relative;
  z-index: 2;
  max-width: 540px;
  padding: 56px 48px;
  color: #fff;
}

.hero-video-overlay h1 { color: #fff; font-size: 38px; line-height: 1.15; font-weight: 900; margin: 0 0 16px; letter-spacing: -.01em; }
.hero-video-overlay .hero-sub { color: rgba(255, 255, 255, .88); }
.hero-video-overlay .hero-cta-label { color: rgba(255, 255, 255, .85); margin-top: 8px; }

@media (max-width: 860px) {
  .hero-video-banner { aspect-ratio: auto; min-height: 500px; }
  .hero-video-overlay { padding: 40px 28px; max-width: none; }
  .hero-video-overlay h1 { font-size: 30px; }
}

/* ---------- Use case cards (image-based, industry pages) ---------- */

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

/* Three use cases sit on one row rather than leaving one orphaned below. */
.usecase-grid-3 { grid-template-columns: repeat(3, 1fr); }

.usecase-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.usecase-image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--teal-bg);
}

.usecase-image-placeholder {
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #EAF7FB 0%, #DCEAFB 100%);
  border-bottom: 1px solid var(--teal-border);
}

.usecase-image-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(20, 90, 120, .12);
}

.usecase-image-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--teal-dark);
  opacity: .7;
}

.usecase-card-body { padding: 20px 22px; }
.usecase-card-body h3 { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.usecase-card-body p { font-size: 14px; color: var(--gray); line-height: 1.5; margin: 0; }

@media (max-width: 860px) {
  .usecase-grid { grid-template-columns: 1fr; }
}

.hero-banner-placeholder {
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  border: 2px dashed #B9DCE8;
  border-radius: 14px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Stats ---------- */

.stat-grid {
  display: grid;
  gap: 14px;
  margin-top: 44px;
}

.stat-grid-5 { grid-template-columns: repeat(5, 1fr); }
.stat-grid-4 { grid-template-columns: repeat(4, 1fr); margin-top: 40px; }

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
}

.stat-n { font-weight: 900; font-size: 24px; color: var(--teal); }
.stat-l { font-size: 11.5px; color: var(--gray); margin-top: 4px; }

/* ---------- Industry cards ---------- */

.card-row {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  overflow-x: auto;
  padding-bottom: 14px;
}

.industry-card {
  flex: 0 0 250px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: border-color .15s ease;
}

.industry-card:hover { border-color: var(--teal); }

.industry-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--teal-bg);
  color: var(--teal-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.industry-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.industry-card p { font-size: 13.5px; color: var(--gray); margin: 0 0 14px; line-height: 1.5; }
.card-cta { font-size: 13px; font-weight: 700; color: var(--teal); }

/* ---------- Accordions ---------- */

.accordion { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }

.accordion-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.accordion-item.is-active { border-color: var(--teal); }

.accordion-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
}

.accordion-item.is-active .accordion-head { background: var(--teal-bg); }

.accordion-title { display: flex; align-items: center; }

.accordion-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-bg);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
  margin-right: 10px;
}

.accordion-chev { color: var(--gray-light); font-size: 12px; }

.accordion-body { padding: 0 20px 22px; }
.accordion-body p { font-size: 14px; color: var(--gray); line-height: 1.6; margin: 0 0 16px; max-width: 640px; }

.accordion-video {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  /* Animations sit on white, so a black backing would letterbox them. */
  background: transparent;
  /* Nothing to click: keeps the native control overlay and context menu
     from appearing on hover/right-click. */
  pointer-events: none;
}

/* ---------- Client logo carousel ---------- */

.logo-carousel { margin-top: 32px; }

.logo-strip-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 20px;
}

.logo-stage { position: relative; display: flex; align-items: center; }

.logo-viewport { overflow: hidden; flex: 1 1 auto; }

.logo-track { display: flex; will-change: transform; }

.logo-slide {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
  cursor: pointer;
}

.logo-slide img {
  width: auto;
  max-width: 78%;
  max-height: 56px;
  /* Off-centre logos sit back so the centred one carries the eye. */
  filter: grayscale(1) opacity(0.3);
  transform: scale(0.82);
  transition: filter 500ms ease, transform 500ms ease;
}

.logo-slide.is-center img {
  filter: none;
  transform: scale(1.1);
}

.logo-nav {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--gray);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}

.logo-nav:hover { border-color: var(--teal); color: var(--teal); }

.logo-quote {
  margin: 12px auto 0;
  max-width: 720px;
  text-align: center;
  transition: opacity 400ms ease;
}

/* Held faded while the logos slide, so the quote and the centred logo are
   never seen disagreeing. */
.logo-quote.is-fading { opacity: 0; }

.logo-quote-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray);
  margin: 0 0 10px;
}

/* Quotes are supplied unquoted, so the marks are decoration. */
.logo-quote-text::before { content: '\201C'; }
.logo-quote-text::after { content: '\201D'; }

.logo-quote-author {
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

@media (max-width: 767px) {
  .logo-quote-text { font-size: 15px; }
  .logo-slide img { max-width: 62%; }
}

/* ---------- Reactivation (dark panel) ---------- */

.reactivation {
  background: var(--teal);
  color: #fff;
  border-radius: 14px;
  padding: 44px;
}

.reactivation h2 { font-size: 28px; font-weight: 900; margin: 0 0 10px; }

.reactivation-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, .92);
  max-width: 520px;
  margin: 0 0 20px;
}

.reactivation .btn-primary { margin-bottom: 0; }

.reactivation-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 26px;
  align-items: start;
  margin-top: 30px;
}

.ways-list { display: flex; flex-direction: column; gap: 10px; }

/* Static: these read as a list of points, not controls, so no pointer
   cursor and no expand/collapse state. */
.way-item {
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 8px;
  padding: 14px 16px;
}

.way-item b { display: block; font-size: 14px; color: #fff; }
.way-item p { font-size: 13px; color: rgba(255, 255, 255, .85); margin: 8px 0 0; }

/* One animation covering all four points, sitting where the placeholder was.
   Ambient like the feature videos: no controls, nothing to click. */
.reactivation-video {
  width: 100%;
  /* Squares off against the list beside it: top edge level with the first
     point, bottom edge level with the last. The grid sets align-items:start,
     so this overrides it to fill the row instead. */
  align-self: stretch;
  height: 100%;
  /* The source is square and the column is near-square, so cover trims only a
     few percent to fill the box exactly. */
  object-fit: cover;
  border-radius: var(--radius);
  background: transparent;
  pointer-events: none;
}

/* ---------- Industry page: situation, samples, steps, close ---------- */

.situation-grid,
.step-grid {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.situation-grid { grid-template-columns: repeat(3, 1fr); }
.step-grid { grid-template-columns: repeat(4, 1fr); }

.situation-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
}

.situation-card b { display: block; font-size: 15px; margin-bottom: 6px; }
.situation-card p { margin: 0; font-size: 14px; color: var(--gray); line-height: 1.6; }

.step { padding-top: 4px; }

.step-n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-bg);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.step b { display: block; font-size: 15px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 14px; color: var(--gray); line-height: 1.6; }

/* One real example per supported industry. */
.sample-showcase {
  display: grid;
  grid-template-columns: minmax(0, 420px);
  gap: 12px;
  margin-top: 24px;
}

.sample-card {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.sample-card:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.sample-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.sample-card-name { font-size: 14.5px; font-weight: 700; }
.sample-card-desc { font-size: 13px; color: var(--gray); margin-top: 4px; line-height: 1.5; }

.close-cta {
  background: var(--teal-bg);
  border: 1px solid var(--teal-border);
  border-radius: 14px;
  padding: 36px;
  text-align: center;
}

.close-cta h2 { margin: 0 0 8px; }
.close-cta p { margin: 0 auto 20px; max-width: 520px; color: var(--gray); font-size: 15px; }
.close-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQs (industry pages + pricing) ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: border-color .15s ease;
}

.faq-item.faq-open { border-color: var(--teal); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq-item.faq-open .faq-q { background: var(--teal-bg); }

.faq-chev { color: var(--teal-dark); font-size: 11px; flex-shrink: 0; }

.faq-a { padding: 4px 18px 18px; }
.faq-a p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--gray); }

/* ---------- Pricing ---------- */

.pricing-toggle {
  display: inline-flex;
  gap: 4px;
  margin: 24px 0 30px;
  padding: 4px;
  background: #F1F5F8;
  border-radius: 999px;
}

.pricing-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--gray);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.pricing-toggle-btn.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(20, 30, 40, .14);
}

.pricing-toggle-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-bg);
  border-radius: 999px;
  padding: 3px 8px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

/* Two plans, held to a readable width rather than stretched across the page. */
.plan-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px 24px;
}

/* The popular plan is lifted out of the row so the eye lands on it first. */
.plan-card.is-popular {
  border-color: var(--teal);
  box-shadow: 0 14px 34px rgba(20, 30, 40, .10);
}

.plan-popular {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.plan-name { font-size: 19px; font-weight: 800; }
.plan-tagline { font-size: 13.5px; color: var(--gray); margin-top: 3px; }

.plan-price {
  font-size: 34px;
  font-weight: 900;
  margin-top: 18px;
  line-height: 1.1;
}

.plan-per { font-size: 14px; font-weight: 600; color: var(--gray); margin-left: 4px; }

.plan-trial,
.plan-save {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-dark);
  background: var(--teal-bg);
}

.plan-billed { font-size: 12.5px; color: var(--gray); margin-top: 8px; }

/* Sits where the saving badge would be, so the three cards stay aligned. */
.plan-note { font-size: 12.5px; color: var(--gray-light); margin-top: 12px; }

.plan-features {
  list-style: none;
  margin: 22px 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.45;
}

.plan-feature b { font-weight: 600; color: var(--ink); }
.plan-feature.is-excluded { color: var(--gray-light); }
.plan-feature.is-excluded b { color: var(--gray-light); }

.plan-icon { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; color: var(--teal); }
.plan-feature.is-excluded .plan-icon { color: #D86363; }

.pricing-footnote {
  font-size: 13px;
  color: var(--gray-light);
  margin-top: 26px;
  max-width: 640px;
}

/* ---------- Client quotes (industry pages) ---------- */

.client-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.client-quote {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
}

.client-quote-logo {
  align-self: center;
  width: auto;
  height: 48px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 16px;
  filter: grayscale(1);
  opacity: .75;
}

.client-quote blockquote {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--gray);
  flex: 1 1 auto;
}

.client-quote blockquote::before { content: '\201C'; }
.client-quote blockquote::after { content: '\201D'; }

.client-quote figcaption { font-size: 13px; font-weight: 700; color: var(--ink); }

/* ---------- Breadcrumb / badges / quote ---------- */

.breadcrumb {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 13px;
  color: var(--gray);
}

.breadcrumb-link { cursor: pointer; color: var(--teal); font-weight: 600; }

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  background: var(--teal-bg);
  color: var(--teal-dark);
  border: 1px solid var(--teal-border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
}

.quote-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 640px;
}

.quote-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.quote-card p { font-size: 15px; line-height: 1.6; margin: 0 0 12px; }
.quote-author { font-size: 13px; color: var(--gray); font-weight: 600; }

/* ---------- Demo form ---------- */

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
}

.demo-title { font-weight: 900; font-size: 26px; margin-bottom: 10px; }
.demo-sub { font-size: 15px; color: var(--gray); max-width: 420px; margin: 0 0 16px; }

.demo-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  position: relative;
}

.form-fields { display: flex; flex-direction: column; }
.form-fields[hidden] { display: none; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.field span:first-child {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-light);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  height: 38px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: #FBFCFE;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}

.field select { appearance: auto; cursor: pointer; }
.field textarea { height: 64px; padding: 8px 12px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--red); }

.field-error {
  font-size: 11.5px;
  color: var(--red);
  min-height: 14px;
  margin-top: 4px;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 10px;
}

.form-success[hidden] { display: none; }

.form-success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-bg);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}

.form-success-title { font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.form-success p { font-size: 13.5px; color: var(--gray); margin: 0; }

.checkbox-field {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.checkbox-field input[type="checkbox"] {
  height: auto;
  width: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.checkbox-field .checkbox-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  margin: 0;
  flex: 1;
}
.checkbox-field .field-error { width: 100%; }

.demo-call-alt {
  text-align: center;
  font-size: 12.5px;
  color: var(--gray);
  margin: 10px 0 0;
}
.demo-call-alt a { color: var(--teal-dark); font-weight: 700; text-decoration: none; }
.demo-call-alt a:hover { text-decoration: underline; }

.required-tag { font-weight: 400; color: var(--gray-light); }

/* ---------- Demo modal (industry page banner CTA) ---------- */

body.modal-open { overflow: hidden; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 32, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  overflow-y: auto;
}

.modal-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px 32px 28px;
  margin: auto;
  box-shadow: 0 24px 60px rgba(15, 23, 32, 0.25);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--teal-bg);
  color: var(--teal-dark);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--border); }

.modal-title { font-weight: 900; font-size: 22px; text-align: center; margin-bottom: 6px; }
.modal-sub { font-size: 13.5px; color: var(--gray); text-align: center; margin: 0 0 20px; }

.modal-form { border: none; padding: 0; }

@media (max-width: 520px) {
  .modal-card { padding: 28px 20px 22px; }
}

/* ---------- Footer ---------- */

/* Mirrors the footer on smarttext.com: light grey panel, brand and socials
   on the left, then a menu and a contact column, with the copyright on its
   own line underneath. */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid #D4D4D4;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 52px 24px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.footer-logo { height: 46px; width: auto; }

.footer-socials { display: flex; gap: 12px; margin-top: 40px; }

.footer-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--footer-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease;
}

.footer-social:hover { background: var(--teal); }
.footer-social svg { width: 21px; height: 21px; display: block; }

.footer-col { display: flex; flex-direction: column; align-items: flex-start; }

.footer-heading {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 18px;
}

.footer-link {
  color: var(--footer-text);
  font-size: 15px;
  font-weight: 500;
  padding: 7px 0;
  transition: color .2s ease;
}

.footer-link:hover { color: var(--teal-dark); }

.footer-address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.9;
  color: var(--footer-text);
  margin: 6px 0 0;
}

.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 40px;
  font-size: 14px;
  color: var(--footer-text);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal-link { color: inherit; text-decoration: none; }
.footer-legal-link:hover { text-decoration: underline; }

/* ---------- Legal pages ---------- */

.legal-page { max-width: 820px; }
.legal-title { font-size: 34px; font-weight: 900; margin: 0 0 20px; }
.legal-intro { font-size: 16px; color: var(--gray); margin: 0 0 24px; }
.legal-heading { font-size: 20px; font-weight: 800; margin: 34px 0 10px; }
.legal-page p { font-size: 15px; line-height: 1.7; color: var(--gray); margin: 0 0 14px; }
.legal-lead { margin-bottom: 8px !important; }
.legal-list { margin: 0 0 16px; padding-left: 22px; }
.legal-list li { font-size: 15px; line-height: 1.7; color: var(--gray); margin-bottom: 8px; }

.legal-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.legal-choice { font-size: 14px; color: var(--gray); }

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(20, 30, 50, .16);
}

.cookie-banner-text { flex: 1 1 320px; }
.cookie-banner-text b { display: block; font-size: 15px; margin-bottom: 4px; }
.cookie-banner-text p { font-size: 13.5px; line-height: 1.55; color: var(--gray); margin: 0; }
.cookie-banner-actions { display: flex; gap: 10px; margin-left: auto; }

@media (max-width: 520px) {
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  /* Mobile header: logo and hamburger on one row, everything else collapsed
     into a panel underneath. Wrapping the links inline instead left the
     header several rows tall and made the page scroll sideways. */
  .site-header { padding: 12px 20px; flex-wrap: wrap; gap: 0; }

  .header-left { width: 100%; flex-wrap: wrap; align-items: center; gap: 0; }

  .nav-toggle { display: flex; margin-left: auto; }

  .main-nav {
    display: none;      /* .is-open below re-shows it as the panel */
    order: 3;           /* below the logo/toggle row, whatever the DOM order */
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 10px;
    border-top: 1px solid var(--border);
  }

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

  /* Full-width rows give each link a proper tap target. */
  .nav-link,
  .nav-solutions-trigger {
    width: 100%;
    padding: 13px 0;
    font-size: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
  }

  .nav-solutions { position: static; width: 100%; }

  /* Inside the panel the industry list expands in the flow rather than
     floating over the page, so it can't hang off the edge. */
  .nav-dropdown {
    position: static;
    width: 100%;
    padding: 4px 0 10px;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
  }

  .header-right { display: none; width: 100%; margin-top: 14px; }
  .site-header.is-open .header-right { display: flex; }
  .header-right .btn { width: 100%; text-align: center; }
  .hero { padding: 48px 20px 32px; }
  .hero h1 { font-size: 34px; }
  /* Stacked: the phone sits under the copy rather than squeezed beside it. */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 4px auto 0; }
  .stat-grid-5, .stat-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-vertical-wrap { grid-template-columns: 1fr; }
  .hero-vertical { max-width: none; }
  .situation-grid { grid-template-columns: 1fr; }
  .client-quote-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .sample-showcase { grid-template-columns: minmax(0, 1fr); }
  .close-cta { padding: 28px 20px; }
  .reactivation-grid { grid-template-columns: 1fr; }
  /* Stacked, there is no list beside it to match, so let it keep its own
     square shape rather than stretching. */
  .reactivation-video { height: auto; }
  .plan-grid { grid-template-columns: 1fr; gap: 26px; }
  .demo-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 40px 20px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 40px 20px 26px;
  }
  .footer-socials { margin-top: 22px; }
  .footer-bottom { padding: 0 20px 32px; }
}

/* ---------- Agents route (merged in from agents.css) ---------- */

.page-title { font-size: 36px; font-weight: 900; margin: 0 0 12px; }

/* ---------- Search ---------- */

.search-bar { margin-bottom: 14px; }

.search-bar input {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #FBFCFE;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--gray);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.chip:hover { border-color: var(--teal); }
.chip.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- Map ---------- */

.agent-map {
  height: 360px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* ---------- Agent CTA banner ---------- */

.agent-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--teal-bg);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius);
  padding: 22px 26px;
}

.agent-cta-title { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.agent-cta-sub { font-size: 13.5px; color: var(--gray); margin: 0; max-width: 480px; }

/* ---------- Agent list ---------- */

.agent-list { display: flex; flex-direction: column; gap: 12px; }

.agent-empty {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  color: var(--gray);
  font-size: 14px;
}

.agent-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  cursor: pointer;
  transition: border-color .15s ease;
}

.agent-card:hover,
.agent-card.is-selected { border-color: var(--teal); }
.agent-card.is-selected { background: var(--teal-bg); }

.agent-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.agent-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 4px;
}

.agent-card h3 { font-size: 18px; font-weight: 800; margin: 0; }

.agent-blurb { font-size: 14px; color: var(--gray); line-height: 1.5; margin: 10px 0; }

.agent-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--gray-light);
}

.agent-region { font-weight: 600; }

.agent-contact {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ---------- Admin panel ---------- */

.admin-mount { margin-top: 24px; }

.admin-login {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 420px;
}

.field-inline { margin-bottom: 0; flex: 1; min-width: 180px; }

.admin-login-error { font-size: 12.5px; color: var(--red); }

.admin-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: #FBFCFE;
}

.admin-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-panel-title { font-size: 17px; font-weight: 800; }
.admin-panel-title-sm { font-size: 15px; margin-bottom: 14px; }
.admin-panel-note { font-size: 12.5px; color: var(--gray); margin: 4px 0 0; }
.admin-panel-hint { font-size: 12px; color: var(--gray-light); margin: -6px 0 14px; }

.admin-agent-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.admin-agent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
}

.admin-agent-row-meta {
  display: block;
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px;
}

.admin-add-form-wrap {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-bottom: 20px;
}

.admin-add-form .field input { background: #fff; }

@media (max-width: 860px) {
  .page-title { font-size: 28px; }
  .agent-map { height: 280px; }
  .admin-panel-header { flex-direction: column; }
}
/* A successful Sendmode API response means accepted for delivery, not delivered. */
.modal-form .sample-success .form-success-icon {
  background: #e6f5e9;
  color: #237642;
}
.modal-form .sample-success-name { font-weight: 700; margin: 0 0 6px; }
.modal-form .sample-success-timer { margin-top: 14px; font-size: 12.5px; }

/* Simulation and duplicate responses are informational, never red errors. */
.sample-notice[data-state="info"] { color: #30536b; }
.sample-notice[data-state="error"] { color: #a51d2d; }

/* Contact delivery errors stay visible without discarding the entered details. */
.contact-error { color: #a51d2d; font-size: 1rem; }
.demo-form button:disabled { opacity: .65; cursor: wait; }
