/* ===== License page — supplemental styles (layered over style.css) ===== */

/* Hero */
.license-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 48px;
  background: linear-gradient(180deg, #F5F3FF 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border);
}
.license-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(124,58,237,.18), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(251,146,60,.14), transparent 35%);
  pointer-events: none;
}
.license-hero-inner { position: relative; text-align: center; }
.license-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 16px 0 12px;
}
.license-sub {
  color: var(--text-muted);
  font-size: clamp(15px, 1.4vw, 17px);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}
.license-sub code {
  background: var(--violet-50);
  color: var(--violet-700);
  border: 1px solid var(--violet-100);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.92em;
}
.license-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.license-meta-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.license-meta-label { color: var(--text-muted); }
.license-meta-value { font-weight: 600; }
.license-meta-link { color: var(--violet-700); text-decoration: underline; text-underline-offset: 3px; }
.license-meta-divider {
  width: 1px;
  height: 18px;
  background: var(--slate-200);
}

/* TOC strip */
.license-toc {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding: 32px 0;
}
.license-toc-title { font-size: 14px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.license-toc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 24px;
  list-style: none;
}
.license-toc-list li {
  counter-increment: toc;
}
.license-toc-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--slate-700);
  border-bottom: 1px dashed transparent;
  transition: color .15s, border-color .15s;
}
.license-toc-list a:hover { color: var(--violet-700); border-bottom-color: var(--violet-200); }
.license-toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  color: var(--violet-700);
  font-weight: 700;
}

/* License Basis grid */
.basis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.basis-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
}
.basis-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.basis-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet-700);
  background: var(--violet-50);
  border: 1px solid var(--violet-100);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.basis-card-tag-future { color: var(--slate-500); background: var(--slate-50); border-color: var(--slate-200); }
.basis-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.basis-card p { color: var(--slate-600); font-size: 14px; line-height: 1.6; }

/* License table */
.license-table-wrap {
  margin-top: 32px;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.license-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.license-table th, .license-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: top;
}
.license-table thead th {
  background: var(--violet-50);
  color: var(--violet-900);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom-color: var(--violet-100);
}
.license-table tbody tr:last-child td { border-bottom: 0; }
.license-table tbody tr:hover { background: var(--bg-alt); }
.tier-link {
  color: var(--violet-700);
  font-weight: 700;
}
.tier-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.price-cell { font-weight: 600; color: var(--slate-800); }
.price-cell-sub { font-size: 12.5px; color: var(--text-muted); font-weight: 400; }
.license-table-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Basis pills (used in table AND tier detail) */
.basis-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.basis-pill-trial { background: var(--violet-50); color: var(--violet-700); border: 1px solid var(--violet-100); }
.basis-pill-user { background: #ECFDF5; color: #047857; border: 1px solid #D1FAE5; }
.basis-pill-enterprise { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }
.basis-pill-price { background: #EFF6FF; color: #1D4ED8; border: 1px solid #DBEAFE; }
.basis-pill-neutral { background: var(--slate-50); color: var(--slate-700); border: 1px solid var(--slate-200); }

/* Tier detail sections */
.license-tier { scroll-margin-top: 96px; }
.tier-header {
  text-align: center;
  margin-bottom: 32px;
}
.tier-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet-700);
  background: var(--violet-50);
  border: 1px solid var(--violet-100);
  padding: 4px 12px;
  border-radius: 999px;
}
.tier-title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
  line-height: 1.15;
}
.tier-tagline {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto 18px;
}
.tier-pill-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 800px) {
  .tier-grid { grid-template-columns: 1fr; }
}
.tier-col h3 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 22px 0 10px;
  font-weight: 700;
}
.tier-col h3:first-child { margin-top: 0; }
.tier-col p { color: var(--slate-700); line-height: 1.7; font-size: 15px; }
.tier-bullets, .tier-restrictions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tier-bullets li, .tier-restrictions li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: var(--slate-700);
  line-height: 1.6;
}
.tier-bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 0 0 3px rgba(16,185,129,.18);
}
.tier-restrictions li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 0;
  height: 0;
  border-left: 11px solid #DC2626;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  filter: drop-shadow(0 0 0 rgba(220,38,38,.15));
}
.tier-restrictions {
  background: #FFF7F7;
  border: 1px solid #FECACA;
  border-radius: var(--radius);
  padding: 18px 20px;
}

/* Grant cards */
.grant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 800px) { .grant-grid { grid-template-columns: 1fr; } }
.grant-card {
  border-radius: var(--radius);
  padding: 24px 26px;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.grant-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.grant-card ul { display: flex; flex-direction: column; gap: 8px; }
.grant-card li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--slate-700);
  line-height: 1.6;
}
.grant-yes { border-top: 4px solid #10B981; }
.grant-yes h3::before {
  content: "✓";
  display: inline-block;
  width: 24px; height: 24px;
  background: #10B981; color: white;
  border-radius: 50%;
  font-size: 14px;
  text-align: center;
  line-height: 24px;
}
.grant-yes li::before {
  content: ""; position: absolute; left: 4px; top: 7px;
  width: 10px; height: 5px;
  border-left: 2px solid #10B981;
  border-bottom: 2px solid #10B981;
  transform: rotate(-45deg);
}
.grant-no { border-top: 4px solid #DC2626; }
.grant-no h3::before {
  content: "✕";
  display: inline-block;
  width: 24px; height: 24px;
  background: #DC2626; color: white;
  border-radius: 50%;
  font-size: 14px;
  text-align: center;
  line-height: 24px;
}
.grant-no li::before {
  content: ""; position: absolute; left: 8px; top: 4px;
  width: 2px; height: 14px;
  background: #DC2626;
  transform: rotate(45deg);
}
.grant-no li::after {
  content: ""; position: absolute; left: 8px; top: 4px;
  width: 2px; height: 14px;
  background: #DC2626;
  transform: rotate(-45deg);
}

/* Two-column-with-header helper */
.two-col {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}
.two-col-tight { grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: 16px; }
  .two-col-tight { grid-template-columns: 1fr; }
}
.section-head-left { text-align: left; }
.section-head-left .section-title { margin-bottom: 0; }

/* Pricing notes */
.pricing-note {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.pricing-note h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.pricing-note p { font-size: 14.5px; color: var(--slate-700); line-height: 1.65; }

/* Support */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.support-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.support-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.support-card p { color: var(--slate-700); font-size: 14.5px; line-height: 1.65; }

/* Acceptance CTA */
.acceptance-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

/* ===== Section 9.0 — third-party components & upstream attribution ===== */
.third-subhead {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 32px 0 14px;
}
.third-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.third-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.third-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.third-card-head h4 { font-size: 17px; font-weight: 700; }
.third-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-700);
  background: var(--violet-50);
  border: 1px solid var(--violet-100);
  border-radius: 999px;
  padding: 3px 9px;
}
.third-role {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 14px;
}
.third-meta { display: flex; flex-direction: column; gap: 8px; }
.third-meta-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 13.5px;
}
.third-meta-row dt { color: var(--text-muted); }
.third-meta-row dd { color: var(--slate-700); font-weight: 600; word-break: break-word; }
.third-meta-row dd a { color: var(--violet-700); text-decoration: underline; text-underline-offset: 3px; }

.third-block {
  margin-top: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.third-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.third-block-head h3 { font-size: 16px; font-weight: 700; }
.third-source-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--violet-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.third-block-note {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}
.third-pre {
  font-family: var(--mono);
  font-size: 12.8px;
  line-height: 1.75;
  color: var(--slate-800);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-left: 3px solid #C4B5FD;
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  white-space: pre;
}
.third-pre-mit { border-left-color: #10B981; }
.third-scope {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}
@media (max-width: 640px) {
  .third-pre { white-space: pre-wrap; word-break: break-word; font-size: 12.2px; }
  .third-meta-row { grid-template-columns: 1fr; gap: 2px; }
}
