/* AROK Academy front page. Its own identity within the arok.ai family:
   a trail photograph, warm paper, ink and forest green; Libre Caslon for display over Schibsted Grotesk.
   Lives in app/public so the Vite build copies it into the plugin's assets. Fonts come from fonts.css, shared with the app. */
@import url("fonts.css");

.academy-landing {
  --paper: oklch(0.958 0.013 88);
  --paper-2: oklch(0.925 0.018 88);
  --rule: oklch(0.85 0.018 88);
  --ink: oklch(0.21 0.016 155);
  --quiet: oklch(0.43 0.016 155);
  --forest: oklch(0.32 0.06 155);
  --forest-deep: oklch(0.25 0.045 155);
  --on-forest: oklch(0.93 0.02 120);
  --on-forest-quiet: oklch(0.78 0.03 140);
  --fern: oklch(0.85 0.115 138);
  --accent: var(--forest);
  --action: var(--forest);
  --on-action: var(--on-forest);
  --action-hover: var(--forest-deep);
  --foot: oklch(0.19 0.016 155);
  color-scheme: light;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --italic: "Libre Caslon Text", Georgia, serif;
  --text: "Schibsted Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.25rem, 5vw, 4rem);
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text); -webkit-font-smoothing: antialiased;
}
.academy-landing *, .academy-landing *::before, .academy-landing *::after { box-sizing: border-box; }
.academy-landing a { color: inherit; }
.academy-landing :focus-visible { outline: 2px solid var(--fern); outline-offset: 3px; }
.academy-landing h1, .academy-landing h2, .academy-landing h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
.academy-landing h1 em, .academy-landing h2 em { font-family: var(--italic); font-style: italic; }

/* Dark: the same page at night. The forest panels and the certificate keep their own colours. */
:root[data-theme="dark"] .academy-landing {
  color-scheme: dark;
  --paper: oklch(0.175 0.014 155);
  --paper-2: oklch(0.205 0.016 155);
  --rule: oklch(0.31 0.016 155);
  --ink: oklch(0.93 0.015 100);
  --quiet: oklch(0.75 0.016 130);
  --forest: oklch(0.29 0.055 155);
  --forest-deep: oklch(0.225 0.04 155);
  --accent: var(--fern);
  --action: var(--fern);
  --on-action: oklch(0.25 0.045 155);
  --action-hover: oklch(0.91 0.1 138);
  --foot: oklch(0.14 0.012 155);
}
:root[data-theme="dark"] .a-cur { border-color: oklch(0.29 0.03 155); }
:root[data-theme="dark"] .a-cert { --paper: oklch(0.958 0.013 88); --rule: oklch(0.85 0.018 88); --ink: oklch(0.21 0.016 155); --quiet: oklch(0.43 0.016 155); --forest: oklch(0.32 0.06 155); color: var(--ink); box-shadow: 0 30px 70px -30px oklch(0 0 0 / 0.7); }
:root[data-theme="dark"] .a-route ol::before { border-color: oklch(0.42 0.04 150); }

/* Theme toggle */
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; opacity: 0.86; transition: opacity 160ms var(--ease), background-color 160ms var(--ease); }
.theme-toggle:hover { opacity: 1; background: color-mix(in oklch, currentColor 12%, transparent); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun, :root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }

/* Wordmark */
.a-mark { display: inline-flex; align-items: baseline; gap: 0.5rem; text-decoration: none; }
.a-crest { height: 2.6rem; width: auto; margin-right: 0.3rem; align-self: center; }
.a-pre { font: 600 0.75rem/1 var(--text); letter-spacing: 0.22em; }
.a-word { font: 400 1.6rem/1 var(--display); }

/* Header, over the photo */
.a-top { position: absolute; inset: 0 0 auto; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.4rem var(--pad); color: var(--on-forest); }
.a-top nav { display: flex; align-items: center; gap: 0.25rem 1.75rem; flex-wrap: wrap; justify-content: flex-end; font-size: 0.9375rem; }
.a-top nav a { text-decoration: none; opacity: 0.86; transition: opacity 160ms var(--ease); }
.a-top nav a:hover { opacity: 1; }
.a-top .a-in { opacity: 1; padding: 0.45rem 1rem; border: 1px solid color-mix(in oklch, var(--on-forest) 45%, transparent); border-radius: 999px; }
.a-top .a-home { opacity: 0.6; }
@media (max-width: 54rem) { .a-top nav a:not(.a-in) { display: none; } }

/* Hero */
.a-hero { position: relative; min-height: max(640px, 94svh); display: grid; align-items: end; color: var(--on-forest); background: var(--forest-deep); isolation: isolate; }
.a-hero picture, .a-hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.a-hero picture { z-index: -2; }
.a-hero-in { position: relative; }
.a-hero img { object-fit: cover; object-position: 50% 62%; }
.a-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, oklch(0.16 0.03 155 / 0.86) 0%, oklch(0.16 0.03 155 / 0.55) 42%, oklch(0.16 0.03 155 / 0) 72%),
              linear-gradient(0deg, oklch(0.16 0.03 155 / 0.7) 0%, oklch(0.16 0.03 155 / 0) 38%),
              linear-gradient(180deg, oklch(0.16 0.03 155 / 0.55) 0%, oklch(0.16 0.03 155 / 0) 18%); }
.a-hero-in { padding: 9rem var(--pad) clamp(3.5rem, 8vh, 6rem); max-width: 72rem; }
.a-hero-lead, .a-eyebrow { max-width: 36rem; }
.a-eyebrow { margin: 0 0 1.5rem; color: var(--fern); font-weight: 500; letter-spacing: 0.02em; }
.a-hero h1 { font-size: clamp(3.4rem, 1.2rem + 7.2vw, 7.75rem); line-height: 0.96; letter-spacing: -0.015em; }
.a-hero h1 em { color: var(--fern); font-size: 0.94em; }
.a-hero-lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; color: oklch(0.9 0.02 120); max-width: 36rem; margin: 2rem 0 0; }
.a-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2.25rem 0 0; }
.a-count { position: absolute; right: var(--pad); bottom: clamp(3.5rem, 8vh, 6rem); margin: 0; font-size: 0.875rem; color: var(--on-forest-quiet); }
@media (max-width: 62rem) { .a-count { display: none; } .a-hero::after { background-color: oklch(0.16 0.03 155 / 0.4); } }

/* Buttons */
.a-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0.8rem 1.5rem; border: 1px solid transparent; border-radius: 999px; font: 600 0.9688rem/1.2 var(--text); text-decoration: none; cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease); }
.a-btn.fern { background: var(--fern); color: var(--forest-deep); }
.a-btn.fern:hover { background: oklch(0.91 0.1 138); }
.a-btn.ghost { border-color: color-mix(in oklch, currentColor 40%, transparent); background: transparent; }
.a-btn.ghost:hover { border-color: currentColor; }
.a-btn.forest { background: var(--action); color: var(--on-action); }
.a-btn.forest:hover { background: var(--action-hover); }

/* Shared section rhythm */
.academy-landing .a-h { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); line-height: 1.05; margin: 0 0 clamp(2rem, 4vw, 3rem); }
.a-idea, .a-curricula, .a-route, .a-proof, .a-faq, .a-orgs { padding: clamp(4.5rem, 10vw, 8.5rem) var(--pad); }
.a-curricula, .a-route, .a-faq { max-width: 82rem; margin: 0 auto; }

/* The idea */
.a-idea { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; max-width: 82rem; margin: 0 auto; border-bottom: 1px solid var(--rule); }
.a-idea h2 { font-size: clamp(2.6rem, 1.4rem + 4.2vw, 5.25rem); line-height: 1; letter-spacing: -0.01em; }
.a-idea h2 em { color: var(--accent); display: block; }
.a-idea p { color: var(--quiet); font-size: 1.1875rem; margin: 0; max-width: 34rem; }
@media (max-width: 54rem) { .a-idea { grid-template-columns: 1fr; } }

/* Curriculum showcase: a forest panel beside a transcript */
.a-cur { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); border-radius: 4px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper); }
.a-cur + .a-cur { margin-top: 2rem; }
.a-cur-panel { background: var(--forest); color: var(--on-forest); padding: clamp(2rem, 4vw, 3.25rem); display: flex; flex-direction: column; }
.a-cur-no { margin: 0 0 1rem; color: var(--fern); font-weight: 500; font-size: 0.9375rem; }
.a-draft { color: var(--forest-deep); background: oklch(0.88 0.08 85); padding: 0.1rem 0.5rem; border-radius: 3px; margin-left: 0.5rem; }
.a-cur h3 { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.75rem); line-height: 1.06; margin: 0 0 1.25rem; }
.a-cur-pitch { color: var(--on-forest-quiet); }
.a-cur-pitch p { margin: 0 0 1rem; }
.a-facts { display: flex; gap: clamp(1.5rem, 3vw, 2.5rem); margin: 1.5rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid oklch(0.45 0.05 155); }
.a-facts div { display: flex; flex-direction: column-reverse; }
.a-facts dt { font-size: 0.875rem; color: var(--on-forest-quiet); }
.a-facts dd { margin: 0; font: 400 2.25rem/1.1 var(--display); }
.a-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: auto; padding-top: 2.25rem; }
.a-price { width: 100%; margin: 0 0 0.5rem; font: 400 3rem/1 var(--display); }
.a-price s { font-size: 0.55em; color: var(--on-forest-quiet); margin-right: 0.3rem; }
.a-price span { font: 400 1rem var(--text); color: var(--on-forest-quiet); margin-left: 0.4rem; }
.a-transcript { list-style: none; margin: 0; padding: clamp(1rem, 2.5vw, 2rem) clamp(1.25rem, 3vw, 2.5rem); align-self: center; }
.a-transcript li + li { border-top: 1px solid var(--rule); }
.a-transcript a { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 1rem; align-items: baseline; padding: 1.05rem 0; text-decoration: none; }
.a-code { font-weight: 600; font-size: 0.875rem; letter-spacing: 0.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.a-title { font-weight: 500; transition: color 160ms var(--ease); }
.a-transcript a:hover .a-title { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.a-cap { display: inline-block; margin-left: 0.4rem; padding: 0 0.5rem; border-radius: 999px; background: var(--paper-2); color: var(--accent); font-size: 0.8125rem; font-weight: 600; }
.a-hrs { color: var(--quiet); font-size: 0.9375rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.a-soon { color: var(--quiet); }
@media (max-width: 60rem) { .a-cur { grid-template-columns: 1fr; } }
@media (max-width: 34rem) { .a-transcript a { grid-template-columns: 4.75rem 1fr; } .a-hrs { display: none; } }

/* The route: four stops on a trail line */
.a-route { border-top: 1px solid var(--rule); }
.a-route ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.a-route ol::before { content: ""; position: absolute; top: 1.25rem; left: 1.25rem; right: 0; border-top: 2px dashed oklch(0.75 0.04 150); }
.a-route li { position: relative; }
.a-stop { position: relative; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--forest); color: var(--on-forest); font: 400 1.25rem/1 var(--display); box-shadow: 0 0 0 6px var(--paper); }
.a-route h3 { font-size: 1.6rem; line-height: 1.15; margin: 1.5rem 0 0.6rem; }
.a-route p { color: var(--quiet); margin: 0; max-width: 22rem; }
@media (max-width: 56rem) {
  .a-route ol { grid-template-columns: 1fr; gap: 2.25rem; padding-left: 3.75rem; }
  .a-route ol::before { top: 0.5rem; bottom: 0.5rem; left: 1.2rem; right: auto; border-top: 0; border-left: 2px dashed oklch(0.75 0.04 150); }
  .a-stop { position: absolute; left: -3.75rem; top: 0; }
  .a-route h3 { margin-top: 0.3rem; }
}

/* Proof: the certificate */
.a-proof { background: var(--paper-2); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.a-proof-text { max-width: 34rem; justify-self: end; }
.a-proof h2 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); line-height: 1.04; margin: 0 0 1.5rem; }
.a-proof h2 em { color: var(--accent); display: block; }
.a-proof p { color: var(--quiet); margin: 0; }
.a-verify { margin: 2.25rem 0 0; }
.a-verify label { display: block; font-weight: 600; font-size: 0.9375rem; margin: 0 0 0.5rem; }
.a-verify div { display: flex; gap: 0.5rem; }
.a-verify input { flex: 1; min-width: 0; min-height: 48px; padding: 0 1.1rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink); font: 500 1rem var(--text); letter-spacing: 0.06em; }
.a-verify input::placeholder { color: oklch(0.58 0.012 155); letter-spacing: 0; }
.a-verify input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.a-sample { margin: 0; justify-self: start; width: min(100%, 30rem); }
.a-cert { background: var(--paper); border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: -10px; padding: 2.75rem 2.5rem 2.25rem; text-align: center; transform: rotate(-1.2deg); box-shadow: 0 30px 60px -30px oklch(0.25 0.04 155 / 0.35); }
.a-cert p { margin: 0; }
.a-cert-crest { display: block; height: 64px; width: auto; margin: 0 auto 1rem; }
.a-cert-org { font-weight: 600; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--forest); margin-bottom: 1.5rem !important; }
.a-cert-small { font: italic 400 1rem var(--italic); color: var(--quiet); }
.a-cert-name { font: 400 2.6rem/1.15 var(--display); margin: 0.35rem 0 0.75rem !important; }
.a-cert-course { font-weight: 500; margin-top: 0.35rem !important; }
.a-seal { display: block; width: 92px; margin: 1.5rem auto 1.25rem; color: var(--forest); font-family: var(--text); font-weight: 600; }
.a-cert-id { font-size: 0.875rem; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.a-cert-id span { color: var(--quiet); letter-spacing: 0; margin-right: 0.4rem; }
.a-sample figcaption { margin: 1.5rem 0 0; color: var(--quiet); font-size: 0.875rem; text-align: center; }
@media (max-width: 56rem) { .a-proof { grid-template-columns: 1fr; } .a-proof-text, .a-sample { justify-self: center; } }

/* Organizations */
.a-orgs { max-width: 82rem; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem clamp(2rem, 6vw, 6rem); align-items: end; border-bottom: 1px solid var(--rule); }
.a-orgs h2 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); line-height: 1.04; grid-row: span 2; }
.a-orgs h2 em { color: var(--accent); display: block; }
.a-orgs p { margin: 0; color: var(--quiet); max-width: 32rem; }
@media (max-width: 54rem) { .a-orgs { grid-template-columns: 1fr; } }

/* Questions */
.a-faq > div { border-top: 1px solid var(--rule); max-width: 52rem; }
.a-faq details { border-bottom: 1px solid var(--rule); }
.a-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.4rem 0; font: 400 1.4rem/1.3 var(--display); cursor: pointer; }
.a-faq summary::-webkit-details-marker { display: none; }
.a-faq summary::after { content: "+"; font: 400 1.5rem/1 var(--text); color: var(--accent); transition: transform 220ms var(--ease); }
.a-faq details[open] summary::after { transform: rotate(45deg); }
.a-faq p { color: var(--quiet); margin: 0 0 1.5rem; max-width: 40rem; }

/* Enroll: Orrery's widget takes its colours from the band around it. */
.a-enroll { background: var(--forest-deep); color: var(--on-forest); padding: clamp(4.5rem, 10vw, 8rem) var(--pad); text-align: center; }
.a-enroll h2 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.5rem); line-height: 1.02; }
.a-enroll h2 em { color: var(--fern); }
.a-enroll > p { color: var(--on-forest-quiet); max-width: 34rem; margin: 1.25rem auto 0; }
.a-checkout { max-width: 48rem; margin: 2.75rem auto 0; text-align: left; }
.a-checkout > .a-btn { display: flex; width: max-content; margin: 0 auto; }

/* Footer */
.a-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 2.25rem var(--pad); background: var(--foot); color: var(--on-forest-quiet); font-size: 0.9375rem; }
.a-foot .a-mark { color: var(--on-forest); }
.a-foot p { margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.a-foot a { text-decoration: none; }
.a-foot p a:hover { color: var(--on-forest); }
.a-copy { width: 100%; font-size: 0.875rem; }
.a-copy a { color: var(--on-forest); }

@media (prefers-reduced-motion: reduce) { .academy-landing * { transition: none !important; } }
