/**
 * PayfastLodging™ public marketing — Carbon Bay / Volt
 * Tokens aligned with PayfastPOS Option B.
 */
:root {
  --mk-bg: #12161c;
  --mk-surface: #1c232d;
  --mk-ink: #eef2f6;
  --mk-muted: #9aa7b5;
  --mk-border: #2e3845;
  --mk-volt: #b6ff3b;
  --mk-volt-ink: #0b1220;
  --mk-steel: #3d4f63;
  --mk-gold: #d4a84b;
  --mk-panel: rgba(28, 35, 45, 0.92);
  --mk-font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mk-font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --mk-max: 1120px;
  --mk-touch: 44px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.mk-body {
  margin: 0;
  min-height: 100vh;
  color: var(--mk-ink);
  font-family: var(--mk-font-body);
  line-height: 1.5;
  background: var(--mk-bg);
  overflow-x: hidden;
}

a { color: var(--mk-volt); text-decoration: none; }
a:hover { text-decoration: underline; }

/* —— Top nav over hero —— */
.mk-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  max-width: calc(var(--mk-max) + 6rem);
  margin: 0 auto;
}

.mk-top-brand {
  font-family: var(--mk-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mk-ink);
  text-decoration: none;
}

.mk-top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem 1rem;
}

.mk-top-nav a {
  color: rgba(238, 242, 246, 0.82);
  font-size: 0.95rem;
  text-decoration: none;
  min-height: var(--mk-touch);
  display: inline-flex;
  align-items: center;
}

.mk-top-nav a:hover { color: var(--mk-ink); }

.mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--mk-touch);
  padding: 0 1.2rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--mk-font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.mk-btn-primary {
  background: var(--mk-volt);
  color: var(--mk-volt-ink) !important;
}

.mk-btn-primary:hover { background: #c8ff66; }

.mk-btn-ghost {
  background: rgba(18, 22, 28, 0.35);
  border-color: rgba(182, 255, 59, 0.35);
  color: var(--mk-ink) !important;
  backdrop-filter: blur(6px);
}

.mk-btn-ghost:hover { border-color: var(--mk-volt); }

.mk-btn-block { width: 100%; }

/* —— Full-bleed hero plane —— */
.mk-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 6.5rem 1.35rem 4.5rem;
  overflow: hidden;
}

.mk-hero-plane {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(18, 22, 28, 0.35) 0%, rgba(18, 22, 28, 0.55) 42%, rgba(18, 22, 28, 0.92) 100%),
    radial-gradient(ellipse 90% 70% at 70% 35%, rgba(61, 79, 99, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 18% 70%, rgba(182, 255, 59, 0.12) 0%, transparent 50%),
    linear-gradient(155deg, #0a1218 0%, #15202a 38%, #1a2830 68%, #0e161c 100%);
  animation: mk-sky 18s ease-in-out infinite alternate;
}

@keyframes mk-sky {
  from { filter: saturate(1) brightness(1); }
  to { filter: saturate(1.12) brightness(1.06); }
}

.mk-hero-plane::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(182, 255, 59, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 255, 59, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 75%);
  animation: mk-grid-drift 28s linear infinite;
}

@keyframes mk-grid-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-72px); }
}

.mk-hero-silhouette {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 72% 78%, rgba(212, 168, 75, 0.28), transparent 70%),
    linear-gradient(180deg, transparent 0%, rgba(10, 14, 18, 0.15) 40%, rgba(10, 14, 18, 0.75) 100%);
}

.mk-hero-silhouette::before,
.mk-hero-silhouette::after {
  content: "";
  position: absolute;
  bottom: 0;
  background: #0b1016;
}

/* Ridge / treeline */
.mk-hero-silhouette::before {
  left: -5%;
  right: 35%;
  height: 55%;
  clip-path: polygon(
    0% 100%, 0% 62%, 8% 48%, 14% 58%, 22% 36%, 30% 52%, 38% 28%,
    46% 50%, 54% 34%, 62% 55%, 70% 40%, 78% 58%, 88% 45%, 100% 62%, 100% 100%
  );
  opacity: 0.92;
}

/* Cabin mass */
.mk-hero-silhouette::after {
  left: 58%;
  width: 28%;
  height: 42%;
  clip-path: polygon(6% 100%, 6% 48%, 50% 18%, 94% 48%, 94% 100%);
  background:
    linear-gradient(180deg, #1a2430 0%, #0d1218 100%);
  box-shadow: inset 0 -20px 40px rgba(212, 168, 75, 0.12);
}

.mk-cabin-window {
  position: absolute;
  left: 69.5%;
  bottom: 14%;
  width: 3.2%;
  height: 8%;
  z-index: 2;
  background: rgba(212, 168, 75, 0.75);
  box-shadow: 0 0 28px 6px rgba(212, 168, 75, 0.35);
  animation: mk-window 4.5s ease-in-out infinite alternate;
}

@keyframes mk-window {
  from { opacity: 0.65; }
  to { opacity: 1; }
}

.mk-hero-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--mk-max);
  margin: 0 auto;
}

.mk-hero-copy > * {
  max-width: 40rem;
}

.mk-brand {
  margin: 0 0 0.75rem;
  font-family: var(--mk-font-display);
  font-size: clamp(3rem, 9vw, 5.4rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 0.92;
  color: var(--mk-volt);
}

.mk-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--mk-font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  max-width: 20ch;
  color: var(--mk-ink);
}

.mk-lede {
  margin: 0 0 1.6rem;
  color: var(--mk-muted);
  font-size: 1.1rem;
  max-width: 34rem;
}

.mk-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mk-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: mk-rise 0.85s ease forwards;
}

.mk-reveal-delay-1 { animation-delay: 0.12s; }
.mk-reveal-delay-2 { animation-delay: 0.24s; }
.mk-reveal-delay-3 { animation-delay: 0.36s; }

@keyframes mk-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* —— Sections —— */
.mk-section {
  padding: 4.25rem 1.35rem;
  background: var(--mk-bg);
}

.mk-section-inner {
  max-width: var(--mk-max);
  margin: 0 auto;
}

.mk-section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--mk-font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.7rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mk-section-lede {
  margin: 0 0 1.75rem;
  color: var(--mk-muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

#pricing {
  background:
    linear-gradient(180deg, #12161c 0%, #171d26 50%, #12161c 100%);
  border-top: 1px solid rgba(46, 56, 69, 0.8);
  border-bottom: 1px solid rgba(46, 56, 69, 0.8);
}

.mk-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1.25rem 2rem;
  margin-bottom: 1.35rem;
}

.mk-price-block {
  flex: 1 1 200px;
  max-width: 280px;
}

.mk-price-label {
  margin: 0 0 0.25rem;
  color: var(--mk-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.mk-price-figure {
  margin: 0;
  font-family: var(--mk-font-display);
  font-size: clamp(3.1rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--mk-volt);
}

.mk-price-note {
  margin: 0.35rem 0 0;
  color: var(--mk-muted);
}

.mk-price-or {
  align-self: center;
  margin: 0;
  color: var(--mk-gold);
  font-family: var(--mk-font-display);
  font-size: 1.4rem;
  text-transform: uppercase;
}

.mk-american {
  margin: 0;
  font-weight: 600;
  color: var(--mk-ink);
}

.mk-feature-stack {
  display: grid;
  gap: 2rem 2.5rem;
}

@media (min-width: 800px) {
  .mk-feature-stack {
    grid-template-columns: 1fr 1fr;
  }
}

.mk-feature {
  padding-top: 0.25rem;
  border-top: 1px solid var(--mk-border);
  animation: mk-feature-in 0.7s ease both;
  animation-delay: calc(0.05s * var(--i, 0));
}

@keyframes mk-feature-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.mk-feature h3 {
  margin: 0.85rem 0 0.35rem;
  font-family: var(--mk-font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mk-feature-lede {
  margin: 0 0 0.75rem;
  color: var(--mk-muted);
  font-size: 0.98rem;
}

.mk-feature ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--mk-ink);
}

.mk-feature li { margin: 0.3rem 0; }
.mk-feature li::marker { color: var(--mk-volt); }

/* —— Signup —— */
.mk-section-signup {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(182, 255, 59, 0.07), transparent 45%),
    #10141a;
}

.mk-signup-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .mk-signup-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.mk-already { color: var(--mk-muted); }

.mk-signup-form {
  background: var(--mk-panel);
  border: 1px solid var(--mk-border);
  border-radius: 12px;
  padding: 1.25rem 1.35rem 1.5rem;
  display: grid;
  gap: 0.85rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.mk-signup-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--mk-muted);
}

.mk-optional { opacity: 0.75; font-weight: 400; }

.mk-signup-form input,
.mk-signup-form select {
  width: 100%;
  min-height: var(--mk-touch);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c1016;
  color: var(--mk-ink);
  font: inherit;
}

.mk-signup-form input:focus,
.mk-signup-form select:focus {
  outline: 2px solid rgba(182, 255, 59, 0.45);
  outline-offset: 1px;
  border-color: var(--mk-volt);
}

.mk-plan-fieldset {
  margin: 0.25rem 0 0;
  padding: 0.75rem 0 0;
  border: none;
  border-top: 1px solid var(--mk-border);
  display: grid;
  gap: 0.65rem;
}

.mk-plan-fieldset legend {
  padding: 0;
  margin-bottom: 0.35rem;
  color: var(--mk-ink);
  font-weight: 600;
}

.mk-plan-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  color: var(--mk-ink) !important;
}

.mk-plan-option:has(input:checked) {
  border-color: var(--mk-volt);
  background: rgba(182, 255, 59, 0.06);
}

.mk-plan-option input { width: auto; min-height: auto; margin-top: 0.25rem; }
.mk-plan-option strong { display: block; }
.mk-plan-option em {
  display: block;
  font-style: normal;
  color: var(--mk-muted);
  font-size: 0.9rem;
}

.mk-form-errors {
  background: rgba(255, 92, 92, 0.12);
  border: 1px solid rgba(255, 92, 92, 0.45);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #ffc9c0;
}

.mk-form-errors ul { margin: 0; padding-left: 1.1rem; }

.mk-fine {
  margin: 0;
  text-align: center;
  color: var(--mk-muted);
  font-size: 0.88rem;
}

.mk-footer {
  padding: 2rem 1.35rem 3rem;
  text-align: center;
  color: var(--mk-muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--mk-border);
  background: #0e1218;
}

.mk-footer p { margin: 0.35rem 0; }
.mk-footer strong { color: var(--mk-ink); }

@media (max-width: 640px) {
  .mk-top-nav a:not(.mk-btn) { display: none; }
  .mk-hero { padding-bottom: 3.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mk-hero-plane,
  .mk-hero-plane::before,
  .mk-cabin-window,
  .mk-reveal,
  .mk-feature {
    animation: none !important;
  }
  .mk-reveal { opacity: 1; transform: none; }
}
