/*
  Components: small, reusable, styled pieces (buttons, nav, cards).
  Each block below is self-contained — you should be able to delete a
  section wholesale if that component is removed from the page, without
  hunting for leftover rules elsewhere.
*/

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Wordmark (logo + name), used in header and footer ---------- */
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mark-icon {
  width: 30px;
  height: 30px;
  flex: none;
}
.foot-left .mark-icon {
  width: 22px;
  height: 22px;
}

.wordmark .name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.foot-left .wordmark .name {
  font-size: 15px;
}

.wordmark .tag {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
  border: 1px solid var(--line-strong);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---------- Primary nav ---------- */
nav.links {
  display: flex;
  flex-wrap: wrap;
  row-gap: 8px;
  gap: clamp(14px, 2vw, 28px);
  min-width: 0; /* allow this nested flex container to shrink below its content width so it wraps instead of overflowing on narrow screens */
}
nav.links a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 160ms ease;
}
nav.links a:hover {
  color: var(--accent);
}

.nav-cta {
  display: none;
}
@media (min-width: 720px) {
  .nav-cta {
    display: inline-flex;
  }
}

/* ---------- Hero eye caption ---------- */
.aperture-caption {
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  text-align: center;
  max-width: 320px;
}
.aperture-caption b {
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- Readout strip text ---------- */
.readout span {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.readout span.dev {
  color: var(--accent-strong);
  font-weight: 700;
}

/* ---------- Capability panels (3-up dial cards) ---------- */
.panels {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 640px) {
  .panels {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 980px) {
  .panels {
    grid-template-columns: repeat(3, 1fr);
  }
}

.panel {
  background: var(--surface);
  padding: clamp(28px, 4vw, 44px);
  position: relative;
}
.panel + .panel {
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) {
  .panel + .panel {
    border-top: none;
    border-left: 1px solid var(--line);
  }
}

.panel .kicker {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
  text-transform: uppercase;
}
.panel h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-top: 10px;
}
.panel .desc {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 46ch;
}

.panel ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
}
.panel li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Product card ---------- */
.product-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  padding: clamp(30px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.product-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.product-top h3 {
  font-size: clamp(22px, 2.6vw, 30px);
}
.product-desc {
  color: var(--ink-soft);
  max-width: 62ch;
}

.kicker.pill {
  border: 1px solid var(--line-strong);
  padding: 3px 9px;
  border-radius: 3px;
}

.product-features {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .product-features {
    grid-template-columns: 1fr 1fr;
  }
}
.product-features li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
}
.product-features li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}

.product-meta {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* ---------- Approach triptych ---------- */
.triptych {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 860px) {
  .triptych {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tri-item {
  background: var(--surface);
  padding: clamp(26px, 3vw, 34px);
}
.tri-item .mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  position: relative;
  margin-bottom: 18px;
}
.tri-item .mark::after {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.tri-item h3 {
  font-size: 19px;
}
.tri-item p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 40ch;
}

/* ---------- Contact band ---------- */
.contact-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  padding: clamp(40px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-band .eyebrow {
  color: var(--accent);
}
.contact-band h1,
.contact-band h2 {
  color: var(--bg);
  font-size: clamp(26px, 3.6vw, 38px);
  max-width: 20ch;
}
.contact-band p {
  color: color-mix(in srgb, var(--bg) 72%, transparent);
  max-width: 56ch;
  font-size: 15.5px;
}
.contact-band .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.contact-band .btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.contact-band .btn-ghost {
  border-color: color-mix(in srgb, var(--bg) 35%, transparent);
  color: var(--bg);
}
.contact-band .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Footer links ---------- */
.foot-left p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13.5px;
  max-width: 40ch;
}
.foot-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.foot-links a {
  font-size: 13.5px;
  text-decoration: none;
  color: var(--ink-soft);
}
.foot-links a:hover {
  color: var(--accent);
}
.foot-meta {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
