/* ---- Shared product page styles ---- */

.subnav {
  background: var(--paper-dim);
  border-bottom: 1px solid var(--line);
}
.subnav-inner {
  display: flex;
  align-items: center;
  padding: 0;
  gap: 0;
}
.subnav-back {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--slate);
  text-decoration: none;
  padding: 14px 20px 14px 0;
  margin-right: 20px;
  border-right: 1px solid var(--line);
  transition: color 0.2s;
}
.subnav-back:hover { color: var(--ink); }
.subnav-brand {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 24px 14px 0;
  margin-right: 20px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.subnav-brand span { color: var(--brass); }
.subnav-links { display: flex; }
.subnav-links a {
  display: block;
  padding: 14px 22px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--slate);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.subnav-links a:hover { color: var(--ink); }
.subnav-links a.active { color: var(--ink); border-bottom-color: var(--brass); }

/* ---- Hero ---- */
.product-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.product-hero::before {
  content: "";
  position: absolute;
  top: -60%; right: -8%;
  width: 560px; height: 560px;
  border: 1px solid rgba(224,173,63,0.15);
  border-radius: 50%;
}
.product-badge {
  display: inline-block;
  background: rgba(224,173,63,0.15);
  border: 1px solid rgba(224,173,63,0.4);
  color: var(--brass-bright);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 24px;
}
.product-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 10px;
  animation: fade-up 0.7s ease both;
}
.product-hero h1 span { color: var(--brass-bright); }
.product-tagline {
  font-size: 1rem;
  color: rgba(246,243,236,0.6);
  letter-spacing: 0.04em;
  margin-bottom: 22px;
  animation: fade-up 0.7s ease 0.05s both;
}
.product-hero p.lead {
  font-size: 1.12rem;
  color: rgba(246,243,236,0.82);
  max-width: 560px;
  margin-bottom: 36px;
  animation: fade-up 0.7s ease 0.1s both;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(246,243,236,0.55);
  margin-top: 18px;
  letter-spacing: 0.04em;
}
.status-pill::before {
  content: "";
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
}

/* ---- Benefits grid ---- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 56px;
}
.benefit-card {
  background: var(--paper);
  padding: 36px 30px;
  transition: background 0.2s, transform 0.2s;
}
.benefit-card:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }
.benefit-icon {
  width: 40px; height: 40px;
  background: rgba(184,134,11,0.12);
  border: 1px solid rgba(184,134,11,0.3);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.2rem;
}
.benefit-card h3 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 10px; }
.benefit-card p { font-size: 0.92rem; color: var(--slate); }
.benefit-card:hover p { color: rgba(246,243,236,0.7); }

/* ---- Simple 3-step ---- */
.simple-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
  position: relative;
}
.simple-steps::before {
  content: "";
  position: absolute;
  top: 28px; left: calc(16.66% + 20px); right: calc(16.66% + 20px);
  height: 1px;
  background: var(--brass);
  opacity: 0.4;
}
.simple-step { text-align: center; }
.simple-step-num {
  width: 56px; height: 56px;
  background: var(--ink);
  color: var(--brass-bright);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.simple-step h3 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 8px; }
.simple-step p { font-size: 0.9rem; color: var(--slate); }

/* ---- Pricing ---- */
.pricing { background: var(--paper-dim); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 56px;
}
.pricing-card {
  background: var(--paper);
  padding: 40px 32px;
  position: relative;
}
.pricing-card.featured { background: var(--ink); color: var(--paper); }
.plan-badge {
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--brass);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
}
.plan-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 16px;
}
.plan-price {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 6px;
}
.pricing-card.featured .plan-price { color: var(--paper); }
.plan-period { font-size: 0.85rem; color: var(--slate); margin-bottom: 28px; }
.pricing-card.featured .plan-period { color: rgba(246,243,236,0.6); }
.plan-features { list-style: none; display: grid; gap: 10px; margin-bottom: 32px; }
.plan-features li {
  font-size: 0.9rem;
  color: var(--slate);
  padding-left: 18px;
  position: relative;
}
.pricing-card.featured .plan-features li { color: rgba(246,243,236,0.75); }
.plan-features li::before { content: "—"; position: absolute; left: 0; color: var(--brass); font-size: 0.8rem; }
.plan-cta {
  display: block;
  text-align: center;
  padding: 12px 24px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
}
.plan-cta-ghost { border: 1px solid var(--line); color: var(--ink); }
.plan-cta-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan-cta-primary { background: var(--brass-bright); color: var(--ink); }
.plan-cta-primary:hover { background: var(--paper); }
.pricing-note { text-align: center; font-size: 0.88rem; color: var(--slate); margin-top: 28px; }

/* ---- CTA strip ---- */
.cta-strip { background: var(--ink); color: var(--paper); text-align: center; padding: 80px 0; }
.cta-strip h2 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.cta-strip p { color: rgba(246,243,236,0.7); font-size: 1rem; max-width: 460px; margin: 0 auto 32px; }
.cta-strip .hero-actions { justify-content: center; }

/* ---- Docs layout ---- */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: 80vh;
}
.docs-sidebar {
  padding: 48px 32px 48px 0;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 120px;
  align-self: start;
}
.docs-sidebar h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
}
.docs-sidebar nav { display: grid; gap: 2px; }
.docs-sidebar a {
  display: block;
  padding: 7px 10px;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--slate);
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}
.docs-sidebar a:hover { background: var(--paper-dim); color: var(--ink); }
.docs-sidebar a.active { background: var(--paper-dim); color: var(--ink); font-weight: 600; }
.docs-content { padding: 48px 0 80px 48px; }
.docs-content h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin-bottom: 16px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.docs-content h2:first-child { border-top: none; padding-top: 0; }
.docs-content h3 { font-family: var(--serif); font-size: 1.2rem; margin: 28px 0 12px; }
.docs-content p { color: var(--slate); font-size: 0.97rem; margin-bottom: 16px; line-height: 1.75; }
.docs-content ul { padding-left: 0; list-style: none; display: grid; gap: 8px; margin-bottom: 20px; }
.docs-content ul li { font-size: 0.95rem; color: var(--slate); padding-left: 20px; position: relative; }
.docs-content ul li::before { content: "—"; position: absolute; left: 0; color: var(--brass); }
code {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 2px;
  font-size: 0.88em;
  font-family: "SF Mono","Fira Mono",monospace;
  color: var(--ink);
}
.callout {
  border-left: 3px solid var(--brass);
  background: rgba(184,134,11,0.06);
  padding: 16px 20px;
  border-radius: 0 2px 2px 0;
  margin: 20px 0;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.convention-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.9rem; }
.convention-table thead tr { background: var(--ink); color: var(--paper); }
.convention-table th { padding: 12px 18px; text-align: left; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.convention-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); font-family: "SF Mono","Fira Mono",monospace; font-size: 0.88rem; }
.convention-table tr:last-child td { border-bottom: none; }
.convention-table td:first-child { color: var(--brass); font-weight: 700; }
.convention-table tr:nth-child(even) td { background: rgba(0,0,0,0.02); }
.stack-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.stack-pill { background: var(--ink); color: var(--paper); padding: 8px 16px; font-size: 0.82rem; font-weight: 600; border-radius: 2px; letter-spacing: 0.04em; }
.isolation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 24px 0; }
.isolation-item { background: var(--paper); padding: 24px 22px; font-size: 0.9rem; color: var(--slate); }
.isolation-item strong { display: block; font-family: var(--serif); font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.steps-list { display: grid; gap: 0; margin: 20px 0; }
.step-row { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); align-items: start; }
.step-row:last-child { border-bottom: 1px solid var(--line); }
.step-row-num { font-family: var(--serif); font-size: 1.2rem; color: var(--brass); font-weight: 600; padding-top: 2px; }
.step-row h4 { font-family: var(--serif); font-size: 1rem; margin-bottom: 6px; }
.step-row p { font-size: 0.9rem; color: var(--slate); margin: 0; }

/* ---- Products landing ---- */
.products-landing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 56px;
}
.product-listing-card {
  background: var(--paper);
  padding: 48px 40px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: background 0.2s, transform 0.2s;
  position: relative;
}
.product-listing-card:hover { background: var(--ink); color: var(--paper); transform: translateY(-4px); }
.product-listing-card .product-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
  display: block;
}
.product-listing-card h3 { font-family: var(--serif); font-size: 1.8rem; margin-bottom: 10px; }
.product-listing-card .tagline { font-size: 0.9rem; color: var(--slate); margin-bottom: 24px; }
.product-listing-card:hover .tagline { color: rgba(246,243,236,0.7); }
.product-listing-card .product-desc { font-size: 0.93rem; color: var(--slate); line-height: 1.7; margin-bottom: 32px; }
.product-listing-card:hover .product-desc { color: rgba(246,243,236,0.7); }
.product-listing-card .arrow-link {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
}

@media (max-width: 880px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .simple-steps { grid-template-columns: 1fr; gap: 28px; }
  .simple-steps::before { display: none; }
  .docs-layout { grid-template-columns: 1fr; padding: 0 20px; }
  .docs-sidebar { position: static; border-right: none; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .docs-content { padding: 32px 0 60px; }
  .isolation-grid { grid-template-columns: 1fr; }
  .products-landing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .product-hero { padding: 60px 0 70px; }
}
