/* KeverHosting — mail section.
   Builds on vps-modern.css: design tokens, reveal, benefit grid, specs, FAQ. */

body.mail-theme-business {
  --kh-accent: #0f1b46;
  --kh-accent-2: #1a2d6b;
  --kh-highlight: #f7bb37;
}
body.mail-theme-dedicated {
  --kh-accent: #0f1b46;
  --kh-accent-2: #243a7a;
  --kh-highlight: #ffdd00;
}
body.mail-theme-exchange {
  --kh-accent: #0a1435;
  --kh-accent-2: #0f1b46;
  --kh-highlight: #f7bb37;
}

/* Hub badge for services activated on request */
.host-hub-badge.alt,
.vps-tier-badge.alt {
  background: #fff;
  color: var(--kh-muted);
  border: 1px solid var(--kh-border);
}

/* ============ Billing cycle ============ */
.mail-cycle-wrap { text-align: center; }
.mail-cycle-wrap .save {
  display: inline-block;
  margin: -18px 0 26px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--kh-border);
  background: #fff;
  color: var(--kh-muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}
.mail-cycle-wrap .save.discount_ylw {
  background: var(--kh-highlight) !important;
  border-color: var(--kh-highlight) !important;
  color: #0f1b46 !important;
}

/* ============ Plan cards ============ */
.mail-plans-grid {
  display: grid;
  gap: 22px;
  text-align: left;
  align-items: stretch;
}
.mail-plans-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.mail-plans-grid[data-count="2"],
.mail-plans-grid[data-count="3"] { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
  .mail-plans-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .mail-plans-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.mail-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--kh-card);
  border: 1px solid var(--kh-border);
  border-radius: 18px;
  padding: 26px 24px 24px;
  box-shadow: 0 2px 12px rgba(15, 27, 70, 0.05);
  overflow: hidden;
  transition: transform 0.3s var(--kh-ease), box-shadow 0.3s ease, border-color 0.3s ease;
}
.mail-plan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--kh-accent), var(--kh-highlight));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--kh-ease);
}
.mail-plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--kh-shadow);
  border-color: rgba(15, 27, 70, 0.2);
}
.mail-plan-card:hover::before { transform: scaleX(1); }
.mail-plan-card.is-featured {
  border-color: rgba(247, 187, 55, 0.75);
  box-shadow: 0 12px 34px rgba(15, 27, 70, 0.12);
}
.mail-plan-card.is-featured::before { transform: scaleX(1); }
.mail-plan-card .plan-ribbon {
  position: absolute;
  top: 16px;
  right: -34px;
  transform: rotate(38deg);
  background: var(--kh-highlight);
  color: #0f1b46;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 40px;
  box-shadow: 0 4px 12px rgba(15, 27, 70, 0.16);
  z-index: 2;
}

.mail-plan-card .plan-head h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--kh-ink);
  margin: 0 0 10px;
  line-height: 1.2;
}
/* Keep the title clear of the corner ribbon */
.mail-plan-card.is-featured .plan-head h3 { padding-right: 52px; }
.mail-plans-grid[data-count="1"] .plan-head h3 { padding-right: 0; }
.mail-plan-card .plan-head h3 span {
  color: var(--kh-muted);
  font-weight: 600;
}
.mail-plan-card .pricing-amount {
  padding: 0 !important;
  display: flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
}
.mail-plan-card .pricing-amount .currency {
  position: static !important;
  top: auto !important;
  left: auto !important;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--kh-ink);
}
.mail-plan-card .pricing-amount .price {
  font-size: 2.4rem !important;
  font-weight: 700;
  color: var(--kh-ink);
  letter-spacing: -0.02em;
}
.mail-plan-card .pricing-amount .subscription {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--kh-muted);
}
.mail-plan-card .year-price {
  min-height: 18px;
  margin-top: 6px;
}
.mail-plan-card .year-price p {
  font-size: 0.82rem !important;
  color: var(--kh-muted);
  margin: 0 !important;
}
.mail-plan-card .year-price del { opacity: 0.65; }
.mail-plan-card .year-price strong { color: var(--kh-ink); }

.mail-plan-card .plan-figures {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--kh-border);
}
.mail-plan-card .plan-figures li {
  background: rgba(15, 27, 70, 0.04);
  border-radius: 12px;
  padding: 12px 14px;
}
.mail-plan-card .plan-figures strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--kh-ink);
  line-height: 1.1;
}
.mail-plan-card .plan-figures span {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  color: var(--kh-muted);
  line-height: 1.3;
}

.mail-plan-card .plan-side {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mail-plan-card .plan-features {
  list-style: none;
  flex: 1;
  margin: 18px 0 0;
  padding: 0;
}
.mail-plan-card .plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--kh-muted);
  line-height: 1.45;
  padding: 5px 0;
}
.mail-plan-card .plan-features svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-top: 4px;
  fill: none;
  stroke: var(--kh-highlight);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mail-plan-card .plan-fit {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed var(--kh-border);
  font-size: 0.8rem;
  color: var(--kh-muted);
  line-height: 1.45;
}
.mail-plan-card .plan-fit span {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kh-ink);
  margin-bottom: 4px;
}
.mail-plan-card a.pricing-btn {
  display: block;
  width: 100%;
  margin: 18px 0 0 !important;
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--kh-accent);
  color: #fff;
  font-size: 0.95rem !important;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s var(--kh-ease), box-shadow 0.25s ease;
}
.mail-plan-card a.pricing-btn:hover {
  background: var(--kh-accent-2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 27, 70, 0.22);
}
.mail-plan-card.is-featured a.pricing-btn {
  background: var(--kh-highlight);
  color: #0f1b46;
}
.mail-plan-card.is-featured a.pricing-btn:hover { background: #ffd15c; color: #0f1b46; }

/* Single plan: figures and features sit side by side */
@media (min-width: 992px) {
  .mail-plans-grid[data-count="1"] .mail-plan-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 34px;
    padding: 32px;
  }
  .mail-plans-grid[data-count="1"] .plan-figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mail-plans-grid[data-count="1"] .plan-side { justify-content: center; }
  .mail-plans-grid[data-count="1"] .plan-features { margin-top: 0; }
  .mail-plans-grid[data-count="1"] .pricing-amount .price { font-size: 2.8rem !important; }
}

.mail-quote-note {
  max-width: 760px;
  margin: 16px auto 0;
  font-size: 0.84rem;
  color: var(--kh-muted);
  line-height: 1.5;
  text-align: center;
}

/* ============ Migration steps ============ */
.mail-migration {
  background: #fff;
  padding: 70px 0;
}
.mail-migration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 28px;
}
@media (min-width: 768px) {
  .mail-migration-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.mail-step {
  position: relative;
  background: var(--kh-card);
  border: 1px solid var(--kh-border);
  border-radius: 16px;
  padding: 26px 22px 22px;
  transition: transform 0.3s var(--kh-ease), box-shadow 0.3s ease;
}
.mail-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--kh-shadow);
}
.mail-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--kh-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.mail-step h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--kh-ink);
  margin: 0 0 8px;
  line-height: 1.3;
}
.mail-step p {
  font-size: 0.88rem;
  color: var(--kh-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============ Animation: inbound filtering ============
   These figures sit on the dark .kh-anim panel: fills and strokes are light. */
.kh-flt-anim text { font-family: inherit; }
.kh-flt-anim .flt-caption {
  font-size: 12px;
  fill: rgba(247, 187, 55, 0.9);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kh-flt-anim .flt-stage {
  font-size: 11px;
  fill: rgba(255, 255, 255, 0.5);
}
.kh-flt-anim .flt-gate {
  fill: rgba(255, 255, 255, 0.16);
}
.kh-flt-anim .flt-gate--1 { animation: khFltGate 7s linear infinite; }
.kh-flt-anim .flt-gate--2 { animation: khFltGate 7s linear infinite 0.5s; }
.kh-flt-anim .flt-gate--3 { animation: khFltGate 7s linear infinite 1s; }
@keyframes khFltGate {
  0%, 100% { fill: rgba(255, 255, 255, 0.16); }
  8% { fill: rgba(247, 187, 55, 0.7); }
  20% { fill: rgba(255, 255, 255, 0.16); }
}
.kh-flt-anim .flt-target rect {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.5;
}
.kh-flt-anim .flt-target text {
  font-size: 12px;
  font-weight: 600;
  fill: rgba(255, 255, 255, 0.85);
}
.kh-flt-anim .flt-env {
  fill: none;
  stroke: var(--kh-yellow);
  stroke-width: 2;
  stroke-linejoin: round;
}
.kh-flt-anim .flt-shield {
  fill: rgba(255, 107, 107, 0.18);
  stroke: #ff6b6b;
  stroke-width: 2;
  stroke-linejoin: round;
}
.kh-flt-anim .flt-msg rect {
  fill: rgba(255, 255, 255, 0.92);
}
.kh-flt-anim .flt-msg path {
  fill: none;
  stroke: var(--kh-blue);
  stroke-width: 2;
  stroke-linejoin: round;
}
.kh-flt-anim .flt-msg { opacity: 0; }
.kh-flt-anim .flt-msg--a { animation: khFltPass 7s var(--kh-ease) infinite; }
.kh-flt-anim .flt-msg--b { animation: khFltStop2 7s var(--kh-ease) infinite 1.4s; }
.kh-flt-anim .flt-msg--c { animation: khFltPass 7s var(--kh-ease) infinite 2.8s; }
.kh-flt-anim .flt-msg--d { animation: khFltStop3 7s var(--kh-ease) infinite 4.2s; }
.kh-flt-anim .flt-msg--b rect,
.kh-flt-anim .flt-msg--d rect { fill: #ff6b6b; }
.kh-flt-anim .flt-msg--b path,
.kh-flt-anim .flt-msg--d path { stroke: rgba(15, 27, 70, 0.85); }

@keyframes khFltPass {
  0% { transform: translate(0, 0); opacity: 0; }
  6% { opacity: 1; }
  70% { transform: translate(640px, 0); opacity: 1; }
  80% { transform: translate(662px, 8px); opacity: 0; }
  100% { transform: translate(662px, 8px); opacity: 0; }
}
@keyframes khFltStop2 {
  0% { transform: translate(0, 0); opacity: 0; }
  6% { opacity: 1; }
  30% { transform: translate(276px, 0); }
  36% { transform: translate(282px, 0); }
  42% { transform: translate(276px, 0); }
  70% { transform: translate(640px, 118px); opacity: 1; }
  80% { transform: translate(662px, 126px); opacity: 0; }
  100% { transform: translate(662px, 126px); opacity: 0; }
}
@keyframes khFltStop3 {
  0% { transform: translate(0, 0); opacity: 0; }
  6% { opacity: 1; }
  40% { transform: translate(456px, 0); }
  46% { transform: translate(462px, 0); }
  52% { transform: translate(456px, 0); }
  75% { transform: translate(640px, 118px); opacity: 1; }
  85% { transform: translate(662px, 126px); opacity: 0; }
  100% { transform: translate(662px, 126px); opacity: 0; }
}
.kh-flt-anim .flt-hit {
  fill: none;
  stroke: #ff6b6b;
  stroke-width: 2;
  opacity: 0;
}
.kh-flt-anim .flt-hit--2 { animation: khFltHit 7s ease-out infinite 1.4s; }
.kh-flt-anim .flt-hit--3 { animation: khFltHit 7s ease-out infinite 4.2s; }
@keyframes khFltHit {
  0%, 30% { opacity: 0; transform: scale(0.6); transform-origin: center; transform-box: fill-box; }
  34% { opacity: 0.9; transform: scale(1); transform-origin: center; transform-box: fill-box; }
  46% { opacity: 0; transform: scale(1.5); transform-origin: center; transform-box: fill-box; }
  100% { opacity: 0; }
}

/* ============ Animation: outbound delivery ============ */
.kh-dlv-anim text {
  font-family: inherit;
  font-size: 12px;
  fill: rgba(255, 255, 255, 0.55);
}
.kh-dlv-anim .dlv-box rect,
.kh-dlv-anim .dlv-node rect {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.5;
}
.kh-dlv-anim .dlv-node-title {
  font-size: 14px;
  font-weight: 700;
  fill: var(--kh-yellow);
}
.kh-dlv-anim .dlv-sign {
  font-size: 11px;
  letter-spacing: 0.06em;
  fill: rgba(255, 255, 255, 0.5);
}
.kh-dlv-anim .dlv-stack {
  fill: rgba(255, 255, 255, 0.18);
}
.kh-dlv-anim .dlv-stack--1 { animation: khDlvStack 5s ease-in-out infinite; }
.kh-dlv-anim .dlv-stack--2 { animation: khDlvStack 5s ease-in-out infinite 0.4s; }
.kh-dlv-anim .dlv-stack--3 { animation: khDlvStack 5s ease-in-out infinite 0.8s; }
@keyframes khDlvStack {
  0%, 100% { fill: rgba(255, 255, 255, 0.18); }
  40% { fill: rgba(247, 187, 55, 0.55); }
}
.kh-dlv-anim .dlv-wire {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  animation: khDlvWire 1.6s linear infinite;
}
@keyframes khDlvWire { to { stroke-dashoffset: -24; } }
.kh-dlv-anim .dlv-seal circle {
  fill: rgba(247, 187, 55, 0.2);
  stroke: var(--kh-highlight);
  stroke-width: 2;
  animation: khDlvSeal 5s ease-in-out infinite;
}
.kh-dlv-anim .dlv-seal path {
  fill: none;
  stroke: var(--kh-yellow);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes khDlvSeal {
  0%, 100% { opacity: 0.75; }
  45% { opacity: 1; }
}
.kh-dlv-anim .dlv-dest {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.5;
}
.kh-dlv-anim .dlv-dest--1 { animation: khDlvDest 5s ease-in-out infinite 1.2s; }
.kh-dlv-anim .dlv-dest--2 { animation: khDlvDest 5s ease-in-out infinite 1.6s; }
.kh-dlv-anim .dlv-dest--3 { animation: khDlvDest 5s ease-in-out infinite 2s; }
@keyframes khDlvDest {
  0%, 100% { fill: rgba(255, 255, 255, 0.05); }
  30% { fill: rgba(247, 187, 55, 0.25); }
}
.kh-dlv-anim .dlv-pkt {
  fill: var(--kh-yellow);
  opacity: 0;
}
.kh-dlv-anim .dlv-pkt--a { animation: khDlvIn 5s linear infinite; }
.kh-dlv-anim .dlv-pkt--b { animation: khDlvIn 5s linear infinite 1.4s; }
.kh-dlv-anim .dlv-pkt--c { animation: khDlvOut 5s linear infinite 1.1s; }
.kh-dlv-anim .dlv-pkt--d { animation: khDlvOut 5s linear infinite 2.5s; }
@keyframes khDlvIn {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  38% { transform: translateX(104px); opacity: 1; }
  46% { transform: translateX(112px); opacity: 0; }
  100% { transform: translateX(112px); opacity: 0; }
}
@keyframes khDlvOut {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(100px, 0); opacity: 1; }
  60% { transform: translate(118px, -48px); opacity: 0; }
  100% { transform: translate(118px, -48px); opacity: 0; }
}
.kh-dlv-anim .dlv-rep-track { fill: rgba(255, 255, 255, 0.12); }
.kh-dlv-anim .dlv-rep-fill {
  fill: var(--kh-highlight);
  transform-origin: 20px 291px;
  animation: khDlvRep 5s ease-in-out infinite;
}
@keyframes khDlvRep {
  0%, 100% { transform: scaleX(0.94); }
  50% { transform: scaleX(1); }
}
.kh-dlv-anim .dlv-rep-badge {
  font-size: 12px;
  font-weight: 700;
  fill: var(--kh-yellow);
}

/* ============ Animation: device sync ============ */
.kh-syn-anim text {
  font-family: inherit;
  font-size: 12px;
  fill: rgba(255, 255, 255, 0.6);
}
.kh-syn-anim .syn-cloud rect {
  fill: rgba(247, 187, 55, 0.1);
  stroke: rgba(247, 187, 55, 0.55);
  stroke-width: 1.5;
}
.kh-syn-anim .syn-cloud-title {
  font-size: 15px;
  font-weight: 700;
  fill: var(--kh-yellow);
}
.kh-syn-anim .syn-cloud-sub { fill: rgba(255, 255, 255, 0.6); }
.kh-syn-anim .syn-wire {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 2;
  stroke-dasharray: 5 5;
  animation: khSynWire 1.4s linear infinite;
}
@keyframes khSynWire { to { stroke-dashoffset: -20; } }
.kh-syn-anim .syn-screen {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.5;
}
.kh-syn-anim .syn-line { fill: rgba(255, 255, 255, 0.16); }
.kh-syn-anim .syn-line--a { animation: khSynLine 6s ease-in-out infinite 2.2s; }
.kh-syn-anim .syn-line--b { animation: khSynLine 6s ease-in-out infinite 2.35s; }
@keyframes khSynLine {
  0%, 30% { fill: rgba(255, 255, 255, 0.16); }
  40% { fill: rgba(247, 187, 55, 0.8); }
  75% { fill: rgba(255, 255, 255, 0.3); }
  100% { fill: rgba(255, 255, 255, 0.16); }
}
.kh-syn-anim .syn-msg rect {
  fill: var(--kh-yellow);
}
.kh-syn-anim .syn-msg path {
  fill: none;
  stroke: var(--kh-blue);
  stroke-width: 2;
  stroke-linejoin: round;
}
.kh-syn-anim .syn-msg { animation: khSynMsg 6s var(--kh-ease) infinite; }
@keyframes khSynMsg {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 1; }
  26% { transform: translateY(94px); opacity: 1; }
  34% { transform: translateY(104px); opacity: 0; }
  100% { transform: translateY(104px); opacity: 0; }
}
.kh-syn-anim .syn-dot {
  fill: var(--kh-yellow);
  opacity: 0;
}
.kh-syn-anim .syn-dot--1 { animation: khSynDot 6s var(--kh-ease) infinite 2s; }
.kh-syn-anim .syn-dot--2 { animation: khSynDot 6s var(--kh-ease) infinite 2s; }
.kh-syn-anim .syn-dot--3 { animation: khSynDot 6s var(--kh-ease) infinite 2s; }
@keyframes khSynDot {
  0% { opacity: 0; transform: translateY(0); }
  10% { opacity: 1; }
  60% { opacity: 1; transform: translateY(110px); }
  70% { opacity: 0; transform: translateY(110px); }
  100% { opacity: 0; }
}
.kh-syn-anim .syn-device text { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .kh-flt-anim *,
  .kh-dlv-anim *,
  .kh-syn-anim * {
    animation: none !important;
    transition: none !important;
  }
  .kh-flt-anim .flt-msg,
  .kh-dlv-anim .dlv-pkt,
  .kh-syn-anim .syn-msg,
  .kh-syn-anim .syn-dot { opacity: 1; }
}

/* ============ Hero — compact fact strip ============ */
body[class*="mail-theme-"] .slider-1-bg.inside h2 {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 400;
  color: #37415c;
}
.mail-hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px auto 0;
  padding: 0;
  max-width: 900px;
}
.mail-hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 27, 70, 0.09);
  box-shadow: 0 2px 10px rgba(15, 27, 70, 0.05);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  color: #22305c;
}
.mail-hero-facts img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 18px;
}
@media (max-width: 575px) {
  .mail-hero-facts { gap: 8px; }
  .mail-hero-facts li { font-size: 0.78rem; padding: 6px 12px; }
}

/* ============ Interface showcase (webmail mock) ============ */
.mail-ui {
  padding: 64px 0;
  background: var(--kh-surface);
}
.mail-ui-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 26px;
}
@media (min-width: 992px) {
  .mail-ui-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; }
}
.mail-ui-media {
  background: var(--kh-card);
  border: 1px solid var(--kh-border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--kh-shadow);
}
.mail-ui-media svg { display: block; width: 100%; height: auto; }
.mail-ui-points {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mail-ui-points li {
  position: relative;
  padding: 0 0 0 26px;
  margin-bottom: 22px;
}
.mail-ui-points li:last-child { margin-bottom: 0; }
.mail-ui-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--kh-highlight);
}
.mail-ui-points h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--kh-ink);
  margin: 0 0 6px;
}
.mail-ui-points p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--kh-muted);
  margin: 0;
}

/* webmail mock-up */
.kh-wm-anim .wm-window { fill: #fff; stroke: rgba(15, 27, 70, 0.12); stroke-width: 1.2; }
.kh-wm-anim .wm-sep { fill: none; stroke: rgba(15, 27, 70, 0.09); stroke-width: 1.2; }
.kh-wm-anim .wm-dot { fill: rgba(15, 27, 70, 0.16); }
.kh-wm-anim .wm-url { fill: rgba(15, 27, 70, 0.05); }
.kh-wm-anim .wm-url-text { fill: rgba(15, 27, 70, 0.45); font-size: 9px; letter-spacing: 0.02em; }
.kh-wm-anim .wm-nav-label { fill: rgba(15, 27, 70, 0.62); font-size: 10px; font-weight: 600; }
.kh-wm-anim .wm-nav-label.is-muted { fill: rgba(15, 27, 70, 0.38); }
.kh-wm-anim .wm-badge { fill: var(--kh-highlight); }
.kh-wm-anim .wm-badge-text { fill: #0f1b46; font-size: 8px; font-weight: 700; }
.kh-wm-anim .wm-compose { fill: var(--kh-accent); }
.kh-wm-anim .wm-compose-text { fill: #fff; font-size: 10px; font-weight: 700; }
.kh-wm-anim .wm-chip { fill: rgba(15, 27, 70, 0.07); }
.kh-wm-anim .wm-row-bg { fill: rgba(15, 27, 70, 0.03); }
.kh-wm-anim .wm-row-bg.is-unread { fill: rgba(247, 187, 55, 0.16); }
.kh-wm-anim .wm-avatar { fill: rgba(15, 27, 70, 0.14); }
.kh-wm-anim .wm-avatar.is-accent { fill: var(--kh-accent); }
.kh-wm-anim .wm-bar { fill: rgba(15, 27, 70, 0.22); }
.kh-wm-anim .wm-bar.is-strong { fill: rgba(15, 27, 70, 0.42); }
.kh-wm-anim .wm-bar.is-faint { fill: rgba(15, 27, 70, 0.13); }
.kh-wm-anim .wm-cell { fill: rgba(15, 27, 70, 0.035); }
.kh-wm-anim .wm-event { fill: rgba(15, 27, 70, 0.32); }
.kh-wm-anim .wm-event.is-accent { fill: var(--kh-highlight); }
.kh-wm-anim .wm-check { fill: #fff; stroke: rgba(15, 27, 70, 0.24); stroke-width: 1.4; }
.kh-wm-anim .wm-tick { fill: none; stroke: var(--kh-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kh-wm-anim .wm-nav-pill {
  fill: rgba(15, 27, 70, 0.07);
  animation: khWmNav 13.5s ease-in-out infinite;
}
.kh-wm-anim .wm-view {
  opacity: 0;
  animation: khWmView 13.5s ease-in-out infinite;
}
.kh-wm-anim .wm-view--b { animation-delay: 4.5s; }
.kh-wm-anim .wm-view--c { animation-delay: 9s; }
.kh-wm-anim .wm-row--new { animation: khWmRow 13.5s ease-in-out infinite; }
.kh-wm-anim .wm-event {
  transform-box: fill-box;
  transform-origin: left center;
  animation: khWmEvent 13.5s ease-in-out infinite;
  animation-delay: calc(4.6s + var(--i, 0) * 0.35s);
}
.kh-wm-anim .wm-tick {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: khWmTick 13.5s ease-in-out infinite;
  animation-delay: calc(9.2s + var(--i, 0) * 0.4s);
}
@keyframes khWmView {
  0% { opacity: 0; transform: translateY(8px); }
  3%, 29% { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes khWmNav {
  0%, 29% { transform: translateY(0); }
  33%, 62% { transform: translateY(30px); }
  66%, 95% { transform: translateY(60px); }
  100% { transform: translateY(0); }
}
@keyframes khWmRow {
  0%, 4% { transform: translateY(-14px); opacity: 0; }
  9%, 29% { transform: translateY(0); opacity: 1; }
  33%, 100% { transform: translateY(0); opacity: 1; }
}
@keyframes khWmEvent {
  0% { transform: scaleX(0); }
  4%, 30% { transform: scaleX(1); }
  33%, 100% { transform: scaleX(1); }
}
@keyframes khWmTick {
  0% { stroke-dashoffset: 20; }
  5%, 30% { stroke-dashoffset: 0; }
  33%, 100% { stroke-dashoffset: 0; }
}

/* ============ Screenshot showcase ============ */
.mail-media {
  padding: 64px 0;
  background: #fff;
}
.mail-media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  margin-top: 26px;
}
@media (min-width: 992px) {
  .mail-media-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 44px; }
  .mail-media-layout.is-reverse .mail-shot { order: 2; }
}
.mail-shot {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--kh-surface);
  border: 1px solid var(--kh-border);
  box-shadow: var(--kh-shadow);
}
.mail-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.mail-shot.is-plain {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.mail-shot.is-plain img {
  max-width: 480px;
  margin: 0 auto;
}
.mail-shot.is-plain figcaption {
  border: 0;
  background: transparent;
  text-align: center;
}
.mail-shot figcaption {
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--kh-muted);
  border-top: 1px solid var(--kh-border);
  background: #fff;
}
.mail-media-points {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: mediapoint;
}
.mail-media-points li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 24px;
  counter-increment: mediapoint;
}
.mail-media-points li:last-child { margin-bottom: 0; }
.mail-media-points li::before {
  content: counter(mediapoint);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--kh-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mail-media-points h3 {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--kh-ink);
  margin: 4px 0 6px;
}
.mail-media-points p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--kh-muted);
  margin: 0;
}

/* ============ Use cases ============ */
.mail-cases {
  padding: 64px 0;
  background: var(--kh-surface);
}
.mail-case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 26px;
}
@media (min-width: 768px) {
  .mail-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mail-case {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--kh-card);
  border: 1px solid var(--kh-border);
  border-radius: 14px;
  padding: 20px 22px;
  transition: transform 0.25s var(--kh-ease), box-shadow 0.25s var(--kh-ease), border-color 0.25s var(--kh-ease);
}
.mail-case:hover {
  transform: translateY(-4px);
  border-color: rgba(247, 187, 55, 0.5);
  box-shadow: var(--kh-shadow);
}
.mail-case .case-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(15, 27, 70, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mail-case .case-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.mail-case h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--kh-ink);
  margin: 2px 0 6px;
}
.mail-case p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--kh-muted);
  margin: 0;
}

/* ============ Comparison matrix ============ */
.mail-matrix {
  padding: 64px 0;
  background: #fff;
}
.mail-matrix-scroll {
  margin-top: 26px;
  overflow-x: auto;
  border: 1px solid var(--kh-border);
  border-radius: 16px;
  background: var(--kh-card);
  box-shadow: var(--kh-shadow);
}
.mail-matrix-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.mail-matrix-table th,
.mail-matrix-table td {
  padding: 14px 18px;
  text-align: center;
  vertical-align: middle;
}
.mail-matrix-table thead th {
  border-bottom: 1px solid var(--kh-border);
  background: rgba(15, 27, 70, 0.03);
}
.mail-matrix-table thead th:first-child {
  text-align: left;
  color: var(--kh-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mail-matrix-table thead th.is-featured { background: rgba(247, 187, 55, 0.14); }
.mail-matrix-table .mx-name {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--kh-ink);
}
.mail-matrix-table .mx-note {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--kh-muted);
}
.mail-matrix-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--kh-ink);
  white-space: nowrap;
}
.mail-matrix-table tbody tr + tr th,
.mail-matrix-table tbody tr + tr td { border-top: 1px solid var(--kh-border); }
.mail-matrix-table tbody td {
  color: var(--kh-muted);
}
.mail-matrix-table tbody td.is-featured { background: rgba(247, 187, 55, 0.06); }
.mail-matrix-table .mx-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(15, 27, 70, 0.06);
  color: var(--kh-accent);
  font-weight: 700;
}
.mail-matrix-table .mx-no { color: rgba(15, 27, 70, 0.25); font-weight: 700; }
.mail-matrix-note {
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--kh-muted);
}
.mail-matrix-hint {
  display: none;
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--kh-muted);
}
@media (max-width: 991px) {
  .mail-matrix-hint { display: block; }
  .mail-matrix-scroll { margin-top: 10px; }
  .mail-matrix-table thead th:first-child,
  .mail-matrix-table tbody th {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--kh-card);
  }
  .mail-matrix-table thead th:first-child { background: #f8f8f9; }
  .mail-matrix-table th,
  .mail-matrix-table td { padding: 13px 14px; }
}

/* ============ Technology cards ============ */
.mail-tech {
  padding: 64px 0;
  background: var(--kh-surface);
}
.mail-tech-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 26px;
}
@media (min-width: 768px) {
  .mail-tech-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.mail-tech-card {
  background: var(--kh-card);
  border: 1px solid var(--kh-border);
  border-radius: 16px;
  padding: 26px 24px;
  text-align: center;
  transition: transform 0.25s var(--kh-ease), box-shadow 0.25s var(--kh-ease);
}
.mail-tech-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--kh-shadow);
}
.mail-tech-card .tech-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  margin-bottom: 16px;
}
.mail-tech-card .tech-logo img {
  max-height: 40px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.mail-tech-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--kh-ink);
  margin: 0 0 8px;
}
.mail-tech-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--kh-muted);
  margin: 0;
}

/* ============ Mail add-on figures ============ */
.mail-addons .ad-track { fill: rgba(255, 255, 255, 0.12); }
.mail-addons .ad-block {
  fill: rgba(255, 255, 255, 0.12);
}
.mail-addons .ad-block--new {
  fill: var(--kh-yellow);
  animation: khAdBlock 3.6s ease-in-out infinite;
}
.mail-addons .ad-block--new:last-of-type { animation-delay: -1.8s; }
.ad-storage .ad-fill {
  transform-box: fill-box;
  transform-origin: left center;
  animation: khAdGrow 4.6s ease-in-out infinite;
}
@keyframes khAdGrow {
  0%, 100% { transform: scaleX(0.42); }
  50% { transform: scaleX(0.92); }
}
@keyframes khAdBlock {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}
.ad-boxes .ad-box {
  transform-box: fill-box;
  transform-origin: center;
  animation: khAdBox 4.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.28s);
}
@keyframes khAdBox {
  0%, 100% { opacity: 0.3; transform: scale(0.94); }
  45% { opacity: 1; transform: scale(1); }
}
.ad-domain .ad-orbit {
  transform-origin: 120px 46px;
  animation: khAdOrbit 7s linear infinite;
}
@keyframes khAdOrbit {
  to { transform: rotate(360deg); }
}
.ad-queue .ad-pkt {
  transform-box: fill-box;
  animation: khAdPkt 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.7s);
  opacity: 0;
}
@keyframes khAdPkt {
  0% { transform: translateX(0); opacity: 0; }
  12% { opacity: 1; }
  70% { transform: translateX(140px); opacity: 1; }
  85%, 100% { transform: translateX(150px); opacity: 0; }
}

.mail-addons .ad-rec-text {
  fill: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.ad-records .ad-rec-tick {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: khAdRec 4.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.45s);
}
@keyframes khAdRec {
  0%, 6% { stroke-dashoffset: 20; }
  26%, 76% { stroke-dashoffset: 0; }
  92%, 100% { stroke-dashoffset: 20; }
}

@media (prefers-reduced-motion: reduce) {
  .kh-wm-anim *,
  .mail-addons svg * {
    animation: none !important;
  }
  .kh-wm-anim .wm-view { opacity: 1; }
  .kh-wm-anim .wm-view--b,
  .kh-wm-anim .wm-view--c { display: none; }
  .kh-wm-anim .wm-tick { stroke-dashoffset: 0; }
  .ad-records .ad-rec-tick { stroke-dashoffset: 0; }
  .ad-queue .ad-pkt { opacity: 1; }
}

/* ============ Section rhythm on mail product pages ============ */
body[class*="mail-theme-"] .vps-benefits { background: #fff; }
body[class*="mail-theme-"] .vps-faq { background: #fff !important; }
body.mail-theme-business .vps-specs-wrap { background: var(--kh-surface); }
.mail-media { background: var(--kh-surface); }
.mail-shot { background: #fff; }
.mail-matrix { background: var(--kh-surface); }
.mail-matrix-scroll { background: #fff; }
.mail-tech { background: #fff; }
.mail-tech-card { background: var(--kh-surface); }
.mail-migration { background: var(--kh-surface); }
