:root {
  --font-scale: 1;
  --bg: #fbf3e5;
  --bg-deep: #f5e6cc;
  --paper: rgba(255, 251, 244, 0.82);
  --paper-strong: rgba(255, 249, 240, 0.94);
  --ink: #181511;
  --muted: #5f564d;
  --line: rgba(24, 21, 17, 0.1);
  --accent: #f36a2d;
  --accent-deep: #cd4a12;
  --accent-soft: #ffd4b8;
  --jade: #2d7f71;
  --jade-soft: #cce8de;
  --shadow: 0 24px 80px rgba(85, 48, 18, 0.12);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --content-width: 1200px;
}

html[data-theme="dark"] {
  --bg: #111418;
  --bg-deep: #171c22;
  --paper: rgba(23, 27, 33, 0.84);
  --paper-strong: rgba(28, 33, 40, 0.94);
  --ink: #f7efe3;
  --muted: #c8bbac;
  --line: rgba(247, 239, 227, 0.1);
  --accent: #ff8a52;
  --accent-deep: #ffc097;
  --accent-soft: #5c3423;
  --jade: #76c8b6;
  --jade-soft: #1f3d38;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: calc(16px * var(--font-scale));
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Sora", sans-serif;
  background:
    linear-gradient(180deg, #fff7ea 0%, #f8ebd8 55%, #f6e5cf 100%);
  overflow-x: hidden;
}

html[data-theme="dark"] body {
  background: linear-gradient(180deg, #111418 0%, #171c22 55%, #12161b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 82%);
  pointer-events: none;
  z-index: -2;
}

html[data-theme="dark"] body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

a {
  color: inherit;
}

.background-orb,
.background-mesh {
  position: fixed;
  pointer-events: none;
  z-index: -3;
}

.background-orb {
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.36;
}

.orb-one {
  top: -14rem;
  left: -12rem;
  background: radial-gradient(circle, rgba(243, 106, 45, 0.38) 0%, rgba(243, 106, 45, 0) 68%);
}

.orb-two {
  top: 14rem;
  right: -14rem;
  background: radial-gradient(circle, rgba(45, 127, 113, 0.22) 0%, rgba(45, 127, 113, 0) 68%);
}

html[data-theme="dark"] .orb-one {
  background: radial-gradient(circle, rgba(255, 138, 82, 0.24) 0%, rgba(255, 138, 82, 0) 68%);
}

html[data-theme="dark"] .orb-two {
  background: radial-gradient(circle, rgba(118, 200, 182, 0.16) 0%, rgba(118, 200, 182, 0) 68%);
}

.background-mesh {
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 212, 184, 0.7), transparent 18%),
    radial-gradient(circle at 86% 22%, rgba(204, 232, 222, 0.58), transparent 16%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.55), transparent 20%);
}

html[data-theme="dark"] .background-mesh {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 138, 82, 0.14), transparent 18%),
    radial-gradient(circle at 86% 22%, rgba(118, 200, 182, 0.14), transparent 16%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.04), transparent 20%);
}

.site-wrap {
  width: min(calc(100% - 28px), var(--content-width));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 251, 244, 0.74);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(40, 24, 12, 0.08);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

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

.brand-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, var(--accent), #ff8f5a);
  box-shadow: 0 16px 34px rgba(243, 106, 45, 0.28);
  color: white;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: grid;
  gap: 3px;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  transform: translateY(-1px);
}

.site-preferences {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.preference-button,
.theme-toggle {
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.preference-button:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.preference-button:disabled:hover,
.preference-button:disabled:focus-visible {
  transform: none;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  transform: translateY(-1px);
}

.hero,
.section,
.cta {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(310px, 0.78fr);
  gap: 24px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 250, 244, 0.88), rgba(252, 240, 226, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .hero {
  background: linear-gradient(135deg, rgba(24, 29, 35, 0.92), rgba(18, 22, 27, 0.92));
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .site-header {
  background: rgba(23, 27, 33, 0.78);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -36% auto;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 106, 45, 0.2), transparent 64%);
}

html[data-theme="dark"] .hero::after {
  background: radial-gradient(circle, rgba(255, 138, 82, 0.12), transparent 64%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.hero h1 {
  max-width: 10.5ch;
  font-size: clamp(3.6rem, 8vw, 6.9rem);
}

.hero-text,
.intro-card p,
.timeline-step p,
.principle p,
.manifesto-grid p,
.network-copy p,
.chapter-card p,
.material-card p,
.open-card p,
.hero-band p,
.site-footer p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-text {
  max-width: 60ch;
  margin: 20px 0 0;
  font-size: 1.03rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.meetup-note {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(24, 21, 17, 0.08);
}

.meetup-label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.meetup-note p,
.cta-subtext {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #ff8a52);
  color: white;
  box-shadow: 0 16px 34px rgba(243, 106, 45, 0.26);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 18px 40px rgba(243, 106, 45, 0.34);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(24, 21, 17, 0.08);
}

html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.hero-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.hero-band > div {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(24, 21, 17, 0.06);
}

html[data-theme="dark"] .hero-band > div,
html[data-theme="dark"] .meetup-note,
html[data-theme="dark"] .select-toggle,
html[data-theme="dark"] .level-section summary,
html[data-theme="dark"] .archive-session summary,
html[data-theme="dark"] .chapter-checklist div,
html[data-theme="dark"] .city,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .script-area,
html[data-theme="dark"] .mode-option,
html[data-theme="dark"] .phrase-option {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.band-kicker,
.panel-label,
.material-type {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.band-kicker {
  color: var(--jade);
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.panel-card,
.session-preview,
.intro-card,
.story-card,
.timeline-step,
.principle,
.manifesto-grid article,
.chapter-card,
.material-card,
.benefit-card,
.faq-card,
.open-card,
.cta,
.site-footer {
  border: 1px solid var(--line);
}

.panel-card,
.session-preview {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.panel-card-primary {
  background:
    linear-gradient(180deg, rgba(45, 127, 113, 0.08), rgba(45, 127, 113, 0.02)),
    var(--paper-strong);
}

html[data-theme="dark"] .panel-card-primary,
html[data-theme="dark"] .session-preview {
  background:
    linear-gradient(180deg, rgba(118, 200, 182, 0.08), rgba(118, 200, 182, 0.02)),
    rgba(28, 33, 40, 0.94);
}

.panel-label {
  color: var(--jade);
}

.panel-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
  line-height: 1.55;
}

.session-preview {
  background:
    linear-gradient(180deg, rgba(243, 106, 45, 0.08), rgba(255, 255, 255, 0.7));
}

.session-header {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.session-header span {
  color: var(--muted);
  font-size: 0.84rem;
}

.session-steps {
  display: grid;
  gap: 12px;
}

.session-steps div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 0.95rem;
}

.session-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent-deep);
  font-weight: 700;
}

.section,
.cta {
  margin-top: 22px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .section,
html[data-theme="dark"] .cta,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .builder-card,
html[data-theme="dark"] .generated-card,
html[data-theme="dark"] .panel-card,
html[data-theme="dark"] .session-preview,
html[data-theme="dark"] .intro-card,
html[data-theme="dark"] .story-card,
html[data-theme="dark"] .timeline-step,
html[data-theme="dark"] .principle,
html[data-theme="dark"] .manifesto-grid article,
html[data-theme="dark"] .chapter-card,
html[data-theme="dark"] .material-card,
html[data-theme="dark"] .benefit-card,
html[data-theme="dark"] .faq-card,
html[data-theme="dark"] .open-card,
html[data-theme="dark"] .sentence-card,
html[data-theme="dark"] .selected-card,
html[data-theme="dark"] .archive-session,
html[data-theme="dark"] .level-section,
html[data-theme="dark"] .prep-split-card {
  background: rgba(23, 27, 33, 0.88);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-heading.narrow {
  max-width: 680px;
}

.section-lead {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.section h2,
.cta h2 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.prep-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.prep-split-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 239, 0.82));
}

.prep-split-card h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.prep-split-card p:last-of-type {
  margin-bottom: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.intro-card,
.story-card,
.timeline-step,
.principle,
.manifesto-grid article,
.chapter-card,
.material-card,
.benefit-card,
.faq-card,
.open-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.8);
}

.accent-card {
  background:
    linear-gradient(180deg, rgba(255, 212, 184, 0.52), rgba(255, 252, 247, 0.84));
}

html[data-theme="dark"] .accent-card {
  background: linear-gradient(180deg, rgba(92, 52, 35, 0.84), rgba(23, 27, 33, 0.88));
}

.intro-card h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  margin-bottom: 14px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.story-grid,
.benefits-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}

.story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card h3,
.benefit-card h3,
.faq-card h3 {
  margin-top: 0;
}

.quote-banner {
  margin-top: 18px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(243, 106, 45, 0.14), rgba(255, 255, 255, 0.72));
  border: 1px solid var(--line);
}

.quote-banner p {
  margin: 0;
  max-width: 28ch;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.98;
}

.timeline-step {
  min-height: 220px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(243, 106, 45, 0.12);
  color: var(--accent-deep);
  font-weight: 800;
}

.timeline-step h3,
.manifesto-grid h3,
.chapter-card h3,
.material-card h3,
.intro-card h2 {
  margin-top: 0;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.benefits-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.benefit-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(45, 127, 113, 0.1);
  color: var(--jade);
  font-weight: 800;
}

.principle strong,
.open-card strong {
  display: block;
  margin-bottom: 8px;
}

.manifesto {
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.96), rgba(251, 241, 229, 0.84));
}

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.network-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: center;
}

.network-map {
  position: relative;
  min-height: 360px;
  border-radius: calc(var(--radius-xl) - 4px);
  background:
    radial-gradient(circle at center, rgba(243, 106, 45, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.86), rgba(248, 236, 219, 0.86));
  border: 1px solid var(--line);
}

html[data-theme="dark"] .network-map {
  background:
    radial-gradient(circle at center, rgba(255, 138, 82, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(24, 29, 35, 0.9), rgba(18, 22, 27, 0.9));
}

.map-core,
.city {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(24, 21, 17, 0.08);
  box-shadow: 0 8px 20px rgba(60, 32, 10, 0.08);
}

.map-core {
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--accent), #ff9664);
  color: white;
  font-weight: 700;
}

html[data-theme="dark"] .map-core {
  background: linear-gradient(135deg, var(--accent), #ff9a68);
}

.city-sydney {
  top: 18%;
  right: 14%;
}

.city-melbourne {
  bottom: 18%;
  right: 22%;
}

.city-brisbane {
  top: 8%;
  right: 32%;
}

.city-perth {
  top: 42%;
  left: 10%;
}

.city-adelaide {
  bottom: 28%;
  left: 32%;
}

.city-canberra {
  bottom: 24%;
  right: 10%;
}

.chapter-grid,
.materials-grid,
.open-grid {
  display: grid;
  gap: 16px;
}

.chapter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chapter-checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.chapter-checklist div {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(24, 21, 17, 0.08);
  font-weight: 600;
}

.materials-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.builder-panel {
  display: grid;
  gap: 18px;
}

.builder-card,
.generated-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.82);
}

html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a:focus-visible,
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .theme-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.builder-card-head {
  margin-bottom: 18px;
}

.builder-card-head h3,
.generated-head h4 {
  margin: 0 0 8px;
}

.builder-card-head p,
.generated-line p,
.storage-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mode-option,
.phrase-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(24, 21, 17, 0.08);
  background: rgba(255, 255, 255, 0.6);
}

.mode-option input,
.phrase-option input {
  margin-top: 3px;
}

.field-grid,
.phrase-selector {
  display: grid;
  gap: 12px;
}

.field-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.script-label,
.generated-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.field input,
.script-area {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(24, 21, 17, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font: inherit;
}

.field input:focus,
.script-area:focus {
  outline: 2px solid rgba(243, 106, 45, 0.24);
  border-color: rgba(243, 106, 45, 0.36);
}

.phrase-option-copy {
  display: grid;
  gap: 4px;
}

.phrase-option-copy strong {
  font-size: 0.95rem;
}

.phrase-option-copy small {
  color: var(--muted);
  line-height: 1.5;
}

.output-panel {
  position: sticky;
  top: 16px;
}

.output-card {
  display: grid;
  gap: 14px;
}

.output-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.output-button {
  cursor: pointer;
  font: inherit;
}

.output-button-main {
  flex: 1 1 auto;
}

.output-utility-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.utility-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(24, 21, 17, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.utility-button:hover,
.utility-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(243, 106, 45, 0.26);
}

.generated-list {
  display: grid;
  gap: 12px;
}

.generated-card {
  padding: 18px;
}

.generated-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.generated-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-button {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(24, 21, 17, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.generated-lines {
  display: grid;
  gap: 12px;
}

.generated-line {
  display: grid;
  gap: 5px;
}

.prep-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.prep-header {
  padding-top: 26px;
  padding-bottom: 26px;
}

.prep-header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.prep-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.prep-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.prep-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 60ch;
}

.prep-quickstart {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(24, 21, 17, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.quick-step strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(243, 106, 45, 0.14);
  color: var(--accent-deep);
}

.prep-main {
  display: grid;
  gap: 16px;
}

.prep-session-card,
.archive-card {
  display: grid;
  gap: 14px;
}

.prep-session-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.prep-session-head h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.prep-session-head p,
.archive-session-summary span,
.archive-empty {
  margin: 0;
  color: var(--muted);
}

.prep-session-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.8fr);
  gap: 12px;
}

.prep-sidebar {
  position: sticky;
  top: 16px;
}

.prep-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.speed-control {
  display: inline-grid;
  grid-template-columns: auto minmax(140px, 180px) auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.prep-toolbar-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.speed-control span {
  display: grid;
  gap: 2px;
}

.speed-control small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.speed-control input {
  width: 100%;
}

.speed-control strong {
  color: var(--ink);
  min-width: 3.6rem;
  text-align: right;
}

.level-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.level-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(24, 21, 17, 0.1);
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.level-chip.is-active {
  background: linear-gradient(135deg, var(--accent), #ff8a52);
  border-color: transparent;
  color: white;
}

.level-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.78);
  overflow: hidden;
}

.level-section + .level-section {
  margin-top: 14px;
}

.level-section summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.46);
}

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

.level-section summary strong {
  display: block;
  font-size: 1.08rem;
}

.level-section summary span,
.empty-level,
.empty-stack,
.sentence-card-head p,
.selected-support {
  color: var(--muted);
}

.level-section-body {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.empty-level,
.empty-stack {
  margin: 0;
  padding: 16px;
}

.sentence-card,
.selected-card {
  border: 1px solid rgba(24, 21, 17, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
}

.sentence-card {
  padding: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.sentence-card.is-selected {
  border-color: rgba(243, 106, 45, 0.42);
  box-shadow: 0 10px 24px rgba(243, 106, 45, 0.12);
}

.sentence-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(32, 22, 16, 0.08);
}

.sentence-card-head,
.selected-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.sentence-card-head h3,
.selected-card-head h4 {
  margin: 0 0 4px;
}

.sentence-card-head p {
  margin: 0;
  font-size: 0.9rem;
}

.sentence-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.select-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(24, 21, 17, 0.1);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 600;
}

.sentence-preview {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.sentence-line-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.sentence-line-button:hover .speech-track,
.sentence-line-button:focus-visible .speech-track {
  opacity: 0.92;
}

.sentence-line-button:focus-visible {
  outline: 2px solid rgba(243, 106, 45, 0.24);
  outline-offset: 6px;
  border-radius: 12px;
}

.preview-line {
  display: grid;
  gap: 4px;
}

.preview-line p {
  margin: 0;
  line-height: 1.7;
}

.speech-track {
  display: inline;
  white-space: pre-wrap;
}

.speech-unit,
.speech-gap {
  white-space: pre-wrap;
}

.injected-value {
  display: inline-block;
  padding: 0.04em 0.3em;
  border-radius: 0.45em;
  background: rgba(243, 106, 45, 0.18);
  color: var(--accent-deep);
  font-weight: 700;
}

.speech-unit.is-speaking {
  border-radius: 0.45em;
  background: rgba(45, 127, 113, 0.22);
  color: var(--jade);
  box-shadow: 0 0 0 1px rgba(45, 127, 113, 0.18);
}

.speech-unit.injected-value.is-speaking {
  background: rgba(243, 106, 45, 0.28);
  color: var(--accent-deep);
  box-shadow: 0 0 0 1px rgba(243, 106, 45, 0.2);
}

.preview-target p {
  font-weight: 700;
  color: var(--ink);
}

.preview-target-secondary p {
  color: var(--jade);
}

.sentence-fields {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(24, 21, 17, 0.08);
}

.sentence-field-group {
  display: grid;
  gap: 10px;
}

.sentence-field-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.sentence-field-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sentence-field-inputs-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.selected-stack {
  display: grid;
  gap: 12px;
}

.archived-sessions {
  display: grid;
  gap: 12px;
}

.selected-card {
  padding: 16px;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(243, 106, 45, 0.14);
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 800;
}

.mobile-action-bar {
  display: none;
}

.selected-card p {
  margin: 10px 0 0;
  line-height: 1.65;
}

.archive-session {
  border: 1px solid rgba(24, 21, 17, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  overflow: hidden;
}

.archive-session summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

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

.archive-session-summary strong {
  display: block;
}

.archive-session-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(243, 106, 45, 0.14);
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 700;
}

.archive-session-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.presentation-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: stretch;
  justify-content: center;
  padding: 12px;
  background: rgba(16, 14, 12, 0.96);
  z-index: 9999;
}

.presentation-overlay.is-open {
  display: flex;
}

.presentation-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 980px);
  min-height: 100%;
  gap: 14px;
}

.presentation-topbar,
.presentation-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.presentation-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.presentation-counter {
  color: rgba(255, 247, 239, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.presentation-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff7ef;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.presentation-slide {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  padding: 18px 8px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.presentation-stage {
  position: relative;
  display: grid;
  min-height: 0;
}

.presentation-tapzone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  border: 0;
  background: transparent;
  z-index: 1;
}

.presentation-tapzone-left {
  left: 0;
}

.presentation-tapzone-right {
  right: 0;
}

.presentation-main {
  max-width: 12ch;
  color: #fff9f3;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.2rem, 11vw, 8rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  cursor: pointer;
}

.presentation-main .injected-value {
  background: rgba(255, 164, 120, 0.2);
  color: #fff3e9;
}

.presentation-nav {
  justify-content: center;
}

.presentation-nav .button:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.material-type {
  color: var(--jade);
}

.material-card a,
.footer-links a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.open-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.organiser-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 212, 184, 0.22), rgba(255, 255, 255, 0.66));
}

.organiser-callout p {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.7;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(18, 16, 13, 0.92), rgba(56, 35, 16, 0.92));
  color: #fff7ef;
}

.cta .eyebrow,
.cta p {
  color: rgba(255, 247, 239, 0.72);
}

.cta-copy {
  max-width: 740px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.62);
}

.site-footer strong {
  display: block;
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.reveal {
  animation: rise-in 700ms ease both;
}

.reveal:nth-of-type(2) {
  animation-delay: 80ms;
}

.reveal:nth-of-type(3) {
  animation-delay: 140ms;
}

.reveal:nth-of-type(4) {
  animation-delay: 200ms;
}

.reveal:nth-of-type(5) {
  animation-delay: 260ms;
}

.reveal:nth-of-type(6) {
  animation-delay: 320ms;
}

.reveal:nth-of-type(7) {
  animation-delay: 380ms;
}

.reveal:nth-of-type(8) {
  animation-delay: 440ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .reveal {
    animation: none;
  }

  .button,
  .site-nav a {
    transition: none;
  }
}

@media (max-width: 1060px) {
  .hero,
  .network-layout,
  .builder-layout,
  .prep-layout,
  .cta,
  .organiser-callout {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline,
  .principles-grid,
  .story-grid,
  .benefits-grid,
  .faq-grid,
  .chapter-checklist,
  .open-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prep-sidebar {
    position: static;
  }

  .site-header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 820px) {
  .site-wrap {
    width: min(calc(100% - 14px), var(--content-width));
  }

  .site-header,
  .intro-grid,
  .prep-split-grid,
  .manifesto-grid,
  .chapter-grid,
  .materials-grid,
  .hero-band,
  .mode-toggle,
  .prep-header-bar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    padding: 10px 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header-actions {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-header-actions.is-open {
    display: flex;
  }

  .hero,
  .section,
  .cta {
    padding: 22px 18px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .section h2,
  .cta h2,
  .intro-card h2 {
    font-size: clamp(2.2rem, 10vw, 3.1rem);
  }

  .timeline,
  .principles-grid,
  .story-grid,
  .benefits-grid,
  .faq-grid,
  .field-grid,
  .sentence-field-inputs,
  .chapter-checklist,
  .open-grid {
    grid-template-columns: 1fr;
  }

  .network-map {
    min-height: 320px;
  }

  .output-panel {
    position: static;
  }

  .prep-toolbar,
  .generated-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .prep-session-head,
  .sentence-card-head,
  .selected-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .sentence-card-actions,
  .output-utility-actions {
    width: 100%;
  }

  .speed-control {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .prep-session-fields {
    grid-template-columns: 1fr;
  }

  .output-actions {
    flex-wrap: wrap;
  }

  .output-button-main {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .site-wrap {
    width: min(calc(100% - 10px), var(--content-width));
    padding-bottom: 108px;
  }

  .brand-copy strong {
    font-size: 0.9rem;
  }

  .brand-copy span {
    font-size: 0.77rem;
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .site-nav a {
    padding: 8px 10px;
    font-size: 0.86rem;
    text-align: center;
  }

  .site-preferences {
    width: 100%;
    justify-content: space-between;
  }

  .preference-button,
  .theme-toggle,
  .nav-toggle {
    flex: 1 1 0;
    min-width: 0;
  }

  .speed-control {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label value"
      "slider slider";
    row-gap: 8px;
  }

  .speed-control span {
    grid-area: label;
  }

  .speed-control input {
    grid-area: slider;
  }

  .speed-control strong {
    grid-area: value;
    min-width: 0;
  }

  .select-toggle {
    width: 100%;
    justify-content: center;
  }

  .sentence-card-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .output-utility-actions {
    justify-content: flex-end;
  }

  .presentation-overlay {
    padding: 0;
  }

  .presentation-shell {
    width: 100%;
    padding: 10px;
  }

  .presentation-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .network-map {
    min-height: 280px;
  }

  .map-core,
  .city {
    padding: 8px 11px;
    font-size: 0.8rem;
  }

  .site-footer {
    align-items: flex-start;
  }

  .presentation-main {
    max-width: none;
  }

  .mobile-action-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 90;
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 251, 244, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(26, 16, 10, 0.12);
  }

  html[data-theme="dark"] .mobile-action-bar {
    background: rgba(23, 27, 33, 0.92);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }

  .mobile-action-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-action-summary strong {
    font-size: 0.95rem;
  }

  .mobile-action-summary span {
    color: var(--muted);
    font-size: 0.8rem;
  }

  .mobile-action-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-action-button {
    min-height: 48px;
    width: 100%;
  }

  .mobile-action-bar .button:disabled {
    opacity: 0.45;
    cursor: default;
    transform: none;
  }
}
