/* CliniByte Newsletter (newsletter.clinibyte.org) — Architectural + Mailbox Stylesheet */

:root {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-muted: #eef2f7;
  --bg-deep: #e2e8f0;
  --bg-navy: #1e3a8a;
  --bg-navy-deep: #0f2342;
  --ink-primary: #0b172a;
  --ink-body: #18263c;
  --ink-secondary: #3b4d66;
  --ink-on-navy: #ffffff;
  --brand-navy: #1e3a8a;
  --brand-navy-hover: #172e6e;
  --brand-red: #c81e1e;
  --brand-red-soft: #fde8e8;
  --brand-green: #146c43;
  --focus-ring: #1e3a8a;
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-body);
  background-color: var(--bg-page);
  overflow-x: clip;
}

/* Preserve the signature 40px x 40px architectural grid from newsletter.clinibyte.org */
.bg-grid-light {
  background-color: var(--bg-page);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M40 0H0v40' fill='none' stroke='%230f2342' stroke-opacity='0.055' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 40px 40px;
}

/* Branded Logo Loading Animation Overlay — Swiftly fades out so it never blocks reading */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
  animation: preloaderFadeOut 360ms cubic-bezier(0.22, 1, 0.36, 1) 420ms forwards;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  width: 96px;
  height: 59px;
  object-fit: contain;
  background: transparent;
  animation: preloaderLogoPulse 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.preloader-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preloader-dot {
  width: 10px;
  height: 10px;
  background-color: var(--brand-navy);
}

.preloader-dot-red {
  background-color: var(--brand-red);
}

@keyframes preloaderLogoPulse {
  0% {
    opacity: 0.15;
    transform: translateY(10px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes preloaderFadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader {
    display: none;
  }
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  z-index: 9999;
  background-color: var(--brand-navy);
  color: #ffffff;
  padding: 10px 18px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.skip-link:focus {
  top: 16px;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Links */
a {
  color: var(--brand-navy);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: opacity 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

a:hover {
  opacity: 0.86;
}

/* Container — strict equal left & right margins */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (max-width: 600px) {
  .container {
    padding-inline: 18px;
  }
}

/* Strict 5-step typographic scale — headlines hold to 2 lines at every viewport */
h1,
h2,
h3,
h4 {
  color: var(--ink-primary);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 0;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2rem, 3.3vw, 2.875rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.375rem, 2.2vw, 2rem);
  line-height: 1.16;
}

h3,
h4 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.red-dot {
  color: var(--brand-red);
}

.red-accent-text,
.text-logo-red {
  color: var(--brand-red);
}

.text-logo-blue {
  color: var(--brand-navy);
}

p {
  margin-top: 0;
  margin-bottom: 18px;
  max-width: 62ch;
  font-size: 1.0625rem;
  color: var(--ink-body);
}

.lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-body);
  max-width: 60ch;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Header & Navigation — Single-line CliniByte Newsletter brand + single-line links/buttons */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: var(--bg-surface);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}

/* Logo MUST have zero borders, boxes, frames, or background tiles */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-primary);
  background: transparent;
  padding: 0;
  min-height: 48px;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 68px;
  height: 42px;
  object-fit: contain;
  background: transparent;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.06;
}

.brand-name {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--brand-red);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-primary);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link[aria-current="page"] {
  background-color: var(--bg-muted);
  color: var(--brand-red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 44px;
  padding: 8px 14px;
  background-color: var(--bg-muted);
  color: var(--ink-primary);
  border: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

/* Buttons — Single-line words (white-space: nowrap), crisp sizing, transform/opacity motion */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-sm {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-navy);
  color: #ffffff;
}

.btn-red {
  background-color: var(--brand-red);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--bg-muted);
  color: var(--ink-primary);
}

.btn-light {
  background-color: #ffffff;
  color: var(--bg-navy);
}

/* Breadcrumbs */
.breadcrumb-bar {
  background-color: var(--bg-muted);
  padding-block: 10px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-secondary);
}

.breadcrumb-list a {
  color: var(--ink-primary);
  font-weight: 600;
  text-decoration: none;
}

/* Hero Section — Mailbox Webflow Simplicity + 40px Grid + Mail/Send Vector Canvas */
.hero-section {
  position: relative;
  padding-block: 48px 64px;
  overflow: hidden;
}

.hero-canvas-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-icon {
  position: absolute;
  color: var(--brand-navy);
  opacity: 0.055;
}

.hero-bg-icon-mail {
  top: 24px;
  left: -32px;
  width: 340px;
  height: 340px;
  transform: rotate(-11deg);
}

.hero-bg-icon-send {
  bottom: 16px;
  right: -24px;
  width: 320px;
  height: 320px;
  transform: rotate(10deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Mailbox Template Inline Hero Subscribe Bar */
.hero-inline-form {
  width: 100%;
  max-width: 520px;
  margin-block: 6px 18px;
}

.hero-form-row,
.hero-inline-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 10px;
}

.hero-form-row input[type="email"],
.hero-inline-input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
}

.hero-consent-mini {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.9375rem;
}

.hero-consent-mini input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--brand-red);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 8px 20px;
}

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

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  background-color: var(--brand-red-soft);
  color: var(--brand-red);
}

.check-list li:nth-child(even) .check-mark,
.subscribe-perks-grid li:nth-child(even) .check-mark {
  background-color: #dbeafe;
  color: var(--brand-navy);
}

.section-navy .check-list li {
  color: var(--ink-on-navy);
}

.section-navy .check-mark,
.pricing-card-featured .check-mark {
  background-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* Layered Hero Right Visual (Mailbox template pattern + live HTML email preview) */
.hero-stage {
  position: relative;
  display: grid;
  gap: 16px;
}

.hero-photo-wrap {
  position: relative;
  background-color: var(--bg-deep);
  overflow: hidden;
}

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-mail-overlay {
  background-color: var(--bg-surface);
  padding: 20px 22px;
}

.mail-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.mail-status-pill {
  background-color: var(--brand-red-soft);
  color: var(--brand-red);
  padding: 4px 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Sections */
.section {
  padding-block: 68px;
}

.section-surface {
  background-color: var(--bg-surface);
}

.section-muted {
  background-color: var(--bg-muted);
}

.section-navy {
  background-color: var(--bg-navy-deep);
  color: var(--ink-on-navy);
}

.section-navy h1,
.section-navy h2,
.section-navy h3,
.section-navy p {
  color: var(--ink-on-navy);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-header p {
  margin-bottom: 0;
}

.section-footer-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Mailbox-Style Trusted Proof Strip */
.metrics-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1.15fr;
  gap: 20px;
}

.metric-block {
  background-color: var(--bg-surface);
  padding: 22px;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand-navy);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.metric-value-red {
  color: var(--brand-red);
}

.metric-label {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-body);
  margin: 0;
}

/* Mail Canvas Carousel — Real HTML Email Dispatches (No eyebrow text above it!) */
.carousel-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  background-color: var(--bg-surface);
  color: var(--ink-primary);
  border: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

.mail-canvas-card {
  background-color: var(--bg-surface);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.mail-canvas-card[hidden] {
  display: none;
}

.mail-header-bar {
  background-color: var(--bg-muted);
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9375rem;
}

.mail-from {
  font-weight: 700;
  color: var(--ink-primary);
}

.mail-meta {
  font-weight: 700;
  color: var(--brand-red);
}

.mail-body-preview {
  background-color: var(--bg-page);
  padding: 20px;
}

.mail-body-preview h3 {
  margin-bottom: 8px;
}

.mail-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

.mail-tag {
  background-color: var(--bg-muted);
  color: var(--brand-navy);
  padding: 5px 10px;
  font-size: 0.9375rem;
  font-weight: 700;
}

/* Alternating Image + Text Showcase Rows (Mailbox Webflow Pattern) */
.split-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.split-showcase + .split-showcase {
  margin-top: 56px;
}

.showcase-figure {
  margin: 0;
  background-color: var(--bg-muted);
}

.showcase-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.showcase-caption {
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

/* Full-Bleed Corner-to-Corner Server-Room Lady + Blue Card Section (Matches newsletter.clinibyte.org) */
.section-bleed {
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.server-lady-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 540px;
  background-color: var(--brand-navy);
  color: #ffffff;
}

.server-lady-media {
  position: relative;
  min-height: 540px;
  background-color: #0b172a;
}

.server-lady-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.server-lady-card {
  background-color: var(--brand-navy);
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.server-lady-card h2 {
  color: #ffffff;
  margin-bottom: 18px;
}

.server-lady-card p {
  color: #e2e8f0;
  margin-bottom: 28px;
  max-width: 54ch;
}

.btn-outline-white {
  background-color: #ffffff;
  color: var(--brand-navy);
  padding: 10px 22px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* Sector / Use-Case Split Grid */
.sector-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 24px;
}

.sector-card {
  background-color: var(--bg-surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sector-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.sector-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

/* Interactive Plan Recommender */
.plan-finder {
  background-color: var(--bg-muted);
  padding: 24px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 22px;
  align-items: center;
}

.finder-field label {
  display: block;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.finder-result {
  background-color: var(--bg-surface);
  padding: 16px 20px;
}

.finder-result strong {
  color: var(--brand-red);
  font-size: 1.0625rem;
}

/* Pricing Grid ($17 Standard, $26 Pro featured center, $35 Ultra) */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background-color: var(--bg-muted);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.pricing-card-featured {
  background-color: var(--bg-navy-deep);
  color: #ffffff;
}

.pricing-card-featured h3,
.pricing-card-featured p,
.pricing-card-featured li,
.pricing-card-featured .price-amount,
.pricing-card-featured .price-period {
  color: #ffffff;
}

.pricing-card-featured .check-mark {
  color: #fca5a5;
}

.pricing-card.is-recommended {
  outline: 3px solid var(--brand-red);
  outline-offset: 2px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-block: 10px 14px;
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
}

.price-period {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: grid;
  gap: 10px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 600;
}

/* Comparison Table (Tables keep real borders) */
.table-wrap {
  overflow-x: auto;
  margin-top: 32px;
  background-color: var(--bg-surface);
}

table.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

table.comparison-table th,
table.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #cbd5e1;
  font-size: 1.0625rem;
}

table.comparison-table th {
  background-color: var(--bg-muted);
  color: var(--ink-primary);
  font-weight: 800;
}

table.comparison-table td.num,
table.comparison-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* FAQ List */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.faq-item {
  background-color: var(--bg-surface);
  padding: 20px 22px;
}

.faq-item summary {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Forms (Inputs keep real borders) */
.form-card {
  background-color: var(--bg-surface);
  color: var(--ink-body);
  padding: 28px;
}

.section-navy .form-card h3,
.section-navy .form-card p,
.section-navy .form-card label {
  color: var(--ink-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 1.0625rem;
  font-family: inherit;
  color: var(--ink-primary);
  background-color: #ffffff;
  border: 1.5px solid #94a3b8;
  border-radius: 0;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block: 12px 18px;
}

.consent-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--brand-red);
}

.consent-row label {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-body);
}

.hp-trap {
  position: absolute;
  left: -9999px;
  clip-path: inset(50%);
  overflow: hidden;
}

/* Click-to-load Map Card */
.map-shell {
  background-color: var(--bg-muted);
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.map-frame-holder {
  background-color: var(--bg-surface);
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}

.map-frame-holder iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

/* Mailbox-Style End-of-Page Subscribe Section + Darker Separated Footer */
.subscribe-end-section {
  background-color: var(--bg-page);
  padding-block: 80px 72px;
}

.subscribe-end-wrap {
  max-width: 780px;
}

.subscribe-end-wrap h2 {
  margin-bottom: 24px;
}

.subscribe-perks-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
}

.subscribe-perks-grid li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.subscribe-end-form {
  max-width: 620px;
}

.subscribe-bar-row {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 12px;
}

.subscribe-bar-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background-color: #ffffff;
}

.subscribe-bar-input-wrap input[type="email"] {
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
  border: 1.5px solid #cbd5e1;
  background-color: #ffffff;
  font-size: 1.0625rem;
}

.subscribe-bar-btn {
  min-height: 54px;
  padding: 12px 32px;
  font-size: 1.0625rem;
  font-weight: 700;
  background-color: var(--brand-red);
  color: #ffffff;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.subscribe-bar-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* Footer — Separated by a crisp top line and slightly darker slate-tinted theme, matching Mailbox layout */
.site-footer {
  background-color: #e4ebf5;
  color: var(--ink-body);
  border-top: 2px solid #b8c7dc; /* taste-skill-ignore */
  padding-block: 64px 48px;
}

.footer-mailbox-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  gap: 48px;
  align-items: start;
}

.footer-brand-desc {
  max-width: 42ch;
  margin-top: 14px;
  margin-bottom: 20px;
  color: var(--ink-body);
}

.footer-contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  background-color: #ffffff;
  color: var(--ink-primary);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.footer-col h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-links a,
.footer-link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink-body);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.footer-links a:hover,
.footer-link-btn:hover {
  color: var(--brand-red);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #c5d3e6; /* taste-skill-ignore */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9375rem;
  color: var(--ink-body);
}

.footer-bottom a {
  color: var(--ink-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.footer-socials {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: #ffffff;
  color: var(--ink-primary);
  text-decoration: none !important;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms cubic-bezier(0.22, 1, 0.36, 1), color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.social-icon-link:hover {
  background-color: var(--brand-navy);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Cookie Consent Banner — Placed at the very bottom of the page below the footer */
.cookie-banner {
  position: relative;
  z-index: 120;
  background-color: #dce5f2;
  border-top: 1px solid #c5d3e6; /* taste-skill-ignore */
  padding: 14px 18px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9375rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-banner .btn-secondary {
  background-color: var(--bg-surface);
}

/* Sticky Mobile CTA Bar (<768px) — Compact single-line buttons inside sticky header */
.sticky-mobile-cta {
  display: none;
  background-color: var(--bg-muted);
  padding: 6px 16px;
  gap: 8px;
}

.sticky-mobile-cta .btn {
  flex: 1;
  min-height: 38px;
  padding: 6px 8px;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* Legal & Long-form Pages */
.prose-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.prose-card {
  background-color: var(--bg-surface);
  padding: 32px;
}

.prose-side {
  background-color: var(--bg-muted);
  padding: 24px;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px;
  }

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

  .header-actions {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .split-showcase,
  .server-lady-split,
  .map-shell,
  .prose-grid {
    grid-template-columns: 1fr;
  }

  .server-lady-card {
    padding: 40px 28px;
  }

  .metrics-grid,
  .mail-carousel-grid,
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sector-grid,
  .pricing-grid,
  .plan-finder,
  .footer-mailbox-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .metrics-grid,
  .mail-carousel-grid,
  .faq-grid,
  .form-row,
  .hero-form-row,
  .hero-inline-row,
  .subscribe-perks-grid,
  .subscribe-bar-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .sticky-mobile-cta {
    display: flex;
  }
}
