/* Network Yardcore — vibrant creative theme */
:root {
  --ink: #1a1a2e;
  --ink-soft: #3d3d55;
  --paper: #fff8f0;
  --paper-2: #ffe8d6;
  --white: #ffffff;
  --coral: #ff5a36;
  --coral-deep: #e04322;
  --teal: #00bfa6;
  --teal-deep: #009e8a;
  --sun: #ffe566;
  --violet-pop: #7b5cff;
  --line: rgba(26, 26, 46, 0.12);
  --shadow: 0 18px 40px rgba(26, 26, 46, 0.12);
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 229, 102, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 5%, rgba(0, 191, 166, 0.28), transparent 50%),
    radial-gradient(ellipse 50% 35% at 70% 100%, rgba(255, 90, 54, 0.18), transparent 55%),
    var(--paper);
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--coral-deep);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-deep);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 248, 240, 0.88);
  border-bottom: 2px solid var(--ink);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background:
    radial-gradient(circle at 30% 35%, var(--sun) 0 28%, transparent 29%),
    radial-gradient(circle at 72% 28%, var(--teal) 0 18%, transparent 19%),
    radial-gradient(circle at 65% 72%, var(--white) 0 22%, transparent 23%),
    var(--coral);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--ink);
  border-radius: 0.75rem;
  background: var(--sun);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

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

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

.site-nav .nav-cta {
  background: var(--ink);
  color: var(--sun);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--coral);
}

.site-nav .nav-cta:hover {
  color: var(--white);
  background: var(--coral);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(var(--header-h) + 0.35rem);
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
  }

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

  .site-nav .nav-cta {
    text-align: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-primary:hover {
  color: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-secondary {
  background: var(--sun);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--teal);
}

.btn-secondary:hover {
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Shapes / atmosphere */
.blob {
  position: absolute;
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  border: 2px solid var(--ink);
  pointer-events: none;
  z-index: 0;
}

.section {
  position: relative;
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

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

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--teal);
  color: var(--ink);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  margin-bottom: 0.85rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* Home hero — asymmetric brand-first */
.hero-home {
  position: relative;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}

.hero-home .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 12ch;
}

.hero-brand span {
  display: inline-block;
  background: linear-gradient(120deg, var(--coral), #ff8a5c 40%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-line {
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 700;
  max-width: 28rem;
  margin: 0.75rem 0 0;
}

.hero-support {
  max-width: 32rem;
  color: var(--ink-soft);
  margin: 0.75rem 0 0;
}

.hero-visual {
  position: relative;
  min-height: 280px;
  border: 3px solid var(--ink);
  border-radius: 2rem 0.5rem 2rem 0.5rem;
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--sun);
  transform: rotate(-1.2deg);
  animation: floaty 7s ease-in-out infinite;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

@media (min-width: 860px) {
  .hero-home .wrap {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
  }
}

@keyframes floaty {
  0%, 100% { transform: rotate(-1.2deg) translateY(0); }
  50% { transform: rotate(-0.4deg) translateY(-10px); }
}

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

.reveal {
  animation: pop-in 0.7s ease both;
}

.reveal-delay {
  animation-delay: 0.15s;
}

/* Panels / panels without card clutter where possible */
.panel {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 6px 6px 0 rgba(26, 26, 46, 0.08);
}

.panel-sun { background: var(--sun); }
.panel-teal { background: var(--teal); color: var(--ink); }
.panel-coral { background: var(--coral); color: var(--white); }
.panel-coral a { color: var(--sun); }

.grid-2 {
  display: grid;
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.benefit-block {
  position: relative;
  padding: 1.5rem 1.25rem 1.25rem;
  border-left: 6px solid var(--coral);
}

.benefit-block:nth-child(2) { border-left-color: var(--teal); }
.benefit-block:nth-child(3) { border-left-color: var(--sun); background: rgba(255, 229, 102, 0.25); }

.benefit-block h3 {
  font-size: 1.25rem;
}

/* Course / blog media */
.media-tile {
  display: block;
  text-decoration: none;
  color: inherit;
}

.media-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
}

.media-tile h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.media-tile p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.98rem;
}

.meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

/* Proof strip */
.proof-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 2rem 0;
}

.proof-item {
  text-align: left;
  padding: 1rem;
  border-top: 3px solid var(--ink);
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}

/* Testimonials */
.quote {
  margin: 0;
  font-size: 1.05rem;
}

.quote cite {
  display: block;
  margin-top: 0.85rem;
  font-style: normal;
  font-weight: 700;
  font-size: 0.92rem;
}

.rating {
  color: var(--coral-deep);
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* Pricing */
.price-tier {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}

.price-tier .amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: -0.03em;
}

.price-tier .amount span {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.price-tier ul {
  flex: 1;
  margin: 0;
}

.price-tier.featured {
  background: var(--ink);
  color: var(--paper);
  transform: scale(1.02);
}

.price-tier.featured a.btn {
  background: var(--sun);
  color: var(--ink);
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form label {
  font-weight: 700;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--white);
}

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

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
}

.field-error {
  color: var(--coral-deep);
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--ink);
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(0, 191, 166, 0.25);
}

.form-status.is-error {
  display: block;
  background: rgba(255, 90, 54, 0.2);
}

.inline-error {
  margin: 0.5rem 0;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 90, 54, 0.15);
  border: 2px solid var(--coral);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Page heroes (inner) */
.page-hero {
  padding: 3rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 18ch;
}

.page-hero .lead {
  max-width: 40rem;
}

.hero-band {
  background: linear-gradient(135deg, rgba(255, 90, 54, 0.15), rgba(0, 191, 166, 0.2));
  border-block: 2px solid var(--ink);
  margin-bottom: 0;
}

.article-body {
  max-width: 42rem;
}

.article-body h2 {
  margin-top: 2rem;
  font-size: 1.55rem;
}

.article-cover {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0 2rem;
  box-shadow: 8px 8px 0 var(--teal);
}

.article-cover img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.module-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.module-list li {
  padding: 1rem 1.1rem;
  border: 2px dashed var(--ink);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.65);
}

.module-list strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.faq details {
  border-bottom: 2px solid var(--line);
  padding: 0.85rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
}

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

th, td {
  border: 2px solid var(--ink);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--sun);
  font-family: var(--font-display);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 520px;
  margin-inline: auto;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: 8px 8px 0 var(--coral);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: pop-in 0.35s ease both;
}

.cookie-banner p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

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

.cookie-actions .btn {
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 0 1.5rem;
  border-top: 4px solid var(--coral);
}

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

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  }
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--sun);
}

.footer-tag,
.footer-address {
  color: rgba(255, 248, 240, 0.82);
  font-size: 0.92rem;
}

.footer-heading {
  font-size: 0.95rem;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

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

.footer-links a,
.footer-contact a {
  color: var(--paper);
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--sun);
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  width: min(100% - 2rem, var(--max));
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 248, 240, 0.2);
  font-size: 0.85rem;
  color: rgba(255, 248, 240, 0.7);
}

.footer-bottom p {
  margin: 0;
}

/* 404 */
.error-page {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  line-height: 0.9;
  color: var(--coral);
  margin: 0;
}

/* Zigzag home section */
.zigzag {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .zigzag {
    grid-template-columns: 1fr 1fr;
  }
  .zigzag.reverse .zigzag-copy { order: 2; }
  .zigzag.reverse .zigzag-media { order: 1; }
}

.zigzag-media {
  border: 3px solid var(--ink);
  border-radius: 1.5rem 0.4rem;
  overflow: hidden;
  box-shadow: -8px 8px 0 var(--coral);
}

.zigzag-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.instructor {
  display: grid;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 600px) {
  .instructor {
    grid-template-columns: 140px 1fr;
  }
}

.instructor img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--sun);
}

.legal-body {
  max-width: 48rem;
}

.legal-body h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

.case-study {
  padding: 1.5rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(0, 191, 166, 0.12), rgba(255, 229, 102, 0.2));
}

.case-study + .case-study {
  margin-top: 1.25rem;
}

.stack-gap > * + * {
  margin-top: 1rem;
}

#header-slot:empty,
#footer-slot:empty {
  min-height: 1px;
}
