:root {
  --ink: #0b1c24;
  --ink-soft: #1a3340;
  --paper: #f3f7f8;
  --paper-2: #e5eef1;
  --foam: #f8fcfd;
  --lake: #0e7c86;
  --lake-bright: #12a3b0;
  --signal: #d6ff4b;
  --signal-ink: #1a2a00;
  --mist: rgba(243, 247, 248, 0.72);
  --line: rgba(11, 28, 36, 0.12);
  --shadow: 0 24px 60px rgba(8, 24, 32, 0.28);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --wrap: 1120px;
  --narrow: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(18, 163, 176, 0.12), transparent 60%),
    linear-gradient(180deg, var(--foam), var(--paper));
  line-height: 1.55;
  min-height: 100vh;
}

img {
  max-width: 100%;
}

a {
  color: var(--lake);
  text-underline-offset: 0.18em;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--signal);
  color: var(--signal-ink);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

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

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

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

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark::before {
  content: "";
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
  border-radius: 0.4rem;
  background: url("/youthcocoon-icon.png") center / contain no-repeat;
  box-shadow: inset 0 0 0 1px var(--line);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  justify-content: flex-end;
}

.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--lake);
}

.auth-slot {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.nav-app {
  display: contents;
}

.nav-app[hidden],
body.is-guest .nav-app {
  display: none !important;
}

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--foam);
  isolation: isolate;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 24, 32, 0.15) 0%, rgba(8, 24, 32, 0.72) 55%, rgba(8, 24, 32, 0.92) 100%),
    radial-gradient(800px 500px at 20% 20%, rgba(18, 163, 176, 0.45), transparent 55%),
    radial-gradient(700px 480px at 85% 30%, rgba(214, 255, 75, 0.18), transparent 50%),
    linear-gradient(135deg, #062029 0%, #0b3d47 42%, #0f1f2a 100%);
  transform: scale(1.02);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(248, 252, 253, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 252, 253, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 75%);
  animation: grid-shift 22s linear infinite;
}

.hero-copy {
  padding: 7rem 0 4.5rem;
  max-width: 820px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 1.4rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards 0.15s;
}

.brand::before {
  content: "";
  width: clamp(2.6rem, 6vw, 3.6rem);
  height: clamp(2.6rem, 6vw, 3.6rem);
  flex-shrink: 0;
  border-radius: 0.65rem;
  background: url("/youthcocoon-icon.png") center / contain no-repeat;
  box-shadow: 0 8px 24px rgba(8, 24, 32, 0.25);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 18ch;
  margin: 0 0 1rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards 0.35s;
}

.lede {
  font-size: 1.05rem;
  max-width: 42ch;
  margin: 0 0 1.6rem;
  color: inherit;
  opacity: 0.92;
}

.hero .lede {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards 0.5s;
  color: rgba(243, 247, 248, 0.88);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards 0.65s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 0.35rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
  cursor: pointer;
  font: inherit;
}

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

.btn.primary {
  background: var(--signal);
  color: var(--signal-ink);
}

.btn.primary:hover {
  background: #e7ff7a;
  color: var(--signal-ink);
}

.btn.ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.hero .btn.ghost {
  color: var(--foam);
  border-color: rgba(248, 252, 253, 0.45);
}

.section {
  padding: 4.5rem 0;
}

.section.tint {
  background: rgba(229, 238, 241, 0.55);
}

.section h2,
.page h1,
.page h2 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.section h2,
.page h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.page h2 {
  font-size: 1.35rem;
  margin-top: 2.2rem;
}

.section-lede {
  max-width: 48ch;
  margin: 0 0 2rem;
  color: var(--ink-soft);
}

.stack-list,
.week-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.stack-list li,
.week-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.stack-list li:last-child,
.week-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.stack-list strong,
.week-list strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.stack-list span {
  color: var(--ink-soft);
}

.plain-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.65rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.step:last-of-type {
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--lake);
  margin: 0;
  line-height: 1;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.step ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.35rem;
}

.tip {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.9rem;
  background: rgba(18, 163, 176, 0.1);
  border-left: 3px solid var(--lake-bright);
  color: var(--ink-soft);
}

.after {
  margin-top: 1.5rem;
  color: var(--ink-soft);
}

.cta-band {
  background: var(--ink);
  color: var(--foam);
}

.cta-band a.btn.ghost {
  color: var(--foam);
  border-color: rgba(248, 252, 253, 0.4);
}

.cta-band a:not(.btn) {
  color: var(--signal);
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-inner {
  display: grid;
  gap: 0.35rem;
}

.fine {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.85;
}

.page {
  padding: 3.5rem 0 4rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lake);
  margin: 0 0 0.75rem;
}

.checklist {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.checklist fieldset {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  background: rgba(248, 252, 253, 0.7);
}

.checklist legend {
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0 0.35rem;
}

.checklist label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.45rem 0;
  cursor: pointer;
}

.checklist input {
  margin-top: 0.25rem;
  accent-color: var(--lake);
  width: 1.05rem;
  height: 1.05rem;
}

.progress {
  font-weight: 600;
  color: var(--ink-soft);
}

.back {
  margin-top: 2.5rem;
}

code {
  font-size: 0.92em;
  background: rgba(14, 124, 134, 0.1);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(-1.5%, 1%, 0);
  }
}

@keyframes grid-shift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 48px 48px, 48px 48px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 0;
  }

  .hero-copy {
    padding-top: 5.5rem;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

.lang-switch {
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
}

.auth-slot {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.checklist input[type="text"],
.checklist input[type="email"],
.checklist input[type="url"],
.checklist input:not([type]),
.checklist select,
.checklist textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  font: inherit;
}

.checklist label {
  display: block;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.cost-table th,
.cost-table td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cost-table th {
  font-family: var(--font-display);
  font-weight: 700;
  background: rgba(229, 238, 241, 0.7);
}

.print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}

.print-checkbox {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid var(--ink);
  margin-right: 0.55rem;
  vertical-align: -0.1rem;
  flex-shrink: 0;
}

.print-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.print-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.15rem;
}

.print-section {
  margin: 1.5rem 0;
  break-inside: avoid;
}

.print-section h2 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .site-footer,
  .print-actions,
  .skip,
  .lang-switch,
  .back,
  .btn {
    display: none !important;
  }

  .page {
    padding: 0;
  }

  .wrap,
  .narrow {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .print-checkbox {
    border-color: #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-atmosphere,
  .hero-atmosphere::after,
  .brand,
  .hero h1,
  .hero .lede,
  .cta-row {
    animation: none;
  }

  .brand,
  .hero h1,
  .hero .lede,
  .cta-row {
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
