@import url("./select.css");

:root {
  --bg: #020806;
  --panel: #07110e;
  --panel-2: #0a1712;
  --line: rgba(48, 255, 142, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f2fff8;
  --muted: #9db5aa;
  --green: #20f48b;
  --green-2: #0ab86a;
  --shadow: rgba(0, 0, 0, 0.55);
  --danger: #ff5f72;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 70% 18%, rgba(21, 188, 100, 0.22), transparent 32rem),
    linear-gradient(180deg, #020806 0%, #030b08 48%, #020806 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(32, 244, 139, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 244, 139, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  background: rgba(2, 8, 6, 0.78);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.main-nav,
.hero-actions,
.trust-row,
.teaser-buy,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand strong,
.hero h1 span,
.micro-line,
.eyebrow {
  color: var(--green);
}

.brand-mark {
  display: inline-grid;
  grid-template-columns: repeat(3, 4px);
  gap: 3px;
  align-items: end;
  width: 20px;
  height: 20px;
}

.brand-mark span {
  display: block;
  width: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--green);
  box-shadow: 0 0 14px rgba(32, 244, 139, 0.65);
}

.brand-mark span:nth-child(1) { height: 8px; opacity: 0.65; }
.brand-mark span:nth-child(2) { height: 13px; opacity: 0.82; }
.brand-mark span:nth-child(3) { height: 18px; }

.main-nav {
  justify-content: center;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a {
  position: relative;
  z-index: 0;
  isolation: isolate;
  transition: color 180ms ease;
}

.main-nav a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 132px;
  height: 58px;
  background: url("./assets/hero-book.jpg") 37% 18% / 430px auto no-repeat;
  opacity: 0;
  filter: blur(7px) saturate(1.35);
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse, #000 28%, transparent 72%);
  mask-image: radial-gradient(ellipse, #000 28%, transparent 72%);
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 220ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--green);
}

.main-nav a:hover::before,
.main-nav a:focus-visible::before {
  opacity: 0.42;
  transform: translate(-50%, -50%) scale(1);
}

.header-actions {
  gap: 10px;
}

.icon-link,
.close-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

.buy-button,
.primary-button,
.ghost-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 8px;
  border: 0;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.buy-button,
.primary-button {
  color: #021008;
  background: linear-gradient(135deg, var(--green), #64ffad);
  box-shadow: 0 0 28px rgba(32, 244, 139, 0.25);
}

.ghost-button,
.outline-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: 34px;
  align-items: stretch;
  max-width: var(--max);
  min-height: 610px;
  margin: 0 auto;
  padding: 38px 24px 0;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  align-self: center;
  padding: 34px 0 54px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #66e9a7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.about-copy h2,
.section-heading h2,
.checkout-teaser h2 {
  margin: 0;
  font-family: "Segoe UI Variable Display", Inter, "Segoe UI", sans-serif;
  font-weight: 560;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(44px, 5.7vw, 74px);
}

.hero h1 span {
  display: block;
}

.hero-text {
  max-width: 570px;
  margin: 24px 0 14px;
  color: #d8e8df;
  font-size: 17px;
  line-height: 1.65;
}

.micro-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: #8ce9ba;
  font-size: 14px;
  font-weight: 580;
}

.micro-line::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(32, 244, 139, 0.42);
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.annual-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.annual-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 104px;
  padding: 14px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--panel, #07130e);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.annual-result:hover,
.annual-result:focus-visible {
  border-color: var(--green);
  background: #102019;
}

.annual-result:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.annual-result-year,
.annual-result-note {
  color: var(--muted);
  font-size: 12px;
}

.annual-result strong {
  color: var(--green);
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

@media (max-width: 380px) {
  .annual-result { padding: 12px 8px; }
  .annual-result strong { font-size: 17px; }
}

.trust-row {
  margin-top: 36px;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
}

.trust-row span {
  display: grid;
  gap: 2px;
  min-width: 118px;
  padding-right: 20px;
  border-right: 1px solid var(--line-soft);
}

.trust-row strong {
  color: var(--green);
  font-size: 28px;
  font-weight: 680;
  line-height: 1;
}

.hero-media {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  min-height: 0;
  border-left: 1px solid var(--line-soft);
}

.hero-media img {
  width: 100%;
  height: auto;
  max-height: 900px;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.hero-media::after {
  display: none;
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 8, 6, 0.92), transparent 25%, transparent 76%, rgba(2, 8, 6, 0.38));
  pointer-events: none;
}

.learning-strip,
.split-section,
.video-section,
.blog-section,
.checkout-teaser,
.newsletter-section,
.contact-section,
.site-footer {
  width: min(calc(100% - 48px), calc(var(--max) - 48px));
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.split-section,
.video-section,
.blog-section,
.newsletter-section,
.contact-section,
.site-footer {
  padding-left: 32px;
  padding-right: 32px;
}

.split-section > *,
.video-grid > *,
.blog-grid > *,
.checkout-teaser > *,
.newsletter-section > *,
.contact-section > *,
.site-footer > * {
  min-width: 0;
}

.learning-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 15, 11, 0.88);
}

.learning-strip .learning-topic {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 24px 18px;
  border-right: 1px solid var(--line-soft);
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.learning-strip .learning-topic:last-child {
  border-right: 0;
}

.learning-topic:hover h2 {
  color: var(--green);
}

.learning-topic:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.learning-strip svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  color: var(--green);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.learning-strip h2,
.blog-card h3,
.video-card strong {
  margin: 0;
  line-height: 1.2;
}

.learning-strip h2 {
  font-size: 16px;
}

.learning-strip p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.split-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 38px;
  padding-top: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line-soft);
}

.portrait-panel {
  min-height: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #24252a;
}

.author-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.about-copy {
  align-self: center;
}

.about-copy h2,
.section-heading h2,
.checkout-teaser h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.about-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.checkout-teaser p,
.contact-form,
.checkout-small {
  color: var(--muted);
  line-height: 1.65;
}

.about-copy p:not(.eyebrow) {
  max-width: 620px;
  font-size: 17px;
}

.video-section,
.blog-section,
.newsletter-section,
.contact-section {
  padding-top: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line-soft);
}

.section-heading {
  max-width: 620px;
  margin-bottom: 28px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.video-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, border-color 160ms ease;
}

.video-thumbnail { position: relative; aspect-ratio: 16 / 9; background: #171b1e; }
.video-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-card .video-play { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 38px; height: 32px; margin: 0; background: #06100ee6; border-radius: 4px; color: white; }
.video-caption { padding: 18px; }
.video-caption span { display: block; }
.video-caption strong { display: block; overflow-wrap: anywhere; }
.video-card:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

.video-card:hover,
.blog-card:hover,
.addon-card:hover {
  transform: translateY(-2px);
  border-color: var(--line);
}

.video-card span,
.blog-card p {
  color: var(--green);
  margin: 0 0 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.blog-card {
  display: block;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  transition: transform 160ms ease, border-color 160ms ease;
}

.blog-card h3 {
  font-size: 22px;
}

.blog-card span {
  display: inline-block;
  margin-top: 32px;
  color: var(--muted);
}

.blog-empty {
  padding: 28px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  background: var(--panel);
}

.blog-empty p { margin: 0; }
.blog-all-link {
  min-width: 170px;
  min-height: 50px;
  margin-top: 24px;
  padding: 0 28px;
  line-height: 1.2;
}

.checkout-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 34px 32px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(6, 17, 13, 0.8);
}

.teaser-buy {
  flex: 0 0 auto;
  gap: 22px;
}

.teaser-buy span {
  font-size: 28px;
  font-weight: 900;
}

.teaser-buy .primary-button {
  min-width: 160px;
  min-height: 52px;
  padding: 0 30px;
  line-height: 1.2;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 36px;
}

.newsletter-section {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(400px, 0.88fr);
  gap: 0;
  align-items: stretch;
  background: rgba(3, 11, 8, 0.9);
}

.discord-intro {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 650px;
  padding: 48px 40px 36px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-right: 0;
  background:
    linear-gradient(90deg, rgba(2, 8, 6, 0.98) 0%, rgba(2, 8, 6, 0.86) 46%, rgba(2, 8, 6, 0.34) 100%),
    linear-gradient(0deg, rgba(2, 8, 6, 0.92), transparent 45%),
    url("./assets/hero-book.jpg") 68% center / cover no-repeat;
}

.discord-copy {
  position: relative;
  z-index: 1;
  max-width: 500px;
}

.discord-copy h2 {
  max-width: 500px;
  margin: 0;
  font-family: "Segoe UI Variable Display", Inter, "Segoe UI", sans-serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 560;
  line-height: 1.02;
}

.discord-copy h2 span { color: var(--green); }

.discord-copy > p:not(.eyebrow) {
  max-width: 470px;
  margin: 24px 0 0;
  color: #b5cbbf;
  font-size: 16px;
  line-height: 1.7;
}

.discord-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 570px;
  margin-top: 64px;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.discord-benefits article {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(2, 8, 6, 0.68);
}

.discord-benefits strong,
.discord-benefits span { display: block; }
.discord-benefits strong { font-size: 14px; line-height: 1.35; }
.discord-benefits span { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.45; }

.discord-motto {
  position: relative;
  z-index: 1;
  margin: 28px 0 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 16px;
  padding: 34px;
  border: 1px solid var(--line-soft);
  background: rgba(7, 17, 14, 0.92);
}

.newsletter-form .primary-button {
  width: 100%;
  min-height: 52px;
  padding: 0 24px;
  line-height: 1.2;
}

.newsletter-form label {
  min-width: 0;
}

.newsletter-form .field-label > span,
.discord-consent legend > span { color: var(--green); }

.newsletter-form .field-label {
  display: inline;
  color: #dff9eb;
}

.discord-form-heading { margin-bottom: 4px; }
.discord-form-heading h3 { margin: 0; font-size: 30px; line-height: 1.1; }
.discord-form-heading > p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); line-height: 1.55; }

.discord-consent {
  min-width: 0;
  margin: 2px 0 0;
  padding: 16px;
  border: 1px solid var(--line-soft);
}

.discord-consent legend {
  max-width: 100%;
  padding: 0 6px;
  color: #dff9eb;
  font-size: 14px;
  font-weight: 800;
}

.discord-consent > p { margin: 2px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.consent-options { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.consent-options label { display: flex; align-items: center; grid-template-columns: none; gap: 8px; font-weight: 650; }
.consent-options input { width: 17px; height: 17px; min-height: 0; margin: 0; padding: 0; accent-color: var(--green); }

.form-privacy {
  margin: -4px 0 0;
  color: #6f887b;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.privacy-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--green);
}

.privacy-check a {
  color: #c8ead8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-check a:hover { color: var(--green); }
.checkout-privacy { margin-top: 16px; }

.form-status {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0;
  color: var(--green);
  font-size: 14px;
  line-height: 1.45;
}

.form-status.is-error {
  color: #ff9aa6;
}

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

.newsletter-form button:disabled,
.contact-form button:disabled,
.order-summary button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.contact-form,
.checkout-form,
.order-summary {
  border: 1px solid var(--line-soft);
  background: rgba(7, 17, 14, 0.92);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
  color: #dff9eb;
  font-size: 14px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  padding: 14px 15px;
  outline: none;
}

textarea {
  min-height: 122px;
  resize: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(32, 244, 139, 0.12);
}

.site-footer {
  min-height: 92px;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}

.site-footer,
.site-footer nav {
  display: flex;
  align-items: center;
}

.site-footer nav {
  gap: 22px;
  flex-wrap: wrap;
}

.site-footer.has-patreon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  align-items: start;
  gap: 20px 40px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.site-footer.has-patreon > :not(.footer-patreon) { grid-column: 1; }
.footer-details { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; align-self: center; }
.footer-patreon {
  grid-column: 2;
  grid-row: 1;
  display: block;
  width: 200px;
  max-width: 100%;
  align-self: center;
}
.footer-patreon img { display: block; width: 100%; height: auto; aspect-ratio: 561 / 818; object-fit: contain; }
.footer-patreon:focus-visible { outline: 2px solid var(--green); outline-offset: 6px; }
@media (max-width: 760px) {
  .site-footer.has-patreon { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .site-footer.has-patreon > .footer-patreon { grid-column: 1; grid-row: auto; }
}

.contact-form .outline-button {
  min-height: 50px;
  padding: 0 28px;
}

.content-page,
.article-page {
  width: min(calc(100% - 48px), calc(var(--max) - 48px));
  margin: 0 auto;
}

.content-page { min-height: calc(100vh - 166px); padding: 82px 0; }
.content-page-heading { max-width: 760px; margin-bottom: 44px; }
.content-page-heading h1,
.article-heading h1,
.not-found h1 {
  margin: 0;
  font-family: "Segoe UI Variable Display", Inter, "Segoe UI", sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 560;
  line-height: 1.02;
}
.content-page-heading > p:last-child { max-width: 650px; margin: 22px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.legal-page { max-width: 960px; }
.legal-page .content-page-heading { max-width: 860px; }
.legal-meta { color: #789184; font-size: 13px; }
.legal-content { display: grid; gap: 18px; }
.legal-section { padding: 26px 28px; border: 1px solid var(--line-soft); background: rgba(7, 17, 14, 0.78); }
.legal-section h2 { margin: 0 0 14px; font-size: 24px; font-weight: 650; line-height: 1.2; }
.legal-section h3 { margin: 22px 0 10px; font-size: 17px; }
.legal-section p { margin: 0 0 12px; color: var(--muted); line-height: 1.7; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.7; }
.legal-section li + li { margin-top: 8px; }
.legal-section a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.legal-table { width: 100%; border-collapse: collapse; color: var(--muted); font-size: 14px; line-height: 1.55; }
.legal-table th, .legal-table td { padding: 13px 14px; border: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.legal-table th { color: #dff9eb; background: rgba(32, 244, 139, 0.04); }
.legal-notice { padding: 16px 18px; border-left: 3px solid var(--green); background: rgba(32, 244, 139, 0.05); color: #c8ead8; line-height: 1.65; }
.unsubscribe-card { max-width: 680px; }
.unsubscribe-card form { margin-top: 22px; }
.public-blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.public-blog-card { display: flex; min-height: 260px; padding: 28px; flex-direction: column; justify-content: space-between; border: 1px solid var(--line-soft); background: var(--panel); transition: transform 160ms ease, border-color 160ms ease; }
.public-blog-card:hover { transform: translateY(-2px); border-color: var(--line); }
.public-blog-card h2 { margin: 0 0 16px; font-size: 28px; line-height: 1.15; }
.public-blog-card div > p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.65; }
.public-blog-card > span { margin-top: 28px; color: var(--muted); font-size: 13px; }
.public-empty { min-height: 220px; display: grid; align-content: center; }
.public-empty h2 { margin: 0 0 10px; color: var(--text); }
.public-empty p { margin: 0; }

.article-page { min-height: calc(100vh - 166px); padding: 74px 0 96px; }
.article-page > article { max-width: 820px; margin: 0 auto; }
.article-heading { padding-bottom: 38px; border-bottom: 1px solid var(--line-soft); }
.back-link { display: inline-block; margin-bottom: 42px; color: #a5eac6; font-size: 14px; }
.article-meta { margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.article-lead { margin: 28px 0 0; color: #cfe3d9; font-size: 20px; line-height: 1.65; }
.article-body { padding-top: 38px; color: #d9e7df; font-size: 18px; line-height: 1.85; }
.article-body p { margin: 0 0 28px; }
.not-found { min-height: 480px; display: grid; align-content: center; justify-items: start; gap: 24px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(10px);
}

.checkout-dialog {
  position: relative;
  width: min(1060px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 24px 90px var(--shadow);
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
}

.checkout-form {
  padding: 34px;
  border-width: 0 1px 0 0;
}

.checkout-form h2 {
  margin: 0 0 24px;
  font-size: 34px;
}

.required-note {
  margin: -14px 0 20px;
  color: var(--muted);
  font-size: 12px;
}

.required-note span,
.required-mark {
  color: var(--green);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-grid .full {
  grid-column: 1 / -1;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.office-combobox {
  position: relative;
  display: block;
  min-width: 0;
}

.office-combobox input[type="search"] {
  padding-right: 38px;
}

.office-combobox input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
  filter: invert(1);
}

.office-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #03100b;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
}

.office-result {
  display: grid;
  width: 100%;
  min-height: 0;
  gap: 4px;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  color: #e9fff3;
  background: transparent;
  text-align: left;
}

.office-result:last-child {
  border-bottom: 0;
}

.office-result:hover,
.office-result:focus-visible,
.office-result.is-active {
  color: #fff;
  background: rgba(32, 244, 139, 0.12);
  outline: none;
}

.office-result strong {
  font-size: 13px;
  line-height: 1.35;
}

.office-result span,
.office-results-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.office-results-empty {
  display: block;
  padding: 14px;
}

.shipping-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: #9eddbd;
  font-size: 13px;
  line-height: 1.5;
}

.shipping-status.is-error {
  color: #ff9aa6;
}

.payment-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  color: #c7ffdf;
  background: rgba(32, 244, 139, 0.08);
}

.order-summary {
  padding: 34px;
  border: 0;
}

.order-summary h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.summary-line,
.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.summary-line {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.quantity-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
}

.quantity-field input {
  width: 92px;
  text-align: center;
}

.calculation-line {
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
}

.calculation-line strong {
  color: var(--text);
  font-size: 15px;
}

.checkout-offers-panel {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.checkout-offers-heading .eyebrow { margin: 0 0 6px; }
.checkout-offers-heading h3 { margin: 0; font-size: 22px; line-height: 1.25; }
.checkout-offers-summary { margin-top: 0; padding: 18px 0; }
.checkout-offers-summary .checkout-offers-heading h3 { font-size: 17px; }
.checkout-offers-summary .checkout-offer-card { padding: 20px 14px 14px; }
.checkout-offers-summary .checkout-offer-content { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
.checkout-offers-summary .checkout-offer-media { width: 64px; }
.checkout-offers-summary .checkout-offer-copy > strong { font-size: 15px; }
.checkout-offers-summary .checkout-offer-action { min-height: 34px; font-size: 11px; }
.checkout-offer-list { display: grid; gap: 16px; }
.checkout-offer-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 22px 18px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(2, 8, 6, 0.58);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.checkout-offer-card:hover { transform: translateY(-1px); border-color: rgba(32, 244, 139, 0.48); }
.checkout-offer-card.is-selected { border-color: var(--green); background: rgba(32, 244, 139, 0.07); }
.checkout-offer-card.is-included {
  border-color: rgba(32, 244, 139, 0.42);
  background: rgba(32, 244, 139, 0.055);
  cursor: default;
}
.checkout-offer-card.is-included:hover { transform: none; border-color: rgba(32, 244, 139, 0.42); }
.checkout-offer-card.is-included .checkout-offer-action {
  color: #b9f7d7;
  border-color: rgba(32, 244, 139, 0.3);
  background: rgba(32, 244, 139, 0.09);
}
.checkout-offer-card > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.checkout-offer-badge { position: absolute; top: 0; left: 18px; max-width: calc(100% - 36px); padding: 6px 10px; border-radius: 0 0 4px 4px; color: #021008; background: var(--green); font-size: 10px; font-weight: 800; line-height: 1.2; text-transform: uppercase; }
.checkout-offer-content { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 15px; margin-top: 8px; }
.checkout-offer-media { display: grid; width: 88px; aspect-ratio: 1; place-items: center; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 4px; color: var(--green); background: rgba(32, 244, 139, 0.05); font-size: 28px; }
.checkout-offer-media img { width: 100%; height: 100%; object-fit: cover; }
.checkout-offer-copy { display: grid; min-width: 0; gap: 6px; }
.checkout-offer-copy > strong { color: var(--text); font-size: 17px; line-height: 1.25; }
.checkout-offer-copy small { color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.45; }
.checkout-offer-prices { display: flex; align-items: baseline; gap: 9px; }
.checkout-offer-prices del { color: var(--muted); font-size: 12px; }
.checkout-offer-prices b { color: var(--green); font-size: 16px; }
.checkout-offer-action { display: inline-flex; width: fit-content; min-height: 38px; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--line); border-radius: 6px; color: #dff9eb; font-size: 12px; font-weight: 750; }
.checkout-offer-card.is-selected .checkout-offer-action { color: #021008; border-color: var(--green); background: var(--green); }
.checkout-offer-action span { font-size: 17px; line-height: 1; }

.summary-offer-line {
  padding: 14px 0;
}
.summary-offer-line > span {
  display: grid;
  gap: 3px;
}
.summary-offer-line small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.summary-offer-line strong {
  color: var(--green);
  font-size: 14px;
  white-space: nowrap;
}

.total-row {
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 20px;
}

.total-row strong {
  color: var(--green);
  font-size: 32px;
}

.pay-button {
  width: 100%;
}

.checkout-small {
  margin: 14px 0 0;
  font-size: 13px;
}

.checkout-success {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 64px 34px;
  text-align: center;
}

.checkout-success h2 {
  margin: 8px 0 24px;
  font-size: 40px;
}

.checkout-success p {
  color: var(--muted);
  line-height: 1.65;
}

.checkout-success strong {
  color: var(--text);
}

.checkout-success .primary-button {
  margin-top: 18px;
}

.js .motion-site [data-reveal] {
  opacity: 0;
  filter: blur(6px);
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 700ms ease var(--reveal-delay, 0ms),
    filter 800ms ease var(--reveal-delay, 0ms),
    transform 850ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, filter, transform;
}

.js .motion-site [data-reveal].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

@media (max-width: 1180px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .site-header .main-nav { display: none; }
  .newsletter-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .newsletter-form,
  .contact-form {
    width: 100%;
  }

  .discord-intro {
    min-height: 560px;
    border-right: 1px solid var(--line-soft);
    border-bottom: 0;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero,
  .split-section,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 28px;
  }

  .hero-media {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .hero-media img {
    min-height: 0;
  }

  .learning-strip,
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .public-blog-grid { grid-template-columns: 1fr; }

  .checkout-form {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
}

@media (max-width: 760px) {
  .checkout-teaser {
    flex-direction: column;
    align-items: flex-start;
  }

  .teaser-buy {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    padding: 16px;
  }

  .brand {
    font-size: 13px;
  }

  .header-actions .icon-link {
    display: inline-grid;
  }

  .header-actions .patreon-link {
    display: inline-grid;
  }

  .site-header .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .buy-button {
    width: 44px;
    padding: 0;
    font-size: 0;
  }

  .buy-button svg {
    margin: 0;
  }

  .hero,
  .learning-strip,
  .split-section,
  .video-section,
  .blog-section,
  .checkout-teaser,
  .newsletter-section,
  .contact-section,
  .site-footer {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .content-page,
  .article-page {
    width: calc(100% - 32px);
  }

  .content-page { padding: 54px 0; }
  .article-page { padding: 48px 0 64px; }
  .content-page-heading h1, .article-heading h1, .not-found h1 { font-size: 40px; }
  .legal-section { padding: 22px 20px; }
  .legal-table { display: block; overflow-x: auto; }
  .public-blog-card { min-height: 230px; padding: 22px; }
  .article-lead { font-size: 18px; }
  .article-body { font-size: 17px; }

  .hero-copy {
    padding-top: 8px;
  }

  .hero-text,
  .about-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .trust-row {
    gap: 14px;
  }

  .trust-row span {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 0 0 12px;
  }

  .learning-strip,
  .video-grid,
  .newsletter-form,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form .primary-button {
    width: 100%;
  }

  .discord-intro {
    min-height: 0;
    padding: 34px 24px;
    background-position: 62% center;
  }

  .discord-copy h2 { font-size: 38px; }
  .discord-benefits { grid-template-columns: 1fr; margin-top: 42px; }
  .newsletter-form { padding: 26px 22px; }
  .consent-options { align-items: flex-start; flex-direction: column; }

  .learning-strip .learning-topic {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding-left: 0;
    padding-right: 0;
  }

  .checkout-teaser,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal {
    padding: 0;
    align-items: stretch;
  }

  .checkout-dialog {
    max-height: 100vh;
    width: 100%;
  }

  .checkout-form,
  .order-summary {
    padding: 24px 16px;
  }

  .checkout-offer-content { grid-template-columns: 72px minmax(0, 1fr); }
  .checkout-offer-media { width: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .motion-site [data-reveal],
  .js .motion-site [data-reveal].is-visible {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
    will-change: auto;
  }
}
.book-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.book-price del { color: var(--muted); font-size: 18px; font-weight: 400; white-space: nowrap; }
.book-price strong { color: var(--green); font-size: 28px; font-weight: 900; white-space: nowrap; }
.teaser-buy .book-price { margin: 0; }
.book-price-compact { justify-content: flex-end; gap: 6px 10px; margin: 0; }
.book-price-compact del { font-size: 14px; }
.book-price-compact strong { font-size: 18px; }
.legal-document { max-width: 1000px; padding-top: 48px; padding-bottom: 64px; color: var(--muted); font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.legal-document h1 { margin: 24px 0 12px; color: var(--text); font-size: 36px; line-height: 1.2; }
.legal-document h2 { margin: 36px 0 12px; color: var(--text); font-size: 22px; line-height: 1.35; }
.legal-document p, .legal-document ul { margin: 0 0 18px; }
.legal-document li + li { margin-top: 8px; }
.legal-document a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.legal-document .version { color: var(--muted); margin-bottom: 24px; }
.legal-navigation { display: flex; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.legal-navigation a { font-size: 14px; }
.legal-navigation a[aria-current="page"] { color: var(--text); font-weight: 700; }
.legal-document .table-wrap { max-width: 100%; overflow-x: auto; margin: 24px 0; }
.legal-document table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; line-height: 1.65; }
.legal-document th, .legal-document td { padding: 12px 14px; border: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.legal-document th { background: var(--panel); color: var(--text); }
.legal-document .form { border: 1px solid var(--line-soft); padding: 24px; margin-top: 20px; }
.legal-document .fill { color: #f6d271; background: #332b13; }
.legal-combined-section + .legal-combined-section { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
@media (max-width: 640px) { .legal-document h1 { font-size: 28px; } .legal-document h2 { font-size: 20px; } }
