/* ============================================
   Design tokens
   ============================================ */
:root {
  --bg: #EDEFE8;        /* pale sage-grey paper */
  --card: #F7F8F3;      /* lifted card surface */
  --ink: #21281F;       /* deep forest-charcoal, primary text */
  --ink-soft: #4B5245;  /* secondary text */
  --gold: #B8863B;      /* muted ochre accent */
  --gold-dim: #E4D3B4;  /* pale gold for washes */
  --sage: #6E7D5E;      /* secondary accent */
  --line: #C9CDBE;      /* hairline rule */
  --line-strong: #9CA48C;

  --display: 'Newsreader', serif;
  --body: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(237,239,232,0.92);
  backdrop-filter: blur(6px);
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}

.logo span {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold);
  display: block;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color .15s, border-color .15s;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--ink); border-color: var(--gold); }

.header-cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 9px 16px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.header-cta:hover, .header-cta:focus-visible { background: var(--ink); color: var(--bg); }

/* ============================================
   Eyebrow / labels
   ============================================ */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  margin: 18px 0 20px;
  letter-spacing: -0.01em;
}
.hero h1 em { color: var(--gold); font-style: italic; }

.hero p.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 28px;
}

.hero-actions { display: flex; gap: 14px; align-items: center; }

.btn-primary, .btn-secondary {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px;
  display: inline-block;
  transition: transform .15s, background .15s, color .15s;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--gold); color: var(--ink); }
.btn-secondary { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-secondary:hover, .btn-secondary:focus-visible { border-color: var(--ink); }

/* ============================================
   Signature element: Certificate / Spec panel
   ============================================ */
.spec-sheet {
  background: var(--card);
  border: 1px solid var(--line-strong);
  position: relative;
  padding: 28px 26px 24px;
}
.spec-sheet::before, .spec-sheet::after,
.spec-sheet .corner-b1, .spec-sheet .corner-b2 {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--gold);
  border-style: solid;
}
.spec-sheet::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.spec-sheet::after { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.spec-sheet .corner-b1 { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.spec-sheet .corner-b2 { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.spec-sheet .spec-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 16px;
  display: flex;
  justify-content: space-between;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.spec-row:last-child { border-bottom: none; }
.spec-row dt { color: var(--ink-soft); }
.spec-row dd { margin: 0; text-align: right; color: var(--ink); font-weight: 600; }

/* ============================================
   Product grid (index page)
   ============================================ */
.section { padding: 84px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 38px);
  margin: 10px 0 0;
  font-weight: 500;
}
.section-note { max-width: 32ch; color: var(--ink-soft); font-size: 14px; text-align: right; }

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

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, transform .15s;
}
.product-card:hover, .product-card:focus-visible {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.product-card .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--sage);
}

.product-card h3 {
  font-family: var(--display);
  font-style: italic;
  font-size: 24px;
  margin: 0;
  font-weight: 500;
}

.product-card .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.product-card p { font-size: 14px; color: var(--ink-soft); margin: 0; flex-grow: 1; }

.product-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: 4px;
}
.product-card .price { font-family: var(--mono); font-size: 16px; font-weight: 600; }
.product-card .view { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--gold); }

/* ============================================
   Benefits / applications
   ============================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.benefit {
  border-top: 2px solid var(--gold);
  padding-top: 16px;
}
.benefit h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  margin: 0 0 8px;
}
.benefit p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ============================================
   Testimonials
   ============================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial .quote {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
}
.testimonial .attrib {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

/* ============================================
   Trust bar
   ============================================ */
.trust-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}
.trust-bar .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.trust-item {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-item::before { content: '◆'; color: var(--gold); font-size: 9px; }

/* ============================================
   Disclaimer banner
   ============================================ */
.disclaimer {
  background: var(--ink);
  color: var(--bg);
}
.disclaimer .wrap { padding: 18px 32px; }
.disclaimer p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: #C7CBBE;
  margin: 0;
  text-align: center;
}

/* ============================================
   Product detail page
   ============================================ */
.detail-hero {
  padding: 56px 0 60px;
  border-bottom: 1px solid var(--line);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: start;
}
.detail-grid h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(38px, 4.5vw, 54px);
  margin: 16px 0 18px;
}
.detail-grid .lede { color: var(--ink-soft); font-size: 17px; max-width: 50ch; margin: 0 0 26px; }

.price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 22px;
}
.price-block .amount {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
}
.price-block .per {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
}

.detail-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
  padding: 64px 0;
}
.detail-body h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 16px;
}
.detail-body .col-main > * + * { margin-top: 40px; }
.detail-body p { color: var(--ink-soft); }

.usage-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.usage-steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.usage-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  color: var(--gold);
  font-size: 13px;
  flex-shrink: 0;
  padding-top: 2px;
}

.placeholder-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--sage);
  background: var(--gold-dim);
  border: 1px dashed var(--gold);
  padding: 10px 14px;
  display: inline-block;
  margin-bottom: 24px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a { text-decoration: none; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .hero-grid, .detail-grid, .detail-body, .footer-grid { grid-template-columns: 1fr; }
  .product-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
}
@media (max-width: 600px) {
  .product-grid, .testimonial-grid, .benefits-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-note { text-align: left; }
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
