:root {
  --ink: #203233;
  --muted: #5e6d6a;
  --line: #dce4df;
  --paper: #fbfaf6;
  --white: #ffffff;
  --sage: #496d62;
  --sage-dark: #294d43;
  --gold: #c89b3c;
  --coral: #c65f4a;
  --blue: #376b9e;
  --shadow: 0 18px 50px rgba(32, 50, 51, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

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

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 650;
}

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

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--sage);
  border-radius: 8px;
  background: var(--white);
  color: var(--sage-dark);
  cursor: pointer;
  font-weight: 750;
}

.cart-button span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.8rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 77px);
  padding: clamp(52px, 8vw, 96px) clamp(20px, 5vw, 64px);
  background:
    linear-gradient(115deg, rgba(73, 109, 98, 0.15), transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(200, 155, 60, 0.25), transparent 34%),
    var(--paper);
}

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

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

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

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

.hero-copy p:not(.eyebrow),
.section-heading p,
.split p,
.contact-section p,
.license-grid p {
  color: var(--muted);
  font-size: 1.02rem;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  border: 1px solid var(--sage);
  background: var(--sage);
  color: var(--white);
}

.secondary-action {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--sage-dark);
}

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

.hero-panel div,
.license-grid article,
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 22px;
}

.metric {
  display: block;
  margin-bottom: 6px;
  color: var(--sage-dark);
  font-size: 1.8rem;
  font-weight: 900;
}

.section,
.license-band {
  padding: clamp(46px, 7vw, 84px) clamp(20px, 5vw, 64px);
}

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

.section-heading p,
.split p,
.contact-section p {
  max-width: 560px;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

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

.product-card {
  display: grid;
  overflow: hidden;
}

.cover {
  display: grid;
  min-height: 210px;
  padding: 20px;
  align-content: space-between;
  background:
    linear-gradient(135deg, rgba(55, 107, 158, 0.94), rgba(73, 109, 98, 0.92)),
    var(--blue);
  color: var(--white);
}

.cover small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.cover strong {
  max-width: 260px;
  font-size: 1.5rem;
  line-height: 1.1;
}

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

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-list span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef4f0;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.price-box {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-left: 4px solid var(--gold);
  background: #fff8e8;
}

.price-box span {
  color: var(--muted);
  font-size: 0.88rem;
}

.product-actions {
  margin-top: 0;
}

.product-actions button,
.sample-link {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 800;
}

.product-actions button {
  border: 1px solid var(--sage);
  background: var(--sage);
  color: var(--white);
  cursor: pointer;
}

.sample-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  color: var(--sage-dark);
}

.license-band {
  background: #e8eee9;
}

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

.license-grid article {
  padding: 20px;
  box-shadow: none;
}

.contact-section {
  align-items: center;
  border-top: 1px solid var(--line);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
}

.cart-drawer.open {
  display: block;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 31, 32, 0.42);
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  height: 100%;
  overflow: auto;
  padding: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.cart-header h2 {
  margin: 0;
  font-size: 1.8rem;
}

.cart-header button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-size: 1.6rem;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.cart-empty,
.cart-item,
.checkout-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.cart-empty,
.cart-item {
  padding: 14px;
}

.cart-item {
  display: grid;
  gap: 12px;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cart-item button {
  border: 0;
  background: transparent;
  color: var(--coral);
  cursor: pointer;
  font-weight: 800;
}

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

.checkout-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.radio-row {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.radio-row input {
  width: auto;
  min-height: auto;
}

.institution-fields,
.personal-fields {
  display: grid;
  gap: 12px;
}

.totals {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.grand-total {
  color: var(--sage-dark);
  font-size: 1.18rem;
}

.full {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.form-note {
  margin: 0;
  color: var(--sage-dark);
  font-weight: 750;
}

@media (max-width: 920px) {
  .site-header {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow: auto;
  }

  .hero,
  .product-grid,
  .license-grid,
  .filters {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .section-heading,
  .split,
  .contact-section {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 2.6rem;
  }

  .hero,
  .section,
  .license-band {
    padding-left: 16px;
    padding-right: 16px;
  }

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