:root {
  --pearl: #f5f8fc;
  --pearl-deep: #e8eef6;
  --silver: #c5d0de;
  --navy: #152238;
  --navy-soft: #243552;
  --cyan: #7eb8c9;
  --cyan-bright: #a8d7e4;
  --lavender: #c4b8d9;
  --text: #1a2a44;
  --muted: #5a6b82;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.84);
  --line: rgba(197, 208, 222, 0.75);
  --shadow: 0 18px 40px rgba(21, 34, 56, 0.08);
  --radius: 1.25rem;
  --font-display: "Quicksand", sans-serif;
  --font-body: "Nunito", sans-serif;
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(168, 215, 228, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 5%, rgba(196, 184, 217, 0.28), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(126, 184, 201, 0.18), transparent 55%),
    linear-gradient(180deg, var(--pearl) 0%, var(--pearl-deep) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

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

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.shell {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(245, 248, 252, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--navy);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 1.4rem;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 55%, #2f4d6e 100%);
  color: #f7fbff;
  box-shadow: 0 10px 24px rgba(21, 34, 56, 0.18);
}

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

.btn-ghost {
  background: var(--surface);
  border-color: var(--silver);
  color: var(--navy);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--navy);
}

.moon-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(168, 215, 228, 0.55) 0%, rgba(196, 184, 217, 0.2) 40%, transparent 70%);
  animation: moon-ripple 0.7s ease-out forwards;
}

@keyframes moon-ripple {
  from {
    opacity: 0.85;
    transform: scale(0.2);
  }
  to {
    opacity: 0;
    transform: scale(1);
  }
}

.hero-tide {
  position: relative;
  min-height: calc(100vh - 4.25rem);
  display: grid;
  align-items: stretch;
  overflow: hidden;
}

.hero-tide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(245, 248, 252, 0.92) 0%, rgba(245, 248, 252, 0.55) 42%, rgba(21, 34, 56, 0.25) 100%),
    url("https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&w=1800&q=80")
      center/cover no-repeat;
  z-index: 0;
  animation: tide-shift 18s ease-in-out infinite alternate;
}

@keyframes tide-shift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.04);
  }
}

.hero-tide-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 3.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: end;
}

.hero-brand {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  margin: 0 0 0.75rem;
  max-width: 9ch;
  animation: rise-in 0.9s ease both;
}

.hero-line {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--navy-soft);
  max-width: 28ch;
  font-weight: 600;
  margin-bottom: 1rem;
  animation: rise-in 1s ease 0.12s both;
}

.hero-support {
  max-width: 36ch;
  color: var(--muted);
  animation: rise-in 1s ease 0.22s both;
}

.hero-panel {
  justify-self: end;
  width: min(100%, 22rem);
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: rise-in 1s ease 0.3s both;
}

.hero-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.hero-panel p {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-panel .btn {
  margin-top: 0.5rem;
  width: 100%;
}

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

.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

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

.offer-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  overflow: hidden;
}

.offer-feature img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
}

.offer-copy {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.offer-copy h2 {
  margin-top: 0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

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

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

.service-tile,
.post-tile,
.quote-tile,
.cohort-row,
.price-tile {
  padding: 1.35rem;
}

.service-tile img,
.post-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius) - 0.4rem);
  margin-bottom: 1rem;
}

.service-tile h3,
.post-tile h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.service-tile p,
.post-tile p,
.quote-tile p {
  color: var(--muted);
}

.tile-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
}

.quote-tile blockquote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--navy-soft);
}

.quote-tile cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}

.page-hero {
  padding: 3.5rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

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

.prose {
  max-width: 46rem;
}

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

.legal .prose h2 {
  font-size: 1.25rem;
}

.form-panel {
  padding: 1.75rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--silver);
  border-radius: 0.85rem;
  padding: 0.8rem 0.95rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 1px;
}

.form-status,
.inline-error {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
}

.form-status.is-success {
  background: rgba(126, 184, 201, 0.2);
  color: var(--navy);
}

.form-status.is-error,
.inline-error {
  background: rgba(196, 184, 217, 0.35);
  color: var(--navy);
}

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

.cohort-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr 1fr;
  gap: 0.75rem;
  align-items: center;
}

.cohort-row strong {
  color: var(--navy);
}

.price-tile h3 {
  margin: 0 0 0.4rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.8fr;
  gap: 1.5rem;
}

.footer-brand {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.footer-label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.footer-text,
.footer-base {
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 1rem 0;
  background: rgba(245, 248, 252, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  flex: 1 1 18rem;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
}

.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.detail-hero img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero-tide-inner,
  .offer-feature,
  .grid-3,
  .grid-2,
  .footer-grid,
  .detail-hero,
  .cohort-row {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    justify-self: stretch;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(245, 248, 252, 0.96);
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav a {
    padding: 0.7rem 0.4rem;
  }

  .nav-cta {
    margin-top: 0.35rem;
    text-align: center;
  }
}
