:root {
  --ink: #16212f;
  --muted: #596574;
  --line: #d9e0e7;
  --paper: #f7f9fb;
  --white: #ffffff;
  --teal: #1e8a8a;
  --coral: #d65b4a;
  --amber: #e7a72f;
  --blue: #276fbf;
  --shadow: 0 22px 60px rgba(18, 31, 46, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  z-index: -2;
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(9, 18, 28, 0.84), rgba(9, 18, 28, 0.56) 48%, rgba(9, 18, 28, 0.16)),
    linear-gradient(0deg, rgba(9, 18, 28, 0.52), rgba(9, 18, 28, 0.08) 42%);
  z-index: -1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand,
.topbar__links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 800;
  font-size: 1.05rem;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.82rem;
}

.topbar__links {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.topbar__links a {
  padding: 8px 10px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

.topbar__links a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 850;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.22rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero__content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(72px, 13vh, 150px) 0 120px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.97;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

main {
  margin-top: -70px;
  position: relative;
  z-index: 2;
}

.generator,
.free-guides,
.pricing,
.learning-path,
.manual,
.library {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.generator {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.generator__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.generator h2,
.manual h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.selected-plan {
  flex: 0 0 auto;
  margin-bottom: 0;
  padding: 9px 11px;
  border-radius: 8px;
  background: #fff7df;
  color: #8a5a00;
  font-size: 0.86rem;
  font-weight: 850;
}

.agent-form {
  display: grid;
  grid-template-columns: 1.8fr 0.8fr 0.8fr auto;
  gap: 14px;
}

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

.field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

input,
select,
button {
  min-height: 52px;
  border-radius: 8px;
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(30, 138, 138, 0.14);
}

.primary-button {
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 175px;
  border: 0;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.primary-button:hover {
  background: #156f70;
}

.free-guides {
  padding: 42px 0 0;
}

.free-guides__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.free-guides__header h2 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
}

.free-guides__header p:last-child {
  max-width: 360px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.free-guides__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.free-guide-card {
  display: grid;
  gap: 18px;
  align-content: space-between;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.free-guide-card__tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #f5f0ff;
  color: #6341a1;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.free-guide-card h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.free-guide-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.free-guide-button {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--teal);
  font-weight: 850;
  cursor: pointer;
}

.pricing {
  padding: 42px 0 0;
}

.pricing__header {
  margin-bottom: 18px;
}

.pricing__header h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
}

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

.price-card {
  display: grid;
  gap: 24px;
  align-content: space-between;
  min-height: 360px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.price-card--featured {
  border-color: rgba(30, 138, 138, 0.4);
  box-shadow: 0 18px 46px rgba(30, 138, 138, 0.16);
}

.price-card__tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #eef7f6;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.price-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.price {
  margin-bottom: 18px;
  color: var(--muted);
}

.price span {
  color: var(--ink);
  font-size: 2.1rem;
  font-weight: 900;
}

.price-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.price-button {
  width: 100%;
  border: 0;
  background: var(--ink);
  color: var(--white);
  font-weight: 850;
  cursor: pointer;
}

.price-card--featured .price-button {
  background: var(--teal);
}

.checkout-note {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #f0dfb6;
  border-radius: 8px;
  background: #fff9ea;
  color: #6f5120;
  line-height: 1.55;
}

.learning-path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 42px 0;
}

.learning-path article {
  min-height: 168px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.learning-path span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #eef7f6;
  color: var(--teal);
  font-weight: 900;
}

.learning-path h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.learning-path p,
.manual p,
footer p {
  color: var(--muted);
  line-height: 1.6;
}

.manual {
  padding-bottom: 42px;
}

.manual__empty,
.manual__content {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.manual__empty {
  padding: 36px;
}

.manual__content {
  overflow: hidden;
}

.manual-header {
  padding: 34px;
  background: #142334;
  color: var(--white);
}

.manual-header__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.manual-header p {
  color: rgba(255, 255, 255, 0.78);
}

.manual-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.manual-meta span {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  font-weight: 750;
}

.manual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.manual-section {
  padding: 28px 34px;
  border-top: 1px solid var(--line);
}

.manual-section:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.manual-section h3 {
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.manual-section ul,
.manual-section ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.manual-section li + li {
  margin-top: 8px;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--amber);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.save-button,
.text-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 13px;
  font-weight: 800;
  cursor: pointer;
}

.save-button {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: var(--amber);
  color: #18202b;
}

.save-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.text-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--teal);
}

.danger-button {
  border: 1px solid #f0c8c2;
  background: #fff4f2;
  color: #a13e31;
}

.library {
  padding: 0 0 54px;
}

.library__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.library__header h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.library__header p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.library__empty,
.library-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.library__empty {
  padding: 28px;
}

.library__empty h3 {
  margin-bottom: 8px;
}

.library__empty p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.library-card {
  display: grid;
  gap: 18px;
  align-content: space-between;
  min-height: 220px;
  padding: 22px;
}

.library-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.library-card__meta span {
  padding: 7px 9px;
  border-radius: 8px;
  background: #eef7f6;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.library-card h3 {
  margin-bottom: 8px;
  font-size: 1.16rem;
}

.library-card__status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(91, 241, 138, 0.35);
  border-radius: 8px;
  background: rgba(91, 241, 138, 0.1);
  color: #5bf18a;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.library-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.library-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 15, 25, 0.66);
}

.auth-modal__panel {
  position: relative;
  width: min(520px, 100%);
  padding: 30px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.auth-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.auth-modal__panel h2 {
  margin-bottom: 10px;
  font-size: 1.65rem;
}

.auth-modal__panel > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.auth-form__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-session {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.auth-session p,
.auth-message {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-message {
  margin-top: 16px;
  font-weight: 750;
}

.is-hidden {
  display: none !important;
}

footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 32px;
}

@media (max-width: 920px) {
  .agent-form,
  .free-guides__grid,
  .pricing__grid,
  .learning-path,
  .manual-grid,
  .library__grid {
    grid-template-columns: 1fr 1fr;
  }

  .field--wide,
  .primary-button {
    grid-column: 1 / -1;
  }

  .manual-section:nth-child(odd) {
    border-right: 0;
  }
}

@media (max-width: 650px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar__links {
    display: none;
  }

  .account-button {
    margin-left: auto;
  }

  .hero {
    min-height: 82vh;
  }

  .hero__content {
    padding-top: 78px;
  }

  .agent-form,
  .free-guides__grid,
  .pricing__grid,
  .learning-path,
  .manual-grid,
  .library__grid {
    grid-template-columns: 1fr;
  }

  .generator,
  .free-guide-card,
  .price-card,
  .manual__empty,
  .manual-header,
  .manual-section,
  .library__empty,
  .library-card {
    padding: 22px;
  }

  .manual-header__top,
  .free-guides__header,
  .library__header {
    display: grid;
  }

  main {
    margin-top: -46px;
  }
}


/* Premium 2026 redesign */
:root {
  --ink: #f7f8fb;
  --muted: #a6adbb;
  --line: rgba(255, 255, 255, 0.12);
  --paper: #0f1115;
  --white: #171a21;
  --teal: #7cf4c8;
  --amber: #7cf4c8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

body {
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 244, 200, 0.12), transparent 32rem),
    #0f1115;
}

.hero {
  min-height: 96vh;
  background: #0f1115;
}

.hero__image {
  opacity: 0.16;
  filter: saturate(0.7) contrast(1.05);
}

.hero__overlay {
  background:
    linear-gradient(180deg, rgba(15, 17, 21, 0.38), #0f1115 86%),
    linear-gradient(90deg, rgba(15, 17, 21, 0.96), rgba(15, 17, 21, 0.72), rgba(15, 17, 21, 0.9));
}

.topbar {
  position: relative;
  z-index: 3;
}

.brand__mark {
  background: var(--teal);
  color: #0f1115;
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  padding: clamp(72px, 12vh, 136px) 0 150px;
}

.hero__copy {
  min-width: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(3.2rem, 8.2vw, 6.8rem);
  line-height: 0.94;
}

.hero__lead {
  max-width: 720px;
  color: #c6ccd7;
}

.hero__actions,
.hero__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.06);
  color: #f7f8fb;
  font-weight: 850;
}

.hero__button--primary {
  border-color: transparent;
  background: var(--teal);
  color: #0f1115;
}

.hero__metrics span {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #a6adbb;
}

.hero__metrics strong {
  color: #f7f8fb;
}

.hero-product {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(12, 14, 18, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-product__top {
  display: flex;
  gap: 7px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-product__top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
}

.hero-product__body {
  padding: 24px;
}

.hero-product__lesson {
  padding: 22px;
  border-radius: 8px;
  background: #f6f7f2;
  color: #111318;
}

.hero-product__lesson p {
  margin-bottom: 8px;
  color: #5b626f;
  font-weight: 850;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hero-product__lesson h2 {
  margin-bottom: 22px;
  font-size: 1.6rem;
}

.hero-product__progress {
  height: 8px;
  border-radius: 999px;
  background: #d8ded7;
  overflow: hidden;
}

.hero-product__progress span {
  display: block;
  width: 72%;
  height: 100%;
  background: #16b888;
}

.hero-product__steps {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.hero-product__steps span {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #d7dce5;
}

main {
  margin-top: -108px;
}

.generator,
.progress-strip,
.outcomes,
.collections,
.popular,
.free-guides,
.pricing,
.learning-path,
.manual,
.library {
  width: min(1180px, calc(100% - 32px));
}

.generator {
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(23, 26, 33, 0.92);
  backdrop-filter: blur(18px);
}

.agent-form {
  grid-template-columns: minmax(260px, 1.7fr) 0.65fr 0.65fr auto;
}

input,
select {
  border-color: rgba(255, 255, 255, 0.12);
  background: #0f1115;
  color: #f7f8fb;
}

.primary-button,
.price-card--featured .price-button {
  background: var(--teal);
  color: #0f1115;
}

.selected-plan {
  background: rgba(124, 244, 200, 0.13);
  color: var(--teal);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}

.section-heading h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(1.9rem, 4vw, 3.15rem);
  line-height: 1.02;
}

.progress-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 28px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.progress-strip article {
  padding: 22px;
  background: rgba(23, 26, 33, 0.9);
}

.progress-strip span,
.collection-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.progress-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.progress-strip p {
  margin-bottom: 0;
  color: var(--muted);
}

.outcomes,
.collections,
.popular,
.published {
  margin: 54px auto 0;
}

.outcomes__grid,
.popular__grid,
.published__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

.outcome-card,
.collection-card,
.popular-card,
.published-card,
.free-guide-card,
.price-card,
.learning-path article,
.library__empty,
.library-card,
.manual__empty,
.manual__content {
  border-color: rgba(255, 255, 255, 0.1);
  background: #171a21;
  color: #f7f8fb;
}

.outcome-card,
.collection-card,
.popular-card,
.published-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #171a21;
}

.outcome-card {
  display: grid;
  gap: 16px;
  min-height: 280px;
  padding: 24px;
}

.outcome-card__icon,
.popular-card__icon {
  font-size: 1.8rem;
}

.outcome-card h3,
.collection-card h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.outcome-card p,
.collection-card p,
.popular-card small {
  color: var(--muted);
  line-height: 1.55;
}

.outcome-card .text-button {
  align-self: end;
}

.collection-card {
  display: grid;
  min-height: 240px;
  padding: 24px;
  align-content: space-between;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.collection-card strong {
  color: var(--muted);
}

.popular-card {
  display: grid;
  min-height: 160px;
  gap: 12px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
}

.published-card {
  display: grid;
  min-height: 210px;
  gap: 12px;
  padding: 22px;
  color: #f7f8fb;
  text-align: left;
  cursor: pointer;
}

.published-card span {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.published-card h3 {
  margin: 0;
  font-size: 1.16rem;
}

.published-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.published-card small {
  align-self: end;
  color: rgba(247, 248, 251, 0.74);
}

.published-card--empty {
  cursor: default;
}

.popular-card strong {
  font-size: 1.08rem;
}

.text-button,
.free-guide-button {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--teal);
}

.free-guides,
.pricing {
  padding-top: 54px;
}

.learning-path {
  padding-top: 54px;
}

.manual-header {
  background: #111318;
}

footer {
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero__content,
  .progress-strip,
  .outcomes__grid,
  .popular__grid,
  .published__grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 650px) {
  .hero__content,
  .progress-strip,
  .outcomes__grid,
  .popular__grid,
  .published__grid,
  .collections__grid {
    grid-template-columns: 1fr;
  }

  main {
    margin-top: -64px;
  }

  .section-heading {
    display: grid;
  }
}

/* Premium contrast fixes */
body,
.hero,
.topbar,
.hero__copy,
h1,
.brand,
.account-button,
.language-toggle {
  color: #f7f8fb;
}

.topbar__links a {
  color: rgba(247, 248, 251, 0.86);
}

/* Premium Editorial refresh */
:root {
  --ink: #ffffff;
  --muted: #a0a8b8;
  --line: #262b36;
  --paper: #0f1115;
  --white: #171a21;
  --teal: #5bf18a;
  --amber: #5bf18a;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

body {
  background: #0f1115;
  color: #ffffff;
}

.hero {
  min-height: 92vh;
  background: #0f1115;
}

.hero__image {
  opacity: 0.035;
  filter: grayscale(1) contrast(1.15);
}

.hero__overlay {
  background:
    linear-gradient(180deg, rgba(15, 17, 21, 0.18), #0f1115 92%),
    linear-gradient(90deg, rgba(15, 17, 21, 0.96), rgba(15, 17, 21, 0.82));
}

.topbar {
  width: min(1220px, calc(100% - 40px));
  padding-top: 26px;
}

.brand__mark {
  background: #5bf18a;
  color: #0f1115;
}

.topbar__links,
.account-button,
.language-toggle {
  border-color: #262b36;
  background: rgba(23, 26, 33, 0.74);
  box-shadow: none;
}

.topbar__links a:hover,
.account-button:hover,
.language-toggle:hover {
  background: rgba(91, 241, 138, 0.09);
}

.hero__content {
  width: min(1220px, calc(100% - 40px));
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.64fr);
  gap: clamp(42px, 7vw, 100px);
  padding-bottom: 170px;
}

.eyebrow {
  color: #5bf18a;
}

h1 {
  max-width: 960px;
  font-size: clamp(3.5rem, 8.8vw, 7.4rem);
  line-height: 0.92;
}

.hero__lead {
  max-width: 680px;
  color: #a0a8b8;
}

.hero__button,
.primary-button,
.price-button,
.text-button,
.free-guide-button,
.danger-button,
.save-button,
.account-button,
.popular-card,
.published-card {
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
}

.hero__button:hover,
.primary-button:hover,
.price-button:hover,
.text-button:hover,
.free-guide-button:hover,
.save-button:hover,
.popular-card:hover,
.published-card:hover,
.outcome-card:hover,
.collection-card:hover,
.free-guide-card:hover,
.price-card:hover,
.learning-path article:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 241, 138, 0.42);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.hero__button--primary,
.primary-button,
.price-card--featured .price-button {
  background: #5bf18a;
  color: #0f1115;
}

.primary-button:hover,
.hero__button--primary:hover,
.price-card--featured .price-button:hover {
  background: #6dff9a;
}

.hero-product {
  border-color: #262b36;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #111318;
}

.hero-product__top {
  align-items: center;
  border-color: #262b36;
}

.hero-product__top strong {
  margin-left: auto;
  color: #a0a8b8;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-product__lesson {
  border: 1px solid #262b36;
  background: #0f1115;
  color: #ffffff;
}

.hero-product__lesson p {
  color: #5bf18a;
}

.hero-product__lesson h2 {
  color: #ffffff;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.24;
}

.hero-product__prompt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-product__prompt span {
  padding: 8px 10px;
  border: 1px solid #262b36;
  border-radius: 8px;
  color: #a0a8b8;
  font-size: 0.82rem;
}

.hero-product__progress {
  display: none;
}

.hero-product__steps span {
  border: 1px solid #262b36;
  background: #171a21;
  color: #a0a8b8;
}

.hero-product__steps strong {
  color: #ffffff;
}

main {
  margin-top: -116px;
}

.tool-strip,
.generator,
.progress-strip,
.outcomes,
.collections,
.popular,
.published,
.free-guides,
.pricing,
.learning-path,
.manual,
.library,
footer {
  width: min(1220px, calc(100% - 40px));
}

.tool-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 18px;
  padding: 18px 22px;
  border: 1px solid #262b36;
  border-radius: 8px;
  background: rgba(23, 26, 33, 0.94);
}

.tool-strip p {
  margin: 0;
  color: #a0a8b8;
  font-size: 0.9rem;
  font-weight: 780;
}

.tool-strip__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.tool-strip__logos span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #262b36;
  border-radius: 8px;
  background: #0f1115;
  color: #ffffff;
  font-weight: 850;
}

.generator,
.progress-strip,
.outcome-card,
.collection-card,
.popular-card,
.published-card,
.free-guide-card,
.price-card,
.learning-path article,
.library__empty,
.library-card,
.manual__empty,
.manual__content,
.auth-modal__panel {
  border-color: #262b36;
  background: #171a21;
}

.generator {
  padding: clamp(22px, 3vw, 34px);
}

input,
select {
  border-color: #262b36;
  background: #0f1115;
  color: #ffffff;
}

input:focus,
select:focus {
  border-color: #5bf18a;
  box-shadow: 0 0 0 4px rgba(91, 241, 138, 0.12);
}

.selected-plan,
.price-card__tag,
.free-guide-card__tag,
.library-card__meta span,
.learning-path span,
.manual-meta span {
  background: rgba(91, 241, 138, 0.1);
  color: #5bf18a;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.free-guides__header h2,
.pricing__header h2,
.library__header h2,
.generator h2,
.manual h2 {
  color: #ffffff;
}

.progress-strip {
  margin-top: 30px;
  border-color: #262b36;
  background: #262b36;
}

.progress-strip article {
  background: #171a21;
}

.outcomes,
.collections,
.popular,
.published {
  margin-top: 70px;
}

.outcomes__grid,
.popular__grid,
.published__grid,
.collections__grid,
.free-guides__grid,
.pricing__grid,
.library__grid,
.learning-path {
  gap: 18px;
}

.outcome-card,
.collection-card,
.popular-card,
.published-card,
.free-guide-card,
.price-card,
.learning-path article,
.library-card {
  min-height: 220px;
}

.outcome-card__icon,
.popular-card__icon {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #262b36;
  border-radius: 8px;
  color: #5bf18a;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.popular-card strong,
.published-card h3,
.outcome-card h3,
.collection-card h3,
.free-guide-card h3,
.price-card h3,
.library-card h3 {
  color: #ffffff;
}

.popular-card small,
.published-card p,
.outcome-card p,
.collection-card p,
.free-guide-card p,
.library-card p,
.price,
.price-card ul,
.checkout-note,
.manual-section ul,
.manual-section ol,
.free-guides__header p:last-child,
.learning-path p,
.manual p,
footer p {
  color: #a0a8b8;
}

.text-button,
.free-guide-button {
  border-color: #262b36;
  background: #0f1115;
  color: #5bf18a;
}

.price-button {
  background: #ffffff;
  color: #0f1115;
}

.price-card--featured {
  border-color: rgba(91, 241, 138, 0.5);
  box-shadow: inset 0 0 0 1px rgba(91, 241, 138, 0.12);
}

.price span {
  color: #ffffff;
}

.checkout-note {
  border-color: #262b36;
  background: #111318;
}

.manual-header {
  background: #0f1115;
}

.manual-section {
  border-color: #262b36;
}

.auth-modal__panel {
  color: #ffffff;
}

.auth-modal__close {
  border-color: #262b36;
  background: #0f1115;
  color: #ffffff;
}

.danger-button {
  border-color: rgba(255, 255, 255, 0.14);
  background: #0f1115;
  color: #ffffff;
}

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

  .tool-strip {
    display: grid;
  }

  .tool-strip__logos {
    justify-content: flex-start;
  }
}

@media (max-width: 650px) {
  .topbar,
  .hero__content,
  .tool-strip,
  .generator,
  .progress-strip,
  .outcomes,
  .collections,
  .popular,
  .published,
  .free-guides,
  .pricing,
  .learning-path,
  .manual,
  .library,
  footer {
    width: min(100% - 28px, 1220px);
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.6rem);
  }
}

/* Identity pass: AI-specific hero, proof, asymmetric rhythm */
.hero__content {
  align-items: stretch;
}

.hero__copy {
  align-self: center;
}

.hero-product {
  position: relative;
  align-self: center;
  min-height: 560px;
  overflow: hidden;
}

.hero-product::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(91, 241, 138, 0.18), transparent 32%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.08), transparent 38%);
  pointer-events: none;
}

.hero-product__body {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.ai-demo {
  display: grid;
  gap: 14px;
}

.ai-demo__input,
.ai-demo__output,
.hero-product__shots article {
  border: 1px solid #262b36;
  border-radius: 8px;
  background: #0f1115;
}

.ai-demo__input {
  padding: 18px;
}

.ai-demo__input span,
.ai-demo__output > span,
.hero-product__shots span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #a0a8b8;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-demo__input strong {
  display: block;
  color: #ffffff;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.28;
}

.ai-demo__flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 12px;
}

.ai-demo__flow span {
  height: 3px;
  border-radius: 999px;
  background: #262b36;
  overflow: hidden;
  position: relative;
}

.ai-demo__flow span::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 42%;
  border-radius: inherit;
  background: #5bf18a;
  animation: thinkingPulse 2.4s ease-in-out infinite;
}

.ai-demo__flow span:nth-child(2)::after {
  animation-delay: 0.25s;
}

.ai-demo__flow span:nth-child(3)::after {
  animation-delay: 0.5s;
}

.ai-demo__output {
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(91, 241, 138, 0.1), transparent 42%),
    #10140f;
  border-color: rgba(91, 241, 138, 0.34);
}

.ai-demo__output > span {
  color: #5bf18a;
}

.ai-demo__output h2 {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1;
}

.ai-demo__checklist {
  display: grid;
  gap: 8px;
}

.ai-demo__checklist p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(91, 241, 138, 0.16);
  border-radius: 8px;
  background: rgba(15, 17, 21, 0.72);
  color: #dfe4ec;
}

.ai-demo__checklist strong {
  color: #5bf18a;
  font-size: 0.78rem;
}

.hero-product__shots {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
}

.hero-product__shots article {
  min-height: 112px;
  padding: 16px;
}

.hero-product__shots article:first-child {
  grid-row: span 2;
  min-height: 236px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    #0f1115;
}

.hero-product__shots span {
  color: #ffffff;
}

.hero-product__shots p {
  margin: 0;
  color: #a0a8b8;
  line-height: 1.5;
}

.tool-strip {
  margin-bottom: 12px;
}

.tool-strip__logos span {
  gap: 8px;
  padding-left: 8px;
}

.tool-strip__logos strong {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #171a21;
  color: #a0a8b8;
  font-size: 0.72rem;
}

.proof-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  gap: 1px;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto 22px;
  border: 1px solid #262b36;
  border-radius: 8px;
  overflow: hidden;
  background: #262b36;
}

.proof-strip article {
  padding: 22px;
  background: #171a21;
}

.proof-strip strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  line-height: 1;
}

.proof-strip article:first-child strong,
.proof-strip article:nth-child(4) strong {
  color: #5bf18a;
}

.proof-strip span {
  color: #a0a8b8;
  font-size: 0.9rem;
}

.generator {
  margin-top: 0;
}

.outcomes__grid {
  grid-template-columns: 1.45fr 1fr 1fr;
}

.outcome-card:first-child {
  grid-row: span 2;
  min-height: 460px;
}

.outcome-card:first-child h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.outcome-card:nth-child(4) {
  grid-column: span 2;
}

.collections__grid {
  grid-template-columns: 1.25fr 0.85fr 1fr;
}

.collection-card:first-child {
  min-height: 300px;
}

.popular__grid,
.published__grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.popular-card:first-child,
.published-card:first-child {
  grid-column: span 2;
  min-height: 230px;
}

.popular-card:first-child strong,
.published-card:first-child h3 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.free-guides__grid {
  grid-template-columns: 1fr 1fr 1.2fr;
}

.free-guide-card:nth-child(3),
.free-guide-card:nth-child(6) {
  min-height: 320px;
}

.library {
  opacity: 0.92;
}

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

.library-card {
  min-height: 190px;
}

@keyframes thinkingPulse {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  30%,
  70% {
    opacity: 1;
  }
  100% {
    transform: translateX(250%);
    opacity: 0;
  }
}

@media (max-width: 920px) {
  .hero-product {
    min-height: auto;
  }

  .proof-strip,
  .outcomes__grid,
  .popular__grid,
  .published__grid,
  .free-guides__grid,
  .library__grid {
    grid-template-columns: 1fr 1fr;
  }

  .outcome-card:first-child,
  .outcome-card:nth-child(4),
  .popular-card:first-child,
  .published-card:first-child {
    grid-column: auto;
    grid-row: auto;
    min-height: 220px;
  }
}

@media (max-width: 650px) {
  .hero-product__shots,
  .proof-strip,
  .outcomes__grid,
  .collections__grid,
  .popular__grid,
  .published__grid,
  .free-guides__grid,
  .library__grid {
    grid-template-columns: 1fr;
  }

  .hero-product__shots article:first-child {
    grid-row: auto;
    min-height: 150px;
  }

  .proof-strip article {
    padding: 18px;
  }
}

/* TutorIA signature: stepped green signal and premium tutorial cards */
.hero::after,
.featured-tutorial::before {
  content: "";
  position: absolute;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(91, 241, 138, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 241, 138, 0.2) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 72%, transparent);
}

.hero::after {
  right: max(24px, calc((100vw - 1220px) / 2));
  bottom: 90px;
  width: min(460px, 38vw);
  height: 230px;
  opacity: 0.34;
  transform: skewY(-8deg);
}

.brand-signal {
  display: grid;
  grid-template-columns: 78px 118px 58px 148px 92px;
  align-items: end;
  gap: 8px;
  max-width: 520px;
  margin-top: 30px;
}

.brand-signal span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #262b36;
  position: relative;
  overflow: hidden;
}

.brand-signal span::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 62%;
  border-radius: inherit;
  background: #5bf18a;
  transform: translateX(-120%);
  animation: signalSweep 3.8s ease-in-out infinite;
}

.brand-signal span:nth-child(2)::after {
  animation-delay: 0.16s;
}

.brand-signal span:nth-child(3)::after {
  animation-delay: 0.32s;
}

.brand-signal span:nth-child(4)::after {
  animation-delay: 0.48s;
}

.brand-signal span:nth-child(5)::after {
  animation-delay: 0.64s;
}

.featured-tutorial {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 70px);
  width: min(1220px, calc(100% - 40px));
  margin: 78px auto 0;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(91, 241, 138, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(91, 241, 138, 0.1), transparent 38%),
    #111318;
  overflow: hidden;
}

.featured-tutorial::before {
  right: -80px;
  top: -20px;
  width: 420px;
  height: 220px;
  opacity: 0.24;
  transform: rotate(-8deg);
}

.featured-tutorial__visual,
.featured-tutorial__copy {
  position: relative;
  z-index: 1;
}

.featured-tutorial__visual {
  display: grid;
  gap: 14px;
}

.featured-tutorial__screen,
.featured-tutorial__result {
  border: 1px solid #262b36;
  border-radius: 8px;
  background: #0f1115;
}

.featured-tutorial__screen {
  min-height: 300px;
  padding: 22px;
}

.featured-tutorial__screen span,
.featured-tutorial__result span {
  display: inline-flex;
  margin-bottom: 14px;
  color: #5bf18a;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-tutorial__screen p {
  max-width: 380px;
  margin-bottom: 28px;
  color: #ffffff;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  line-height: 1.28;
}

.featured-tutorial__screen div {
  height: 10px;
  margin-top: 12px;
  border-radius: 999px;
  background: #262b36;
}

.featured-tutorial__screen div:nth-of-type(1) {
  width: 88%;
}

.featured-tutorial__screen div:nth-of-type(2) {
  width: 64%;
}

.featured-tutorial__screen div:nth-of-type(3) {
  width: 42%;
  background: #5bf18a;
}

.featured-tutorial__result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.featured-tutorial__result span {
  margin: 0;
  color: #a0a8b8;
}

.featured-tutorial__result strong {
  color: #5bf18a;
  font-size: 1.25rem;
}

.featured-tutorial__copy {
  align-self: center;
}

.featured-tutorial__copy h2 {
  max-width: 680px;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 0.96;
}

.featured-tutorial__copy > p:not(.eyebrow) {
  max-width: 620px;
  color: #a0a8b8;
  font-size: 1.04rem;
  line-height: 1.7;
}

.featured-tutorial__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.featured-tutorial__meta span {
  padding: 8px 10px;
  border: 1px solid #262b36;
  border-radius: 8px;
  background: #0f1115;
  color: #dfe4ec;
  font-size: 0.88rem;
  font-weight: 800;
}

.featured-tutorial__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: #5bf18a;
  color: #0f1115;
  font-weight: 900;
  cursor: pointer;
}

.popular-card,
.published-card {
  position: relative;
  overflow: hidden;
}

.popular-card::after,
.published-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #262b36;
}

.popular-card:first-child::after,
.published-card:first-child::after {
  background: #5bf18a;
}

.popular-card em {
  align-self: end;
  color: #5bf18a;
  font-style: normal;
  font-weight: 900;
}

.popular-card:first-child,
.published-card:first-child {
  background:
    linear-gradient(135deg, rgba(91, 241, 138, 0.12), transparent 42%),
    #171a21;
}

.pricing {
  margin-top: 74px;
  padding-top: 0;
}

@keyframes signalSweep {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  20%,
  72% {
    opacity: 1;
  }
  100% {
    transform: translateX(180%);
    opacity: 0;
  }
}

@media (max-width: 920px) {
  .featured-tutorial {
    grid-template-columns: 1fr;
  }

  .brand-signal {
    grid-template-columns: 64px 88px 44px 112px 70px;
  }
}

@media (max-width: 650px) {
  .hero::after {
    display: none;
  }

  .brand-signal {
    grid-template-columns: 1fr 1.4fr 0.7fr;
  }

  .brand-signal span:nth-child(n + 4) {
    display: none;
  }

  .featured-tutorial {
    width: min(100% - 28px, 1220px);
    margin-top: 54px;
  }
}

/* Memorability pass: softer emotion, terminal intelligence, stronger content desire */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -160px;
  right: 4vw;
  width: min(720px, 58vw);
  height: min(720px, 58vw);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(91, 241, 138, 0.22), rgba(91, 241, 138, 0.08) 34%, transparent 68%);
  filter: blur(34px);
  opacity: 0.72;
}

.ai-terminal {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(91, 241, 138, 0.18);
  border-radius: 8px;
  background: rgba(15, 17, 21, 0.82);
}

.ai-terminal code {
  color: #9dfbb6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(4px);
  animation: terminalLine 4.2s ease-in-out infinite;
}

.ai-terminal code:nth-child(2) {
  animation-delay: 0.5s;
}

.ai-terminal code:nth-child(3) {
  animation-delay: 1s;
}

.tool-strip__logos span:nth-child(1),
.tool-strip__logos span:nth-child(2),
.tool-strip__logos span:nth-child(6) {
  border-color: rgba(91, 241, 138, 0.22);
}

.tool-strip__logos span:nth-child(1) strong,
.tool-strip__logos span:nth-child(2) strong,
.tool-strip__logos span:nth-child(6) strong {
  background: rgba(91, 241, 138, 0.12);
  color: #5bf18a;
}

.outcome-card:first-child {
  background:
    linear-gradient(160deg, rgba(91, 241, 138, 0.14), transparent 48%),
    #171a21;
  border-color: rgba(91, 241, 138, 0.32);
}

.outcome-card:first-child .outcome-card__icon {
  background: #5bf18a;
  color: #0f1115;
}

.popular-card small {
  max-width: 320px;
}

.popular-card:first-child small,
.published-card:first-child small {
  color: #dfe4ec;
}

.success-cases {
  width: min(1220px, calc(100% - 40px));
  margin: 74px auto 0;
}

.success-cases__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr;
  gap: 18px;
}

.success-cases__grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid #262b36;
  border-radius: 8px;
  background: #171a21;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.success-cases__grid article:first-child {
  min-height: 310px;
  background:
    linear-gradient(145deg, rgba(91, 241, 138, 0.11), transparent 44%),
    #171a21;
}

.success-cases__grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 241, 138, 0.42);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.success-cases__grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: #5bf18a;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.success-cases__grid h3 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: clamp(1.2rem, 2.4vw, 1.85rem);
  line-height: 1.08;
}

.success-cases__grid p {
  margin: 0;
  color: #a0a8b8;
  line-height: 1.6;
}

.pricing {
  margin-top: 76px;
}

.library {
  padding-top: 64px;
}

@keyframes terminalLine {
  0%,
  12% {
    opacity: 0;
    transform: translateY(4px);
  }
  22%,
  76% {
    opacity: 1;
    transform: translateY(0);
  }
  92%,
  100% {
    opacity: 0.55;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .success-cases__grid {
    grid-template-columns: 1fr 1fr;
  }

  .success-cases__grid article:first-child {
    min-height: 230px;
  }
}

@media (max-width: 650px) {
  .hero::before {
    width: 420px;
    height: 420px;
    right: -170px;
    top: -80px;
    opacity: 0.55;
  }

  .success-cases {
    width: min(100% - 28px, 1220px);
  }

  .success-cases__grid {
    grid-template-columns: 1fr;
  }
}

/* Premium refinement: hero wow, content showcase, softer section contrast */
.hero-product {
  isolation: isolate;
}

.hero-orbit {
  position: absolute;
  inset: 34px;
  z-index: -1;
  border: 1px solid rgba(91, 241, 138, 0.22);
  border-radius: 50%;
  opacity: 0.78;
  animation: orbitFloat 8s ease-in-out infinite;
}

.hero-orbit::before,
.hero-orbit::after,
.hero-orbit span {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-orbit::before {
  inset: 15%;
  border: 1px solid rgba(91, 241, 138, 0.12);
}

.hero-orbit::after {
  top: 11%;
  right: 18%;
  width: 12px;
  height: 12px;
  background: #5bf18a;
  box-shadow: 0 0 28px rgba(91, 241, 138, 0.84);
}

.hero-orbit span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 17, 21, 0.86);
}

.hero-orbit span:nth-child(1) {
  left: 7%;
  top: 38%;
  width: 72px;
  height: 72px;
}

.hero-orbit span:nth-child(2) {
  right: 8%;
  bottom: 22%;
  width: 48px;
  height: 48px;
}

.hero-orbit span:nth-child(3) {
  left: 44%;
  bottom: 5%;
  width: 28px;
  height: 28px;
  border-color: rgba(91, 241, 138, 0.35);
}

.hero-product__body {
  transform: perspective(1200px) rotateX(2deg) rotateY(-4deg);
  transform-origin: center;
}

.ai-demo__output {
  box-shadow:
    0 0 0 1px rgba(91, 241, 138, 0.08),
    0 24px 90px rgba(91, 241, 138, 0.08);
}

.collections,
.popular,
.published,
.free-guides,
.learning-path,
.success-cases,
.email-capture,
.pricing,
.library {
  position: relative;
}

.popular {
  width: min(1220px, calc(100% - 40px));
  padding: 34px;
  border: 1px solid #262b36;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    #111318;
}

.popular__grid {
  grid-template-columns: 1.32fr 1fr 1fr;
  align-items: stretch;
}

.popular-card {
  min-height: 230px;
}

.popular-card--hero {
  grid-row: span 2;
  min-height: 496px;
  padding: 26px;
}

.popular-card__visual {
  display: grid;
  gap: 10px;
  min-height: 108px;
  margin-bottom: 2px;
  padding: 16px;
  border: 1px solid #262b36;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(91, 241, 138, 0.1), transparent 48%),
    #0f1115;
}

.popular-card__visual span {
  height: 9px;
  border-radius: 999px;
  background: #262b36;
}

.popular-card__visual span:nth-child(1) {
  width: 82%;
}

.popular-card__visual span:nth-child(2) {
  width: 58%;
}

.popular-card__visual span:nth-child(3) {
  width: 36%;
  background: #5bf18a;
}

.popular-card:not(.popular-card--hero) .popular-card__visual {
  display: none;
}

.popular-card__label {
  width: fit-content;
  color: #a0a8b8;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.popular-card--hero .popular-card__label {
  color: #5bf18a;
}

.popular-card--hero strong {
  max-width: 440px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 0.95;
}

.popular-card--hero small {
  font-size: 0.96rem;
  line-height: 1.55;
}

.email-capture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: 28px;
  align-items: end;
  width: min(1220px, calc(100% - 40px));
  margin: 76px auto 0;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(91, 241, 138, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(91, 241, 138, 0.1), transparent 38%),
    #111318;
}

.email-capture h2 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  line-height: 1.02;
}

.email-capture__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.email-capture__form input {
  min-width: 0;
}

.email-capture__form button {
  border: 0;
  padding: 0 18px;
  background: #5bf18a;
  color: #0f1115;
  font-weight: 900;
  cursor: pointer;
}

.pricing {
  margin-top: 64px;
}

@keyframes orbitFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

@media (max-width: 920px) {
  .hero-product__body {
    transform: none;
  }

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

  .popular-card--hero {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 360px;
  }

  .email-capture {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .hero-orbit {
    inset: 22px;
  }

  .popular,
  .email-capture {
    width: min(100% - 28px, 1220px);
    padding: 22px;
  }

  .popular__grid,
  .email-capture__form {
    grid-template-columns: 1fr;
  }

  .popular-card--hero {
    min-height: 320px;
  }
}

/* Authority pass: stronger mark, live signals, honest proof */
.brand__mark {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 9px;
}

.brand__mark::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 18px;
  height: 2px;
  background: #0f1115;
  transform: rotate(-24deg);
  transform-origin: left center;
  opacity: 0.78;
}

.brand__mark span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0f1115;
}

.brand__mark span:nth-child(2) {
  justify-self: end;
  margin-top: 3px;
}

.brand__mark span:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
  width: 9px;
  height: 9px;
}

.hero-activity {
  display: grid;
  gap: 9px;
  max-width: 520px;
  margin-top: 22px;
}

.hero-activity p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #a0a8b8;
  font-size: 0.92rem;
}

.hero-activity span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #5bf18a;
  box-shadow: 0 0 18px rgba(91, 241, 138, 0.72);
  animation: livePulse 2.4s ease-in-out infinite;
}

.hero-activity p:nth-child(2) span {
  animation-delay: 0.35s;
}

.hero-activity p:nth-child(3) span {
  animation-delay: 0.7s;
}

.audience-proof {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto 22px;
  padding: 16px 20px;
  border: 1px solid #262b36;
  border-radius: 8px;
  background: rgba(17, 19, 24, 0.82);
}

.audience-proof span {
  color: #dfe4ec;
  line-height: 1.6;
}

.popular-card__label {
  border: 1px solid #262b36;
  border-radius: 8px;
  padding: 6px 8px;
  background: #0f1115;
}

.popular-card--hero .popular-card__label {
  border-color: rgba(91, 241, 138, 0.28);
  background: rgba(91, 241, 138, 0.1);
}

.popular-card small::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #5bf18a;
  box-shadow: 0 0 12px rgba(91, 241, 138, 0.6);
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 650px) {
  .audience-proof {
    width: min(100% - 28px, 1220px);
  }
}

/* Product credibility pass: warmer route band, stronger CTA, human tutorial signals */
.hero__button--primary {
  min-height: 60px;
  padding: 0 24px;
  box-shadow:
    0 0 0 1px rgba(91, 241, 138, 0.24),
    0 18px 52px rgba(91, 241, 138, 0.18);
}

.hero__button--primary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-radius: 50%;
  background: #0f1115;
}

.proof-strip {
  border-color: rgba(91, 241, 138, 0.24);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.18);
}

.proof-strip article:first-child,
.proof-strip article:nth-child(4) {
  background:
    linear-gradient(180deg, rgba(91, 241, 138, 0.08), transparent),
    #171a21;
}

.proof-strip strong {
  letter-spacing: 0;
}

.learning-path {
  margin-top: 72px;
  padding: 34px;
  border: 1px solid #262b36;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(160, 168, 184, 0.08), transparent 42%),
    #141820;
}

.learning-path article {
  background: rgba(15, 17, 21, 0.78);
}

.popular-card__social {
  width: fit-content;
  padding: 7px 9px;
  border: 1px solid rgba(91, 241, 138, 0.2);
  border-radius: 8px;
  background: rgba(91, 241, 138, 0.08);
  color: #dfffe8;
  font-size: 0.8rem;
  font-weight: 850;
}

.popular-card--hero .popular-card__social {
  color: #5bf18a;
}

@media (max-width: 650px) {
  .hero__button--primary {
    width: 100%;
  }

  .learning-path {
    width: min(100% - 28px, 1220px);
    padding: 22px;
  }
}


/* Visual tutorial format */
.manual-header--editorial {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(91, 241, 138, 0.24);
}

.manual-header--editorial::after {
  content: "";
  position: absolute;
  inset: auto -20% -70% 28%;
  height: 220px;
  background: radial-gradient(circle, rgba(91, 241, 138, 0.18), transparent 68%);
  pointer-events: none;
}

.visual-brief,
.visual-map,
.example-panel,
.editorial-layout,
.prep-checklist,
.prompt-panel {
  margin-top: 18px;
}

.visual-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid #262b36;
  border-radius: 8px;
  background: #101319;
}

.visual-brief__label,
.example-panel span,
.prompt-panel span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #5bf18a;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.visual-brief h3,
.prompt-panel h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.prompt-panel__hint {
  margin: 10px 0 0;
  color: #a0a8b8;
  font-size: 0.95rem;
  line-height: 1.5;
}

.prompt-panel__hint strong {
  color: #d8ffe3;
}

.prep-checklist {
  padding: 20px;
  border: 1px solid rgba(91, 241, 138, 0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(91, 241, 138, 0.1), rgba(23, 26, 33, 0.96));
}

.prep-checklist > div:first-child span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #5bf18a;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.prep-checklist h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.prep-checklist__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.prep-checklist article {
  padding: 14px;
  border: 1px solid #262b36;
  border-radius: 8px;
  background: #101319;
}

.prep-checklist label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #ffffff;
  font-weight: 900;
}

.prep-checklist input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #5bf18a;
}

.prep-checklist p {
  margin: 10px 0 0 28px;
  color: #a0a8b8;
  line-height: 1.5;
}

.prep-checklist a,
.prep-checklist button {
  display: inline-flex;
  margin: 12px 8px 0 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5bf18a;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.visual-brief__chips {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
}

.visual-brief__chips span {
  padding: 9px 10px;
  border: 1px solid #262b36;
  border-radius: 8px;
  background: rgba(91, 241, 138, 0.08);
  color: #d8ffe3;
  font-size: 0.86rem;
  font-weight: 750;
}

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

.visual-map article,
.example-panel > div,
.manual-side section,
.prompt-panel,
.manual-section--check {
  border: 1px solid #262b36;
  border-radius: 8px;
  background: #171a21;
}

.visual-map article {
  position: relative;
  min-height: 160px;
  padding: 18px;
}

.visual-map article::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 18px;
  width: 44px;
  height: 2px;
  background: #5bf18a;
  box-shadow: 0 0 24px rgba(91, 241, 138, 0.55);
}

.visual-map span {
  color: #5bf18a;
  font-size: 0.8rem;
  font-weight: 950;
}

.visual-map strong {
  display: block;
  margin-top: 18px;
  color: #ffffff;
  font-size: 1.05rem;
}

.visual-map p,
.example-panel p,
.manual-side p,
.prompt-panel pre {
  color: #a0a8b8;
}

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

.example-panel > div {
  min-height: 150px;
  padding: 18px;
}

.example-panel__why {
  background: linear-gradient(180deg, rgba(91, 241, 138, 0.1), rgba(91, 241, 138, 0.03)), #171a21 !important;
}

.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.55fr);
  gap: 18px;
}

.manual-section--timeline ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.manual-section--timeline li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #262b36;
  border-radius: 8px;
  background: #101319;
}

.manual-section--timeline li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #5bf18a;
  color: #0f1115;
  font-weight: 950;
}

.manual-section--timeline li p {
  margin: 0;
}

.manual-side {
  display: grid;
  gap: 18px;
}

.manual-side section,
.prompt-panel {
  padding: 18px;
}

.manual-side h3,
.manual-section h3 {
  color: #ffffff;
}

.prompt-panel pre {
  overflow-x: auto;
  margin: 16px 0 0;
  padding: 16px;
  border: 1px solid #262b36;
  border-radius: 8px;
  background: #0f1115;
  white-space: pre-wrap;
  line-height: 1.55;
}

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

@media (max-width: 760px) {
  .visual-brief,
  .visual-map,
  .example-panel,
  .prep-checklist__grid,
  .editorial-layout,
  .editorial-layout--bottom {
    grid-template-columns: 1fr;
  }
}


/* Operational tutorial layer */
.walkthrough-list {
  display: grid;
  gap: 14px;
}

.walkthrough-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid #262b36;
  border-radius: 8px;
  background: #101319;
}

.walkthrough-step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #5bf18a;
  color: #0f1115;
  font-weight: 950;
}

.walkthrough-step h4 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1rem;
}

.walkthrough-step p,
.walkthrough-step small {
  color: #a0a8b8;
}

.walkthrough-step small {
  display: block;
  margin-top: 10px;
  font-weight: 800;
}

.walkthrough-step pre,
.copy-block pre,
.deliverable-panel pre {
  overflow-x: auto;
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid #262b36;
  border-radius: 8px;
  background: #0f1115;
  color: #d8ffe3;
  white-space: pre-wrap;
  line-height: 1.55;
}

.copy-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #262b36;
}

.copy-block strong,
.deliverable-panel span {
  color: #5bf18a;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.copy-block__hint {
  display: block;
  margin-top: 8px;
  color: #a0a8b8;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.45;
}

.deliverable-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(91, 241, 138, 0.32);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(91, 241, 138, 0.08), rgba(91, 241, 138, 0.02)), #171a21;
}

.deliverable-panel h3 {
  margin: 8px 0;
  color: #ffffff;
}

.deliverable-panel p {
  color: #a0a8b8;
}


/* Contextual tool glossary */
.glossary-term {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #d8ffe3;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(91, 241, 138, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: help;
}

.glossary-term::after {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(91, 241, 138, 0.5);
  border-radius: 50%;
  color: #5bf18a;
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
}

.tool-chip .glossary-term {
  text-decoration: none;
}

.glossary-popover {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 30;
  display: grid;
  gap: 8px;
  width: min(290px, calc(100vw - 42px));
  padding: 13px;
  border: 1px solid rgba(91, 241, 138, 0.34);
  border-radius: 8px;
  background: rgba(15, 17, 21, 0.98);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42);
  color: #ffffff;
  font-size: 0.84rem;
  line-height: 1.42;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.glossary-popover strong {
  color: #ffffff;
  font-size: 0.9rem;
}

.glossary-popover span {
  margin: 0;
  color: #a0a8b8;
  font-size: 0.84rem;
  font-weight: 650;
  text-transform: none;
}

.glossary-popover a {
  width: fit-content;
  color: #5bf18a;
  font-weight: 850;
  text-decoration: none;
}

.glossary-popover a:hover {
  text-decoration: underline;
}

.glossary-term:hover .glossary-popover,
.glossary-term:focus .glossary-popover,
.glossary-term:focus-within .glossary-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.manual-meta .tool-chip {
  overflow: visible;
}

.manual-meta .tool-chip .glossary-popover {
  bottom: auto;
  top: calc(100% + 10px);
}

@media (max-width: 650px) {
  .glossary-popover {
    left: 50%;
    transform: translate(-50%, 6px);
  }

  .glossary-term:hover .glossary-popover,
  .glossary-term:focus .glossary-popover,
  .glossary-term:focus-within .glossary-popover {
    transform: translate(-50%, 0);
  }
}


/* TutorIA assistant */
.tutoria-assistant {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 22px;
  width: min(1220px, calc(100% - 40px));
  margin: 70px auto 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(91, 241, 138, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 0%, rgba(91, 241, 138, 0.12), transparent 38%),
    #111318;
}

.tutoria-assistant__copy h2 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.tutoria-assistant__copy p:not(.eyebrow) {
  max-width: 560px;
  color: #a0a8b8;
  line-height: 1.65;
}

.tutoria-assistant__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tutoria-assistant__chips button,
.tutor-button {
  border: 1px solid #262b36;
  border-radius: 8px;
  background: #0f1115;
  color: #5bf18a;
  font-weight: 850;
  cursor: pointer;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.tutoria-assistant__chips button {
  min-height: 40px;
  padding: 0 12px;
}

.tutoria-assistant__chips button:hover,
.tutor-button:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 241, 138, 0.45);
  background: rgba(91, 241, 138, 0.08);
}

.tutor-chat {
  display: grid;
  min-height: 480px;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid #262b36;
  border-radius: 8px;
  background: #171a21;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.tutor-chat__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid #262b36;
}

.tutor-chat__top div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.tutor-chat__top div span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5bf18a;
  box-shadow: 0 0 20px rgba(91, 241, 138, 0.75);
}

.tutor-chat__top small {
  max-width: 56%;
  overflow: hidden;
  color: #a0a8b8;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutor-chat__messages {
  display: grid;
  align-content: start;
  gap: 12px;
  max-height: 430px;
  overflow-y: auto;
  padding: 16px;
}

.tutor-message {
  max-width: 86%;
  padding: 12px;
  border: 1px solid #262b36;
  border-radius: 8px;
  background: #101319;
}

.tutor-message span {
  display: block;
  margin-bottom: 6px;
  color: #5bf18a;
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tutor-message p {
  margin: 0;
  color: #d8dde8;
  line-height: 1.55;
}

.tutor-message--user {
  justify-self: end;
  background: rgba(91, 241, 138, 0.1);
}

.tutor-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid #262b36;
}

.tutor-form input {
  min-height: 46px;
}

.tutor-form button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: #5bf18a;
  color: #0f1115;
  font-weight: 950;
  cursor: pointer;
}

.manual-header__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.tutor-button {
  min-height: 40px;
  padding: 0 12px;
}

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

  .tutor-chat__top {
    align-items: start;
    flex-direction: column;
  }

  .tutor-chat__top small {
    max-width: 100%;
  }
}

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

  .tutor-message {
    max-width: 100%;
  }
}


/* TutorIA premium access */
.tutoria-access {
  display: grid;
  gap: 6px;
  max-width: 560px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(91, 241, 138, 0.28);
  border-radius: 8px;
  background: rgba(91, 241, 138, 0.07);
}

.tutoria-access strong {
  color: #ffffff;
}

.tutoria-access span {
  color: #a0a8b8;
  line-height: 1.45;
}

.tutoria-access a {
  width: fit-content;
  color: #5bf18a;
  font-weight: 900;
  text-decoration: none;
}

.tutoria-access a:hover {
  text-decoration: underline;
}

.tutoria-access.is-active {
  border-color: rgba(91, 241, 138, 0.58);
  background: rgba(91, 241, 138, 0.12);
}

.tutoria-assistant.is-locked .tutor-chat {
  position: relative;
}

.tutoria-assistant.is-locked .tutor-chat::after {
  content: "Premium";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 8px;
  border: 1px solid rgba(91, 241, 138, 0.42);
  border-radius: 999px;
  background: #0f1115;
  color: #5bf18a;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tutoria-assistant.is-locked .tutor-form input {
  border-color: rgba(91, 241, 138, 0.22);
}

.pricing--highlight {
  animation: pricingPulse 1.8s ease;
}

@keyframes pricingPulse {
  0%, 100% { box-shadow: none; }
  35% { box-shadow: 0 0 0 6px rgba(91, 241, 138, 0.1), 0 28px 80px rgba(0, 0, 0, 0.35); }
}


/* Tutorial window overlay */
body.tutorial-window-open {
  overflow: hidden;
}

.manual__content.tutorial-window {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: block;
  overflow-y: auto;
  padding: clamp(18px, 4vw, 46px);
  border: 0;
  border-radius: 0;
  background: rgba(5, 7, 10, 0.78);
  backdrop-filter: blur(12px);
}

.manual__content.tutorial-window > .manual-header,
.manual__content.tutorial-window > .visual-brief,
.manual__content.tutorial-window > .visual-map,
.manual__content.tutorial-window > .example-panel,
.manual__content.tutorial-window > .editorial-layout,
.manual__content.tutorial-window > .manual-grid,
.manual__content.tutorial-window > .prompt-panel,
.manual__content.tutorial-window > .deliverable-panel {
  width: min(1060px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.manual__content.tutorial-window > .manual-header {
  margin-top: clamp(20px, 4vh, 44px);
  border-radius: 8px 8px 0 0;
}

.manual__content.tutorial-window > .editorial-layout:last-child {
  margin-bottom: clamp(32px, 6vh, 70px);
}

.tutorial-window__close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: #171a21;
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tutorial-window__close:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 241, 138, 0.48);
  background: #0f1115;
}

@media (max-width: 640px) {
  .manual__content.tutorial-window {
    padding: 14px;
  }

  .tutorial-window__close {
    top: 10px;
    right: 10px;
  }

  .manual__content.tutorial-window > .manual-header {
    margin-top: 48px;
  }
}

/* Home hub and internal section windows */
.home-window-source {
  display: none !important;
}

.manual.manual--output-only {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.manual.manual--output-only .manual__empty {
  display: none !important;
}

.home-hub {
  width: min(1120px, calc(100% - 32px));
  margin: clamp(28px, 5vw, 58px) auto 0;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(91, 241, 138, 0.14), transparent 34%),
    #0f1115;
  color: #ffffff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22);
}

.home-hub__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.home-hub__intro h2 {
  max-width: 660px;
  margin-bottom: 0;
  color: #ffffff;
  font-size: clamp(1.9rem, 4vw, 3.35rem);
  line-height: 1.02;
}

.home-hub__intro p:last-child {
  margin: 0;
  color: #a0a8b8;
  line-height: 1.7;
}

.home-hub__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.home-hub-card {
  display: flex;
  min-height: 168px;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #262b36;
  border-radius: 8px;
  padding: 18px;
  background: #171a21;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.home-hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 241, 138, 0.54);
  background: #1b2029;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.home-hub-card--primary {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(91, 241, 138, 0.18), rgba(91, 241, 138, 0.04)),
    #171a21;
}

.home-hub-card span,
.home-hub-card small {
  color: #a0a8b8;
  font-size: 0.82rem;
  line-height: 1.5;
}

.home-hub-card span {
  color: #5bf18a;
  font-weight: 850;
}

.home-hub-card strong {
  max-width: 220px;
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  line-height: 1.15;
}

body.section-window-open {
  overflow: hidden;
}

.section-window {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow-y: auto;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(5, 7, 10, 0.78);
  backdrop-filter: blur(14px);
}

.section-window__panel {
  width: min(1180px, 100%);
  min-height: calc(100vh - clamp(32px, 8vw, 96px));
  margin: 0 auto;
}

.section-window__content > section {
  display: block !important;
  width: min(1120px, 100%);
  margin: 0 auto clamp(28px, 5vw, 52px);
}

.section-window__content > .progress-strip {
  display: grid !important;
}

.section-window__content > .featured-tutorial,
.section-window__content > .tutoria-assistant,
.section-window__content > .email-capture {
  display: grid !important;
}

.section-window__content > .learning-path {
  display: grid !important;
}

.section-window__close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 75;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: #171a21;
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.section-window__close:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 241, 138, 0.48);
  background: #0f1115;
}

.published-card--free,
.published-card--premium {
  position: relative;
  padding-top: 44px;
}

.published-card--premium {
  border-color: rgba(255, 255, 255, 0.16);
}

.published-card--premium::after {
  content: "Premium";
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid rgba(91, 241, 138, 0.36);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(91, 241, 138, 0.1);
  color: #5bf18a;
  font-size: 0.68rem;
  font-weight: 850;
}

.published-card--free::after {
  content: "Gratis";
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 850;
}

.premium-gate {
  display: grid;
  gap: 22px;
  width: min(760px, 100%);
  margin: auto;
  border: 1px solid rgba(91, 241, 138, 0.24);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 48px);
  background:
    radial-gradient(circle at 20% 0%, rgba(91, 241, 138, 0.18), transparent 34%),
    #171a21;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.premium-gate > span {
  width: max-content;
  border: 1px solid rgba(91, 241, 138, 0.36);
  border-radius: 999px;
  padding: 6px 10px;
  color: #5bf18a;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.premium-gate h2 {
  max-width: 680px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
}

.premium-gate p,
.premium-gate li {
  color: #a0a8b8;
  line-height: 1.7;
}

.premium-gate__bullets {
  border: 1px solid #262b36;
  border-radius: 8px;
  padding: 18px;
  background: rgba(15, 17, 21, 0.72);
}

.premium-gate__bullets strong {
  color: #ffffff;
}

.premium-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 980px) {
  .home-hub__intro {
    grid-template-columns: 1fr;
  }

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

  .home-hub-card--primary {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .home-hub {
    padding: 20px;
  }

  .home-hub__grid {
    grid-template-columns: 1fr;
  }

  .home-hub-card,
  .home-hub-card--primary {
    grid-column: auto;
    min-height: 138px;
  }

  .section-window {
    padding: 56px 14px 14px;
  }

  .section-window__close {
    top: 10px;
    right: 10px;
  }
}
