/* Chapter Manager — the one stylesheet for chaptermanager.tech.
 *
 * Palette: blues (--ku-*), navy and slate greys. Type: the system
 * sans-serif, 800-weight headings. Buttons rounded 0.75rem, cards 1rem. Where
 * these came from is in README.md (not served).
 *
 * Content-Security-Policy: the pages have no inline styles, no style
 * attributes and no scripts, so `style-src 'self'` and no script-src at all
 * are enough. Keep it that way: a style="" attribute added to a page will be
 * blocked on the live site.
 */

:root {
  --ku-50: #eef4fd;
  --ku-100: #d8e7fb;
  --ku-200: #b4cef6;
  --ku-300: #7fabee;
  --ku-400: #4180e0;
  --ku-500: #1a60cf;
  --ku-600: #0051ba;
  --ku-700: #00429a;
  --ku-800: #00357c;
  --ku-900: #002a63;

  --navy-800: #12203a;
  --navy-900: #0b1729;
  --navy-950: #060d18;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --green-400: #4ade80;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";

  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ── Base ─────────────────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--slate-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

strong {
  font-weight: 700;
  color: var(--slate-900);
}

:focus-visible {
  outline: 3px solid var(--ku-400);
  outline-offset: 2px;
  border-radius: 4px;
}

.on-dark :focus-visible {
  outline-color: var(--ku-300);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ku-600);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
}

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

.nowrap {
  white-space: nowrap;
}

/* Headings break into even lines instead of leaving one word on the last. */
.hero h1,
.hero-accent,
.h2 {
  text-wrap: balance;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */

.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap-wide {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap-narrow {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  scroll-margin-top: 4.5rem;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.section--alt {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.section--dark {
  background: var(--navy-900);
  color: #fff;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 3rem;
  }
}

/* ── Type ─────────────────────────────────────────────────────────────────── */

.kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ku-600);
  margin-bottom: 0.75rem;
}

.section--dark .kicker,
.cta .kicker {
  color: var(--ku-300);
}

.h2 {
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .h2 {
    font-size: 1.875rem;
  }
}

.section--dark .h2,
.cta .h2 {
  color: #fff;
}

.lede {
  color: var(--slate-600);
  line-height: 1.625;
  max-width: 42rem;
  margin-bottom: 3rem;
}

.section--dark .lede {
  color: var(--slate-300);
}

.h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.body-sm {
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.625;
}

.link {
  color: var(--ku-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link:hover {
  color: var(--ku-700);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-xl);
  padding: 1rem 1.75rem;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn--primary {
  background: var(--ku-600);
  color: #fff;
}

.btn--primary:hover {
  background: var(--ku-700);
}

.btn--hero {
  background: var(--ku-500);
  color: #fff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
}

.btn--hero:hover {
  background: var(--ku-600);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn--small {
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-lg);
}

/* ── Header ───────────────────────────────────────────────────────────────── */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
}

@media (min-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
  }
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.brand-name {
  display: block;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--slate-900);
}

.brand-name span {
  color: var(--ku-600);
}

.brand-tag {
  display: block;
  font-size: 0.75rem;
  line-height: 1.1;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

@media (max-width: 373px) {
  .brand-tag {
    display: none;
  }
}

.site-nav {
  order: 3;
  width: 100%;
}

/* On a phone the links take a row of their own under the name, spread
   across it; at 390px wide all five fit on the one row. */
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.site-nav a {
  display: inline-block;
  padding: 0.375rem 0;
  color: var(--slate-600);
  text-decoration: none;
  transition: color 0.15s;
}

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

@media (min-width: 900px) {
  .header-inner {
    column-gap: 2rem;
  }
  .site-nav {
    order: 0;
    width: auto;
    margin-left: auto;
  }
  .site-nav ul {
    gap: 2rem;
    justify-content: flex-start;
  }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(150deg, var(--navy-900) 0%, var(--ku-800) 50%, var(--ku-700) 68%, var(--navy-900) 100%);
  color: #fff;
  padding: 4.5rem 0 5rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 7rem 0;
  }
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 4rem;
  }
}

.pill {
  display: inline-block;
  background: rgba(26, 96, 207, 0.2);
  border: 1px solid rgba(65, 128, 224, 0.3);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  color: var(--ku-200);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
}

.hero-accent {
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ku-300);
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .hero-accent {
    font-size: 1.75rem;
  }
}

.hero-text {
  color: var(--slate-300);
  font-size: 1.125rem;
  line-height: 1.625;
  margin-bottom: 2rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

/* The illustrative event-day panel beside the hero text. */
.panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
}

.panel-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ku-300);
  margin-bottom: 0.5rem;
}

.panel-title {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 0.125rem;
}

.panel-sub {
  font-size: 0.875rem;
  color: var(--slate-300);
  margin-bottom: 1.25rem;
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.panel-stats div {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: 0.75rem;
}

.panel-stats dt {
  font-size: 0.75rem;
  color: var(--slate-300);
}

.panel-stats dd {
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.3;
}

.panel-sessions {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.panel-sessions li {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: 0.75rem;
}

.session-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
}

.session-meta {
  display: block;
  font-size: 0.8125rem;
  color: var(--slate-300);
  margin-top: 0.125rem;
}

.session-count {
  display: block;
  font-size: 0.8125rem;
  color: var(--ku-200);
  margin-top: 0.125rem;
}

.panel-status {
  display: grid;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--slate-300);
}

.panel-status li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-status li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--green-400);
  flex-shrink: 0;
}

.panel figcaption {
  font-size: 0.75rem;
  color: var(--slate-300);
  margin-top: 1rem;
}

/* ── The band under the hero ──────────────────────────────────────────────── */

.strip {
  background: var(--navy-950);
  border-bottom: 1px solid var(--slate-800);
  color: var(--slate-400);
  font-size: 0.875rem;
  padding: 1.25rem 0;
}

.strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .strip li + li {
    position: relative;
  }
  .strip li + li::before {
    content: "|";
    position: absolute;
    left: -1.35rem;
    color: var(--slate-700);
  }
}

/* ── The problem ──────────────────────────────────────────────────────────── */

.problem h3 {
  margin-bottom: 0.5rem;
}

/* ── Cards (what a chapter gets, pricing) ─────────────────────────────────── */

.card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card:hover {
    transition: none;
    transform: none;
  }
}

.card-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.75rem;
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--ku-50);
  color: var(--ku-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.card-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ku-600);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.3;
}

.card-intro {
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.625;
  margin-bottom: 1rem;
}

.ticks {
  display: grid;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--slate-700);
  line-height: 1.5;
}

.ticks li {
  position: relative;
  padding-left: 1.5rem;
}

/* A check drawn in CSS: no image, nothing for the CSP to allow. */
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.3rem;
  width: 0.375rem;
  height: 0.6875rem;
  border-right: 2px solid var(--ku-600);
  border-bottom: 2px solid var(--ku-600);
  transform: rotate(45deg);
}

.section--dark .ticks {
  color: var(--slate-300);
}

.section--dark .ticks li::before {
  border-color: var(--ku-300);
}

.included {
  margin-top: 1.5rem;
  background: var(--ku-50);
  border: 1px solid var(--ku-100);
  border-radius: var(--radius-2xl);
  padding: 1.5rem 1.75rem;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .included {
    grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
  }
}

.included h3 {
  font-size: 1.125rem;
  font-weight: 800;
}

.included p {
  color: var(--slate-700);
  line-height: 1.625;
}

/* ── Moving over ──────────────────────────────────────────────────────────── */

.moving-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .moving-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }
}

.steps {
  display: grid;
  gap: 1.75rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 3.25rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.125rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: var(--ku-600);
  color: #fff;
  font-weight: 800;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}

.aside-box {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.aside-box .kicker {
  color: var(--slate-500);
}

/* ── Data and security ────────────────────────────────────────────────────── */

.data-col h3 {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

/* ── Pricing ──────────────────────────────────────────────────────────────── */

.price-card {
  display: flex;
  flex-direction: column;
}

/* A ring rather than a thicker border, so the three cards line up. */
.price-card--main {
  border-color: var(--ku-600);
  box-shadow: 0 0 0 1px var(--ku-600);
}

.price-card--main:hover {
  box-shadow: 0 0 0 1px var(--ku-600), var(--shadow-hover);
}

/* .price-card .price-label, not .price-label: it is an h3 in a .card, and
   .card h3 would otherwise win. */
.price-card .price-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-500);
  margin-bottom: 0.75rem;
}

.price-card--main .price-label {
  color: var(--ku-600);
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--slate-900);
}

.price small {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--slate-500);
}

.price-note {
  font-size: 0.9375rem;
  color: var(--slate-600);
  margin: 0.375rem 0 1.25rem;
  min-height: 1.5rem;
}

.price-card .ticks {
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-200);
}

.pricing-notes {
  margin-top: 2rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.625;
  max-width: 48rem;
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

.faq {
  border-top: 1px solid var(--slate-200);
}

.faq details {
  border-bottom: 1px solid var(--slate-200);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--slate-900);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ku-600);
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq summary:hover {
  color: var(--ku-600);
}

.faq details p {
  color: var(--slate-600);
  line-height: 1.625;
  padding-bottom: 1.25rem;
  max-width: 44rem;
}

/* ── Contact ──────────────────────────────────────────────────────────────── */

.cta {
  background: var(--navy-950);
  color: #fff;
  text-align: center;
  padding: 5rem 0;
  scroll-margin-top: 4.5rem;
}

.cta p {
  color: var(--slate-400);
  line-height: 1.625;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.cta .address {
  margin: 1.25rem auto 0;
  font-size: 0.9375rem;
  color: var(--slate-400);
}

.cta .address a {
  color: var(--ku-200);
  font-weight: 600;
}

.cta .address a:hover {
  color: #fff;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--navy-900);
  color: var(--slate-400);
  padding: 3rem 0;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--slate-800);
}

.footer-links a {
  color: var(--slate-400);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ku-300);
}

.footer-base {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
}

.footer-brand img {
  width: 1.75rem;
  height: 1.75rem;
}

.footer-note {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--slate-400);
  line-height: 1.6;
  max-width: 48rem;
}

/* ── Privacy page ─────────────────────────────────────────────────────────── */

.prose h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.prose .updated {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 3rem;
}

.prose-body {
  display: grid;
  gap: 2.5rem;
  color: var(--slate-700);
  line-height: 1.625;
}

.prose-body h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.75rem;
}

.prose-body p + p {
  margin-top: 0.75rem;
}
