/* Homepage layout and interaction layer. Load after marketing.css. */
.mkt-page {
  --text-muted: #596579;
  --border-color: #e3eaf3;
  --card-shadow: 0 10px 32px rgba(16, 43, 80, .045);
  --card-shadow-hover: 0 18px 44px rgba(0, 82, 170, .12);
}

.mkt-page main { overflow: clip; }
.mkt-page main section[id],
.mkt-page .scenario-card[id] { scroll-margin-top: 76px; }
.mkt-page .container { max-width: 1200px; padding-inline: clamp(18px, 4vw, 32px); }
.mkt-page .ios-nav-inner { min-height: 62px; height: auto; }
.mkt-page .ios-nav .links { gap: 18px; }
.mkt-page .site-menu-toggle { display: none; }
.mkt-page .section-header { max-width: 760px; margin: 0 auto 40px; }
.mkt-page .section-header h2 { line-height: 1.18; letter-spacing: -.035em; }
.mkt-page .section-header p { max-width: 680px; }

/* Poster: product promise on the left, inbox preview on the right. */
.mkt-page .hero-section {
  padding: clamp(70px, 8vw, 110px) 0 52px;
  background: radial-gradient(circle at 76% 28%, #dfedff 0, transparent 31%),
              linear-gradient(155deg, #f2f7ff 0%, #f8fbff 52%, #fff 100%);
}
.mkt-page .hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(30px, 5vw, 64px);
}
.mkt-page .hero-content,
.mkt-page .hero-visual { min-width: 0; }
.mkt-page .hero-content h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.09; }
.mkt-page .hero-content .lead { max-width: 540px; }
.mkt-page .mock-dashboard {
  max-width: 520px;
  margin-inline: auto;
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(21, 66, 124, .15);
}
.mkt-page .metrics-strip {
  margin-top: clamp(36px, 5vw, 64px);
  padding-bottom: 0;
  gap: 14px;
  z-index: auto;
}
.mkt-page .metric-pill {
  display: flex;
  min-width: 0;
  min-height: 84px;
  flex-direction: column;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.mkt-page .metric-pill:hover,
.mkt-page .metric-pill:focus-visible {
  border-color: #8abfff;
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Section rhythm: primary value, use cases, process, supporting detail. */
.mkt-page .concept-section,
.mkt-page .inbox-section,
.mkt-page .scenarios-section,
.mkt-page .workflow-section,
.mkt-page .team-section,
.mkt-page .status-section,
.mkt-page .why-section,
.mkt-page .pricing-section,
.mkt-page .faq-section { padding: clamp(68px, 7vw, 98px) 0; }
.mkt-page .concept-section,
.mkt-page .workflow-section,
.mkt-page .status-section,
.mkt-page .faq-section { background: #f6f9fd; }
.mkt-page .inbox-section,
.mkt-page .scenarios-section,
.mkt-page .team-section { background: #fff; }
.mkt-page .concept-box { border: 1px solid #e9eef6; }
.mkt-page .pain-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mkt-page .pain-card { min-width: 0; }
.mkt-page .flow-chain { gap: 8px; }
.mkt-page .chain-node { white-space: nowrap; }

/* Five use cases form a balanced 3 + 2 grid at desktop widths. */
.mkt-page .scenarios-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.mkt-page .scenario-card {
  grid-column: span 2;
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  padding: clamp(22px, 3vw, 30px);
  color: var(--text-main);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mkt-page .scenario-card:nth-child(n + 4) { grid-column: span 3; }
.mkt-page .scenario-card:hover,
.mkt-page .scenario-card:focus-visible { color: var(--text-main); text-decoration: none; }
.mkt-page .scenario-card h3 { margin-bottom: 14px; }
.mkt-page .scenario-card ul { display: flex; flex-wrap: wrap; gap: 8px; }
.mkt-page .scenario-card li {
  display: inline-flex;
  width: auto;
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f4f8fe;
  color: #405169;
  font-size: 13px;
  line-height: 1.35;
}
.mkt-page .scenario-card li::before { display: none; }
.mkt-page .scenario-card .foot { margin-top: 22px; padding-top: 18px; }
.mkt-page .card-action {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 20px;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}
.mkt-page .scenario-card:hover .card-action,
.mkt-page .inbox-tile:hover .card-action { text-decoration: underline; }

/* Feature cards are links with an explicit destination. */
.mkt-page .inbox-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mkt-page .inbox-tile {
  display: flex;
  min-width: 0;
  min-height: 218px;
  flex-direction: column;
  color: var(--text-main);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.mkt-page .inbox-tile:hover,
.mkt-page .inbox-tile:focus-visible {
  color: var(--text-main);
  text-decoration: none;
  border-color: #8abfff;
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}

/* Informational cards use stable styling so they do not promise a click. */
.mkt-page .team-grid,
.mkt-page .workflow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mkt-page .status-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mkt-page .status-card:hover { box-shadow: none; }
.mkt-page .team-card,
.mkt-page .step-card,
.mkt-page .status-card { min-width: 0; overflow-wrap: anywhere; }

.mkt-page a:focus-visible,
.mkt-page button:focus-visible,
.mkt-page summary:focus-visible { outline: 3px solid #75b4ff; outline-offset: 3px; }

@media (max-width: 1024px) {
  .mkt-page .hero-grid,
  .mkt-page .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .mkt-page .hero-content { text-align: center; }
  .mkt-page .hero-content .lead { margin-inline: auto; }
  .mkt-page .hero-content .btn-group { justify-content: center; }
  .mkt-page .metrics-strip,
  .mkt-page .pain-grid,
  .mkt-page .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mkt-page .scenarios-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mkt-page .scenario-card,
  .mkt-page .scenario-card:nth-child(n + 4) { grid-column: span 1; }
  .mkt-page .scenario-card:last-child { grid-column: span 2; }
  .mkt-page .inbox-grid,
  .mkt-page .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mkt-page .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .mkt-page .ios-nav-inner { min-height: 60px; flex-wrap: wrap; gap: 0; }
  .mkt-page .ios-nav .logo { min-height: 60px; }
  .mkt-page .site-menu-toggle {
    display: block;
    margin-left: auto;
    padding: 9px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    color: var(--text-main);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  .mkt-page .ios-nav .links {
    display: none;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 0 0 14px;
  }
  .mkt-page .ios-nav .links[data-open="true"] { display: flex; }
  .mkt-page .ios-nav .links > a,
  .mkt-page .ios-nav .nav-drop-btn { display: block; width: 100%; padding: 11px 2px; text-align: left; }
  .mkt-page .ios-nav .links > .btn-pill { width: fit-content; margin: 5px 0; padding: 9px 16px; }
  .mkt-page .ios-nav .nav-drop-menu {
    position: static;
    width: 100%;
    min-width: 0;
    transform: none;
    box-shadow: none;
    margin: 0 0 8px;
  }
}

@media (max-width: 700px) {
  .mkt-page .hero-section { padding-top: 62px; }
  .mkt-page .hero-content { text-align: left; }
  .mkt-page .hero-content .lead { margin-inline: 0; }
  .mkt-page .hero-content .btn-group { justify-content: flex-start; }
  .mkt-page .hero-content h1 { font-size: clamp(38px, 10vw, 54px); }
  .mkt-page .section-header { margin-bottom: 30px; }
  .mkt-page .section-header p { font-size: 16px; }
  .mkt-page .metrics-strip,
  .mkt-page .pain-grid,
  .mkt-page .scenarios-grid,
  .mkt-page .inbox-grid,
  .mkt-page .workflow-grid,
  .mkt-page .team-grid,
  .mkt-page .status-grid,
  .mkt-page .why-grid,
  .mkt-page .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .mkt-page .scenario-card,
  .mkt-page .scenario-card:nth-child(n + 4),
  .mkt-page .scenario-card:last-child { grid-column: span 1; }
  .mkt-page .metric-pill { min-height: 72px; }
  .mkt-page .inbox-tile { min-height: 185px; }
  .mkt-page .flow-chain { justify-content: flex-start; }
  .mkt-page .chain-arrow { display: none; }
  .mkt-page .price-card { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mkt-page .metric-pill,
  .mkt-page .scenario-card,
  .mkt-page .inbox-tile { transition: none; }
}
