:root {
  --ink: #142538;
  --muted: #5b6672;
  --navy: #16324a;
  --green: #2f6b4f;
  --green-dark: #1e4d38;
  --red: #a74233;
  --line: #dce3e7;
  --soft: #f3f6f5;
  --white: #ffffff;
  --focus: #f0b429;
  font-family: Inter, "Noto Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--white); line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 12px; background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 20; min-height: 72px; padding: 0 clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-weight: 750; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--white); background: var(--green-dark); font-size: 13px; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.site-nav > a:not(.button) { text-decoration: none; }
.site-nav > a:not(.button):hover { color: var(--green); }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--navy); font-size: 26px; width: 44px; height: 44px; cursor: pointer; }

.language-switcher { display: inline-flex; gap: 4px; }
.language-switcher form { margin: 0; }
.language-switcher button { border: 1px solid var(--line); padding: 5px 8px; color: var(--muted); background: var(--white); cursor: pointer; border-radius: 4px; font-size: 12px; }
.language-switcher button.is-active { color: var(--white); background: var(--navy); border-color: var(--navy); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border: 1px solid var(--green-dark); border-radius: 4px; color: var(--white); background: var(--green-dark); text-decoration: none; font-weight: 700; cursor: pointer; }
.button:hover { background: var(--green); }
.button-small { min-height: 38px; padding: 7px 14px; }
.button-secondary { color: var(--navy); background: var(--white); border-color: var(--white); }
.button-secondary:hover { background: var(--soft); }
.text-link { color: var(--green-dark); font-weight: 700; text-decoration: none; }

.hero { position: relative; min-height: min(680px, calc(100vh - 72px)); display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: rgba(255,255,255,.13); }
.hero-content { position: relative; width: min(650px, calc(100% - 40px)); margin-left: clamp(20px, 7vw, 112px); padding: 48px; color: var(--navy); background: rgba(255,255,255,.9); border-left: 6px solid var(--green); }
.hero h1, .page-header h1, .status-page h1 { margin: 8px 0 18px; font-family: Georgia, "Noto Serif", serif; font-size: 54px; line-height: 1.08; font-weight: 600; letter-spacing: 0; }
.hero-content > p:not(.eyebrow) { max-width: 600px; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.eyebrow { margin: 0 0 8px; color: var(--green); text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: 0; }

.intro-band, .product-section, .about-layout, .contact-layout, .docs-choice { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.intro-band { display: grid; grid-template-columns: .7fr 1.2fr 1fr; gap: 48px; align-items: start; padding: 72px 0; border-bottom: 1px solid var(--line); }
.intro-band h2, .section-heading h2, .contact-band h2, .about-layout h2 { margin: 0; font-family: Georgia, "Noto Serif", serif; font-size: 34px; line-height: 1.2; letter-spacing: 0; }
.intro-band > p:last-child { margin: 0; color: var(--muted); }

.product-section { padding: 72px 0 88px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { min-width: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--white); }
.product-card:first-child { grid-column: span 2; }
.product-card a { display: block; height: 100%; text-decoration: none; }
.product-card:hover { border-color: var(--green); }
.product-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.product-card:hover img { transform: scale(1.02); }
.product-copy { padding: 20px; }
.product-copy span { color: var(--green); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.product-copy h2, .product-copy h3 { margin: 5px 0 8px; font-size: 22px; line-height: 1.3; letter-spacing: 0; }
.product-copy p { margin: 0 0 8px; color: var(--muted); }
.product-copy strong { color: var(--green-dark); }

.contact-band { padding: 56px max(20px, calc((100% - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--white); background: var(--navy); }
.contact-band .eyebrow { color: #9fd4b6; }
.contact-band .button { background: var(--white); border-color: var(--white); color: var(--navy); }

.page-header { padding: 84px max(20px, calc((100% - 1180px) / 2)) 60px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-header h1 { font-size: 48px; }
.page-header > p:last-child { max-width: 720px; color: var(--muted); font-size: 18px; }
.product-page-grid .product-card:first-child { grid-column: auto; }

.product-detail { display: grid; grid-template-columns: 1.15fr .85fr; min-height: calc(100vh - 72px); }
.product-detail-media { min-height: 540px; overflow: hidden; }
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-copy { align-self: center; padding: clamp(40px, 7vw, 100px); }
.product-detail-copy h1 { margin: 8px 0 20px; font-family: Georgia, "Noto Serif", serif; font-size: 46px; line-height: 1.1; letter-spacing: 0; }
.product-detail-copy .lead { color: var(--muted); font-size: 18px; }
.product-detail-copy dl { margin: 28px 0; border-top: 1px solid var(--line); }
.product-detail-copy dl div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.product-detail-copy dt { font-weight: 700; }
.product-detail-copy dd { margin: 0; color: var(--muted); }

.about-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding: 80px 0 96px; }
.about-layout p { color: var(--muted); font-size: 17px; }
.about-layout figure { margin: 0; }
.about-layout figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: 72% center; }
.about-layout figcaption { padding: 10px 0; color: var(--muted); font-size: 13px; }

.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; padding: 72px 0 96px; }
.contact-details h2 { margin-top: 0; }
.contact-details dl div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-details dt { font-size: 12px; color: var(--muted); text-transform: uppercase; font-weight: 750; }
.contact-details dd { margin: 3px 0 0; white-space: pre-line; }
.map-placeholder { min-height: 190px; margin-top: 28px; display: grid; place-content: center; gap: 6px; text-align: center; color: var(--muted); background: var(--soft); border: 1px solid var(--line); }
.map-placeholder span { color: var(--navy); font-weight: 750; }
.contact-form { padding: 30px; border: 1px solid var(--line); border-radius: 6px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; margin-bottom: 6px; font-weight: 700; }
.form-field input:not([type=checkbox]), .form-field textarea, .form-field select { width: 100%; border: 1px solid #aeb9c0; border-radius: 4px; padding: 10px 12px; color: var(--ink); background: var(--white); }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--red); }
.errorlist { margin: 6px 0; padding-left: 18px; color: var(--red); }
.form-note { color: var(--muted); font-size: 13px; }

.status-page { width: min(700px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0 130px; text-align: center; }
.status-mark { width: 54px; height: 54px; margin: 0 auto 20px; display: grid; place-items: center; color: var(--white); background: var(--green); border-radius: 50%; font-size: 28px; }

.docs-header { text-align: center; }
.docs-header > p:last-child { margin-left: auto; margin-right: auto; }
.docs-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 64px 0 96px; }
.docs-choice a { display: grid; gap: 8px; min-height: 180px; align-content: center; padding: 28px; text-decoration: none; border: 1px solid var(--line); border-radius: 6px; }
.docs-choice a:hover { border-color: var(--green); }
.docs-choice strong { font-size: 26px; }
.docs-choice span { color: var(--muted); }
.docs-layout { width: min(1240px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 240px minmax(0, 780px); gap: 64px; justify-content: center; padding: 64px 0 100px; }
.docs-layout aside { position: sticky; top: 96px; align-self: start; display: grid; gap: 8px; padding-right: 20px; border-right: 1px solid var(--line); }
.docs-layout aside strong { margin-bottom: 10px; }
.docs-layout aside a { color: var(--muted); text-decoration: none; }
.docs-article h1 { margin: 5px 0 38px; font-size: 42px; line-height: 1.15; letter-spacing: 0; }
.docs-article section { padding: 28px 0; border-top: 1px solid var(--line); }
.docs-article h2 { margin-top: 0; font-size: 26px; letter-spacing: 0; }
.docs-article h3 { margin-top: 24px; font-size: 18px; }
.screenshot-placeholder { min-height: 130px; margin-top: 18px; display: grid; place-items: center; padding: 20px; color: var(--muted); background: var(--soft); border: 1px dashed #aeb9c0; text-align: center; }

.site-footer { padding: 44px max(20px, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: 1fr 1fr auto; gap: 48px; color: #dce7ec; background: #102636; }
.site-footer p { margin: 6px 0 0; color: #aebdc6; }
.site-footer a { color: var(--white); }
.footer-links { display: grid; gap: 8px; align-content: start; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 22px; align-items: stretch; flex-direction: column; gap: 14px; background: var(--white); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .site-nav .button { align-self: start; }
  .hero-content { margin: 220px 20px 36px; padding: 30px; }
  .hero h1 { font-size: 44px; }
  .intro-band { grid-template-columns: 1fr; gap: 14px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card:first-child { grid-column: auto; }
  .product-detail, .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .product-detail-media { min-height: 420px; }
  .about-layout, .contact-layout { gap: 42px; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-layout aside { position: static; grid-template-columns: repeat(2, 1fr); border: 0; border-bottom: 1px solid var(--line); padding: 0 0 20px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .site-header { padding: 0 16px; }
  .hero { min-height: 680px; align-items: end; }
  .hero-media { object-position: 62% center; }
  .hero-content { width: calc(100% - 24px); margin: 0 12px 18px; padding: 24px 20px; }
  .hero h1, .page-header h1, .status-page h1 { font-size: 37px; }
  .hero-content > p:not(.eyebrow) { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .product-grid, .docs-choice { grid-template-columns: 1fr; }
  .section-heading, .contact-band { align-items: flex-start; flex-direction: column; }
  .page-header { padding-top: 58px; }
  .product-detail-media { min-height: 330px; }
  .product-detail-copy { padding: 38px 20px 64px; }
  .product-detail-copy h1 { font-size: 38px; }
  .product-detail-copy dl div { grid-template-columns: 1fr; gap: 2px; }
  .contact-form { padding: 20px; }
  .docs-layout aside { grid-template-columns: 1fr 1fr; }
  .docs-article h1 { font-size: 34px; }
  .site-footer { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
