/* Unified Obsidian Minimalist Design System for Firby Public Subpages
   Matches firbyai.com (--p1-* tokens): monochrome obsidian, hairline rules, zero AI slop, zero images. */

html.js,
body.p1-page.p1-subpage {
  background: var(--p1-bg);
  color: var(--p1-ink);
  font-family: var(--p1-font);
  max-width: 100%;
  overflow-x: clip;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.p1-page.p1-subpage *,
body.p1-page.p1-subpage *::before,
body.p1-page.p1-subpage *::after {
  box-sizing: border-box;
}

:where(body.p1-page.p1-subpage) a {
  color: inherit;
  text-decoration: none;
}

.TZTsQG_header .TZTsQG_anchor[aria-current="page"] {
  color: var(--p1-ink);
}

main.editorial-container,
main.page-container,
main.legal-container,
main.sub-main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* ── SHARED PAGE CONTAINERS ── */
.editorial-container,
.sub-main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 32px 104px;
}

.page-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 104px;
}

.legal-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 32px 104px;
}

/* ── PAGE HEADERS (NO EYEBROW PILLS) ── */
.editorial-hero,
.page-header,
.legal-header {
  margin-bottom: 44px;
}

.legal-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--p1-hairline);
}

.sub-kicker,
.kicker-pill,
.legal-kicker {
  display: block;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--p1-dim);
}

.editorial-hero-title,
.page-title,
.legal-title {
  font-family: var(--p1-font);
  font-size: clamp(34px, 4.7vw, 56px);
  font-weight: 480;
  line-height: 1.06;
  letter-spacing: -0.034em;
  color: var(--p1-ink);
  max-width: 24ch;
  margin: 0 0 18px;
}

.legal-title {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  max-width: 28ch;
  margin-bottom: 14px;
}

.editorial-hero-sub,
.page-subtitle {
  font-size: clamp(16px, 1.85vw, 18.5px);
  font-weight: 400;
  line-height: 1.56;
  letter-spacing: -0.011em;
  color: var(--p1-muted);
  max-width: 60ch;
  margin: 0;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--p1-dim);
}

/* ── EDITORIAL TWO-COLUMN SECTIONS ── */
.editorial-section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--p1-hairline);
  align-items: start;
}

.editorial-section > * {
  min-width: 0;
}

.editorial-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--p1-dim);
  letter-spacing: 0;
  padding-top: 3px;
}

.editorial-content {
  max-width: 680px;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--p1-muted);
}

.editorial-content p {
  margin: 0 0 20px;
}

.editorial-content p:last-child {
  margin-bottom: 0;
}

.editorial-content code {
  font-family: var(--p1-mono);
  font-size: 0.88em;
  color: var(--p1-ink-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--p1-hairline);
  border-radius: 4px;
  padding: 1px 6px;
}

.editorial-lead {
  font-size: 20px;
  line-height: 1.46;
  letter-spacing: -0.02em;
  color: var(--p1-ink);
  font-weight: 480;
  margin-bottom: 18px;
}

.sub-lead-meta {
  color: var(--p1-muted);
  font-size: 14px;
  margin: -10px 0 18px;
}

.principles-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.principle-item {
  border-bottom: 1px solid var(--p1-hairline);
  padding: 22px 0;
}

.principle-item:first-child {
  padding-top: 0;
}

.principle-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sub-metric-num {
  font-family: var(--p1-font);
  font-size: 36px;
  font-weight: 480;
  letter-spacing: -0.032em;
  color: var(--p1-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 8px;
}

.principle-title {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--p1-ink);
}

.principle-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--p1-muted);
}

.sub-cta-wrap {
  margin-top: 36px;
}

.sub-cta-solid,
.editorial-content a.btn-getstarted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 9999px;
  background: #ffffff;
  color: #08090a;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  border: 1px solid #ffffff;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.sub-cta-solid:hover,
.editorial-content a.btn-getstarted:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

/* ── PRICING SUBPAGE (/planes) ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--p1-hairline);
  border-bottom: 1px solid var(--p1-hairline);
  margin: 0 0 40px;
}

.pricing-card {
  min-width: 0;
  padding: 36px 30px;
  border-right: 1px solid var(--p1-hairline);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.pricing-card:last-child {
  border-right: 0;
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032) 0%, transparent 100%);
  border-color: var(--p1-hairline);
}

.pricing-tier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.pricing-tier-name {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--p1-ink);
}

.pricing-badge-popular {
  position: static;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--p1-accent);
  white-space: nowrap;
}

.pricing-tagline {
  margin: 0 0 22px;
  font-size: 13.5px;
  line-height: 1.54;
  color: var(--p1-muted);
  min-height: 64px;
}

.pricing-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.pricing-price {
  font-size: 34px;
  font-weight: 480;
  letter-spacing: -0.032em;
  color: var(--p1-ink);
}

.pricing-period {
  font-size: 12.5px;
  color: var(--p1-dim);
}

.pricing-usd {
  font-size: 12.5px;
  color: var(--p1-dim);
  margin: 4px 0 0;
  font-variant-numeric: tabular-nums;
}

.pricing-divider {
  height: 1px;
  background: var(--p1-hairline);
  margin: 22px 0;
}

.pricing-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--p1-ink-soft);
}

.pricing-feature-item strong {
  color: var(--p1-ink);
  font-weight: 500;
}

.feature-icon-check {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--p1-dim);
  margin-top: 3px;
}

.btn-pricing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  padding: 0 18px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn-pricing-outline {
  color: var(--p1-ink);
  background: transparent;
  border: 1px solid var(--p1-hairline-strong);
}

.btn-pricing-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.36);
}

.btn-pricing-solid,
a.btn-pricing-solid {
  color: #08090a;
  background: #ffffff;
  border: 1px solid #ffffff;
  font-weight: 550;
}

.btn-pricing-solid:hover,
a.btn-pricing-solid:hover {
  background: #e5e7eb;
  border-color: #e5e7eb;
  color: #08090a;
}

.guarantee-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--p1-hairline);
}

.guarantee-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--p1-ink);
}

.guarantee-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: var(--p1-muted);
}

/* ── ROI CALCULATOR (/calculadora) ── */
.calc-panel {
  background: #07090c;
  border: 1px solid var(--p1-hairline-strong);
  border-radius: 12px;
  padding: 32px;
}

.calc-slider-group {
  margin-bottom: 26px;
}

.calc-slider-group--last {
  margin-bottom: 32px;
}

.calc-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  flex-wrap: wrap;
}

.calc-slider-label {
  color: var(--p1-ink-soft);
  font-weight: 480;
}

.calc-slider-val {
  color: var(--p1-ink);
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.calc-range {
  width: 100%;
  height: 4px;
  accent-color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  cursor: pointer;
}

.calc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--p1-hairline);
  border: 1px solid var(--p1-hairline);
  border-radius: 10px;
  overflow: hidden;
}

.calc-kpi-cell {
  background: #090b0f;
  padding: 18px 20px;
  min-width: 0;
}

.calc-kpi-cell--highlight {
  background: #0d1015;
}

.calc-kpi-label {
  font-size: 12px;
  color: var(--p1-dim);
  margin-bottom: 6px;
}

.calc-kpi-value {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--p1-ink);
  font-variant-numeric: tabular-nums;
}

.calc-kpi-cell--highlight .calc-kpi-value {
  color: var(--p1-accent);
}

.calc-cta-row {
  margin-top: 28px;
}

/* ── CONTACT PAGE (/contact-us) ── */
.sub-contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  padding-top: 44px;
  border-top: 1px solid var(--p1-hairline);
  align-items: start;
}

.sub-contact-aside h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--p1-ink);
}

.sub-contact-aside p {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.62;
  color: var(--p1-muted);
}

.sub-contact-meta {
  border-top: 1px solid var(--p1-hairline);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--p1-muted);
}

.sub-contact-meta strong {
  color: var(--p1-ink-soft);
  font-weight: 500;
}

.sub-contact-form {
  background: #07090c;
  border: 1px solid var(--p1-hairline-strong);
  border-radius: 12px;
  padding: 28px;
}

.sub-contact-form label {
  display: block;
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--p1-ink-soft);
}

.sub-contact-form input,
.sub-contact-form textarea {
  width: 100%;
  margin: 0 0 18px;
  border: 1px solid var(--p1-hairline-strong);
  border-radius: 8px;
  padding: 11px 13px;
  font: inherit;
  font-size: 15px;
  color: var(--p1-ink);
  background: #040608;
  transition: border-color 0.16s ease;
}

.sub-contact-form input:focus,
.sub-contact-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.42);
}

.sub-contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.sub-contact-submit {
  appearance: none;
  border: 0;
  border-radius: 9999px;
  height: 40px;
  padding: 0 22px;
  background: #ffffff;
  color: #08090a;
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.sub-contact-submit:hover {
  background: #e5e7eb;
}

.sub-contact-status {
  min-height: 22px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--p1-ink-soft);
}

/* ── LEGAL PAGES (/privacy, /terms, /data-agreement) ── */
.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  font-family: var(--p1-font);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--p1-ink);
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--p1-hairline);
}

.legal-section:first-of-type h2 {
  margin-top: 0;
}

.legal-section h3 {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--p1-ink-soft);
  margin: 18px 0 8px;
}

.legal-section p {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--p1-muted);
  margin: 0 0 14px;
}

.legal-section strong {
  color: var(--p1-ink-soft);
  font-weight: 550;
}

.legal-section code {
  font-family: var(--p1-mono);
  font-size: 0.86em;
  color: var(--p1-ink-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--p1-hairline);
  border-radius: 4px;
  padding: 1px 5px;
}

.legal-section ul {
  list-style: none;
  margin: 12px 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.legal-section li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.66;
  color: var(--p1-muted);
}

.legal-section li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
}

.legal-policy-note {
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--p1-hairline);
  border-left: 2px solid var(--p1-accent);
  border-radius: 6px;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--p1-ink-soft);
}

.legal-policy-note a {
  color: var(--p1-ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.plan-summary-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--p1-hairline);
  border-radius: 10px;
  margin: 16px 0 20px;
  background: #07090c;
}

.plan-summary-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.55;
}

.plan-summary-table th,
.plan-summary-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--p1-hairline);
  text-align: left;
  vertical-align: top;
}

.plan-summary-table thead th {
  font-size: 12px;
  font-weight: 500;
  color: var(--p1-dim);
  background: #05070a;
}

.plan-summary-table tbody tr:last-child td {
  border-bottom: 0;
}

.plan-summary-table tbody td {
  color: var(--p1-muted);
}

.plan-summary-table tbody td strong {
  color: var(--p1-ink);
}

@keyframes subFailsafeReveal {
  to {
    opacity: 1;
  }
}

html.firby-i18n-resolving main,
html.firby-i18n-resolving .TZTsQG_navItems,
html.firby-i18n-resolving .TZTsQG_buttons,
html.firby-i18n-resolving .firby-nav-language,
html.firby-i18n-resolving .p1-footer {
  opacity: 0;
  animation: subFailsafeReveal 0.01s 0.45s forwards;
}

@media (prefers-reduced-motion: no-preference) {
  html.js:not(.firby-hero-ready) main .sub-kicker,
  html.js:not(.firby-hero-ready) main .kicker-pill,
  html.js:not(.firby-hero-ready) main .legal-kicker,
  html.js:not(.firby-hero-ready) main h1,
  html.js:not(.firby-hero-ready) .editorial-hero-sub,
  html.js:not(.firby-hero-ready) .page-subtitle,
  html.js:not(.firby-hero-ready) .legal-meta {
    opacity: 0;
    animation: subFailsafeReveal 0.01s 0.8s forwards;
  }

  html.firby-hero-ready main .sub-kicker,
  html.firby-hero-ready main .kicker-pill,
  html.firby-hero-ready main .legal-kicker {
    animation:
      firbyHeroSubRise 0.82s cubic-bezier(0.23, 1, 0.32, 1) 0.06s backwards,
      firbyHeroFade 0.62s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.06s backwards;
  }

  html.firby-hero-ready .editorial-hero-sub,
  html.firby-hero-ready .page-subtitle,
  html.firby-hero-ready .legal-meta {
    animation:
      firbyHeroSubRise 0.96s cubic-bezier(0.23, 1, 0.32, 1) var(--sub-d, 0.62s) backwards,
      firbyHeroFade 0.74s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--sub-d, 0.62s) backwards,
      firbyHeroSubFocus 0.82s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--sub-d, 0.62s) backwards;
  }

  html.firby-hero-quick main .sub-kicker,
  html.firby-hero-quick main .kicker-pill,
  html.firby-hero-quick main .legal-kicker,
  html.firby-hero-quick .editorial-hero-sub,
  html.firby-hero-quick .page-subtitle,
  html.firby-hero-quick .legal-meta {
    animation:
      firbyHeroSubRise 0.42s cubic-bezier(0.23, 1, 0.32, 1) 0.08s backwards,
      firbyHeroFade 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.08s backwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.firby-hero-ready main .sub-kicker,
  html.firby-hero-ready main .kicker-pill,
  html.firby-hero-ready main .legal-kicker,
  html.firby-hero-ready .editorial-hero-sub,
  html.firby-hero-ready .page-subtitle,
  html.firby-hero-ready .legal-meta {
    animation: firbyHeroFade 0.2s ease backwards;
  }
}

.sub-title-line {
  display: inline-block;
}

.sub-sw {
  display: inline-block;
  white-space: pre-wrap;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (animation-range: entry 0% cover 40%) {
    @keyframes sub-word-light {
      from {
        opacity: 0.2;
        filter: blur(3px);
      }
      to {
        opacity: 1;
        filter: blur(0px);
      }
    }

    @keyframes sub-scroll-rise {
      from {
        opacity: 0.08;
        transform: translateY(20px) scale(0.99);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    [data-scroll-words="true"] .sub-sw {
      animation: sub-word-light linear both;
      animation-timeline: view();
      animation-range:
        entry calc(var(--i, 0) / var(--n, 16) * 14%)
        cover calc(var(--i, 0) / var(--n, 16) * 16% + 16%);
    }

    .editorial-section,
    .principle-item,
    .pricing-card,
    .guarantee-card,
    .calc-panel,
    .sub-contact-aside,
    .sub-contact-form,
    .legal-section h2 {
      animation: sub-scroll-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }

    .pricing-card:nth-child(2) { animation-range: entry 4% cover 26%; }
    .pricing-card:nth-child(3) { animation-range: entry 8% cover 30%; }
  }

  html.p1-io-anim [data-sr-io] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1), transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  }
  html.p1-io-anim [data-sr-io].is-inview {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .editorial-section {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 36px 0;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card {
    border-right: 0;
    border-bottom: 1px solid var(--p1-hairline);
    padding: 28px 0;
  }
  .pricing-card.featured {
    padding: 28px 20px;
  }
  .pricing-card:last-child {
    border-bottom: 0;
  }
  .pricing-tagline {
    min-height: 0;
    margin-bottom: 18px;
  }
  .guarantee-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .sub-contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .editorial-container,
  .page-container,
  .legal-container,
  .sub-main {
    padding: 36px 20px 72px;
  }
  .editorial-hero,
  .page-header,
  .legal-header {
    margin-bottom: 36px;
  }
  .calc-panel,
  .sub-contact-form {
    padding: 20px;
  }
  .calc-kpi-grid {
    grid-template-columns: 1fr;
  }
}
