:root {
  --navy: #0b4770;
  --navy-deep: #123c63;
  --blue: #0071bc;
  --sky: #52aff7;
  --sky-50: #eef6fd;
  --sky-100: #dcedfb;
  --red: #d2212e;
  --red-dark: #b01b26;
  --ink: #1a1a1a;
  --muted: #555e68;
  --line: #e6ebf0;
  --white: #ffffff;
  --head: "Teko", "Arial Narrow", sans-serif;
  --body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font: 400 16px/1.7 var(--body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); font-weight: 500; line-height: 1.05; color: var(--navy); margin: 0 0 .35em; }
h1 { font-size: clamp(2.9rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2.4rem, 4vw, 3.4rem); }
h3 { font-size: 1.9rem; line-height: 1.05; }
p { margin: 0 0 1em; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); width: 100%; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-tight { padding-top: 0; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p, .lede { color: var(--muted); font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.7em; border-radius: 999px; border: 2px solid transparent;
  font: 700 .92rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { color: var(--navy); border-color: var(--sky-100); background: var(--white); }
.btn-outline:hover { border-color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--sky-50); }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Notice + header */
.notice { background: var(--sky-50); color: var(--ink); text-align: center; font-size: .82rem; padding: .55rem var(--gutter); }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { width: 170px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .92rem; }
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { color: var(--navy); }
.nav .btn { padding: .75em 1.4em; }

/* Two-column layout with a blob image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.reverse .blob-figure { order: -1; }
.hero { padding-block: clamp(48px, 8vw, 110px) clamp(72px, 10vw, 128px); }
.hero h1 { margin-bottom: .3em; }
.hero .lede { max-width: 31rem; margin-bottom: 2rem; }
.hero .lede strong { color: var(--navy); font-weight: 600; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 1.8rem 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: .45em; }
.hero-points svg { width: 16px; height: 16px; color: var(--sky); flex: none; }

/* Animated blobs */
.blob-figure { position: relative; margin: 0; width: min(100%, 520px); justify-self: center; aspect-ratio: 1; isolation: isolate; }
.blob-figure::before {
  /* light-blue blob peeking out behind the photo */
  content: ""; position: absolute; inset: 4% 10% -2% -7%; z-index: -2;
  background: #e4f1fc;
  border-radius: 58% 42% 38% 62% / 45% 55% 45% 55%;
  animation: blob-b 16s ease-in-out infinite alternate;
}
.blob-figure::after {
  /* dot grid */
  content: ""; position: absolute; right: -4%; bottom: -2%; width: 34%; height: 34%; z-index: -1;
  background: radial-gradient(circle, #c9d6e2 1.6px, transparent 1.8px) 0 0 / 16px 16px;
}
.blob-figure img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 42% 58% 62% 38% / 46% 38% 62% 54%;
  animation: blob-a 12s ease-in-out infinite alternate;
}
.blob-figure.alt img { animation-duration: 14s; animation-direction: alternate-reverse; }
.blob-figure.alt::before { inset: -2% -7% 4% 10%; }
.blob-figure.alt::after { left: -4%; right: auto; top: -2%; bottom: auto; }
@keyframes blob-a {
  0%   { border-radius: 42% 58% 62% 38% / 46% 38% 62% 54%; }
  33%  { border-radius: 58% 42% 45% 55% / 55% 52% 48% 45%; }
  66%  { border-radius: 38% 62% 55% 45% / 40% 58% 42% 60%; }
  100% { border-radius: 55% 45% 38% 62% / 60% 42% 58% 40%; }
}
@keyframes blob-b {
  0%   { border-radius: 58% 42% 38% 62% / 45% 55% 45% 55%; transform: rotate(0deg); }
  50%  { border-radius: 40% 60% 60% 40% / 58% 40% 60% 42%; transform: rotate(6deg); }
  100% { border-radius: 52% 48% 45% 55% / 40% 60% 40% 60%; transform: rotate(-4deg); }
}

/* Hosting stack diagram (sits on a light-blue blob like the photos) */
.stack-figure {
  position: relative; isolation: isolate; margin: 0; width: min(100%, 500px); justify-self: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 64px 24px;
}
.stack-figure::before {
  content: ""; position: absolute; inset: 0; z-index: -2; background: #e4f1fc;
  border-radius: 58% 42% 38% 62% / 45% 55% 45% 55%;
  animation: blob-b 16s ease-in-out infinite alternate;
}
.stack-figure::after {
  content: ""; position: absolute; left: -4%; top: -2%; width: 34%; height: 34%; z-index: -1;
  background: radial-gradient(circle, #c9d6e2 1.6px, transparent 1.8px) 0 0 / 16px 16px;
}
.stack-layer {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  width: 100%; padding: 14px 20px; border-radius: 10px;
  background: var(--white); border-left: 4px solid var(--sky);
  box-shadow: 0 8px 22px rgba(11,71,112,.08);
}
.stack-layer:nth-child(1) { width: 80%; }
.stack-layer:nth-child(2) { width: 84%; }
.stack-layer:nth-child(3) { width: 88%; }
.stack-layer:nth-child(4) { width: 92%; }
.stack-layer:nth-child(5) { width: 96%; }
.stack-layer strong { font: 500 1.6rem/1 var(--head); color: var(--navy); padding-top: 3px; }
.stack-layer span { font-size: .82rem; color: var(--muted); text-align: right; }
.stack-layer.is-wp { background: var(--navy); border-left-color: var(--red); }
.stack-layer.is-wp strong { color: var(--white); }
.stack-layer.is-wp span { color: rgba(255,255,255,.8); }
.stack-layer.is-vm { background: var(--navy-deep); border-left-color: var(--sky); }
.stack-layer.is-vm strong { color: var(--white); }
.stack-layer.is-vm span { color: rgba(255,255,255,.75); }
/* Layers build up from the bottom as the section scrolls into view */
.js .stack-layer { opacity: 0; transform: translateY(-18px); transition: opacity .6s ease, transform .7s cubic-bezier(.16, .8, .24, 1); }
.js .stack-layer.in { opacity: 1; transform: none; }
.js .stack-layer:nth-child(5) { transition-delay: .1s; }
.js .stack-layer:nth-child(4) { transition-delay: .2s; }
.js .stack-layer:nth-child(3) { transition-delay: .3s; }
.js .stack-layer:nth-child(2) { transition-delay: .4s; }
.js .stack-layer:nth-child(1) { transition-delay: .5s; }

/* Feature cards: two staggered columns beside a sticky intro */
.features-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.features-intro { order: 2; position: sticky; top: 150px; padding-top: 24px; }
.features-intro .lede + .btn { margin-top: .6rem; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; padding-bottom: 48px; }
.feature {
  --shift: 0px;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 28px 26px;
  transform: translateY(var(--shift));
}
.feature:nth-child(odd) { --shift: 48px; }
/* Scroll reveal (only when JS is running; see index.html) */
.js .feature {
  opacity: 0; transform: translateY(calc(var(--shift) + 80px)) scale(.96);
  transition: opacity .8s ease, transform .9s cubic-bezier(.16, .8, .24, 1), box-shadow .3s ease;
}
.js .feature:nth-child(even) { transition-delay: .15s; }
.js .feature.in { opacity: 1; transform: translateY(var(--shift)) scale(1); }
.js .features-intro > * { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .8s cubic-bezier(.16, .8, .24, 1); }
.js .features-intro > :nth-child(2) { transition-delay: .1s; }
.js .features-intro > :nth-child(3) { transition-delay: .2s; }
.js .features-intro > :nth-child(4) { transition-delay: .3s; }
.js .features-intro.in > * { opacity: 1; transform: none; }
/* Pause the blob morph while scrolling or off-screen to keep scrolling smooth */
.is-scrolling .blob-figure img, .is-scrolling .blob-figure::before,
.blob-figure.offscreen img, .blob-figure.offscreen::before { animation-play-state: paused; }
.feature:hover { box-shadow: 0 18px 40px rgba(11,71,112,.08); }
.feature .icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-50); color: var(--sky); margin-bottom: 18px; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.75rem; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

.checks { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .65em; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; flex: none; color: var(--sky); margin-top: 3px; }
.checks strong { color: var(--navy); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; }
.plan.featured { border: 2px solid var(--sky); box-shadow: 0 24px 50px rgba(82,175,247,.18); }
.plan .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--sky); color: var(--white); border-radius: 999px; padding: .35em 1em;
  font: 700 .72rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.plan h3 { font-size: 2.2rem; margin-bottom: .1em; }
.plan .for { color: var(--muted); font-size: .93rem; min-height: 3.2em; }
.price { display: flex; align-items: baseline; gap: 6px; margin: .4rem 0 0; color: var(--navy); }
.price .amount { font: 500 4.2rem/1 var(--head); }
.price .per { color: var(--muted); font-size: .95rem; }
.billed { font-size: .88rem; color: var(--muted); margin-bottom: 1.6rem; }
.plan .btn { margin-top: auto; }
.included { margin-top: 56px; display: grid; grid-template-columns: 1fr 2fr; gap: 32px 56px; align-items: start; }
.included h3 { font-size: 2.4rem; margin: 0; }
.included ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 2rem; }
.included li { display: flex; gap: .6em; align-items: flex-start; font-size: .95rem; }
.included svg { width: 18px; height: 18px; color: var(--sky); flex: none; margin-top: 4px; }
.plan-dots { display: none; }
.pricing-note { text-align: center; color: var(--muted); font-size: .92rem; margin: 48px 0 0; }

/* Rounded dark photo band */
.band {
  position: relative; isolation: isolate; overflow: hidden; color: var(--white); text-align: center;
  border-radius: 24px; padding: clamp(64px, 9vw, 110px) var(--gutter);
  background: #071a2b url("migrations-network.webp") center / cover no-repeat;
  box-shadow: 0 30px 60px rgba(11,71,112,.18);
}
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,26,43,.55), rgba(7,26,43,.85)); }
.band h2 { color: var(--white); }
.band p { color: rgba(255,255,255,.88); max-width: 41rem; margin-inline: auto; }
.band .actions { justify-content: center; margin-top: 1.8rem; }

/* Offer strip */
.offer { background: var(--sky-50); border-radius: 24px; padding: clamp(32px, 5vw, 48px) clamp(24px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.offer h2 { font-size: clamp(2rem, 3.2vw, 2.6rem); margin: 0; }
.offer p { margin: .2rem 0 0; color: var(--muted); }

/* Inner page header */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 48px); }
.page-head .lede { max-width: 38rem; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field legend { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .4rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid #cfd9e3; border-radius: 10px; padding: .75em .9em; background: var(--white);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(82,175,247,.35); border-color: var(--sky); }
.field .hint { font-size: .82rem; color: var(--muted); margin: .35rem 0 0; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-block; border: 1px solid #cfd9e3; border-radius: 999px; padding: .5em 1.1em; font-size: .92rem; background: var(--white); transition: background-color .15s, border-color .15s, color .15s; }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid rgba(82,175,247,.5); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 26px; display: grid; gap: 16px; justify-items: start; }
.form-status { border-radius: 10px; padding: 1em 1.2em; margin: 0; width: 100%; }
.form-status[hidden] { display: none; }
.form-status.error { background: #fdecee; color: #8f1520; border: 1px solid #f5c2c7; }
.aside .card { background: var(--sky-50); border-radius: var(--radius); padding: 30px 28px; margin-bottom: 20px; }
.aside h3 { font-size: 2rem; }
.aside .card p { color: var(--muted); font-size: .93rem; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; font-size: .93rem; color: var(--muted); }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--navy); font: 500 1.3rem/1 var(--head); padding-top: 3px; }
.steps strong { display: block; color: var(--navy); }

/* Prose (legal pages) */
.prose { max-width: 760px; }
.prose h2 { font-size: 2.1rem; margin-top: 1.6em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0 1.5em; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; vertical-align: top; }
.prose th { background: var(--sky-50); }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.8); font-size: .85rem; margin-top: clamp(72px, 10vw, 128px); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; padding-block: 44px; text-align: center; }
.site-footer a { color: var(--white); }
.site-footer p { margin: 0; }
.flag { display: inline-block; width: 18px; height: 9px; vertical-align: -1px; margin-left: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1080px) {
  /* Narrower screens: one column of cards beside the pinned text */
  .features { grid-template-columns: 1fr; gap: 20px; padding-bottom: 0; }
  .feature:nth-child(odd) { --shift: 0px; }
  .js .feature:nth-child(even) { transition-delay: 0s; }
}
@media (max-width: 760px) {
  .features-split { grid-template-columns: 1fr; }
  .features-intro { order: 0; position: static; padding-top: 0; }
}
@media (max-width: 900px) {
  .split, .contact-grid, .included { grid-template-columns: 1fr; }
  .split .blob-figure, .split.reverse .blob-figure { order: -1; width: min(86%, 440px); }
  .split .stack-figure { order: -1; }
  /* Pricing becomes a swipe carousel, centred on Growth */
  .plans {
    display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 22px max(var(--gutter), calc((100% - 340px) / 2)) 36px;
  }
  .plans::-webkit-scrollbar { display: none; }
  .plan { flex: 0 0 min(80vw, 340px); scroll-snap-align: center; transition: transform .3s ease, opacity .3s ease; }
  .plan .for { min-height: 0; }
  .plan-dots { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
  .plan-dots button {
    width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--sky-100); transition: background-color .2s, width .2s;
  }
  .plan-dots button[aria-current="true"] { background: var(--sky); width: 26px; border-radius: 999px; }
}
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .brand img { width: 136px; }
  .site-header .wrap { min-height: 68px; }
  .features, .included ul, .form-grid { grid-template-columns: 1fr; }
  .features { padding-bottom: 0; }
  .feature:nth-child(odd) { --shift: 0px; }
  .js .feature:nth-child(even) { transition-delay: 0s; }
  .hero .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
  .blob-figure img, .blob-figure::before { animation: none; }
  .js .feature { opacity: 1; transform: translateY(var(--shift)); transition: none; }
  .js .features-intro > * { opacity: 1; transform: none; transition: none; }
  .js .stack-layer { opacity: 1; transform: none; transition: none; }
  .stack-figure::before { animation: none; }
}
