/* Precios page styles */

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Open Sans', system-ui, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
@media(min-width:768px){ .container { padding: 0 48px; } }

/* ─── HERO ─────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 28px;
  text-align: center;
  background: linear-gradient(to bottom, var(--kiri-green-light) 0%, var(--white) 100%);
}
.hero-tag {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: var(--kiri-green);
  background: rgba(51,153,51,.12);
  padding: 5px 14px; border-radius: 80px;
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero h1 em { font-style: italic; font-weight: 300; }
.hero p { font-size: 17px; color: var(--gray-500); max-width: 520px; margin: 0 auto; }

/* ─── MODE TOGGLE ───────────────────────────── */
.mode-section { padding: 16px 0 0; }
.mode-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.mode-label-top {
  font-size: 13px; font-weight: 600;
  color: var(--gray-400); letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.mode-toggle {
  display: flex;
  background: var(--gray-100);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  width: 100%;
  max-width: 480px;
}
.mode-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px; font-weight: 600;
  color: var(--gray-500);
  transition: all .25s ease;
  text-align: center;
  line-height: 1.3;
}
.mode-btn small {
  display: block;
  font-size: 11px; font-weight: 400;
  margin-top: 2px;
  opacity: .75;
}
.mode-btn.active {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.mode-btn.active.partner {
  background: var(--kiri-darker);
  color: #fff;
}

/* ─── CALCULATOR LAYOUT ─────────────────────── */
.calc-section { padding: 0 0 80px; }
.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: stretch;
}
@media(max-width:960px){
  .calc-wrapper { grid-template-columns: 1fr; }
  .calc-result { position: static !important; }
}

/* ─── LEFT PANEL ────────────────────────────── */
.calc-left {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  padding: 28px;
}
.calc-section-title {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--gray-400); margin-bottom: 16px;
}
.calc-form { display: flex; flex-direction: column; gap: 28px; }

/* QTY GROUP */
.qty-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media(max-width:600px){ .qty-row { grid-template-columns: 1fr 1fr; } }
@media(max-width:380px){ .qty-row { grid-template-columns: 1fr; } }

/* TOOLTIP */
.tooltip-wrap { position: relative; display: inline-flex; }
.tooltip-icon {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: default; flex-shrink: 0;
  color: var(--gray-400);
  font-size: 10px; font-weight: 700; font-style: normal;
  line-height: 1;
  transition: border-color .2s, color .2s;
}
.tooltip-icon:hover { border-color: var(--gray-500); color: var(--gray-700); }
.tooltip-box {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%; transform: translateX(-50%);
  background: var(--gray-800);
  color: #fff;
  font-size: 12px; font-weight: 400; line-height: 1.5;
  padding: 8px 12px;
  border-radius: 8px;
  width: max-content; max-width: 220px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
  z-index: 10;
  white-space: normal;
}
.tooltip-box::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--gray-800);
}
.tooltip-wrap:hover .tooltip-box { opacity: 1; }
.qty-label {
  font-size: 14px; font-weight: 600; color: var(--gray-800);
  margin-bottom: 2px;
}
.qty-sublabel {
  font-size: 12px; color: var(--gray-400); margin-bottom: 10px;
}
.qty-control {
  display: flex; align-items: center;
  border: 1.5px solid var(--gray-200); border-radius: 10px;
  overflow: hidden; background: var(--white);
  width: fit-content;
}
.qty-btn {
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  font-size: 18px; font-weight: 500;
  color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.qty-btn:hover:not(:disabled) { background: var(--gray-100); color: var(--black); }
.qty-btn:disabled { color: var(--gray-300); cursor: not-allowed; }
.qty-val {
  min-width: 48px; text-align: center;
  font-size: 15px; font-weight: 700;
  color: var(--black);
  border-left: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
  height: 40px; display: flex; align-items: center; justify-content: center;
}

/* MODULES */
.modules-title {
  font-size: 14px; font-weight: 600; color: var(--gray-800);
  margin-bottom: 10px;
}
.modules-grid { display: flex; flex-direction: column; gap: 8px; }
.module-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  user-select: none;
}
.module-card:hover { border-color: var(--kiri-green); background: var(--kiri-green-light); }
.module-card.active { border-color: var(--kiri-green); background: var(--kiri-green-light); }
.module-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.module-card.active .module-icon { background: var(--kiri-green); }
.module-card.active .module-icon svg { color: #fff; stroke: #fff; }
.module-body { flex: 1; }
.module-name { font-size: 14px; font-weight: 600; color: var(--gray-800); }
.module-card.active .module-name { color: var(--kiri-green-dark); }
.module-desc { font-size: 12px; color: var(--gray-400); margin-top: 1px; }
.module-card.active .module-desc { color: var(--kiri-green-dark); opacity: .75; }
.module-price { font-size: 13px; font-weight: 700; color: var(--gray-500); }
.module-card.active .module-price { color: var(--kiri-green); }
.module-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--gray-300); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .2s;
}
.module-card.active .module-check {
  background: var(--kiri-green); border-color: var(--kiri-green);
}
.module-check svg { display: none; }
.module-card.active .module-check svg { display: block; }

/* ─── RESULT PANEL ──────────────────────────── */
.calc-result {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  padding: 28px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  transition: border-color .3s;
  align-self: stretch;
  height: fit-content;
  min-height: 100%;
}
.calc-result.partner-mode {
  border-color: var(--kiri-darker);
  background: linear-gradient(135deg, var(--kiri-darker) 0%, var(--kiri-darkest) 100%);
}
.result-header {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--gray-400); margin-bottom: 16px;
}
.calc-result.partner-mode .result-header { color: rgba(255,255,255,.4); }

/* Standard mode result lines */
.result-lines { display: flex; flex-direction: column; }
.result-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
}
.result-line:last-child { border-bottom: none; }
.result-line .rl-label { color: var(--gray-500); }
.result-line .rl-label .rl-qty { font-size: 11px; color: var(--gray-400); }
.result-line .rl-value { font-weight: 600; color: var(--black); }
.result-line.addon-line { opacity: .35; transition: opacity .2s; }
.result-line.addon-line.active { opacity: 1; }

.result-divider { border: none; border-top: 1.5px solid var(--gray-200); margin: 14px 0; }

.result-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 4px;
}
.result-total-label { font-size: 13px; font-weight: 600; color: var(--gray-600); }
.result-total-amount {
  font-size: 36px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--kiri-green);
  display: flex; align-items: baseline; gap: 2px;
}
.result-total-currency { font-size: 16px; font-weight: 600; }
.result-note { font-size: 11px; color: var(--gray-400); margin-bottom: 20px; }

/* Standard CTAs */
.result-ctas { display: flex; flex-direction: column; gap: 8px; }
.btn-result-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: var(--kiri-green); color: var(--white);
  padding: 14px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 700; text-align: center;
  text-decoration: none; cursor: pointer; border: none; font-family: inherit;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-result-primary:hover {
  background: var(--kiri-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(51,153,51,.25);
}
.btn-result-secondary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: none; color: var(--gray-600);
  padding: 12px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 600; text-align: center;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--gray-200); font-family: inherit;
  transition: border-color .2s, color .2s;
}
.btn-result-secondary:hover { border-color: var(--gray-400); color: var(--black); }
.result-disclaimer { font-size: 11px; color: var(--gray-400); text-align: center; margin-top: 10px; }

/* Partner mode result panel */
.partner-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 5px 12px; border-radius: 80px;
  margin-bottom: 16px;
}
.partner-price-label {
  font-size: 13px; color: rgba(255,255,255,.45);
  margin-bottom: 6px;
}
.partner-price-text {
  font-size: 28px; font-weight: 700; color: #fff;
  letter-spacing: -0.02em; margin-bottom: 4px;
  line-height: 1.1;
}
.partner-price-sub {
  font-size: 12px; color: rgba(255,255,255,.35);
  margin-bottom: 20px;
}
.partner-includes {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 20px;
}
.partner-include-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.75);
}
.partner-include-item svg { flex-shrink: 0; opacity: .7; }
.partner-divider { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 16px 0; }
.btn-partner-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: #fff; color: var(--kiri-darker);
  padding: 14px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 700; text-align: center;
  text-decoration: none; cursor: pointer; border: none; font-family: inherit;
  transition: transform .2s, box-shadow .2s;
}
.btn-partner-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.partner-disclaimer {
  font-size: 11px; color: rgba(255,255,255,.3);
  text-align: center; margin-top: 10px;
}

/* ─── KIRI PARTNER SECTION ──────────────────── */
.partner-method-section {
  padding: 56px 0 0;
  overflow: hidden;
}
.partner-method-inner {
  background: linear-gradient(135deg, var(--kiri-darker) 0%, var(--kiri-darkest) 100%);
  border-radius: 24px;
  padding: 40px;
  transition: opacity .35s ease, transform .35s ease;
}
.partner-method-inner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}
.partner-method-inner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.partner-method-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 5px 12px; border-radius: 80px;
  margin-bottom: 20px;
}
.partner-method-title {
  font-size: clamp(22px, 3vw, 30px); font-weight: 700;
  color: #fff; letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.partner-method-desc {
  font-size: 15px; color: rgba(255,255,255,.5);
  max-width: 460px; margin-bottom: 36px;
}
.partner-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media(max-width:768px){
  .partner-steps { grid-template-columns: 1fr; gap: 16px; }
  .partner-method-inner { padding: 28px 24px; }
}
.step-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step-icon svg { color: rgba(255,255,255,.85); }
.step-number {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--kiri-green); margin-bottom: 6px;
}
.step-title {
  font-size: 16px; font-weight: 700; color: #fff;
  margin-bottom: 6px;
}
.step-desc { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.55; }

/* ─── BILLING TOGGLE ───────────────────────── */
.billing-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.billing-toggle {
  display: flex;
  background: var(--gray-100);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}
.billing-btn {
  padding: 7px 14px;
  border-radius: 7px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px; font-weight: 600;
  color: var(--gray-500);
  transition: all .2s ease;
  white-space: nowrap;
}
.billing-btn.active {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.billing-period-note {
  font-size: 12px; color: var(--gray-400);
}

/* ─── KNOW THE METHOD (toggle) ──────────────── */
.method-toggle-section { padding: 40px 0 0; text-align: center; }
.btn-method-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
  color: var(--gray-500);
  background: none; border: none; cursor: pointer;
  font-family: inherit;
  transition: color .2s;
  padding: 8px 0;
}
.btn-method-toggle:hover { color: var(--kiri-green); }
.btn-method-toggle svg { transition: transform .3s ease; }
.btn-method-toggle.open svg { transform: rotate(180deg); }

/* ─── COMPARISON TABLE ──────────────────────── */
.compare-section { padding: 72px 0; background: var(--gray-50); }
.section-label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--kiri-green); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 36px); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 40px;
}

.compare-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.compare-table th, .compare-table td {
  padding: 12px 20px; text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.compare-table thead th {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--gray-400);
  border-bottom: 2px solid var(--gray-200);
  background: var(--gray-100);
}
.compare-table thead th:first-child { border-radius: 10px 0 0 0; }
.compare-table thead th:last-child { border-radius: 0 10px 0 0; }
.compare-table tbody td:first-child { font-weight: 500; }
.compare-table .check-cell { text-align: center; }
.icon-yes { color: var(--kiri-green); font-size: 16px; font-weight: 700; }
.icon-no { color: var(--gray-300); font-size: 16px; }
.compare-table tr:hover td { background: var(--white); }

/* ─── FAQ ───────────────────────────────────── */
.faq-section { padding: 72px 0; background: var(--white); }
.faq-list { display: flex; flex-direction: column; gap: 6px; margin-top: 36px; }
.faq-item {
  background: var(--gray-50); border-radius: 12px;
  border: 1px solid var(--gray-200); overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: var(--kiri-green); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; font-size: 14px; font-weight: 600;
  cursor: pointer; user-select: none; gap: 16px;
  background: none; border: none; width: 100%;
  font-family: inherit; text-align: left;
  transition: color .2s;
}
.faq-q:hover { color: var(--kiri-green); }
.faq-icon {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s, background .2s, border-color .2s;
}
.faq-item.open .faq-icon { background: var(--kiri-green); border-color: var(--kiri-green); transform: rotate(45deg); }
.faq-icon svg { width: 9px; height: 9px; }
.faq-icon svg line { stroke: var(--gray-500); stroke-width: 1.8; stroke-linecap: round; }
.faq-item.open .faq-icon svg line { stroke: #fff; }
.faq-a-wrap { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.4,0,.2,1); }
.faq-item.open .faq-a-wrap { max-height: 400px; }
.faq-a { padding: 0 20px 16px; font-size: 13px; color: var(--gray-600); line-height: 1.65; border-top: 1px solid var(--gray-100); padding-top: 12px; }

/* ─── CTA BANNER ────────────────────────────── */
.cta-banner {
  background: linear-gradient(90deg, var(--kiri-darker) 0%, var(--kiri-darkest) 100%);
  padding: 72px 0;
}
.cta-banner .container { text-align: center; }
.cta-banner h2 { font-size: clamp(26px,3vw,38px); font-weight: 700; color: #fff; letter-spacing: -0.02em; margin-bottom: 14px; }
.cta-banner p { font-size: 16px; color: rgba(255,255,255,.55); margin-bottom: 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-white {
  background: var(--white); color: var(--kiri-darker);
  padding: 13px 28px; border-radius: 80px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: transform .2s; display: inline-block;
}
.btn-white:hover { transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,.1); color: #fff;
  padding: 13px 28px; border-radius: 80px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.2);
  transition: background .2s; display: inline-block;
}
.btn-ghost:hover { background: rgba(255,255,255,.18); }

/* ─── PARTNER HELPER ───────────────────────── */
.partner-helper {
  width: 100%; max-width: 480px;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.partner-helper-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--gray-400);
  background: none; border: none; cursor: pointer;
  font-family: inherit; padding: 4px 0;
  transition: color .2s;
}
.partner-helper-toggle:hover { color: var(--kiri-green); }
.partner-helper-toggle svg { transition: transform .25s ease; }
.partner-helper-toggle.open svg { transform: rotate(180deg); }
.partner-helper-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s cubic-bezier(.4,0,.2,1), opacity .25s ease;
  opacity: 0;
}
.partner-helper-body.open {
  max-height: 300px;
  opacity: 1;
}
.partner-helper-inner {
  margin-top: 10px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 16px 18px;
}
.partner-helper-title {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--gray-400); margin-bottom: 10px;
}
.partner-helper-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.partner-helper-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--gray-600); line-height: 1.45;
}
.partner-helper-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--kiri-green); }

/* ─── REVEAL ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
@media(prefers-reduced-motion:reduce){ .reveal { opacity:1; transform:none; transition:none; } }
