/* THE PARTNER PACT — core site styles
   Plain CSS, deliberately small and dependency-free.
   Keep shared design values here so visual changes stay easy to manage. */

/* 1. Shared design values */
:root {
  color-scheme: light;
  --ink: #171816;
  --muted: #55574f;
  --paper: #fff;
  --sand: #d4c6a5;
  --brown: #986424;
  --teal: #006d77;
  --teal-dark: #004f57;
  --line: #dedbd2;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* 2. Global layout, typography, images, and links */
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Lexend", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

a {
  color: var(--teal);
  text-underline-offset: .18em;
}

a:hover {
  color: var(--teal-dark);
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -.035em;
}

h1 {
  max-width: 900px;
  margin: .25em auto;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  margin-bottom: .6em;
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  margin-bottom: .45em;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* 3. Header and three-language navigation */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

/* 4. Hero: centered introduction and large product image */
.hero {
  padding: clamp(64px, 10vw, 112px) 0 72px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brown);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero .lead {
  max-width: 760px;
  margin: 24px auto 0;
  font-size: clamp(1.03rem, 2vw, 1.22rem);
}

.hero .support {
margin: 16px 0 0;
}

.hero .support-tagline {
color: var(--teal-dark);
font-size: 1.05rem;
font-weight: 700;
letter-spacing: .015em;
}

.hero .support-languages {
display: inline-block;
margin-top: 12px;
padding: 6px 12px;
border: 1px solid var(--line);
color: var(--muted);
font-size: .82rem;
font-weight: 500;
letter-spacing: .035em;
}

.hero-gallery {
  max-width: 920px;
  margin: 54px auto 0;
}

.hero-gallery img {
  width: 100%;
}

/* 5. Sections and image/text layouts
   On wider screens, the image floats beside the text.
   On small screens, the image moves above the text. */
.section {
  padding: clamp(60px, 8vw, 96px) 0;
}

.section.alt {
  background: var(--paper);
}

.text-wrap::after {
  display: table;
  clear: both;
  content: "";
}

.text-wrap .visual {
  width: 42%;
  max-width: 480px;
  margin-bottom: 18px;
}

.text-wrap .visual img {
  width: 100%;
}

.text-wrap-left .visual {
  float: left;
  margin-right: clamp(24px, 4vw, 54px);
}

.text-wrap-right .visual {
  float: right;
  margin-left: clamp(24px, 4vw, 54px);
}

.kicker {
  margin-bottom: 12px;
  color: var(--brown);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.bullets {
  padding-left: 1.2rem;
  color: var(--muted);
}

.bullets li {
  margin: .75em 0;
  padding-left: .25em;
}

/* 6. Loadout: three non-clickable product components */
.loadout-heading {
  max-width: 850px;
  margin: 0 auto 32px;
}

.loadout-heading h2 {
  max-width: 720px;
}

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

.product-item {
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  margin-bottom: 20px;
  background: transparent;
}

.product-item h3 {
  margin-bottom: 10px;
}

.product-item p {
  margin-bottom: 8px;
}

/* 7. Deployment: image beside expandable instructions */
.section-head {
  max-width: 760px;
  margin: 0 auto 36px;
}

.section-head.center {
  text-align: center;
}

.deployment-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
}

.deployment-layout .visual img {
  width: 100%;
}

.steps {
  width: 100%;
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  position: relative;
  padding: 20px 36px 20px 0;
  cursor: pointer;
  font-size: 1.04rem;
  font-weight: 650;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

/* Plus/minus indicator for each expandable step. */
summary::after {
  position: absolute;
  top: 16px;
  right: 4px;
  color: var(--brown);
  font-size: 1.5rem;
  font-weight: 400;
  content: "+";
}

details[open] summary::after {
  content: "−";
}

.details-content {
  max-width: 760px;
  padding: 0 32px 20px 0;
}

.details-content p:last-child {
  margin-bottom: 0;
}

/* 8. Physical editions: a simple, centered availability notice. */
.availability {
max-width: 800px;
}

.availability h2 {
max-width: 720px;
}

.availability p {
max-width: 720px;
}

.availability-contact {
margin-top: 28px;
}

.availability-contact a {
display: inline-block;
padding-bottom: 3px;
border-bottom: 1px solid currentColor;
color: var(--teal);
font-weight: 600;
text-decoration: none;
}

.availability-contact a {
color: var(--teal-dark);
}

/* 9. Quiet divider and centered footer */
main {
  border-bottom: 1px solid var(--line);
}

.site-footer {
  padding: 30px 0 26px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-note {
  margin: 0;
  color: #77776f;
  font-size: .78rem;
}

.footer-note:first-child {
  color: var(--muted);
  font-weight: 600;
}

/* 10. Mobile layout: stack content and product components */
@media (max-width: 720px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .header-inner {
    min-height: 66px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
  }

  .nav {
    justify-content: flex-start;
    gap: 16px;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-gallery {
    margin-top: 38px;
  }

  .text-wrap .visual,
  .text-wrap-left .visual,
  .text-wrap-right .visual {
    float: none;
    width: 100%;
    max-width: 560px;
    margin: 0 auto 24px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* On phones, each product image sits beside its description. */
  .product-item {
    display: grid;
    grid-template-columns: minmax(110px, 34%) 1fr;
    align-items: start;
    column-gap: 18px;
  }

  .product-item img {
    grid-row: span 3;
    margin-bottom: 0;
  }

  .product-item h3 {
    margin-bottom: 8px;
  }

  .product-item p {
    font-size: .92rem;
  }

  .deployment-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .deployment-layout .visual {
    max-width: 560px;
  }

  .section {
    padding: 58px 0;
  }

  .download-links {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
