:root {
  --pearl: #f5f7fb;
  --pearl-2: #e8edf5;
  --moon-silver: #c5ccd8;
  --navy: #1a2744;
  --navy-soft: #2a3b5c;
  --cyan: #8ecdd4;
  --cyan-soft: #b7e0e5;
  --lavender: #d5cce6;
  --ink: #1a2744;
  --muted: #5a667a;
  --line: rgba(26, 39, 68, 0.14);
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.82);
  --shadow: 0 20px 48px rgba(26, 39, 68, 0.1);
  --display: "Outfit", "Segoe UI", sans-serif;
  --text: "Nunito", "Segoe UI", sans-serif;
  --radius: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(183, 224, 229, 0.55), transparent 55%),
    radial-gradient(700px 420px at 92% 8%, rgba(213, 204, 230, 0.45), transparent 50%),
    radial-gradient(600px 380px at 50% 100%, rgba(197, 204, 216, 0.35), transparent 55%),
    linear-gradient(165deg, var(--pearl) 0%, var(--pearl-2) 48%, #d9e2ef 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.5) 0, transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(142, 205, 212, 0.18) 0, transparent 32%),
    repeating-linear-gradient(
      125deg,
      transparent 0,
      transparent 11px,
      rgba(197, 204, 216, 0.05) 11px,
      rgba(197, 204, 216, 0.05) 12px
    );
}

main,
.site-header,
.site-footer,
.cookie-banner {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--navy);
}

h1,
h2,
h3,
.brand strong,
.footer-brand,
.brand-hero {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 400;
  margin: 0.2em 0 0.5em;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  margin: 0 0 0.55em;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.4em;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: 3.5rem 0;
}

.section-intro {
  max-width: 42rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.kicker,
.meta,
.footer-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 0.6em;
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 36rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.site-header {
  padding: 1rem 0;
}

.header-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff 0, var(--cyan-soft) 28%, transparent 30%),
    linear-gradient(145deg, var(--navy), var(--navy-soft));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.05rem;
}

.brand-text em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-family: var(--text);
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--navy-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--navy);
}

.hero-tide {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  margin-bottom: 1rem;
}

.hero-tide__media {
  position: absolute;
  inset: 0;
}

.hero-tide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-tide__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 39, 68, 0.15) 0%, rgba(26, 39, 68, 0.55) 55%, rgba(26, 39, 68, 0.78) 100%),
    radial-gradient(600px 280px at 70% 20%, rgba(142, 205, 212, 0.35), transparent 60%);
}

.hero-tide__content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto 3.5rem;
  color: #f5f7fb;
  animation: rise-in 0.9s ease both;
}

.hero-tide .brand-hero {
  color: var(--cyan-soft);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300;
  margin: 0 0 0.35em;
  letter-spacing: 0.04em;
}

.hero-tide h1 {
  color: #f7f9fc;
  max-width: 16ch;
}

.hero-tide .lede {
  color: rgba(245, 247, 251, 0.84);
}

.hero-tide .btn-primary {
  margin-top: 0.5rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-soft) 55%, var(--lavender) 130%);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(142, 205, 212, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #f5f7fb;
}

.hero-tide .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.moon-ring {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(183, 224, 229, 0.4) 40%, transparent 70%);
  animation: moon-expand 0.7s ease-out forwards;
}

@keyframes moon-expand {
  from {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.4);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(14);
  }
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.offer-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  animation: rise-in 0.8s ease both;
}

.offer-card:nth-child(2) { animation-delay: 0.08s; }
.offer-card:nth-child(3) { animation-delay: 0.16s; }
.offer-card:nth-child(4) { animation-delay: 0.24s; }

.offer-card img {
  width: 140px;
  height: 120px;
  object-fit: cover;
  border-radius: 0.9rem;
}

.offer-card h3 a {
  text-decoration: none;
  color: var(--navy);
}

.price {
  font-weight: 700;
  color: var(--navy-soft);
  margin: 0.4em 0 0;
}

.primary-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(145deg, var(--surface-strong), rgba(183, 224, 229, 0.25));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.35rem);
  box-shadow: var(--shadow);
}

.primary-feature img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.voices blockquote {
  margin: 0 0 0.35em;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--navy);
}

.voices > div + div {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero p:last-child {
  max-width: 40rem;
  color: var(--muted);
}

.prose {
  max-width: 42rem;
}

.prose p {
  color: var(--navy-soft);
}

.include-list {
  padding-left: 1.1rem;
  color: var(--navy-soft);
}

.include-list li + li {
  margin-top: 0.4rem;
}

.service-list {
  display: grid;
  gap: 1.25rem;
}

.service-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-row img {
  width: 220px;
  height: 150px;
  object-fit: cover;
  border-radius: 0.9rem;
}

.blog-list {
  display: grid;
  gap: 1.5rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.blog-item img {
  width: 240px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
}

.cohort-table {
  display: grid;
  gap: 1rem;
}

.cohort-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 0.7fr;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: start;
}

.cohort-row h3 {
  margin-bottom: 0.25rem;
}

.form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--navy);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy);
  font: inherit;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error,
.form-error {
  color: #8a2f45;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

.form-success {
  color: #1f6b5c;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

address {
  font-style: normal;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(26, 39, 68, 0.04));
}

.footer-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr;
  gap: 1.75rem;
}

.footer-brand {
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}

.footer-tag {
  color: var(--muted);
  max-width: 22rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-copy {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 2rem auto 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
}

.cookie-banner__inner {
  max-width: 720px;
  margin-inline: auto;
  padding: 1.15rem 1.25rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.cookie-banner .btn-ghost {
  border-color: var(--line);
  color: var(--navy);
}

.error-page {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

.cover-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0.5rem 0 1.5rem;
}

.legal h2 {
  margin-top: 2rem;
}

.legal p,
.legal li {
  color: var(--navy-soft);
}

@media (max-width: 900px) {
  .offer-grid,
  .split,
  .primary-feature,
  .footer-inner,
  .service-row,
  .blog-item,
  .cohort-row {
    grid-template-columns: 1fr;
  }

  .offer-card {
    grid-template-columns: 1fr;
  }

  .offer-card img,
  .service-row img,
  .blog-item img {
    width: 100%;
    height: 180px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-strong);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-header {
    position: relative;
  }

  .primary-feature img {
    height: 240px;
  }
}
