:root {
  --bg: #eef3f9;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --ink: #102033;
  --muted: #5b6b80;
  --border: rgba(16, 32, 51, 0.08);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.06);
  --hero-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
  --radius-xl: 16px;
  --radius-lg: 14px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 400;
  background:
    radial-gradient(circle at top left, rgba(21, 101, 192, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)),
    var(--bg);
  color: var(--ink);
  line-height: 1.7;
}

body.easyplace {
  --accent: #1565c0;
  --accent-strong: #0d47a1;
  --accent-soft: #e7f0ff;
  --hero-start: #0d47a1;
  --hero-end: #26a69a;
}

body.montego {
  --accent: #f97316;
  --accent-strong: #c2410c;
  --accent-soft: #fff0e6;
  --hero-start: #0f172a;
  --hero-end: #0f8f8c;
}

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

a:hover {
  color: var(--accent-strong);
}

.shell {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 0 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-lockup img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: block;
  flex: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.brand-text {
  min-width: 0;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-domain {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.nav-links a:hover {
  transform: translateY(-1px);
}

.page {
  padding: 24px 0 64px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 40px;
  border-radius: var(--radius-xl);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(6, 23, 43, 0.82), rgba(6, 23, 43, 0.18)),
    linear-gradient(135deg, var(--hero-start), var(--hero-end));
  box-shadow: var(--hero-shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.14), transparent 22%),
    radial-gradient(circle at 82% 0%, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  opacity: 0.9;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 9ch;
  font-weight: 800;
}

.hero p {
  margin: 0;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  font-weight: 400;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.card-inner {
  padding: 28px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  line-height: 1.1;
  font-weight: 700;
}

.card p,
.card li {
  color: var(--muted);
  font-weight: 400;
}

.card a,
.meta-card a {
  color: var(--accent-strong);
  font-weight: 600;
}

.card a:hover,
.meta-card a:hover {
  color: var(--accent);
}

.section + .section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.section h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  line-height: 1.2;
  font-weight: 700;
}

.section h4 {
  margin: 18px 0 8px;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 600;
}

.section p {
  margin: 0 0 10px;
}

.section p:last-child,
.section ul:last-child,
.section ol:last-child {
  margin-bottom: 0;
}

.section ul,
.section ol {
  margin: 0;
  padding-left: 22px;
}

.section li + li {
  margin-top: 6px;
}

.meta-card {
  position: sticky;
  top: 104px;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.52)),
    var(--accent-soft);
  box-shadow: var(--shadow-soft);
}

.meta-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 700;
}

.meta-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.step-shot {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.step-shot:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.step-shot img {
  width: 100%;
  display: block;
}

.step-caption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 400;
}

.footer {
  padding: 4px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  font-weight: 500;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(15, 23, 42, 0.68);
  font-size: 1rem;
  line-height: 1.35;
}

.footer-copy a {
  width: fit-content;
  transition: color 160ms ease;
}

.footer-copy a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
}

.footer-nav a:hover,
.footer-nav a.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

@media (max-width: 1040px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .meta-card {
    position: static;
  }
}

@media (max-width: 900px) {
  .topbar-inner,
  .footer-inner {
    border-radius: 14px;
  }

  .hero,
  .card,
  .meta-card {
    border-radius: 16px;
  }

  .hero {
    padding: 34px 28px;
  }

  .hero h1 {
    max-width: 11ch;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 20px, 1200px);
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding: 26px 22px;
  }

  .hero h1 {
    max-width: none;
  }

  .card-inner {
    padding: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
