/* KidiMate Flow Website
   Clean premium healthcare SaaS landing page
*/

:root {
  --bg: #f7fbfb;
  --surface: #ffffff;
  --surface-soft: #eef8f7;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #475569;
  --line: rgba(15, 23, 42, 0.10);
  --primary: #0f766e;
  --primary-dark: #0f4f4a;
  --primary-soft: #ccfbf1;
  --blue: #2563eb;
  --navy: #07111f;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section-padding {
  padding: 110px 0;
}

.section-padding.compact {
  padding-top: 78px;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 28%),
    linear-gradient(180deg, #f8ffff 0%, #f7fbfb 42%, #ffffff 100%);
}

.orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.35;
  pointer-events: none;
}

.orb-one {
  top: 120px;
  left: -160px;
  background: rgba(20, 184, 166, 0.30);
}

.orb-two {
  top: 460px;
  right: -160px;
  background: rgba(37, 99, 235, 0.20);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
  backdrop-filter: blur(18px);
  background: rgba(247, 251, 251, 0.82);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--blue) 100%);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.22);
  font-weight: 800;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.brand-text small {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}


.logo-brand {
  min-width: auto;
}

.brand-logo {
  width: 150px;
  height: auto;
  display: block;
}

.footer-brand {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted-2);
  font-weight: 600;
  font-size: 14px;
}

.nav-panel a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-panel a:hover,
.nav-panel a.active {
  color: var(--primary);
}

.nav-panel a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-large {
  min-height: 54px;
  padding: 0 26px;
  font-size: 15px;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary) 0%, #0ea5e9 100%);
  box-shadow: 0 14px 35px rgba(15, 118, 110, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 18px 42px rgba(15, 118, 110, 0.30);
}

.btn-secondary {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 118, 110, 0.18);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.65);
}

.btn-ghost-light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.10);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 12px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  padding-top: 96px;
  padding-bottom: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--primary-dark);
  background: rgba(204, 251, 241, 0.7);
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 800;
  font-size: 13px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background: var(--teal);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.14);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  color: var(--text);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

h1 {
  margin-top: 22px;
  max-width: 760px;
  font-size: clamp(46px, 6vw, 82px);
}

h2 {
  margin-top: 18px;
  font-size: clamp(34px, 4vw, 56px);
}

h3 {
  font-size: 20px;
}

p {
  margin: 0;
  color: var(--muted);
}

.hero-subtitle {
  margin-top: 24px;
  max-width: 680px;
  color: var(--muted-2);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.75;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 32px;
}

.trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.12);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.trust-line span::before {
  content: "✓";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--primary);
  font-size: 11px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.mini-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 32px;
  color: var(--muted-2);
  font-weight: 700;
  font-size: 13px;
}

.mini-flow span {
  padding: 8px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
}

.mini-flow i {
  width: 20px;
  height: 1px;
  background: rgba(15, 23, 42, 0.20);
}

.hero-visual {
  position: relative;
}

.mockup-stack {
  position: relative;
  min-height: 650px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.desktop-mockup {
  position: absolute;
  top: 20px;
  right: 0;
  width: min(100%, 640px);
  border-radius: 30px;
  overflow: hidden;
}

.mockup-topbar {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: rgba(7, 17, 31, 0.94);
  color: #ffffff;
}

.mockup-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.mockup-topbar strong {
  margin-left: 10px;
  font-size: 13px;
}

.workspace-layout {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 430px;
  background: linear-gradient(135deg, rgba(247, 251, 251, 0.95), rgba(239, 253, 250, 0.95));
}

.workspace-sidebar {
  padding: 22px;
  background: rgba(15, 118, 110, 0.06);
  border-right: 1px solid rgba(15, 23, 42, 0.06);
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  margin-bottom: 20px;
}

.side-line,
.side-pill {
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
}

.side-line {
  height: 10px;
  width: 70%;
  margin-bottom: 10px;
}

.side-line.wide {
  width: 95%;
}

.side-pill {
  height: 34px;
  margin-top: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.side-pill.active {
  background: rgba(15, 118, 110, 0.15);
}

.workspace-main {
  padding: 26px;
}

.status-card,
.home-plan-card,
.workspace-cards article,
.activity-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.status-card,
.home-plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.status-card small,
.home-plan-card small,
.phone-content small {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}

.status-card strong,
.home-plan-card strong {
  font-size: 18px;
}

.status-card span {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 12px;
}

.workspace-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}

.workspace-cards article {
  padding: 18px;
}

.workspace-cards b {
  display: block;
  margin-bottom: 10px;
}

.workspace-cards p,
.home-plan-card p {
  font-size: 13px;
}

.home-plan-card button {
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  padding: 10px 16px;
}

.phone-mockup {
  position: absolute;
  left: -10px;
  bottom: 32px;
  width: 230px;
  min-height: 420px;
  border-radius: 36px;
  padding: 12px;
  border: 8px solid #0f172a;
  background: #ffffff;
}

.phone-notch {
  width: 72px;
  height: 20px;
  background: #0f172a;
  border-radius: 0 0 16px 16px;
  margin: -12px auto 16px;
}

.phone-content {
  padding: 12px;
}

.phone-content h4 {
  margin-bottom: 18px;
  font-size: 22px;
  line-height: 1.18;
}

.activity-card {
  padding: 14px;
  margin-bottom: 12px;
}

.activity-card span {
  display: block;
  color: var(--primary);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 6px;
}

.activity-card p {
  font-size: 13px;
}

.floating-badge {
  position: absolute;
  right: 34px;
  bottom: 68px;
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.floating-badge strong {
  color: var(--primary-dark);
}

.floating-badge span {
  color: var(--muted);
  font-size: 13px;
}

.logo-strip {
  padding: 28px 0;
  border-block: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.65);
}

.logo-strip p {
  margin-bottom: 18px;
  text-align: center;
  font-weight: 700;
  color: var(--muted-2);
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.support-logo-card {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 14px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.support-logo-card img {
  max-width: 150px;
  max-height: 48px;
  object-fit: contain;
}

.section-heading {
  max-width: 700px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading p {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.75;
}

.flow-grid,
.benefit-grid,
.module-grid,
.problem-cards,
.team-grid {
  display: grid;
  gap: 18px;
}

.flow-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 46px;
}

.flow-step,
.benefit-grid article,
.module-grid article,
.problem-cards article,
.team-card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--shadow-soft);
}

.flow-step span,
.module-grid article span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--primary);
  font-weight: 900;
  font-size: 13px;
}

.flow-step h3,
.benefit-grid h3,
.module-grid h3,
.problem-cards h3 {
  margin-bottom: 12px;
}

.flow-step p,
.benefit-grid p,
.module-grid p,
.problem-cards p {
  font-size: 15px;
}

.soft-section {
  background: linear-gradient(180deg, rgba(239, 248, 247, 0.75), rgba(255, 255, 255, 0.88));
}

.split-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.split-grid.reverse {
  grid-template-columns: 1fr 0.95fr;
}

.problem-cards {
  grid-template-columns: repeat(2, 1fr);
}

.icon-circle {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--surface-soft);
  font-size: 22px;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 50px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 29px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.10), rgba(15, 118, 110, 0.45), rgba(37, 99, 235, 0.25));
}

.timeline-item {
  position: relative;
  z-index: 1;
  padding-top: 0;
}

.timeline-item span {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.18);
  color: var(--primary);
  box-shadow: var(--shadow-soft);
  font-weight: 900;
}

.timeline-item h3 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 18px;
}

.timeline-item p {
  text-align: center;
  font-size: 14px;
}

.benefit-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 42px;
}

.benefit-grid article {
  overflow: hidden;
}

.benefit-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--blue));
  opacity: 0.75;
}

.product-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 52px;
  align-items: start;
}

.product-layout .section-heading {
  position: sticky;
  top: 120px;
}

.product-layout .btn {
  margin-top: 28px;
}

.module-grid {
  grid-template-columns: repeat(2, 1fr);
}

.future-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(204, 251, 241, 0.75), rgba(219, 234, 254, 0.75)) !important;
}

.dark-section {
  color: #ffffff;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.18), transparent 28%),
    linear-gradient(135deg, #07111f 0%, #0f2d34 60%, #0f4f4a 100%);
}

.dark-section h2,
.dark-section h3,
.dark-section p {
  color: #ffffff;
}

.dark-section .section-kicker {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.16);
  color: #d2fffb;
}

.dark-section .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 46px;
}

.audience-grid article {
  min-height: 92px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  border-radius: 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.13);
  font-weight: 800;
}

.safety-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 52px;
  align-items: center;
}

.safety-list {
  display: grid;
  gap: 16px;
}

.safety-list div {
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--shadow-soft);
}

.safety-list strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.02em;
}

.difference-card {
  min-height: 420px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: var(--navy);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.loop-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.loop-visual div {
  width: 180px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

.loop-visual span {
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(20, 184, 166, 0.95));
}

.check-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--muted-2);
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.partner-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 42px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--shadow);
}

.partner-card p {
  max-width: 760px;
  margin-top: 18px;
  font-size: 18px;
}

.team-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 44px;
}

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

.founder-photo {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 30px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  font-weight: 900;
  font-size: 24px;
  box-shadow: 0 18px 42px rgba(15, 118, 110, 0.18);
}

.team-card p {
  margin-top: 8px;
  font-weight: 700;
}

.credibility-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 26px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--shadow-soft);
}

.credibility-panel div {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-soft);
}

.credibility-panel strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary-dark);
  font-size: 24px;
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.04em;
}

.credibility-panel span {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 700;
}

.cta-section {
  padding-top: 64px;
}

.cta-card {
  position: relative;
  overflow: hidden;
  padding: 70px;
  border-radius: 40px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.34), transparent 38%),
    linear-gradient(135deg, #07111f, #0f4f4a 64%, #0f766e);
  box-shadow: var(--shadow);
}

.cta-card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  bottom: -120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.cta-card h2,
.cta-card p {
  color: #ffffff;
}

.cta-card p {
  max-width: 700px;
  margin: 18px 0 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

.cta-card .section-kicker {
  color: #d2fffb;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.16);
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.contact-line a:hover {
  color: #ffffff;
}

.site-footer {
  padding: 58px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 40px;
}

.footer-brand {
  color: #ffffff;
}

.site-footer p {
  margin: 18px 0 10px;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer small {
  color: rgba(255, 255, 255, 0.52);
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #ffffff;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 14px 35px rgba(15, 118, 110, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.2s ease;
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .nav {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .hero-grid,
  .split-grid,
  .split-grid.reverse,
  .product-layout,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .product-layout .section-heading {
    position: static;
  }

  .hero-visual {
    min-height: 620px;
  }

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

  .timeline::before {
    display: none;
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .credibility-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section-padding {
    padding: 72px 0;
  }

  .hero {
    padding-top: 62px;
  }

  .brand-logo {
    width: 132px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-subtitle,
  .section-heading p {
    font-size: 16px;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .mini-flow {
    display: none;
  }

  .hero-visual {
    min-height: 520px;
  }

  .mockup-stack {
    min-height: 520px;
  }

  .desktop-mockup {
    width: 100%;
  }

  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    display: none;
  }

  .workspace-cards {
    grid-template-columns: 1fr;
  }

  .phone-mockup {
    left: 12px;
    bottom: 8px;
    width: 190px;
    min-height: 350px;
  }

  .floating-badge {
    right: 8px;
    bottom: 36px;
    max-width: 180px;
  }

  .logo-row,
  .flow-grid,
  .problem-cards,
  .benefit-grid,
  .module-grid,
  .team-grid,
  .audience-grid,
  .credibility-panel {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: 16px;
    align-items: start;
  }

  .timeline-item span {
    margin: 0;
    grid-row: span 2;
  }

  .timeline-item h3,
  .timeline-item p {
    text-align: left;
  }

  .partner-card {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .cta-card {
    padding: 42px 24px;
    border-radius: 28px;
  }

  .contact-line {
    flex-direction: column;
  }

  .contact-line span {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .phone-mockup {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 20px auto 0;
  }

  .floating-badge {
    display: none;
  }

  .hero-visual,
  .mockup-stack {
    min-height: auto;
  }

  .desktop-mockup {
    position: relative;
    top: auto;
    right: auto;
  }
}


/* Icon system and improved responsive navigation */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}

.step-icon,
.benefit-icon,
.module-icon,
.icon-circle,
.list-icon,
.partner-heading-icon {
  display: grid;
  place-items: center;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(204, 251, 241, 0.96), rgba(219, 234, 254, 0.76));
  border: 1px solid rgba(15, 118, 110, 0.14);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.10);
}

.step-icon svg,
.benefit-icon svg,
.module-icon svg,
.icon-circle svg,
.list-icon svg,
.partner-heading-icon svg,
.audience-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 18px;
}

.benefit-icon,
.module-icon,
.icon-circle {
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 18px;
}

.module-icon {
  margin-top: -4px;
}

.list-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 16px;
}

.safety-list div {
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 16px;
  align-items: start;
}

.safety-list div p {
  grid-column: 2;
}

.partner-heading-icon {
  width: 58px;
  height: 58px;
  margin: 20px 0 16px;
  border-radius: 20px;
}

.audience-grid article {
  gap: 10px;
}

.audience-icon {
  color: #7dd3fc;
  margin-bottom: 6px;
}

@media (min-width: 1081px) {
  .nav {
    grid-template-columns: auto 1fr auto;
  }

  .nav-menu {
    grid-column: 2 / 4;
  }
}

@media (max-width: 1080px) {
  .nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-menu {
    position: fixed;
    top: 82px;
    left: 20px;
    right: 20px;
    display: none;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  body.menu-open .nav-menu {
    display: flex;
  }

  .nav-menu .nav-panel,
  .nav-menu .nav-actions {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
  }

  .nav-menu .nav-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-menu .nav-panel a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  }

  .nav-menu .nav-panel a.active::after {
    display: none;
  }

  .nav-menu .nav-actions {
    gap: 12px;
    justify-content: stretch;
  }

  .nav-menu .nav-actions .btn {
    flex: 1;
  }
}

@media (max-width: 760px) {
  .safety-list div {
    grid-template-columns: 1fr;
  }

  .safety-list div p {
    grid-column: auto;
  }

  .list-icon {
    margin-bottom: 14px;
  }

  .nav-menu {
    left: 14px;
    right: 14px;
  }
}


/* -------------------------------------------------------
   Responsive polish fixes
   Fixes:
   1. Medium buttons without btn-small/btn-large were too small.
   2. Safety icons were inheriting card styles from broad selectors.
   3. Partner CTA needed stronger desktop and mobile sizing.
------------------------------------------------------- */

.btn {
  min-height: 48px;
  padding: 0 22px;
  font-size: 14px;
  line-height: 1;
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-large {
  min-height: 54px;
  padding: 0 26px;
  font-size: 15px;
}

.product-layout .section-heading .btn {
  min-width: 148px;
  min-height: 50px;
  padding: 0 24px;
  margin-top: 30px;
}

.safety-list > div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 8px;
  align-items: start;
  padding: 26px 28px;
}

/* Override older broad ".safety-list div" rules for nested icon boxes */
.safety-list .list-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: none;
  place-items: center;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  margin: 0;
  border-radius: 16px;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(204, 251, 241, 0.96), rgba(219, 234, 254, 0.76));
  border: 1px solid rgba(15, 118, 110, 0.14);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.10);
}

.safety-list .list-icon svg {
  width: 23px;
  height: 23px;
}

.safety-list > div strong {
  grid-column: 2;
  grid-row: 1;
  display: block;
  margin: 0;
  padding-top: 2px;
  line-height: 1.35;
}

.safety-list > div p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  line-height: 1.65;
}

.partner-card .btn {
  min-width: 150px;
  min-height: 52px;
  padding: 0 26px;
  font-size: 15px;
}

.partner-card {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .product-layout .section-heading .btn {
    position: static;
  }

  .partner-card {
    grid-template-columns: 1fr;
  }

  .partner-card .btn {
    width: fit-content;
  }
}

@media (max-width: 760px) {
  .product-layout .section-heading .btn {
    width: 100%;
  }

  .safety-list > div {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .safety-list .list-icon,
  .safety-list > div strong,
  .safety-list > div p {
    grid-column: auto;
    grid-row: auto;
  }

  .safety-list .list-icon {
    margin-bottom: 8px;
  }

  .partner-card .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .btn,
  .btn-small,
  .btn-large {
    width: 100%;
  }

  .nav-menu .nav-actions {
    flex-direction: column;
  }
}

