:root {
  --ink: #17211f;
  --muted: #64706d;
  --line: #dfe6e2;
  --paper: #fbfcf8;
  --mist: #edf4ef;
  --white: #ffffff;
  --green: #11684f;
  --lime: #c8e76a;
  --coral: #ef6f61;
  --blue: #356dff;
  --gold: #d99b2b;
  --shadow: 0 24px 70px rgba(23, 33, 31, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.announcement {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 18px;
  color: #10201a;
  background: var(--lime);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.announcement a {
  border-bottom: 2px solid currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(251, 252, 248, 0.9);
  border-bottom: 1px solid rgba(223, 230, 226, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-weight: 700;
}

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

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

.search-box input,
.newsletter-form input,
.contact-form input,
.contact-form textarea,
.sort-control select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.search-box input {
  width: min(220px, 24vw);
  height: 42px;
  padding: 0 14px;
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#cartCount {
  position: absolute;
  right: -7px;
  top: -7px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  color: var(--white);
  background: var(--coral);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 124px);
  padding: clamp(54px, 8vw, 112px) clamp(18px, 5vw, 72px) 42px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(200, 231, 106, 0.28), transparent 33%),
    linear-gradient(180deg, var(--paper), #f4f8f1);
}

.hero h1,
.section-heading h2,
.bundle-copy h2,
.newsletter h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(44px, 8vw, 92px);
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions,
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.book-stage {
  position: relative;
  min-height: 520px;
}

.feature-book {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(270px, 42vw);
  height: 390px;
  padding: 24px;
  color: var(--white);
  border-radius: 8px 18px 18px 8px;
  box-shadow: var(--shadow);
  isolation: isolate;
  transform-origin: bottom center;
}

.feature-book::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 16px;
  width: 3px;
  background: rgba(255, 255, 255, 0.48);
}

.feature-book::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent 15%),
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.28), transparent 24%);
}

.feature-book span {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-book strong {
  margin-top: 12px;
  font-size: 34px;
  line-height: 1.03;
}

.cover-trading {
  right: 26%;
  top: 2%;
  background: linear-gradient(145deg, #12352d, #11684f 58%, #d99b2b);
  transform: rotate(-8deg);
}

.cover-career {
  right: 3%;
  top: 18%;
  background: linear-gradient(145deg, #1a2145, #356dff 62%, #ef6f61);
  transform: rotate(7deg);
}

.cover-coaching {
  right: 30%;
  top: 34%;
  background: linear-gradient(145deg, #4a2432, #ef6f61 56%, #c8e76a);
  transform: rotate(3deg);
}

.category-band,
.catalog-section,
.bundle-section,
.newsletter,
.site-footer {
  padding: clamp(54px, 7vw, 90px) clamp(18px, 5vw, 72px);
}

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

.section-heading h2,
.bundle-copy h2,
.newsletter h2 {
  font-size: clamp(31px, 4vw, 56px);
}

.section-heading.split {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

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

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

.category-card {
  min-height: 148px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
}

.category-card.active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(17, 104, 79, 0.12);
}

.category-card strong,
.category-card small {
  display: block;
}

.category-card small {
  margin-top: 6px;
  color: var(--muted);
}

.category-icon {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.trading-icon {
  background: linear-gradient(135deg, var(--green), var(--lime));
}

.market-icon {
  background:
    linear-gradient(135deg, transparent 47%, var(--white) 48% 53%, transparent 54%),
    var(--green);
}

.career-icon {
  background:
    linear-gradient(90deg, transparent 40%, var(--white) 41% 46%, transparent 47%),
    var(--blue);
}

.coaching-icon {
  background: radial-gradient(circle at 50% 40%, var(--white) 0 18%, transparent 19%), var(--coral);
}

.business-icon {
  background:
    linear-gradient(var(--gold) 0 0) 50% 50% / 56% 8px no-repeat,
    linear-gradient(90deg, var(--gold) 0 0) 50% 50% / 8px 56% no-repeat,
    #17211f;
}

.catalog-section {
  background: var(--mist);
}

.sort-control {
  display: grid;
  gap: 7px;
  min-width: 190px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.sort-control select {
  height: 42px;
  padding: 0 12px;
}

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

.product-card {
  display: grid;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(23, 33, 31, 0.07);
}

.cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: 20px;
  color: var(--white);
}

.cover small {
  font-weight: 800;
  text-transform: uppercase;
}

.cover strong {
  max-width: 9ch;
  font-size: 30px;
  line-height: 1.02;
}

.product-body {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.product-body h3,
.bundle-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.22;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.pill {
  display: inline-flex;
  width: max-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(17, 104, 79, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.price {
  font-size: 20px;
  font-weight: 800;
}

.bundle-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: start;
}

.bundle-copy {
  position: sticky;
  top: 112px;
}

.bundle-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.bundle-grid {
  display: grid;
  gap: 16px;
}

.bundle-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 22px;
  align-items: center;
  padding: 22px;
}

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

.bundle-card .button {
  grid-row: span 3;
}

.bundle-tag {
  width: max-content;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--ink);
  background: var(--lime);
  font-size: 12px;
  font-weight: 800;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--ink);
  color: var(--white);
}

.newsletter .eyebrow {
  color: var(--lime);
}

.newsletter-form {
  margin: 0;
}

.newsletter-form input {
  width: min(320px, 48vw);
  height: 46px;
  padding: 0 14px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(280px, 0.9fr);
  gap: 34px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.site-footer p,
.site-footer address {
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.footer-brand {
  margin-bottom: 18px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
}

.contact-form textarea {
  min-height: 96px;
  resize: vertical;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  justify-content: end;
  background: rgba(23, 33, 31, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.cart-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  width: min(420px, 100vw);
  height: 100vh;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 200ms ease;
}

.cart-drawer.open .cart-panel {
  transform: translateX(0);
}

.cart-head,
.cart-total,
.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.cart-head h2 {
  margin: 0;
}

.plain {
  border: 0;
  background: transparent;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px 0;
  overflow: auto;
}

.cart-line {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-line strong,
.cart-line span {
  display: block;
}

.cart-line span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.cart-total {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 800;
}

.checkout-button {
  width: 100%;
}

.empty-cart {
  color: var(--muted);
}

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

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

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .hero,
  .bundle-section,
  .newsletter,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .book-stage {
    min-height: 420px;
  }

  .feature-book {
    height: 330px;
  }

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

  .bundle-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .announcement {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    text-align: left;
  }

  .site-header {
    gap: 14px;
  }

  .header-actions {
    justify-content: stretch;
    grid-column: 1 / -1;
  }

  .search-box {
    flex: 1;
  }

  .search-box input,
  .newsletter-form input {
    width: 100%;
  }

  .main-nav {
    gap: 18px;
    overflow-x: auto;
  }

  .hero {
    padding-top: 38px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .book-stage {
    min-height: 360px;
  }

  .feature-book {
    width: 188px;
    height: 278px;
    padding: 18px;
  }

  .feature-book strong {
    font-size: 24px;
  }

  .cover-trading {
    right: 34%;
  }

  .cover-career {
    right: 1%;
  }

  .cover-coaching {
    right: 24%;
    top: 36%;
  }

  .section-heading.split,
  .bundle-card {
    display: grid;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .bundle-card .button {
    grid-row: auto;
    width: 100%;
  }
}
