/* ==========================================================================
   ServiceFlow product microsite — brand tokens + page-specific components
   Steel blue, matched to the ServiceFlow brand mark.
   ========================================================================== */

:root {
  --color-primary: #3e6e9e;       /* accessible on white: 4.7:1 */
  --color-primary-dark: #2c5279;
  --color-primary-50: #eef4fa;
  --color-primary-bright: #7fb2e0; /* decorative use only */
}

/* Hero */

.hero {
  position: relative;
  padding-top: 88px;
  padding-bottom: 72px;
  overflow: clip;
  background: radial-gradient(1200px 480px at 80% -10%, var(--color-primary-50) 0%, rgba(255, 255, 255, 0) 60%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
}
.hero .product-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary-50);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 20px; }
.hero h1 span { color: var(--color-primary); }
.hero-lede {
  font-size: 19px;
  color: var(--color-ink-500);
  max-width: 52ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 28px; }
.hero-trust div { display: flex; flex-direction: column; gap: 2px; }
.hero-trust strong { font-size: 22px; color: var(--color-ink-900); font-weight: 800; }
.hero-trust span { font-size: 13px; color: var(--color-ink-500); }

.hero-visual { position: relative; }

/* Hero screenshot */

.hero-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  transform: rotate(2deg);
  max-width: 250px;
  margin-inline: auto;
}
.hero-card img { border-radius: var(--radius-md); width: 100%; height: auto; display: block; }

/* Screenshot gallery */

.screens-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.screen-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 190px;
  text-align: center;
}
.screen-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.screen-card p {
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-ink-700);
}

.hero-float {
  position: absolute;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 200px;
}
.hero-float-1 { top: 0; left: -8px; transform: rotate(-4deg); }
.hero-float-2 { bottom: 12px; right: -8px; transform: rotate(-3deg); }
.hero-float strong { display: block; font-size: 16px; color: var(--color-ink-900); }
.hero-float span { font-size: 12px; color: var(--color-ink-500); }

/* Problem / solution */

.split-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 760px) {
  .split-panel { grid-template-columns: minmax(0, 1fr); }
}
.split-panel .panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.split-panel .panel.is-problem { border-color: #fecaca; background: #fef2f2; }
.split-panel .panel.is-solution { border-color: var(--color-border); }
.split-panel h3 { font-size: 18px; margin-bottom: 16px; }
.split-panel ul { display: flex; flex-direction: column; gap: 12px; }
.split-panel li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--color-ink-700);
}
.split-panel li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.split-panel .is-problem svg { color: #dc2626; }
.split-panel .is-solution svg { color: var(--color-primary); }

/* Feature grid */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card h3 { font-size: 17px; margin: 16px 0 8px; }
.feature-card p { color: var(--color-ink-500); font-size: 14.5px; }
.feature-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-50);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-top: 12px;
}

/* Who it's for (role grid) */

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 900px) {
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .role-grid { grid-template-columns: minmax(0, 1fr); }
}
.role-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.role-card .icon-badge { margin-bottom: 16px; }
.role-card h3 { font-size: 18px; margin-bottom: 6px; }
.role-card .role-tagline { color: var(--color-ink-500); font-size: 14px; margin-bottom: 16px; }
.role-card ul { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.role-card li {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  color: var(--color-ink-700);
}
.role-card li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--color-primary); }

/* CTA band */

.cta-band {
  background: var(--color-surface-inverse);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}
@media (max-width: 640px) {
  .cta-band { padding: 40px 24px; }
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.cta-band p { color: #b7bfe0; font-size: 16.5px; margin-bottom: 28px; }
.cta-band .btn-primary { background: var(--color-primary-bright); color: #06282a; }
.cta-band .btn-primary:hover { background: #5eead4; }
.cta-band .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.cta-band .btn-secondary:hover { border-color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Back-to-parent footer badge */

.by-nano {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #97a0c4;
  font-size: 13.5px;
}
.by-nano img { width: 18px; height: 18px; }
.by-nano a { color: #fff; font-weight: 700; }
.by-nano a:hover { color: var(--color-primary-bright); }
