/* App Platforms — celadon ink theme */
:root {
  --ink: #0e2a28;
  --ink-soft: #1a3f3c;
  --celadon: #7ba89a;
  --celadon-deep: #4f7a6e;
  --amber: #d4a574;
  --amber-soft: #e8c9a8;
  --paper: #f3f0e8;
  --paper-warm: #ebe6da;
  --mist: #d9e4df;
  --line: rgba(14, 42, 40, 0.12);
  --text: #1c2e2c;
  --muted: #5a6f6b;
  --white: #faf9f6;
  --danger: #9b3b2e;
  --ok: #2f6b4f;
  --radius: 4px;
  --shadow: 0 18px 40px rgba(14, 42, 40, 0.12);
  --font-display: "Literata", "Georgia", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(123, 168, 154, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(212, 165, 116, 0.16), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--celadon-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

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

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

.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;
}

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

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

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

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--celadon) 0%, var(--ink) 70%),
    var(--ink);
  box-shadow: inset 0 0 0 2px rgba(212, 165, 116, 0.55);
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

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

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.28s ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  width: 100%;
}

.site-nav .nav-cta {
  background: var(--ink);
  color: var(--white);
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
}

.site-nav .nav-cta::after {
  display: none;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

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

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

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

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

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

/* Hero variants */
.hero-full {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-full__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-full__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-full__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 42, 40, 0.35) 0%, rgba(14, 42, 40, 0.78) 55%, rgba(14, 42, 40, 0.92) 100%),
    linear-gradient(90deg, rgba(14, 42, 40, 0.55) 0%, transparent 60%);
  z-index: 1;
}

.hero-full__content {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4rem 0 3.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
  animation: riseIn 0.9s ease both;
}

.hero-line {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(250, 249, 246, 0.9);
  margin-bottom: 1.75rem;
  animation: riseIn 0.9s ease 0.15s both;
}

.hero-actions {
  animation: riseIn 0.9s ease 0.28s both;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

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

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

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

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

.page-hero--media {
  position: relative;
  min-height: 320px;
  display: grid;
  align-items: end;
  margin-bottom: 2rem;
  overflow: hidden;
}

.page-hero--media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--media .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(14, 42, 40, 0.88));
}

.page-hero--media .inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 3rem 0 2.25rem;
  color: var(--white);
}

.page-hero--media h1 {
  color: var(--white);
}

.page-hero--media .lead {
  color: rgba(250, 249, 246, 0.88);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

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

.btn-primary:hover {
  background: var(--amber-soft);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(250, 249, 246, 0.45);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(250, 249, 246, 0.1);
  color: var(--white);
}

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

.btn-ink:hover {
  background: var(--ink-soft);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

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

.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

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

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--celadon-deep);
  margin-bottom: 0.75rem;
}

.band-ink {
  background: var(--ink);
  color: rgba(250, 249, 246, 0.9);
}

.band-ink h2,
.band-ink h3 {
  color: var(--white);
}

.band-mist {
  background: rgba(217, 228, 223, 0.55);
}

.band-celadon {
  background: linear-gradient(135deg, rgba(123, 168, 154, 0.28), rgba(212, 165, 116, 0.18));
}

/* Proof strip */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 700px) {
  .proof-strip {
    grid-template-columns: 1fr;
  }
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

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

.feature-block {
  padding: 0;
  border: none;
  background: transparent;
}

.feature-block h3 {
  font-size: 1.25rem;
  margin-top: 0.85rem;
}

.feature-block p {
  color: var(--muted);
  margin: 0;
}

.feature-block .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--celadon-deep);
  line-height: 1;
}

/* Course / blog tiles — interaction containers */
.tile {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}

.tile img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.tile-body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.tile-body h3 {
  font-size: 1.2rem;
  margin: 0;
}

.tile-body p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}

.tile-meta {
  font-size: 0.82rem;
  color: var(--celadon-deep);
  font-weight: 600;
}

/* Featured course split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

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

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* Quotes */
.quote {
  border-left: 3px solid var(--amber);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 0;
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.quote footer {
  color: var(--muted);
  font-size: 0.9rem;
}

.quote-stack {
  display: grid;
  gap: 2rem;
}

.rating {
  color: var(--amber);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
}

.price-tier {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-tier.is-featured {
  border-color: var(--celadon-deep);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #fff 0%, #f2f7f5 100%);
}

.price-tier h3 {
  margin: 0;
  font-size: 1.45rem;
}

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

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

.price-tier ul {
  padding-left: 1.1em;
  color: var(--muted);
  flex: 1;
}

.price-tier .btn {
  width: 100%;
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

/* Forms */
.form-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
}

@media (max-width: 860px) {
  .form-layout {
    grid-template-columns: 1fr;
  }
}

.form-panel,
.contact-aside {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.field {
  margin-bottom: 1.1rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: var(--paper);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--celadon);
  outline-offset: 1px;
  border-color: var(--celadon-deep);
}

.field-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

.field.has-error .field-error {
  display: block;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(47, 107, 79, 0.12);
  color: var(--ok);
}

.form-status.is-error {
  display: block;
  background: rgba(155, 59, 46, 0.1);
  color: var(--danger);
}

.contact-aside address {
  font-style: normal;
  margin-bottom: 1rem;
  color: var(--muted);
}

.inline-error {
  display: none;
  margin: 1rem auto;
  width: min(100% - 2.5rem, var(--max));
  padding: 0.85rem 1rem;
  background: rgba(155, 59, 46, 0.1);
  color: var(--danger);
  border-radius: var(--radius);
}

.inline-error.is-visible {
  display: block;
}

/* Article */
.prose {
  max-width: 42rem;
}

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

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.25rem 0;
}

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

.prose th {
  background: rgba(217, 228, 223, 0.6);
}

.module-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.module-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
}

.module-list .mod-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--celadon-deep);
}

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 0;
}

.instructor img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 560px) {
  .instructor {
    grid-template-columns: 1fr;
  }
}

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

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.case-study {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.case-study h3 {
  margin-top: 0;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(250, 249, 246, 0.82);
  margin-top: 4rem;
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.footer-brand {
  max-width: 28rem;
  margin-bottom: 2.5rem;
}

.footer-brand .brand-text {
  color: var(--white);
}

.footer-brand p {
  margin-top: 0.85rem;
  color: rgba(250, 249, 246, 0.7);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.footer-cols h2 {
  color: var(--amber-soft);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

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

.footer-cols li {
  margin-bottom: 0.45rem;
}

.footer-cols a {
  color: rgba(250, 249, 246, 0.82);
  text-decoration: none;
}

.footer-cols a:hover {
  color: var(--white);
}

.footer-cols address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(250, 249, 246, 0.7);
}

.footer-base {
  border-top: 1px solid rgba(250, 249, 246, 0.12);
  padding-top: 1.25rem;
  font-size: 0.88rem;
  color: rgba(250, 249, 246, 0.55);
}

@media (max-width: 860px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 200;
  max-width: 520px;
  margin-left: auto;
  background: var(--ink);
  color: rgba(250, 249, 246, 0.92);
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: riseIn 0.45s ease both;
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.cookie-banner a {
  color: var(--amber-soft);
}

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

.cookie-actions .btn {
  flex: 1;
  min-width: 120px;
}

.cookie-actions .btn-reject {
  background: transparent;
  border: 1px solid rgba(250, 249, 246, 0.35);
  color: var(--white);
}

.cookie-actions .btn-accept {
  background: var(--amber);
  color: var(--ink);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

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

.error-page h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin-bottom: 0.25rem;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--muted); }
.list-plain { list-style: none; padding: 0; }
