/* Attera v2 — shared subpage CSS (Product / Pricing / Use Cases / Legal) */

/* ===== Subhero ===== */
.subhero {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--rule);
}
.subhero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
}
.subhero h1 {
  font-size: clamp(44px, 5.6vw, 76px);
  max-width: 16ch;
  margin-bottom: 24px;
}
.subhero__lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44ch;
  border-left: 2px solid var(--teal);
  padding-left: 20px;
}
@media (max-width: 880px) {
  .subhero__grid { grid-template-columns: 1fr; gap: 24px; }
  .subhero__lede { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 20px; }
}

/* ===== Editorial section header ===== */
.subsection-head {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 64px;
  margin-bottom: 48px;
  align-items: end;
}
.subsection-head h2 { max-width: 14ch; margin-top: 12px; }
.subsection-head p { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
@media (max-width: 880px) {
  .subsection-head { grid-template-columns: 1fr; gap: 16px; }
}

/* ===== Two-column module (Product page) ===== */
.module {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}
.module:last-of-type { border-bottom: 1px solid var(--rule); }
.module.reverse { direction: rtl; }
.module.reverse > * { direction: ltr; }
.module__copy h3 { margin: 16px 0 16px; font-size: 36px; max-width: 14ch; }
.module__copy p { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.module__copy p + p { margin-top: 1em; }
.module__copy ul {
  margin-top: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.module__copy ul li {
  font-size: 14.5px; line-height: 1.55; color: var(--ink-2);
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-soft);
}
.module__copy ul li::before {
  content: "·"; color: var(--teal-deep); font-family: var(--mono); flex-shrink: 0; font-size: 18px; line-height: 1; transform: translateY(-1px);
}

.module__vis {
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 24px;
  min-height: 320px;
  display: flex; flex-direction: column; gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
}
.module__vis-head {
  display: flex; justify-content: space-between;
  font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--mute);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.module__vis-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px dashed var(--rule-soft);
}
.module__vis-row:last-child { border-bottom: 0; }
.module__vis-row .lbl { color: var(--mute); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.module__vis-row .val { color: var(--ink); font-family: var(--serif); font-size: 15px; font-weight: 500; }
.module__vis-row .val.teal { color: var(--teal-deep); }
.module__vis-row .val.amber { color: var(--amber); }
.module__vis-row .pill { display: inline-block; font-size: 9.5px; padding: 1px 6px; border-radius: 2px; margin-left: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.module__vis-row .pill.ok { background: var(--teal-tint); color: var(--teal-deep); }
.module__vis-row .pill.flag { background: var(--amber-tint); color: var(--amber); }
.module__vis-row .pill.flag::before { content: "⚠ "; }

@media (max-width: 880px) {
  .module { grid-template-columns: 1fr; gap: 32px; }
  .module.reverse { direction: ltr; }
}

/* ===== Pricing comparison table ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}
.pricing-card {
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 28px 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.pricing-card.featured {
  border-color: var(--ink);
  background: var(--paper-3);
  position: relative;
}
.pricing-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -1px; left: -1px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0 0 3px 0;
}
.pricing-card .tier {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
}
.pricing-card .price {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "SOFT" 0;
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pricing-card .price small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mute);
  text-transform: uppercase;
  margin-left: 6px;
}
.pricing-card .alt {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.04em;
}
.pricing-card .desc {
  font-size: 14px; line-height: 1.5; color: var(--ink-2);
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  margin-top: auto;
}
.pricing-card .btn { margin-top: 4px; align-self: stretch; justify-content: center; }

.pricing-toggle {
  display: inline-flex;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 3px;
  margin-bottom: 40px;
}
.pricing-toggle button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 2px;
  color: var(--mute);
}
.pricing-toggle button.is-active {
  background: var(--paper-3);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--rule);
}

@media (max-width: 1080px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ===== Comparison table ===== */
.compare th:not(:first-child),
.compare td:not(:first-child) { text-align: center; }
.compare td:first-child {
  font-family: var(--serif); color: var(--ink); font-size: 15px;
}
.compare td .yes { color: var(--teal-deep); font-family: var(--mono); font-size: 13px; }
.compare td .no  { color: var(--mute); font-family: var(--mono); font-size: 13px; }
.compare td .note { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.compare thead th { font-family: var(--serif); color: var(--ink); font-size: 15px; font-weight: 400; text-transform: none; letter-spacing: 0; text-align: center; }
.compare thead th:first-child { text-align: left; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mute); }
.compare .group-row td { background: var(--paper-2); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mute); padding-top: 18px; padding-bottom: 10px; }

/* ===== Tabs (Use Cases) ===== */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 56px;
}
.tabs button {
  padding: 16px 24px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  color: var(--mute);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  letter-spacing: -0.005em;
}
.tabs button.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.tabs button .tab-num {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--mute); margin-right: 8px; letter-spacing: 0.08em; text-transform: uppercase;
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ===== Legal long-form ===== */
.legal { padding: 64px 0 96px; }
.legal__head { margin-bottom: 48px; max-width: 56ch; }
.legal__head h1 { font-size: clamp(40px, 4.5vw, 58px); margin-bottom: 18px; }
.legal__head .meta {
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--mute);
}
.legal__body {
  max-width: var(--w-reading);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.legal__body h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 56px 0 18px;
  display: flex; align-items: baseline; gap: 14px;
}
.legal__body h2 .num {
  font-family: var(--serif); font-style: italic;
  font-variation-settings: "opsz" 36, "SOFT" 20;
  color: var(--mute);
  font-size: 0.85em;
}
.legal__body h3 { font-size: 18px; margin: 32px 0 8px; color: var(--ink); }
.legal__body p { margin: 0 0 1em; }
.legal__body ul { margin: 1em 0; padding-left: 1.4em; list-style: disc outside; }
.legal__body ul li { margin-bottom: 0.4em; }
.legal__body strong { color: var(--ink); font-weight: 600; }
.legal__body a { color: var(--teal-deep); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.legal__body a:hover { text-decoration-color: var(--teal-deep); }
.legal__body .table-wrap { margin: 24px 0; }

/* Pricing cards marked as future tiers (launching with first design partner) */
.pricing-card--future {
  border-style: dashed;
  background: transparent;
}
.pricing-card--future .tier::after {
  content: " · launching";
  color: var(--mute);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: 4px;
}
