Back to CSS Pricing Sections Feature Accordion Tiers Pure CSS
Share
.ps-acc {
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 40px);
  min-height: 480px;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(168,85,247,0.16), transparent 60%),
    #15071f;
  color: #f3e8ff;
  font-family: 'Inter', system-ui, sans-serif;
}
.ps-acc-head { text-align: center; margin-bottom: clamp(24px, 4vw, 36px); }
.ps-acc-head h2 {
  font-size: clamp(22px, 3.4vw, 32px); font-weight: 700;
  letter-spacing: -0.02em; margin: 0 0 8px; color: #fff;
}
.ps-acc-head p { color: #c4a8d6; margin: 0; font-size: 14px; }
.ps-acc-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; max-width: 980px; margin: 0 auto;
  align-items: start;
}
.ps-acc-card {
  position: relative;
  background: #281033;
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: 14px;
  padding: 24px 22px 20px;
  display: flex; flex-direction: column;
}
.ps-acc-pri {
  background: linear-gradient(180deg, #3b1554, #281033);
  border-color: #a855f7;
  box-shadow: 0 0 0 1px #a855f7 inset, 0 16px 40px rgba(168,85,247,0.22);
}
.ps-acc-pill {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #a855f7, #d946ef);
  color: #15071f;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 11px;
  border-radius: 999px;
}
.ps-acc-card h3 {
  font-size: 15px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin: 0 0 6px; color: #d8b4fe;
}
.ps-acc-price {
  display: flex; align-items: baseline; gap: 4px;
  font-size: 36px; font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 6px; color: #fff;
}
.ps-acc-price em { font-size: 0.5em; font-style: normal; padding-right: 2px; opacity: 0.7; }
.ps-acc-price span { font-size: 0.32em; font-weight: 500; opacity: 0.65; margin-left: 6px; }
.ps-acc-sub { font-size: 13px; color: #c4a8d6; margin: 0 0 16px; line-height: 1.5; min-height: 36px; }
.ps-acc-det {
  border: 1px solid rgba(168,85,247,0.18);
  border-radius: 8px;
  padding: 0 14px;
  margin-bottom: 16px;
  background: rgba(168,85,247,0.05);
}
.ps-acc-det[open] { padding-bottom: 4px; }
.ps-acc-det summary {
  cursor: pointer;
  padding: 11px 0;
  font-size: 13px; font-weight: 600; color: #d8b4fe;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  outline: 0;
}
.ps-acc-det summary::-webkit-details-marker { display: none; }
.ps-acc-det summary span {
  display: inline-block; font-size: 14px; transition: transform 0.25s;
}
.ps-acc-det[open] summary span { transform: rotate(180deg); }
.ps-acc-det summary:focus-visible { outline: 2px solid #a855f7; outline-offset: 3px; border-radius: 4px; }
.ps-acc-det ul {
  list-style: none; padding: 0; margin: 0 0 8px;
  font-size: 12.5px; line-height: 1.95; color: #d8c8e8;
  border-top: 1px dashed rgba(168,85,247,0.18);
  padding-top: 10px;
}
.ps-acc-det ul li::before { content: '✓'; color: #d946ef; display: inline-block; width: 18px; font-weight: 700; }
.ps-acc-cta {
  display: block; text-align: center; margin-top: auto;
  padding: 11px 16px; border-radius: 8px;
  background: rgba(168,85,247,0.12); color: #d8b4fe;
  text-decoration: none; font-size: 13.5px; font-weight: 600;
  border: 1px solid rgba(168,85,247,0.3);
  transition: background 0.18s, color 0.18s;
}
.ps-acc-cta-pri { background: linear-gradient(135deg, #a855f7, #d946ef); color: #15071f; border-color: transparent; }
.ps-acc-cta:hover { background: rgba(168,85,247,0.28); color: #fff; }
.ps-acc-cta:focus-visible { outline: 2px solid #d946ef; outline-offset: 3px; }
@media (max-width: 820px) {
  .ps-acc-grid { grid-template-columns: 1fr; max-width: 380px; }
  .ps-acc-sub { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-acc-det summary span { transition: none; }
  .ps-acc-cta { transition: none; }
}
<section class="ps-acc" aria-label="Pricing">
  <header class="ps-acc-head">
    <h2>Pricing without the wall of checkmarks.</h2>
    <p>Open any tier to read the full feature list. Tap to collapse.</p>
  </header>
  <div class="ps-acc-grid">
    <article class="ps-acc-card">
      <h3>Indie</h3>
      <div class="ps-acc-price"><em>$</em>11<span>/mo</span></div>
      <p class="ps-acc-sub">For solo developers shipping side projects.</p>
      <details class="ps-acc-det">
        <summary>See all features <span aria-hidden="true">⌄</span></summary>
        <ul>
          <li>1 project workspace</li>
          <li>10 GB storage</li>
          <li>Community forum support</li>
          <li>Public deploys with auto-SSL</li>
          <li>50K monthly visitor cap</li>
          <li>1-year version history</li>
        </ul>
      </details>
      <a class="ps-acc-cta" href="#indie">Choose Indie →</a>
    </article>
    <article class="ps-acc-card ps-acc-pri">
      <span class="ps-acc-pill">Recommended</span>
      <h3>Studio</h3>
      <div class="ps-acc-price"><em>$</em>34<span>/mo</span></div>
      <p class="ps-acc-sub">For small teams shipping to real users.</p>
      <details class="ps-acc-det" open>
        <summary>See all features <span aria-hidden="true">⌄</span></summary>
        <ul>
          <li>Unlimited project workspaces</li>
          <li>100 GB storage</li>
          <li>Priority email + chat support</li>
          <li>Custom domains with auto-SSL</li>
          <li>500K monthly visitor cap</li>
          <li>3-year version history</li>
          <li>Team roles &amp; permissions</li>
          <li>Slack, GitHub, Linear sync</li>
        </ul>
      </details>
      <a class="ps-acc-cta ps-acc-cta-pri" href="#studio">Choose Studio →</a>
    </article>
    <article class="ps-acc-card">
      <h3>Org</h3>
      <div class="ps-acc-price"><em>$</em>96<span>/mo</span></div>
      <p class="ps-acc-sub">For organisations with compliance requirements.</p>
      <details class="ps-acc-det">
        <summary>See all features <span aria-hidden="true">⌄</span></summary>
        <ul>
          <li>Everything in Studio</li>
          <li>SAML SSO &amp; SCIM provisioning</li>
          <li>Audit logs (90-day retention)</li>
          <li>Unlimited monthly visitors</li>
          <li>Forever version history</li>
          <li>SOC 2 + DPA on file</li>
          <li>SLA 99.99% with credits</li>
          <li>Dedicated CSM &amp; quarterly review</li>
        </ul>
      </details>
      <a class="ps-acc-cta" href="#org">Talk to sales →</a>
    </article>
  </div>
</section>
Live preview Edit any tab — preview updates live Ready