/* ============================================================
   Tribeo — v2 components (Nov 2026)
   Extends tribeo.css. Same tokens, same look.
   ============================================================ */

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--violet-500); color: #fff; padding: 10px 16px; border-radius: var(--r-md);
  font-family: var(--f-head); text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--violet-400); outline-offset: 3px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Nav dropdowns ---------- */
.nav-links { gap: 26px; }
.nav-item { position: relative; }
.nav-item > button {
  background: none; border: none; color: var(--text-mut); font: inherit; font-size: 14px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 0;
  transition: color .2s;
}
.nav-item > button:hover, .nav-item.open > button { color: var(--text); }
.nav-item > button svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-item.open > button svg { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 22px); left: -18px; min-width: 270px;
  background: rgba(17,17,20,0.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 10px;
  display: none; flex-direction: column; gap: 2px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
}
.nav-item.open .nav-menu { display: flex; }
.nav-menu a {
  display: block; padding: 10px 12px; border-radius: var(--r-sm); color: var(--text-mut);
  text-decoration: none; font-size: 14px;
}
.nav-menu a:hover { background: var(--glass-2); color: var(--text); }
.nav-menu a small { display: block; font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.nav-menu .menu-label {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); padding: 8px 12px 4px;
}

/* ---------- Hero proof strip ---------- */
.proof-strip {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--text-mut);
}
.proof-strip b { color: var(--text); font-weight: 500; }
.proof-strip span { display: inline-flex; align-items: center; gap: 8px; }
.proof-strip span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-400); }

/* ---------- Big numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { padding: 30px 28px; }
.stat .num {
  font-family: var(--f-head); font-weight: 700; font-size: clamp(44px, 6vw, 68px);
  line-height: .95; letter-spacing: -.04em; color: var(--text);
}
.stat .num .violet { color: var(--violet-400); }
.stat .lbl { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mut); margin-top: 12px; }

/* ---------- Role family cards ---------- */
.fam h3 { font-family: var(--f-head); font-weight: 600; font-size: 21px; margin-bottom: 8px; }
.fam p { color: var(--text-mut); font-size: 15px; line-height: 1.55; margin-bottom: 16px; }
.fam ul { list-style: none; display: grid; gap: 8px; }
.fam li a, .fam li span {
  color: var(--text); text-decoration: none; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
}
.fam li a:hover { color: var(--violet-300); }
.fam li a::after { content: "→"; color: var(--violet-400); font-size: 13px; }
.fam li span { color: var(--text-mut); }

/* ---------- Two-path cards (US / LATAM) ---------- */
.path-card { padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.path-card h3 { font-family: var(--f-head); font-weight: 600; font-size: 26px; }
.path-card p { color: var(--text-mut); font-size: 15.5px; line-height: 1.6; }
.path-card .btn, .path-card .tag { align-self: flex-start; }
.path-card .btn { margin-top: 8px; }

/* ---------- Check list ---------- */
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-mut); font-size: 15.5px; line-height: 1.55; }
.checks li::before {
  content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; border-radius: 6px;
  background: rgba(123,47,255,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2A0FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
  border: 1px solid rgba(123,47,255,.35);
}
.checks li b { color: var(--text); font-weight: 600; }
.checks.x li::before {
  background: rgba(255,92,26,.10) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6B35' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/11px no-repeat;
  border-color: rgba(255,92,26,.30);
}

/* ---------- Article / long-form ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-family: var(--f-head); font-weight: 600; font-size: clamp(24px, 3vw, 32px); line-height: 1.12; letter-spacing: -.02em; margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--f-head); font-weight: 600; font-size: 20px; margin: 28px 0 10px; }
.prose p { color: var(--text-mut); font-size: 17px; line-height: 1.7; margin-bottom: 16px; }
.prose p strong, .prose li strong { color: var(--text); font-weight: 600; }
.prose ul.checks { margin: 8px 0 20px; }
.prose a { color: var(--violet-300); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.side-card { position: sticky; top: 104px; padding: 28px; }
.side-card h3 { font-family: var(--f-head); font-weight: 600; font-size: 20px; margin-bottom: 10px; }
.side-card p { color: var(--text-mut); font-size: 14.5px; line-height: 1.55; margin-bottom: 18px; }
.side-card .btn { width: 100%; justify-content: center; }
.side-card dl { display: grid; gap: 12px; margin: 0 0 22px; }
.side-card dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.side-card dd { font-family: var(--f-head); font-weight: 600; font-size: 16px; color: var(--text); }

/* ---------- Breadcrumb ---------- */
.crumbs { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--text-dim); margin-bottom: 26px; }
.crumbs a { color: var(--text-mut); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span { margin: 0 8px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 48px 0 72px; }
.page-hero h1 { font-family: var(--f-head); font-weight: 700; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.0; letter-spacing: -.035em; max-width: 18ch; margin: 20px 0 22px; }
.page-hero .lede { max-width: 58ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; gap: 20px;
  font-family: var(--f-head); font-weight: 600; font-size: 17.5px; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet-400); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 24px 22px; color: var(--text-mut); font-size: 15.5px; line-height: 1.65; }
.faq .a p + p { margin-top: 10px; }

/* ---------- Fee / terms blocks ---------- */
.fee-hero { padding: 44px; display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.fee-hero .big { font-family: var(--f-head); font-weight: 700; font-size: clamp(64px, 9vw, 108px); line-height: .9; letter-spacing: -.05em; color: var(--violet-400); text-shadow: var(--glow-violet); }
.fee-hero h2 { font-family: var(--f-head); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; }
.fee-hero p { color: var(--text-mut); font-size: 16px; line-height: 1.6; }
.addon { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.addon .card .price { font-family: var(--f-head); font-weight: 700; font-size: 34px; letter-spacing: -.03em; margin: 6px 0 4px; }
.addon .card .unit { font-family: var(--f-mono); font-size: 12px; color: var(--text-dim); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Steps list (vertical) ---------- */
.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: start; padding: 26px 28px; }
.step h3 { font-family: var(--f-head); font-weight: 600; font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--text-mut); font-size: 15.5px; line-height: 1.6; }
.step .when { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-300); white-space: nowrap; padding-top: 6px; }

/* ---------- Compare table ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); font-weight: 500; }
.compare td { color: var(--text-mut); }
.compare td:first-child { color: var(--text); font-family: var(--f-head); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg-2); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 14px 15px; color: var(--text); font-family: var(--f-body); font-size: 15px; transition: all .2s ease;
}
.field select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A8A9A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.field textarea { min-height: 110px; resize: vertical; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--violet-500); box-shadow: 0 0 0 3px rgba(123,47,255,.18); }
.field .hint { font-size: 13px; color: var(--text-dim); margin-top: 7px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--text-dim); }
.form-msg { display: none; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--glass); color: var(--text); font-size: 15px; line-height: 1.55; }
.form-msg.show { display: block; }
.form-msg.err { border-color: rgba(255,92,26,.4); }

/* ---------- Book page ---------- */
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.video-slot { aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-3); }
.video-slot iframe { width: 100%; height: 100%; border: 0; display: block; }
.agenda { display: grid; gap: 12px; margin-top: 8px; }
.agenda div { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.agenda .n { font-family: var(--f-mono); font-size: 12px; color: var(--violet-300); padding-top: 3px; }
.agenda p { color: var(--text-mut); font-size: 15.5px; line-height: 1.55; }
.agenda p b { color: var(--text); font-weight: 600; }

/* ---------- Quote ---------- */
.quote { padding: 30px 32px; }
.quote blockquote { font-family: var(--f-head); font-weight: 500; font-size: 19px; line-height: 1.45; letter-spacing: -.01em; color: var(--text); }
.quote figcaption { margin-top: 16px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--text-mut); }

/* ---------- Footer v2 ---------- */
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-col h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); font-weight: 500; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--text-mut); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-about p { color: var(--text-mut); font-size: 14px; line-height: 1.6; margin: 16px 0 18px; max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .page-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .book-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links.open { max-height: calc(100vh - 110px); overflow-y: auto; gap: 4px; background: var(--bg-2); }
  .nav-links.open > a, .nav-links.open .nav-item > button { padding: 10px 0; min-height: 44px; }
  .nav-menu a { padding: 12px; }
  .footer-col ul { gap: 4px; }
  .footer-col a { display: inline-block; padding: 8px 0; }
  .nav-links.open .nav-item { width: 100%; }
  .nav-links.open .nav-menu { position: static; min-width: 0; box-shadow: none; background: transparent; border: none; padding: 6px 0 0 6px; }
  .nav-menu { left: 0; }
  .nav-right .btn { padding: 10px 14px; font-size: 13.5px; }
  .stats { grid-template-columns: 1fr; }
  .fee-hero { grid-template-columns: 1fr; padding: 30px 26px; gap: 18px; }
  .addon { grid-template-columns: 1fr; }
  .form .row-2 { grid-template-columns: 1fr; }
  .step { grid-template-columns: auto 1fr; padding: 22px; }
  .step .when { grid-column: 2; padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .page-hero { padding: 28px 0 56px; }
  .float-chip { display: none; }
  .node-stage { max-width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .node-float { animation: none; }
  html { scroll-behavior: auto; }
}
