/* =========================================================
   Pricing
   ========================================================= */
.price-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: var(--radius-full);
  margin: 0 auto 12px;
}
.price-toggle button {
  border: none;
  background: transparent;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .18s var(--ease);
  display: flex;
  align-items: center;
  gap: 7px;
}
.price-toggle button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.price-toggle .save-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--secondary-50);
  color: var(--secondary-600);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}
.price-toggle button[aria-pressed="true"] .save-badge { background: rgba(255,255,255,0.2); color: #fff; }

.toggle-wrap { text-align: center; margin-bottom: 46px; }
.toggle-note { display: block; margin-top: 10px; font-size: 12.5px; color: var(--text-faint); font-family: var(--font-mono); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.plan-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}
.plan-card.featured:hover { transform: translateY(-10px); }
.plan-badge {
  position: absolute;
  top: -13px; left: 26px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}
.plan-name { font-size: 19px; font-weight: 800; color: var(--ink); }
.plan-for { font-size: 13px; color: var(--text-muted); margin-top: 5px; min-height: 34px; }

.plan-price { margin-top: 20px; display: flex; align-items: baseline; gap: 5px; }
.plan-price .amt { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--ink); }
.plan-price .per { font-size: 13.5px; color: var(--text-muted); }
.plan-price-sub { font-size: 12.5px; color: var(--text-faint); margin-top: 6px; font-family: var(--font-mono); min-height: 16px; }

.plan-cta { margin-top: 22px; }

.plan-included {
  list-style: none;
  margin: 24px 0 0; padding: 20px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.plan-included li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13.5px;
}
.plan-included li .k { color: var(--text-muted); }
.plan-included li .v { font-weight: 600; color: var(--ink); text-align: right; }
.plan-included li .v.addon-tag { color: #8A5A0B; font-family: var(--font-mono); font-size: 11.5px; }
.plan-included li .v.included-tag { color: var(--success-text); font-family: var(--font-mono); font-size: 11.5px; }

.pricing-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 34px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.pricing-legend span { display: flex; align-items: center; gap: 7px; }
.pricing-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.pricing-legend .i-inc { background: var(--success-text); }
.pricing-legend .i-add { background: #8A5A0B; }

/* ---- Add-on detail table ---- */
.addon-panel {
  margin-top: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.addon-panel summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.addon-panel summary::-webkit-details-marker { display: none; }
.addon-panel summary .chev { transition: transform .2s var(--ease); color: var(--text-muted); }
.addon-panel summary .chev svg { width: 18px; height: 18px; }
.addon-panel[open] summary .chev { transform: rotate(180deg); }
.addon-panel summary:hover { background: var(--primary-50); }

.addon-table-wrap { overflow-x: auto; border-top: 1px solid var(--border); }
table.addon-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 13.5px;
}
table.addon-table th, table.addon-table td {
  text-align: left;
  padding: 13px 22px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.addon-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  font-weight: 600;
  background: var(--bg);
}
table.addon-table td.item { font-weight: 600; color: var(--ink); white-space: normal; }
table.addon-table td.dim { color: var(--text-faint); font-family: var(--font-mono); font-size: 12.5px; }
table.addon-table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .plan-card.featured { transform: none; }
  .plan-card.featured:hover { transform: none; }
}

/* =========================================================
   Final CTA
   ========================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, var(--primary-700) 100%);
  border-radius: var(--radius-lg);
  padding: 64px var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); }
.cta-band p { color: #C3CBDA; margin-top: 14px; font-size: 16px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* =========================================================
   Footer
   ========================================================= */
.footer { padding: 56px 0 30px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--ink); }
.footer-brand .mark { width: 26px; height: 26px; }
.footer-desc { margin-top: 14px; font-size: 13.5px; color: var(--text-muted); max-width: 260px; line-height: 1.6; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 13.5px; color: var(--text-muted); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12.5px; color: var(--text-faint); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { font-size: 12.5px; color: var(--text-faint); text-decoration: none; }
.footer-legal a:hover { color: var(--text-muted); }

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

/* =========================================================
   Mobile nav + broad responsive rules
   ========================================================= */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-outline { display: none; }
  .section { padding: 68px 0; }
  .section-tight { padding: 52px 0; }
}

.nav.is-open .nav-links {
  display: flex;
  position: absolute;
  top: 72px; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 0;
  padding: 8px var(--gutter) 18px;
  box-shadow: var(--shadow-md);
}
.nav.is-open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); width: 100%; }
.nav.is-open .nav-links a:last-child { border-bottom: none; }

@media (max-width: 720px) {
  html { font-size: 15.5px; }
}
