/* ─── TENAX SUBPAGE STYLES ─── */
:root {
  --bg: #F7F9FC;
  --bg-alt: #EEF2F8;
  --bg-card: #FFFFFF;
  --blue: #1A5FB4;
  --blue-bright: #2267CC;
  --blue-glow: #2267CC;
  --blue-light: rgba(34,103,204,0.08);
  --blue-mid: rgba(34,103,204,0.14);
  --cyan: #0099BB;
  --ink: #0F1C2E;
  --ink-mid: #2D3F55;
  --ink-dim: #5A7090;
  --ink-subtle: #8FA3B8;
  --gold: #B07D2A;
  --border: rgba(26,95,180,0.13);
  --border-strong: rgba(26,95,180,0.22);
  --shadow-sm: 0 1px 4px rgba(15,28,46,0.07), 0 4px 16px rgba(15,28,46,0.05);
  --shadow-md: 0 4px 20px rgba(15,28,46,0.1), 0 1px 4px rgba(15,28,46,0.06);
  --font-display: 'Playfair Display', 'Caladea', Georgia, serif;
  --font-body: 'Manrope', 'Carlito', 'Liberation Sans', Arial, sans-serif;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4rem;
  height: 72px;
  background: rgba(247,249,252,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-logo img { height: 38px; }
.nav-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none;
  color: var(--ink-dim);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color var(--transition);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-card);
}
.nav-back:hover { color: var(--blue); border-color: var(--blue-bright); background: var(--blue-light); }
.nav-back svg { transition: transform var(--transition); }
.nav-back:hover svg { transform: translateX(-3px); }

/* HERO BANNER */
.page-hero {
  background: linear-gradient(160deg, #F0F5FF 0%, #E8EEF8 55%, #EEF3FB 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem 4rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(26,95,180,0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 80% at 90% 50%, black 0%, transparent 70%);
}
.page-hero-inner {
  max-width: 1000px; margin: 0 auto;
  position: relative; z-index: 1;
}
.page-hero-logos {
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 1.8rem;
}
.page-hero-logos img {
  max-height: 52px;
  max-width: 180px;
  object-fit: contain;
}
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(34,103,204,0.08);
  border: 1px solid rgba(34,103,204,0.2);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.2rem;
}
.page-eyebrow::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.2rem;
  max-width: 760px;
}
.page-hero-desc {
  font-size: 1.05rem;
  color: var(--ink-mid);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 1.8rem;
}
.cert-links {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.cert-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.cert-link:hover {
  background: var(--blue-light);
  border-color: var(--blue-bright);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.cert-link svg { flex-shrink: 0; opacity: 0.7; }

/* MAIN CONTENT */
.page-main { max-width: 1000px; margin: 0 auto; padding: 4rem; }

/* FUNCTIONS SECTION */
.section-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.section-block h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bg-alt);
  position: relative;
}
.section-block h2::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.functions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.func-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--transition);
}
.func-item:hover {
  border-color: var(--border-strong);
  background: #F0F5FF;
  box-shadow: var(--shadow-sm);
}
.func-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}
.func-item-desc {
  font-size: 0.85rem;
  color: var(--ink-mid);
  line-height: 1.6;
}
.func-item ul {
  list-style: none;
  margin-top: 0.5rem;
}
.func-item ul li {
  font-size: 0.83rem;
  color: var(--ink-mid);
  padding: 0.2rem 0;
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}
.func-item ul li::before {
  content: '–';
  position: absolute; left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* INFO BLOCK (more info link) */
.info-link-block {
  display: flex; align-items: center; gap: 1.2rem;
  background: linear-gradient(135deg, var(--blue-light), rgba(0,153,187,0.06));
  border: 1px solid rgba(34,103,204,0.2);
  border-radius: 12px;
  padding: 1.4rem 1.8rem;
  margin: 2rem 0;
  text-decoration: none;
  transition: var(--transition);
}
.info-link-block:hover {
  background: linear-gradient(135deg, rgba(34,103,204,0.14), rgba(0,153,187,0.1));
  border-color: var(--blue-bright);
  transform: translateX(4px);
}
.info-link-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--blue-light);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}
.info-link-text p {
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin-bottom: 0.2rem;
}
.info-link-text strong {
  font-size: 0.95rem;
  color: var(--blue);
  font-weight: 700;
}
.info-link-arrow {
  margin-left: auto;
  color: var(--blue);
  opacity: 0.6;
  transition: transform var(--transition);
}
.info-link-block:hover .info-link-arrow { transform: translateX(4px); opacity: 1; }

/* LICENSING SECTION */
.licensing-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.licensing-block h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bg-alt);
  position: relative;
}
.licensing-block h2::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold), #D4A055);
}

.license-method { margin-bottom: 2rem; }
.license-method h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}
.license-method ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.license-method ul li {
  font-size: 0.9rem;
  color: var(--ink-mid);
  padding: 0.7rem 1rem;
  background: var(--bg);
  border-left: 3px solid var(--border-strong);
  border-radius: 0 8px 8px 0;
  line-height: 1.55;
  transition: border-color var(--transition);
}
.license-method ul li:hover { border-left-color: var(--blue); }

.price-card {
  background: linear-gradient(135deg, #F5F8FF, #EEF3FB);
  border: 1px solid rgba(34,103,204,0.2);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 1.5rem;
}
.price-card h3 {
  font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 1rem;
}
.price-card p {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}
.price-card p:last-child { margin-bottom: 0; }

.price-highlight {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  margin: 0.5rem 0;
}
.price-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  font-family: var(--font-display);
}
.price-unit {
  font-size: 0.82rem;
  color: var(--ink-dim);
  font-weight: 500;
}

.price-note {
  background: rgba(176,125,42,0.08);
  border: 1px solid rgba(176,125,42,0.2);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  font-size: 0.83rem;
  color: var(--ink-mid);
  line-height: 1.6;
  margin-top: 1rem;
}
.price-note strong { color: var(--gold); }

/* PRICE TABLE */
.price-table-wrap { overflow-x: auto; margin-top: 1.5rem; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.price-table th {
  background: var(--ink);
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.9rem 1rem;
  text-align: left;
  white-space: nowrap;
}
.price-table th:first-child { border-radius: 8px 0 0 0; }
.price-table th:last-child { border-radius: 0 8px 0 0; text-align: right; }
.price-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink-mid);
  line-height: 1.45;
  vertical-align: top;
}
.price-table td:first-child {
  font-weight: 700;
  color: var(--ink);
  width: 36px;
  text-align: center;
}
.price-table td:last-child, .price-table td:nth-last-child(2) {
  text-align: right;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.price-table tr:hover td { background: var(--blue-light); }
.price-table tr:last-child td:first-child { border-radius: 0 0 0 8px; }
.price-table tr:last-child td:last-child { border-radius: 0 0 8px 0; }
.price-table .zero { color: var(--ink-subtle); font-weight: 400; }

/* FOOTER */
footer {
  background: var(--ink);
  padding: 3.5rem 4rem;
  margin-top: 0;
}
.footer-inner-page {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem;
  align-items: start;
}
.footer-logo { height: 34px; margin-bottom: 1rem; filter: brightness(1.1); }
.footer-desc {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  max-width: 260px;
}
.footer-meta-row {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
  margin-bottom: 0.3rem;
}
.footer-meta-row strong { color: rgba(255,255,255,0.5); }
.footer-col h4 {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #2D85F0; margin-bottom: 1rem;
}
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-nav a:hover { color: rgba(255,255,255,0.8); }
.footer-contact { display: flex; flex-direction: column; gap: 0.7rem; }
.contact-row {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.38);
}
.contact-row svg { flex-shrink: 0; margin-top: 2px; color: #2D85F0; }
.contact-row a { color: rgba(255,255,255,0.38); text-decoration: none; transition: color var(--transition); }
.contact-row a:hover { color: #4FA3FF; }
.footer-bottom-bar {
  max-width: 1000px; margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom-bar p { font-size: 0.76rem; color: rgba(255,255,255,0.2); }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .page-hero { padding: 3rem 1.5rem 2.5rem; }
  .page-main { padding: 2.5rem 1.5rem; }
  .functions-grid { grid-template-columns: 1fr; }
  .footer-inner-page { grid-template-columns: 1fr; gap: 2rem; }
  footer { padding: 2.5rem 1.5rem; }
  .cert-links { flex-direction: column; }
}
@media (max-width: 1024px) {
  nav { padding: 0 2rem; }
  .page-hero { padding: 3.5rem 2rem 3rem; }
  .page-main { padding: 3rem 2rem; }
  footer { padding: 3rem 2rem; }
  .footer-inner-page { gap: 2rem; }
}

/* ─── COLLAPSIBLE LICENSING ─── */
.collapsible-section {}

.collapsible-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  list-style: none;
  padding: 0;
  gap: 1rem;
}
.collapsible-trigger::-webkit-details-marker { display: none; }

.collapsible-trigger h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
  pointer-events: none;
}
.collapsible-trigger h2::after { display: none; }

.collapsible-chevron {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-dim);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
details[open] .collapsible-chevron {
  background: var(--blue-light);
  border-color: var(--border-strong);
  color: var(--blue);
}
details[open] .collapsible-chevron svg {
  transform: rotate(180deg);
}
.collapsible-chevron svg {
  transition: transform var(--transition);
}

.collapsible-body {
  padding-top: 1.5rem;
  border-top: 2px solid var(--bg-alt);
  margin-top: 1.5rem;
  position: relative;
}
.collapsible-body::before {
  content: '';
  position: absolute; top: -2px; left: 0;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold), #D4A055);
}

/* Animate open */
details > .collapsible-body {
  animation: slideDown 0.25s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
