/* RPMsto — store.rpmflex.com. Look & feel of rpmflex.com (Nunito, RPMflex green, yellow CTA). */
:root {
  --green: #007149;
  --green-600: #00603e;
  --green-700: #004d33;
  --green-050: #eef6f2;
  --green-100: #dcefe6;
  --ink: #0f2a20;
  --text: #33413b;
  --muted: #6b7a73;
  --line: #dfe7e3;
  --bg: #ffffff;
  --bg-soft: #f4f8f6;
  --yellow: #ffc928;
  --yellow-600: #f2b705;
  --red: #c62828;
  --red-050: #fdecec;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 42, 32, .06);
  font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--green); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

/* ---------- header (rpmflex.com) ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.logo img { display: block; height: 32px; width: auto; }
.main-nav { display: flex; gap: 28px; flex: 1; }
.main-nav a { color: var(--ink); font-weight: 700; text-decoration: none; font-size: 15px; }
.main-nav a:hover { color: var(--green); }
.header-actions { display: flex; gap: 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; border-radius: 12px; padding: 11px 22px; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--green-600); }
.btn-cta { background: var(--yellow); color: var(--ink); }
.btn-cta:hover { background: var(--yellow-600); }
.btn-outline { border-color: var(--green); color: var(--green); background: #fff; }
.btn-outline:hover { background: var(--green-050); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); }
.btn-sm { padding: 7px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- hero + steps ---------- */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(0,160,100,.35), transparent 60%), linear-gradient(135deg, #04231a 0%, #073a2a 60%, #0a4a35 100%); color: #fff; padding: 44px 0 34px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.hero-sub { margin: 0 0 24px; max-width: 720px; font-size: 18px; color: rgba(255,255,255,.86); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border: 1.5px solid rgba(255,255,255,.28); border-radius: 999px; font-weight: 700; font-size: 14px; color: rgba(255,255,255,.75); }
.steps li span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.14); font-size: 13px; }
.steps li.is-current { background: #fff; color: var(--green-700); border-color: #fff; }
.steps li.is-current span { background: var(--green); color: #fff; }
.steps li.is-done { color: #fff; border-color: rgba(255,255,255,.6); }
.steps li.is-done span { background: var(--yellow); color: var(--ink); }

.campaign { background: var(--yellow); color: var(--ink); font-weight: 800; text-align: center; padding: 10px 0; }

/* ---------- layout ---------- */
.main { padding-top: 28px; padding-bottom: 56px; min-height: 50vh; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.col-side { position: sticky; top: 92px; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }

.card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 22px; box-shadow: var(--shadow); }
.card-flat { border-top-width: 1px; box-shadow: none; background: var(--bg-soft); }
.card h2 { margin: 0 0 18px; font-size: 22px; color: var(--ink); font-weight: 800; display: flex; align-items: center; gap: 10px; }
.card h3 { margin: 22px 0 10px; font-size: 16px; color: var(--ink); }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green-050); color: var(--green); font-size: 15px; }
.lead { margin-top: -6px; }

.alert { border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; font-weight: 700; background: var(--red-050); color: var(--red); border: 1px solid #f5c2c2; }
.alert.ok { background: var(--green-050); color: var(--green-700); border-color: var(--green-100); }

/* ---------- period + plans ---------- */
.period { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.period button { border: 0; background: transparent; padding: 10px 18px; border-radius: 9px; font: inherit; font-weight: 800; color: var(--text); cursor: pointer; }
.period button small { font-weight: 800; color: var(--green); margin-left: 4px; }
.period button[aria-checked="true"] { background: var(--green); color: #fff; }
.period button[aria-checked="true"] small { color: var(--yellow); }
.period button[hidden] { display: none; }
.hint { color: var(--muted); font-size: 14px; margin: 8px 0 18px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan { position: relative; text-align: left; border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
.plan:hover { border-color: #b5d5c6; }
.plan[aria-checked="true"] { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-050); }
.plan .badge { position: absolute; top: -11px; right: 16px; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.plan h4 { margin: 0 0 6px; font-size: 18px; color: var(--ink); }
.plan .price { font-size: 30px; font-weight: 800; color: var(--green); line-height: 1.1; }
.plan .per { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.plan p { margin: 10px 0; font-size: 14px; }
.plan ul { list-style: none; margin: 10px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: 14px; }
.plan li { padding: 3px 0 3px 24px; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 2px; color: var(--green); font-weight: 800; }

.qty-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.qty-row > label { font-weight: 800; color: var(--ink); min-width: 220px; }
.stepper { display: inline-flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button { width: 40px; border: 0; background: var(--bg-soft); font-size: 20px; font-weight: 800; color: var(--green); cursor: pointer; }
.stepper button:hover { background: var(--green-050); }
.stepper input { width: 70px; border: 0; text-align: center; font: inherit; font-weight: 800; font-size: 17px; padding: 9px 4px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:disabled { background: #fff; color: var(--muted); }

.addons { margin-top: 8px; }
.addon { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.addon:first-child { border-top: 0; }
.addon strong { color: var(--ink); }
.addon .addon-price { color: var(--green); font-weight: 800; white-space: nowrap; }
.addon p { grid-column: 1; margin: 0; font-size: 14px; color: var(--muted); }
.addon .stepper { grid-column: 2; grid-row: 1 / span 2; }
.trial-info { background: var(--green-050); border-radius: 12px; padding: 12px 16px; color: var(--green-700); font-weight: 700; margin: 18px 0 0; }

/* ---------- form ---------- */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px 16px; }
.f { display: flex; flex-direction: column; min-width: 0; }
.col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; } .col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; } .col-9 { grid-column: span 9; } .col-12 { grid-column: span 12; }
label { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.req { color: var(--red); font-weight: 800; }
input, select { font: inherit; font-size: 15px; color: var(--ink); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-050); }
select:disabled { background: var(--bg-soft); }
.f.has-err input, .f.has-err select { border-color: var(--red); }
.help { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.err { color: var(--red); font-size: 13px; font-weight: 700; margin-top: 4px; min-height: 0; }
.err:empty { display: none; }
.with-btn { position: relative; }
.spin { position: absolute; right: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid var(--green); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 0; margin-bottom: 14px; }
.actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15px; margin-bottom: 14px; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex: none; }

/* ---------- summary ---------- */
.summary h3 { margin: 0 0 4px; font-size: 18px; }
.summary .period-tag { display: inline-block; font-size: 12px; font-weight: 800; color: var(--green); background: var(--green-050); padding: 2px 10px; border-radius: 999px; margin-bottom: 12px; }
.sum-lines { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.sum-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.sum-lines li span:last-child { font-weight: 800; white-space: nowrap; text-align: right; }
.sum-lines s { color: var(--muted); font-weight: 600; margin-right: 6px; }
.sum-lines small { display: block; color: var(--muted); font-weight: 600; }
.disc-badge { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 10px 14px; background: #f0faf4; border: 1.5px solid #2ecc71; border-radius: 10px; color: #1a7a40; font-weight: 800; font-size: 14px; animation: discIn .25s ease; }
@keyframes discIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 14px; border-top: 2px solid var(--ink); }
.sum-total strong { font-size: 26px; color: var(--green); font-weight: 800; }
.sum-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }

/* ---------- review / done ---------- */
.review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.review section { background: var(--bg-soft); border-radius: 12px; padding: 16px 18px; }
.review h4 { margin: 0 0 8px; color: var(--green); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.review dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.review dt { color: var(--muted); font-weight: 700; }
.review dd { margin: 0; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.done { text-align: center; max-width: 640px; margin: 20px auto; padding: 40px 28px; }
.done h2 { justify-content: center; font-size: 26px; }
.done-icon { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 36px; font-weight: 800; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 32px 0 20px; font-size: 14px; }
.footer-row, .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-bottom p { margin: 0; }
.site-footer ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-footer a { color: var(--text); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--green); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .col-side { position: static; order: -1; }
  .main-nav { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .card { padding: 20px 18px; }
  .grid > .f { grid-column: span 12; }
  .review { grid-template-columns: 1fr; }
  .qty-row > label { min-width: 0; width: 100%; }
  .actions .btn { flex: 1; }
  .hero { padding: 30px 0 24px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* =================== v1: catalog / cart =================== */
.hero .mode-tag { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.cart-pill { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 800; color: var(--ink); cursor: pointer; }
.cart-pill b { background: var(--green); color: #fff; border-radius: 999px; min-width: 22px; padding: 0 6px; font-size: 13px; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s; }
.product.in-cart { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-050), var(--shadow); }
.product-img { height: 140px; background: linear-gradient(135deg, var(--green-050), #fff); display: grid; place-items: center; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img span { font-size: 40px; letter-spacing: 2px; font-weight: 800; color: var(--green); opacity: .35; }
.product-body { padding: 16px 18px 6px; flex: 1; }
.product-body h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); line-height: 1.25; }
.product .price { display: block; font-size: 26px; font-weight: 800; color: var(--green); line-height: 1.1; }
.product .per { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.feat { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.feat li { padding: 2px 0 2px 22px; position: relative; }
.feat li::before { content: '✓'; position: absolute; left: 2px; color: var(--green); font-weight: 800; }
.promos { list-style: none; margin: 10px 0 0; padding: 0; }
.promos li { display: inline-block; margin: 0 6px 6px 0; background: #f0faf4; border: 1px solid #b9e6c9; color: #1a7a40; font-weight: 800; font-size: 12px; border-radius: 999px; padding: 3px 10px; }
.product-foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 18px 18px; }
.product-foot .btn { flex: 1; min-width: 150px; }
.fixed-qty { font-size: 14px; color: var(--text); }
.badge-req { display: inline-block; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }
.btn-block { width: 100%; margin-top: 14px; }
.empty-card { text-align: center; color: var(--muted); }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.sum-lines em.disc { display: block; font-style: normal; color: #1a7a40; font-weight: 800; font-size: 12.5px; }
.done-icon.wait { background: var(--yellow); color: var(--ink); }
.done-icon.bad { background: var(--red); }
.pay-steps { text-align: left; max-width: 420px; margin: 0 auto 14px; }
