/* Avarida pricing — 21st.dev neo-brutalist design (adapted, accessible, RTL). */
.ap2{position:relative;background:#f0f0f0;border-radius:16px;margin:22px auto;max-width:1240px;padding:40px 20px 48px;overflow:hidden;font-family:Inter,system-ui,sans-serif}
.ap2-bg{position:absolute;inset:0;background-image:linear-gradient(#00000008 1px,transparent 1px),linear-gradient(90deg,#00000008 1px,transparent 1px);background-size:16px 16px;pointer-events:none}
.ap2-dot{position:absolute;width:8px;height:8px;background:rgba(0,0,0,.06);border-radius:50%;pointer-events:none}
.ap2-inner{position:relative;z-index:2;max-width:1140px;margin:0 auto}

/* Header block */
.ap2-header{text-align:center;margin-bottom:12px}
.ap2-title{display:inline-block;font-family:"Space Grotesk",Inter,sans-serif;font-weight:800;color:#1e293b;font-size:clamp(22px,3.4vw,38px);line-height:1.15;background:linear-gradient(90deg,#fff,#f1f1f1);padding:14px 26px;border-radius:14px;border:4px solid #000;box-shadow:8px 8px 0 0 rgba(0,0,0,.9);margin:0}
.ap2-underline{display:block;height:8px;width:min(320px,80%);margin:14px auto 0;background:linear-gradient(90deg,#000,#666,#000);border-radius:99px;transform-origin:left;animation:ap2-line .6s .2s both}
@keyframes ap2-line{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.ap2-desc-lead{text-align:center;max-width:760px;margin:18px auto 0;color:#475569;font-size:16px;line-height:1.6}

/* Toggle */
.ap2-toggle{display:flex;align-items:center;justify-content:center;gap:12px;margin:22px 0 4px;flex-wrap:wrap}
.ap2-toggle__label{font-weight:700;color:#64748b;font-size:15px}
.ap2-toggle__label.is-active{color:#000}
.ap2-switch{width:64px;height:32px;background:#e2e2e2;border:2px solid #000;border-radius:99px;box-shadow:2px 2px 0 0 rgba(0,0,0,.9);padding:3px;cursor:pointer;display:flex;align-items:center}
.ap2-switch__knob{width:22px;height:22px;background:#fff;border:2px solid #000;border-radius:50%;transition:transform .2s ease}
.ap2-switch[aria-checked="true"] .ap2-switch__knob{transform:translateX(32px)}
[dir=rtl] .ap2-switch[aria-checked="true"] .ap2-switch__knob{transform:translateX(-32px)}
.ap2-switch:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.ap2-toggle__save{background:#16a34a;color:#fff;font-weight:800;font-size:12px;padding:4px 10px;border:2px solid #000;border-radius:8px;box-shadow:2px 2px 0 0 rgba(0,0,0,.9)}

.ap2-notes{max-width:820px;margin:16px auto 0;display:grid;gap:8px}
.ap2-notes p{margin:0;background:#fff;border:2px solid #000;border-radius:10px;padding:9px 14px;font-weight:600;font-size:13.5px;color:#111;text-align:center;box-shadow:3px 3px 0 0 rgba(0,0,0,.12)}

/* Grid: 4 desktop → 2 tablet → 1 mobile (clean 2x2 fallback for narrow desktop) */
.ap2-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;margin-top:30px}
@media(max-width:1160px){.ap2-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.ap2-grid{grid-template-columns:1fr}}

/* Card */
.ap2-card{position:relative;background:#fff;border:3px solid #000;border-radius:14px;padding:24px 20px;box-shadow:6px 6px 0 0 rgba(0,0,0,.9);display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s;transform-style:preserve-3d}
.ap2-card:hover{box-shadow:9px 9px 0 0 rgba(0,0,0,.9)}
.ap2-card.is-popular{border-width:4px}
.ap2-badge{position:absolute;top:-16px;inset-inline-end:-14px;width:60px;height:60px;border-radius:50%;background:var(--accent);border:2px solid #000;box-shadow:3px 3px 0 0 rgba(0,0,0,.9);display:grid;place-items:center;color:#fff;font-weight:800;font-size:12px;text-align:center;animation:ap2-float 5s ease-in-out infinite}
@keyframes ap2-float{0%,100%{transform:translateY(0) rotate(0)}25%{transform:translateY(-4px) rotate(6deg)}75%{transform:translateY(4px) rotate(-6deg)}}
.ap2-card__head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px;padding-inline-end:40px}
.ap2-card__name{font-family:"Space Grotesk",Inter,sans-serif;font-weight:800;font-size:19px;color:#000;margin:0}
.ap2-pop{display:inline-block;background:var(--accent);color:#fff;font-weight:800;font-size:11px;letter-spacing:.04em;padding:3px 9px;border:2px solid #000;border-radius:7px;box-shadow:2px 2px 0 0 rgba(0,0,0,.9);animation:ap2-pop 2s ease-in-out infinite}
@keyframes ap2-pop{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}

.ap2-price__row{display:flex;align-items:baseline;gap:3px;flex-wrap:wrap}
.ap2-from{font-size:14px;font-weight:800;color:#475569}
.ap2-cur{font-size:22px;font-weight:900;color:var(--accent)}
.ap2-num{font-family:"Space Grotesk",Inter,sans-serif;font-size:36px;font-weight:900;line-height:1;color:#000}
.ap2-per{font-size:15px;font-weight:800;color:#475569}
.ap2-suffix{font-size:13px;font-weight:800;color:#475569}
.ap2-billing{font-size:13px;font-weight:700;color:#334155;margin-top:5px}
.ap2-save{background:#16a34a;color:#fff;padding:1px 7px;border-radius:6px;font-weight:800;font-size:12px}
.ap2-sub{font-size:12.5px;color:#475569;margin-top:6px;font-weight:600}
.ap2-sub s{color:#94a3b8}
.ap2-rule{font-size:12px;color:#475569;margin-top:5px;font-style:italic}
.ap2-spend{font-size:12.5px;color:#334155;font-weight:700;margin:10px 0 0;background:#f8fafc;border:2px solid #000;border-radius:8px;padding:6px 9px;box-shadow:2px 2px 0 0 rgba(0,0,0,.12)}
.ap2-desc{font-size:13.5px;color:#475569;line-height:1.5;margin:12px 0 12px}

.ap2-features{list-style:none;margin:6px 0 14px;padding:0;display:grid;gap:7px}
.ap2-features li{display:flex;align-items:flex-start;gap:8px;background:#f7f7f7;border:2px solid #000;border-radius:8px;padding:7px 9px;box-shadow:2px 2px 0 0 rgba(0,0,0,.9);font-size:13px;font-weight:700;color:#111;line-height:1.35}
.ap2-check{flex:0 0 auto;width:20px;height:20px;border-radius:6px;background:var(--accent);color:#fff;border:1px solid #000;box-shadow:1px 1px 0 0 rgba(0,0,0,.9);display:grid;place-items:center;font-size:12px;margin-top:1px}
.ap2-note{font-size:12px;color:#475569;font-style:italic;margin:0 0 12px}

.ap2-cta{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:6px;min-height:46px;text-decoration:none;text-align:center;font-weight:800;font-size:14.5px;color:#fff;background:var(--accent,#111);border:2px solid #000;border-radius:10px;box-shadow:4px 4px 0 0 rgba(0,0,0,.9);padding:11px 14px;transition:transform .15s,box-shadow .15s}
.ap2-cta:hover{box-shadow:6px 6px 0 0 rgba(0,0,0,.9);transform:translate(-1px,-1px)}
.ap2-cta:active{box-shadow:2px 2px 0 0 rgba(0,0,0,.9);transform:translate(2px,2px)}
.ap2-cta:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.ap2-cta--outline{background:#fff;color:#000}

/* Homepage preview */
.ap2--preview{background:#f0f0f0}
.ap2-preview-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:28px}
@media(max-width:1160px){.ap2-preview-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.ap2-preview-grid{grid-template-columns:1fr}}
.ap2-prev-card{background:#fff;border:3px solid #000;border-radius:12px;padding:20px;box-shadow:5px 5px 0 0 rgba(0,0,0,.9);display:flex;flex-direction:column;gap:6px}
.ap2-prev-card h3{font-family:"Space Grotesk",Inter,sans-serif;font-size:16px;font-weight:800;margin:0;color:#000}
.ap2-prev-from{font-size:20px;font-weight:900;color:#111}
.ap2-prev-sub{font-size:13px;color:#475569;font-weight:700}
.ap2-prev-badge{align-self:flex-start;background:#16a34a;color:#fff;font-weight:800;font-size:11px;padding:2px 8px;border:2px solid #000;border-radius:6px}
.ap2-prev-card .ap2-cta{margin-top:auto;height:4.25rem;background:#111;color:#fff}
.ap2-custom{text-align:center;margin-top:26px;display:flex;flex-direction:column;align-items:center;gap:10px}
.ap2-custom p{margin:0;font-weight:800;color:#111;font-size:17px}
.ap2-custom .ap2-cta{background:#111;min-width:230px}

/* Mobile hardening: no overflow, badge inside viewport, readable, 44px targets */
@media(max-width:600px){
	.ap2{padding:24px 12px 32px;border-radius:12px;margin-inline:0}
	.ap2-inner{max-width:100%}
	.ap2-title{font-size:22px;padding:12px 16px;box-shadow:5px 5px 0 0 rgba(0,0,0,.9)}
	.ap2-grid{gap:26px}
	.ap2-card{padding:22px 16px}
	.ap2-badge{width:50px;height:50px;top:-14px;inset-inline-end:8px;font-size:11px}
	.ap2-card__head{padding-inline-end:0}
	.ap2-num{font-size:32px}
	.ap2-features li{font-size:13.5px}
	.ap2-cta{min-height:48px;font-size:15px}
	.ap2-switch{width:60px;height:34px}
	.ap2-toggle{gap:10px}
	.ap2-sub{font-size:12px}
}
/* Never allow the neo-brutalist shadows to create a horizontal scrollbar. */
.ap2,.ap2-inner,.ap2-grid,.ap2-preview-grid{max-width:100%}
.ap2 *{min-width:0}

/* Reduced motion */
@media(prefers-reduced-motion:reduce){
	.ap2-underline,.ap2-badge,.ap2-pop{animation:none!important}
	.ap2-card,.ap2-cta,.ap2-switch__knob{transition:none!important}
}
