:root {
  --ink: #17211f;
  --muted: #68726e;
  --line: #dde3df;
  --soft: #f5f7f4;
  --paper: #ffffff;
  --green: #236a4f;
  --green-deep: #174a38;
  --green-soft: #e8f2ed;
  --gold: #c99532;
  --danger: #a6443c;
  --danger-soft: #f9ece9;
  --focus: #174a38;
  --target-min: 44px;
  --shadow: 0 20px 55px rgba(26, 43, 36, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #edf1ed;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; }
.shell, .layout, .workspace, .purchase-grid, .flow-card, .summary-card { min-width: 0; }
p, strong, span, dd, dt { overflow-wrap: anywhere; }
button, input { font: inherit; }
button { cursor: pointer; min-width: var(--target-min); min-height: var(--target-min); }
summary { min-width: var(--target-min); min-height: var(--target-min); }
.brand, .skip-link { min-width: var(--target-min); min-height: var(--target-min); }
button:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.skip-link { position: fixed; left: 16px; top: -60px; background: var(--ink); color: white; padding: 12px; z-index: 20; }
.skip-link:focus { top: 12px; }
.shell { min-height: 100vh; }
.topbar {
  height: 82px;
  padding: 0 34px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green); color: white; font-family: Georgia, serif; font-size: 24px;
}
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .12em; font-size: 14px; }
.brand small { color: var(--muted); margin-top: 2px; }
.environment-pill {
  display: flex; align-items: center; gap: 8px; border: 1px solid #cad7d0; color: var(--green-deep);
  border-radius: 99px; padding: 8px 12px; font-size: 12px; font-weight: 700; background: var(--green-soft);
}
.environment-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.layout { display: grid; grid-template-columns: 242px minmax(0, 1fr); min-height: calc(100vh - 82px); }
.sidebar { padding: 32px 20px; background: #f7f9f6; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.sidebar nav { display: grid; gap: 6px; }
.nav-item {
  border: 0; background: transparent; color: #53605b; display: flex; gap: 12px; align-items: center;
  min-height: 48px; padding: 0 14px; border-radius: 12px; text-align: left; font-weight: 700;
}
.nav-item.active { background: var(--green-soft); color: var(--green-deep); }
.nav-item span { font-size: 19px; }
.authority-note { margin-top: auto; border-top: 1px solid var(--line); padding: 22px 10px 0; font-size: 12px; }
.authority-note strong { color: var(--green-deep); }
.authority-note p { color: var(--muted); line-height: 1.5; margin-bottom: 0; }
.workspace { padding: 46px clamp(24px, 5vw, 76px) 80px; width: 100%; max-width: 1500px; margin: 0 auto; }
.page-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 30px; }
.page-heading h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 48px); font-weight: 500; margin: 0; letter-spacing: -.03em; }
.page-heading p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); }
.steps li { color: #53605b; font-size: 12px; font-weight: 750; display: flex; align-items: center; gap: 8px; position: relative; }
.steps li::after { content: ""; height: 1px; flex: 1; background: var(--line); margin-right: 8px; }
.steps li:last-child::after { display: none; }
.steps span { width: 25px; height: 25px; border-radius: 50%; border: 1px solid var(--line); background: white; display: grid; place-items: center; }
.steps li.active { color: var(--green-deep); }
.steps li.active span { border-color: var(--green); background: var(--green); color: white; }
.purchase-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.flow-card, .summary-card, .content-view {
  border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow);
}
.flow-card { min-height: 580px; }
.screen { display: none; padding: clamp(26px, 4vw, 50px); }
.screen.active { display: block; animation: rise .25s ease-out; }
@keyframes rise { from { opacity: .3; transform: translateY(8px); } }
.screen-heading { max-width: 640px; margin-bottom: 28px; }
.step-label { color: var(--green); text-transform: uppercase; font-weight: 800; letter-spacing: .12em; font-size: 11px; margin: 0 0 8px; }
.screen h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(28px, 3vw, 38px); margin: 0; }
.screen-heading p:last-child { color: var(--muted); line-height: 1.55; margin: 10px 0 0; }
.choice-list { display: grid; gap: 12px; margin-bottom: 30px; }
.choice-card {
  min-height: 92px; border: 1px solid var(--line); border-radius: 15px; padding: 18px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; cursor: pointer; position: relative;
}
.choice-card.selected, .plan-card.selected { border-color: var(--green); box-shadow: 0 0 0 2px rgba(35, 106, 79, .08); background: #fbfdfb; }
.choice-card:focus-within, .plan-card:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.choice-card input, .plan-card input {
  position: absolute; width: var(--target-min); height: var(--target-min);
  margin: 0; opacity: 0; pointer-events: none;
}
.choice-card input { right: 14px; top: 50%; transform: translateY(-50%); }
.plan-card input { right: 10px; top: 10px; }
.choice-icon, .summary-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 21px; }
.choice-copy strong, .choice-copy small { display: block; }
.choice-copy small { color: var(--muted); margin-top: 5px; }
.radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b8c1bc; }
.selected .radio-dot { border: 6px solid var(--green); }
.primary-button {
  width: 100%; min-height: 55px; border: 0; border-radius: 12px; padding: 14px 20px;
  background: var(--green); color: white; display: flex; justify-content: center; align-items: center; gap: 12px;
  font-weight: 800; transition: background .2s, transform .2s;
}
.primary-button:hover { background: var(--green-deep); transform: translateY(-1px); }
.primary-button:disabled { background: #7f8e87; cursor: not-allowed; transform: none; }
.back-button, .ghost-button { min-height: 44px; border: 0; background: transparent; color: var(--green); font-weight: 800; padding: 0; margin-bottom: 24px; display: inline-flex; align-items: center; }
.segment { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--soft); padding: 4px; border-radius: 12px; margin-bottom: 18px; }
.segment button { min-height: 44px; padding: 0 18px; border: 0; background: transparent; color: var(--muted); border-radius: 9px; font-weight: 750; }
.segment button.active { color: var(--green-deep); background: white; box-shadow: 0 3px 10px rgba(0, 0, 0, .06); }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
.plan-card { border: 1px solid var(--line); border-radius: 16px; padding: 21px; min-height: 190px; display: flex; flex-direction: column; position: relative; cursor: pointer; }
.plan-card strong { font-size: 19px; margin-bottom: 12px; }
.plan-topline { color: var(--green); font-size: 11px; text-transform: uppercase; font-weight: 850; letter-spacing: .12em; margin-bottom: 8px; }
.availability-pill, .readiness-badge {
  align-self: flex-start; border-radius: 99px; padding: 5px 9px; font-size: 10px;
  font-weight: 850; line-height: 1.2;
}
.availability-pill { margin: -3px 0 12px; }
.availability-pill.integration, .readiness-badge.integration { background: #fff4d9; color: #6f5118; }
.readiness-badge.available { background: var(--green-soft); color: var(--green-deep); }
.price { font-family: Georgia, serif; font-size: 28px; }
.price small { font-family: inherit; font-size: 13px; color: var(--muted); }
.users { margin-top: auto; padding-top: 16px; color: var(--muted); font-size: 12px; }
.plan-check { display: none; position: absolute; right: 17px; top: 17px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: white; place-items: center; font-size: 12px; }
.plan-card.selected .plan-check { display: grid; }
.summary-card { padding: 28px; position: sticky; top: 106px; }
.summary-business { display: flex; gap: 12px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.summary-business small, .summary-business strong, .summary-plan small, .summary-plan strong, .summary-plan span { display: block; }
.summary-business small, .summary-plan small { color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.summary-plan { padding: 20px 0; border-bottom: 1px solid var(--line); }
.summary-plan strong { margin: 4px 0 8px; }
.summary-plan span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.price-breakdown { margin: 18px 0 0; }
.price-breakdown div { display: flex; justify-content: space-between; gap: 15px; margin: 11px 0; color: var(--muted); }
.price-breakdown dt, .price-breakdown dd { margin: 0; }
.price-breakdown .total { border-top: 1px solid var(--line); padding-top: 16px; color: var(--ink); font-weight: 850; font-size: 18px; }
.summary-footnote, .security-note { font-size: 11px; line-height: 1.5; color: var(--muted); }
.confirmation-card { border: 1px solid var(--line); border-radius: 15px; padding: 22px; margin-bottom: 20px; background: var(--soft); }
.confirm-row { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.confirm-row span { color: var(--muted); }
.consent {
  display: flex; gap: 12px; align-items: center; margin: 18px 0; padding: 10px 0;
  min-width: var(--target-min); min-height: var(--target-min); line-height: 1.45; cursor: pointer;
}
.consent input {
  width: var(--target-min); height: var(--target-min); flex: 0 0 var(--target-min);
  margin: 0; accent-color: var(--green);
}
.inline-error { border-radius: 10px; padding: 12px; margin: 0 0 14px; background: var(--danger-soft); color: var(--danger); font-weight: 700; }
.security-note { text-align: center; margin: 12px 0 0; }
.status-panel { text-align: center; max-width: 590px; margin: 10px auto 28px; }
.status-icon { margin: 0 auto 20px; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 800; }
.status-panel.pending .status-icon { background: #fff4d9; color: #9b6d13; }
.status-panel.success .status-icon { background: var(--green-soft); color: var(--green); }
.status-panel.danger .status-icon { background: var(--danger-soft); color: var(--danger); }
.status-panel.refunded .status-icon { background: #edf0f8; color: #4f5f91; }
.status-panel > p:not(.step-label) { color: var(--muted); line-height: 1.6; }
.status-reference { margin: 24px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.status-reference span, .status-reference strong { display: block; }
.status-reference span { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.fixture-controls { margin: 20px 0; padding: 15px; border-radius: 12px; background: var(--soft); color: var(--muted); }
.fixture-controls summary { cursor: pointer; font-weight: 750; color: var(--ink); }
.fixture-controls p { font-size: 12px; }
.fixture-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.fixture-buttons button { min-height: 44px; border: 1px solid var(--line); border-radius: 9px; background: white; padding: 0 13px; }
.content-view { padding: clamp(26px, 4vw, 50px); }
.history-list { display: grid; gap: 12px; }
.history-card { border: 1px solid var(--line); border-radius: 14px; background: white; }
.history-card summary { list-style: none; padding: 20px; display: flex; justify-content: space-between; gap: 20px; cursor: pointer; }
.history-card summary::-webkit-details-marker { display: none; }
.history-card strong, .history-card small { display: block; }
.history-card small { margin-top: 5px; color: var(--muted); }
.history-status { color: var(--green); font-weight: 800; font-size: 13px; }
.history-body { border-top: 1px solid var(--line); padding: 2px 20px; color: var(--muted); font-size: 13px; }
.empty-state { padding: 48px 24px; border: 1px dashed #bbc6c0; border-radius: 14px; text-align: center; background: var(--soft); }
.empty-state strong { font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 500; }
.empty-state p { color: var(--muted); margin-bottom: 0; }
.mobile-only { display: none; }
.responsive-nav {
  display: none; margin: 0 0 24px; padding: 4px; gap: 4px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--paper);
}
.responsive-nav-item {
  flex: 1; border: 0; border-radius: 10px; padding: 8px 12px; background: transparent;
  color: #53605b; font-weight: 800;
}
.responsive-nav-item.active { background: var(--green-soft); color: var(--green-deep); }
.authority-pending { display: grid; gap: 4px; margin-top: 9px; padding: 12px; border-radius: 10px; background: #fff4d9; color: #6f5118; }
.authority-pending span { font-size: 12px; line-height: 1.45; }
.confirm-features { border-top: 1px solid var(--line); padding-top: 14px; }
.confirm-features > span { color: var(--muted); }
.feature-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.feature-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-top: 1px solid var(--line); padding-top: 8px; font-size: 13px;
}
.feature-list li > span:first-child { flex: 1; }
.coming-soon { margin-top: 24px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.72); }
.coming-soon h2 { font-family: Georgia, "Times New Roman", serif; margin: 0; font-size: 28px; font-weight: 500; }
.coming-soon > div > p:last-child { color: var(--muted); }
.coming-soon ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; }
.coming-soon li { border: 1px solid var(--line); border-radius: 99px; padding: 8px 12px; color: var(--muted); background: white; font-size: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .responsive-nav { display: flex; }
  .workspace { padding-top: 30px; }
  .purchase-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; display: none; }
  .summary-card.mobile-open { display: block; }
  .mobile-only { display: inline-flex; }
}

@media (max-width: 620px) {
  .topbar { height: 70px; padding: 0 16px; }
  .brand small { display: none; }
  .environment-pill { font-size: 0; padding: 9px; }
  .environment-pill::after { content: "Privado"; font-size: 11px; }
  .workspace { padding: 24px 14px 55px; }
  .responsive-nav { overflow-x: auto; }
  .responsive-nav-item { flex: 0 0 auto; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 34px; }
  .page-heading p:not(.eyebrow) { font-size: 13px; line-height: 1.5; }
  .steps li { font-size: 0; }
  .steps li span { font-size: 12px; }
  .flow-card { border-radius: 16px; min-height: 0; }
  .screen { padding: 26px 20px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { min-height: 165px; }
  .primary-button { min-height: 58px; }
  .choice-card { grid-template-columns: auto 1fr auto; padding: 14px; }
  .choice-icon { display: none; }
  .confirm-row { display: grid; gap: 4px; }
  .history-card summary { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
