:root {
  --ink: #17231d;
  --ink-soft: #3f4f45;
  --olive: #5c7a2e;
  --olive-dark: #33471f;
  --amber: #c4782a;
  --amber-dark: #8b5520;
  --cream: #f7f1e4;
  --paper: #fffcf5;
  --line: #dfd1b8;
  --blue: #557582;
  --blue-soft: #e1edf0;
  --danger: #b6483e;
  --danger-soft: #fff1ef;
  --shadow: 0 18px 45px rgba(23, 35, 29, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 252, 245, 0.94);
  border-bottom: 1px solid rgba(223, 209, 184, 0.8);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 48px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 30;
}

.brand img {
  height: 40px;
  width: auto;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 6px;
}

.site-nav a {
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  background: #efe4ce;
  color: var(--ink);
}

.site-nav .nav-cta {
  background: var(--olive);
  color: #fff;
  margin-left: 6px;
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  padding: 8px;
  width: 42px;
}

.nav-toggle span {
  background: var(--olive-dark);
  display: block;
  height: 2px;
  margin: 6px 0;
  width: 24px;
}

.hero {
  background:
    linear-gradient(90deg, rgba(23, 35, 29, 0.88) 0%, rgba(23, 35, 29, 0.72) 42%, rgba(23, 35, 29, 0.18) 100%),
    url("assets/images/hero-learning-group.png") center / cover;
  color: #fff;
  min-height: min(760px, calc(100vh - 112px));
  padding: clamp(64px, 10vh, 96px) clamp(18px, 6vw, 78px) 148px;
  position: relative;
}

.hero-content {
  max-width: 760px;
}

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

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(72px, 12vw, 154px);
  letter-spacing: 0;
  line-height: 0.88;
  margin: 0 0 22px;
}

.hero-lead {
  color: #fff4dd;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.32;
  margin: 0;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
}

.btn-primary {
  background: var(--amber);
  color: #20170f;
}

.btn-secondary {
  background: #fffaf1;
  color: var(--ink);
}

.btn-small {
  background: var(--olive);
  color: #fff;
  min-height: 42px;
  padding: 10px 14px;
}

.hero-strip {
  background: rgba(255, 252, 245, 0.94);
  border: 1px solid rgba(223, 209, 184, 0.8);
  border-radius: 8px;
  bottom: 22px;
  color: var(--ink);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  left: clamp(18px, 6vw, 78px);
  max-width: 920px;
  overflow: hidden;
  position: absolute;
  right: clamp(18px, 6vw, 78px);
}

.hero-strip div {
  background: rgba(255, 252, 245, 0.92);
  padding: 16px 18px;
}

.hero-strip strong,
.hero-strip span {
  display: block;
}

.hero-strip strong {
  color: var(--olive-dark);
  font-size: 15px;
  margin-bottom: 3px;
}

.hero-strip span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
}

.section {
  margin: 0 auto;
  max-width: var(--max);
  padding: 86px 20px;
}

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

.section-heading h2,
.method-copy h2,
.library-copy h2,
.order-copy h2 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
  margin: 0 0 18px;
}

.section-heading p,
.method-copy p,
.library-copy p,
.order-copy p {
  color: var(--ink-soft);
  font-size: 18px;
  margin: 0;
}

.vision-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.vision-card,
.product-card,
.quality-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 35, 29, 0.06);
  padding: 24px;
}

.vision-card span {
  color: var(--blue);
  display: block;
  font-weight: 900;
  margin-bottom: 28px;
}

.vision-card h3,
.product-card h3,
.quality-card h3,
.template-proof h3 {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.18;
  margin: 0 0 10px;
}

.vision-card p,
.product-card p,
.quality-card p,
.template-proof p {
  color: var(--ink-soft);
  margin: 0;
}

.method-section,
.library-section,
.order-section {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
}

.method-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.method-list div {
  border-left: 4px solid var(--amber);
  padding: 8px 0 8px 16px;
}

.method-list strong,
.method-list span {
  display: block;
}

.method-list span {
  color: var(--ink-soft);
  margin-top: 2px;
}

.method-media,
.library-visual {
  margin: 0;
}

.method-media img,
.library-visual img,
.template-proof img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: auto;
  width: 100%;
}

.catalog-section {
  max-width: 1240px;
}

.catalog-controls {
  background: #efe4ce;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  gap: 4px;
  margin: 30px 0 22px;
  padding: 4px;
}

.filter-btn {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 900;
  min-height: 40px;
  padding: 8px 14px;
}

.filter-btn.is-active {
  background: var(--paper);
  color: var(--olive-dark);
  box-shadow: 0 3px 12px rgba(23, 35, 29, 0.08);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-card.is-featured {
  border-color: var(--amber);
}

.product-card.is-hidden {
  display: none;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.product-meta span {
  background: #efe7d6;
  border: 1px solid #dfd1b8;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.product-card ul {
  color: var(--ink-soft);
  margin: 16px 0 20px 18px;
  padding: 0;
}

.product-card li {
  margin-bottom: 7px;
}

.risk-note {
  background: var(--danger-soft);
  border-left: 4px solid var(--danger);
  border-radius: 6px;
  color: #5a2a25;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 18px;
  padding: 12px;
}

.product-footer {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: auto;
}

.product-footer strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.12;
}

.library-section {
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1fr);
}

.future-packs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.future-packs span {
  background: var(--blue-soft);
  border: 1px solid #c7d8de;
  border-radius: 999px;
  color: #27434d;
  font-weight: 800;
  padding: 8px 11px;
}

.quality-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.template-proof {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 280px;
  margin-top: 22px;
  overflow: hidden;
  padding: 28px;
}

.template-proof h3 {
  color: #fff;
}

.template-proof p {
  color: #f5ead5;
}

.template-proof .eyebrow {
  color: #efae55;
}

.template-proof img {
  box-shadow: none;
  max-height: 240px;
  object-fit: cover;
}

.order-section {
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 64px;
  padding: 36px;
}

.order-form {
  display: grid;
  gap: 14px;
}

.order-form label {
  color: var(--ink);
  display: grid;
  font-weight: 900;
  gap: 6px;
}

.order-form input,
.order-form select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.site-footer {
  align-items: start;
  background: var(--ink);
  color: #fff;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: 38px clamp(20px, 6vw, 76px);
}

.site-footer img {
  background: #fffaf1;
  border-radius: 6px;
  height: 42px;
  margin-bottom: 14px;
  padding: 4px;
  width: auto;
}

.site-footer p {
  color: #f5ead5;
  margin: 0;
  max-width: 460px;
}

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

.site-footer a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  clip: rect(0 0 0 0);
}

.chat-button {
  align-items: center;
  background: var(--olive);
  border: 0;
  border-radius: 50%;
  bottom: 22px;
  box-shadow: 0 14px 34px rgba(23, 35, 29, 0.22);
  cursor: pointer;
  display: flex;
  height: 62px;
  justify-content: center;
  padding: 0;
  position: fixed;
  right: 22px;
  width: 62px;
  z-index: 80;
}

.chat-button.is-hidden {
  display: none;
}

.chat-button img {
  height: 34px;
  width: 34px;
}

.chat-window {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 22px;
  box-shadow: 0 22px 60px rgba(23, 35, 29, 0.24);
  display: none;
  flex-direction: column;
  height: min(640px, calc(100vh - 44px));
  overflow: hidden;
  position: fixed;
  right: 22px;
  width: min(420px, calc(100vw - 28px));
  z-index: 90;
}

.chat-window.is-open {
  display: flex;
}

.chat-header {
  align-items: center;
  background: var(--ink);
  color: #fff;
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  min-height: 58px;
  padding: 12px 14px 12px 18px;
}

.chat-header-actions {
  display: flex;
  gap: 6px;
}

.chat-icon-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 21px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 36px;
}

.chat-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 16px;
}

.chat-message {
  border-radius: 8px;
  max-width: 88%;
  padding: 11px 13px;
}

.chat-message p {
  margin: 0;
}

.chat-message p + p {
  margin-top: 10px;
}

.chat-message ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.chat-message li {
  margin: 5px 0;
}

.chat-message strong {
  font-weight: 900;
}

.chat-suggestions {
  align-self: stretch;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.chat-suggestions.is-hidden {
  display: none;
}

.chat-suggestions button {
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--olive-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  min-height: 44px;
  padding: 9px 10px;
  text-align: left;
}

.chat-suggestions button:hover,
.chat-suggestions button:focus {
  background: var(--blue-soft);
  border-color: #c7d8de;
}

.chat-message.model {
  align-self: flex-start;
  background: #efe7d6;
  color: var(--ink);
}

.chat-message.user {
  align-self: flex-end;
  background: var(--olive);
  color: #fff;
}

.chat-loader {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  min-height: 42px;
}

.chat-loader span {
  animation: chatPulse 1s ease-in-out infinite;
  background: var(--olive);
  border-radius: 50%;
  display: block;
  height: 7px;
  opacity: 0.35;
  width: 7px;
}

.chat-loader span:nth-child(2) {
  animation-delay: 0.14s;
}

.chat-loader span:nth-child(3) {
  animation-delay: 0.28s;
}

.chat-input-area {
  align-items: end;
  background: #fffaf1;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 44px;
  padding: 12px;
}

.chat-input-area textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  max-height: 120px;
  min-height: 44px;
  padding: 10px 12px;
  resize: none;
  width: 100%;
}

.chat-input-area button {
  align-items: center;
  background: var(--amber);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.chat-input-area button img {
  height: 22px;
  width: 22px;
}

.chat-input-area.is-sending button,
.chat-input-area textarea:disabled {
  cursor: wait;
  opacity: 0.68;
}

@keyframes chatPulse {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (max-width: 1060px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    left: 0;
    padding: 12px 18px 18px;
    position: absolute;
    right: 0;
    top: 64px;
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-bottom: 24px;
    padding-top: 54px;
  }

  .hero h1 {
    font-size: clamp(52px, 15vw, 72px);
    line-height: 0.95;
  }

  .hero-strip {
    grid-template-columns: 1fr;
    left: auto;
    margin-top: 18px;
    max-width: none;
    position: static;
    right: auto;
  }

  .vision-grid,
  .method-section,
  .library-section,
  .quality-grid,
  .template-proof,
  .order-section {
    grid-template-columns: 1fr;
  }

  .template-proof img {
    max-height: none;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 42px 14px;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-actions,
  .product-footer,
  .site-footer {
    display: grid;
  }

  .btn,
  .product-footer .btn {
    width: 100%;
  }

  .catalog-controls {
    display: grid;
    width: 100%;
  }

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

  .order-section {
    padding: 22px;
  }

  .site-footer nav {
    justify-content: start;
  }

  .chat-window {
    bottom: 14px;
    height: min(560px, calc(100vh - 28px));
    right: 14px;
  }

  .chat-button {
    bottom: 16px;
    height: 56px;
    right: 16px;
    width: 56px;
  }

  .chat-suggestions {
    grid-template-columns: 1fr;
  }
}
