21 CSS Pricing Sections06 / 21

Pure CSSMIT licensed

Single Premium Card

A single-tier pricing layout for one-product brands — premium gold / brass treatment over deep navy, oversized price block, six feature checkmarks in two columns, anchor testimonial below. The pattern Basecamp / Hover use when there is only one thing to sell.

Published

Live Demo
Try it

The code

<section class="ps-06" aria-label="Pricing">
  <article class="ps-06__card">
    <span class="ps-06__eye">One plan · everything included</span>
    <h2>The whole product, <em>flat fee.</em></h2>
    <p class="ps-06__lead">
      Stop comparing tiers. One price. Every feature. Every team member. As long as you need it.
    </p>
    <div class="ps-06__price">
      <span class="ps-06__amt"><em>$</em>249</span>
      <span class="ps-06__per">per month, billed annually</span>
    </div>
    <ul class="ps-06__feats">
      <li>Unlimited team members</li>
      <li>Unlimited projects &amp; storage</li>
      <li>SSO &amp; SAML included</li>
      <li>SOC 2 &amp; HIPAA ready</li>
      <li>Priority email + chat support</li>
      <li>30-day money-back guarantee</li>
    </ul>
    <a class="ps-06__cta" href="#buy">Buy now — instant access</a>
    <p class="ps-06__foot">No demo required. Cancel any time, refund any time within 30 days.</p>
    <blockquote class="ps-06__quote">
      <p>“It paid for itself in the first week. We never looked at the tier ladder again.”</p>
      <cite>— Maya R., Head of Ops at Northwood</cite>
    </blockquote>
  </article>
</section>
.ps-06 {
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 40px);
  width: 100%;
  min-height: 100vh;
  background: radial-gradient(60% 60% at 30% 0%, rgba(212,175,55,0.12), transparent 60%), radial-gradient(50% 50% at 90% 100%, rgba(212,175,55,0.10), transparent 60%), #0b0b1a;
  color: #f4ecd8;
  font-family: 'Inter', system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-06__card {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: linear-gradient(180deg, #14142a 0%, #0b0b1a 100%);
  border: 1px solid #d4af37;
  border-radius: 22px;
  padding: clamp(28px, 5vw, 44px);
  text-align: center;
  box-shadow: 0 20px 60px rgba(212,175,55,0.15), inset 0 0 0 1px rgba(212,175,55,0.15);
}

.ps-06__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, transparent 40%, rgba(255,212,121,0.06) 50%, transparent 60%);
  pointer-events: none;
}

.ps-06__eye {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d4af37;
  padding: 5px 14px;
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 999px;
  margin-bottom: 18px;
}

.ps-06__card h2 {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: #fff;
}

.ps-06__card h2 em {
  color: #d4af37;
  font-style: italic;
}

.ps-06__lead {
  color: #b8a888;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 380px;
}

.ps-06__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 28px;
  padding: 22px 0;
  border-top: 1px solid rgba(212,175,55,0.18);
  border-bottom: 1px solid rgba(212,175,55,0.18);
}

.ps-06__amt {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(56px, 9vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #ffd479, #d4af37);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ps-06__amt em {
  font-size: 0.5em;
  font-style: normal;
  vertical-align: top;
  padding-right: 2px;
  opacity: 0.85;
}

.ps-06__per {
  font-size: 13px;
  color: #b8a888;
}

.ps-06__feats {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  text-align: left;
  font-size: 13.5px;
  color: #f4ecd8;
}

.ps-06__feats li::before {
  content: '✓';
  color: #d4af37;
  font-weight: 700;
  display: inline-block;
  width: 20px;
}

.ps-06__cta {
  display: block;
  padding: 14px 20px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffd479, #d4af37);
  color: #0b0b1a;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(212,175,55,0.3);
  transition: transform 0.18s;
}

.ps-06__cta:hover {
  transform: translateY(-1px);
}

.ps-06__cta:focus-visible {
  outline: 2px solid #ffd479;
  outline-offset: 3px;
}

.ps-06__foot {
  font-size: 12px;
  color: #8a8068;
  margin: 12px 0 26px;
}

.ps-06__quote {
  margin: 0;
  padding-top: 22px;
  border-top: 1px dashed rgba(212,175,55,0.2);
}

.ps-06__quote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-style: italic;
  color: #f4ecd8;
  margin: 0 0 8px;
  line-height: 1.5;
}

.ps-06__quote cite {
  font-style: normal;
  font-size: 12px;
  color: #8a8068;
  letter-spacing: 0.05em;
}

@media (max-width: 540px) {
  .ps-06__feats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-06__cta {
    transition: none;
  }
}
Paste this into ChatGPT, Claude, Cursor, or any coding assistant. The block below is pre-framed with everything the AI needs to integrate this demo into your project — markup, styles, scoping notes, and the source URL. Hit Copy and paste straight into your chat.
Here's a working CSS Pricing Section from CodeFronts. Use it as-is or adapt to your framework. All classes are scoped under a unique prefix so the code won't collide with your existing styles. MIT licensed.
Demo: Single Premium Card
Source: https://codefronts.com/layouts/css-pricing-sections/single-premium-card/

A single-tier pricing layout for one-product brands — premium gold / brass treatment over deep navy, oversized price block, six feature checkmarks in two columns, anchor testimonial below. The pattern Basecamp / Hover use when there is only one thing to sell.
## HTML
```html
<section class="ps-06" aria-label="Pricing">
  <article class="ps-06__card">
    <span class="ps-06__eye">One plan · everything included</span>
    <h2>The whole product, <em>flat fee.</em></h2>
    <p class="ps-06__lead">
      Stop comparing tiers. One price. Every feature. Every team member. As long as you need it.
    </p>
    <div class="ps-06__price">
      <span class="ps-06__amt"><em>$</em>249</span>
      <span class="ps-06__per">per month, billed annually</span>
    </div>
    <ul class="ps-06__feats">
      <li>Unlimited team members</li>
      <li>Unlimited projects &amp; storage</li>
      <li>SSO &amp; SAML included</li>
      <li>SOC 2 &amp; HIPAA ready</li>
      <li>Priority email + chat support</li>
      <li>30-day money-back guarantee</li>
    </ul>
    <a class="ps-06__cta" href="#buy">Buy now — instant access</a>
    <p class="ps-06__foot">No demo required. Cancel any time, refund any time within 30 days.</p>
    <blockquote class="ps-06__quote">
      <p>“It paid for itself in the first week. We never looked at the tier ladder again.”</p>
      <cite>— Maya R., Head of Ops at Northwood</cite>
    </blockquote>
  </article>
</section>
```
## CSS
```css
.ps-06 {
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 40px);
  width: 100%;
  min-height: 100vh;
  background: radial-gradient(60% 60% at 30% 0%, rgba(212,175,55,0.12), transparent 60%), radial-gradient(50% 50% at 90% 100%, rgba(212,175,55,0.10), transparent 60%), #0b0b1a;
  color: #f4ecd8;
  font-family: 'Inter', system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-06__card {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: linear-gradient(180deg, #14142a 0%, #0b0b1a 100%);
  border: 1px solid #d4af37;
  border-radius: 22px;
  padding: clamp(28px, 5vw, 44px);
  text-align: center;
  box-shadow: 0 20px 60px rgba(212,175,55,0.15), inset 0 0 0 1px rgba(212,175,55,0.15);
}

.ps-06__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, transparent 40%, rgba(255,212,121,0.06) 50%, transparent 60%);
  pointer-events: none;
}

.ps-06__eye {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d4af37;
  padding: 5px 14px;
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 999px;
  margin-bottom: 18px;
}

.ps-06__card h2 {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: #fff;
}

.ps-06__card h2 em {
  color: #d4af37;
  font-style: italic;
}

.ps-06__lead {
  color: #b8a888;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 380px;
}

.ps-06__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 28px;
  padding: 22px 0;
  border-top: 1px solid rgba(212,175,55,0.18);
  border-bottom: 1px solid rgba(212,175,55,0.18);
}

.ps-06__amt {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(56px, 9vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #ffd479, #d4af37);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ps-06__amt em {
  font-size: 0.5em;
  font-style: normal;
  vertical-align: top;
  padding-right: 2px;
  opacity: 0.85;
}

.ps-06__per {
  font-size: 13px;
  color: #b8a888;
}

.ps-06__feats {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  text-align: left;
  font-size: 13.5px;
  color: #f4ecd8;
}

.ps-06__feats li::before {
  content: '✓';
  color: #d4af37;
  font-weight: 700;
  display: inline-block;
  width: 20px;
}

.ps-06__cta {
  display: block;
  padding: 14px 20px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffd479, #d4af37);
  color: #0b0b1a;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(212,175,55,0.3);
  transition: transform 0.18s;
}

.ps-06__cta:hover {
  transform: translateY(-1px);
}

.ps-06__cta:focus-visible {
  outline: 2px solid #ffd479;
  outline-offset: 3px;
}

.ps-06__foot {
  font-size: 12px;
  color: #8a8068;
  margin: 12px 0 26px;
}

.ps-06__quote {
  margin: 0;
  padding-top: 22px;
  border-top: 1px dashed rgba(212,175,55,0.2);
}

.ps-06__quote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-style: italic;
  color: #f4ecd8;
  margin: 0 0 8px;
  line-height: 1.5;
}

.ps-06__quote cite {
  font-style: normal;
  font-size: 12px;
  color: #8a8068;
  letter-spacing: 0.05em;
}

@media (max-width: 540px) {
  .ps-06__feats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-06__cta {
    transition: none;
  }
}
```

How this works

The layout is a single <article class="ps-06__card"> centered by display: flex; align-items: center; justify-content: center on the section — no grid, no siblings, no tier comparison. The section paints a two-radial-gradient gold wash — radial-gradient(60% 60% at 30% 0%, rgba(212,175,55,0.12), transparent 60%) pinned top-left plus a mirror at bottom-right — layered over navy #0b0b1a. The card itself is max-width: 540px with border: 1px solid #d4af37 (brass gold) and a two-part shadow (0 20px 60px rgba(212,175,55,0.15), inset 0 0 0 1px rgba(212,175,55,0.15)) so the card feels both lifted and internally lit. The ::before pseudo-element paints a diagonal sheen (linear-gradient(135deg, transparent 40%, rgba(255,212,121,0.06) 50%, transparent 60%)) — a static specular highlight that reads as premium without any animation.

The palette is deep navy #0b0b1a with warm cream body #f4ecd8 and brass gold accent #d4af37, and the h2 uses Playfair Display serif (falling back to Cormorant Garamond, then Georgia) — the editorial serif register that reads as premium, lifetime-deal, or one-product-brand positioning. The price amount uses a linear-gradient(180deg, #ffd479, #d4af37) text-clip effect so the number itself feels gold-leafed. The two-column .ps-06__feats grid (grid-template-columns: 1fr 1fr; gap: 10px 22px) packs six feature checkmarks into a compact block that never scrolls off-screen — a Basecamp / Hover-style single-product SaaS pricing block. The trust footer + testimonial <blockquote> below the CTA is the anchor risk-reversal pattern.

Why it converts: Iyengar's one-choice vs many-choice A/B (the jam-shelf study) shows single-option displays convert up to 10× versus six-option displays when the offer is premium and the decision is high-consideration. The single premium pricing card removes decision fatigue entirely — the visitor either wants it or doesn't, no lateral tier-shopping. The gold treatment is Cialdini authority: brass accents on navy is the enterprise-lifetime-deal register (used by AppSumo, Basecamp Personal, and every premium-SaaS lifetime pricing page). The 30-day money-back line + testimonial below the CTA is direct Baymard risk-reversal — hesitant readers look immediately below the CTA for the escape hatch before they'll click.

Make it yours

  • Recolor brass to your brand: swap #d4af37, #ffd479, and #b8a888 (muted body) to your accent's gold / silver / rose-gold equivalents. Keep the shadow's alpha at ~0.15 for the outer glow — brighter and the whole card looks radioactive; dimmer and the lift disappears against the navy.
  • Swap Playfair Display: for a modern-serif register try 'Fraunces'. For a workhorse editorial try 'Source Serif Pro'. For a display-luxury feel try 'Cormorant Garamond' at heavier weight. Keep the body in 'Inter' — the serif-headline / sans-body pairing is the whole editorial register, and matching both to serif reads as a wedding invitation, not a premium pricing block.
  • Change the CTA shape: border-radius: 10px is the current mid-luxury register. Drop to border-radius: 4px for stamped-card / lifetime-deal look. Bump to border-radius: 999px for pill-CTA modern SaaS. Adjust the box-shadow depth to match — sharper corners hold shadow better; pills need 0 4px 12px at most.
  • For light-mode inversion: swap #0b0b1a#faf7ec, #f4ecd8#0b0b1a, keep #d4af37 as accent. The card gradient inverts to linear-gradient(180deg, #fff, #faf7ec), but the diagonal ::before sheen at 0.06 alpha disappears — bump to 0.12 so the specular still reads on cream.
  • Tailwind mapping: section bg-[#0b0b1a] text-[#f4ecd8] flex items-center justify-center min-h-screen, card relative w-full max-w-[540px] bg-gradient-to-b from-[#14142a] to-[#0b0b1a] border border-[#d4af37] rounded-[22px] p-11 text-center shadow-[0_20px_60px_rgba(212,175,55,0.15),inset_0_0_0_1px_rgba(212,175,55,0.15)], h2 font-serif text-4xl md:text-5xl font-bold tracking-tight text-white, price font-serif text-[88px] font-extrabold tracking-[-0.04em] bg-gradient-to-b from-[#ffd479] to-[#d4af37] bg-clip-text text-transparent, features grid grid-cols-2 gap-y-2.5 gap-x-6 text-left.

Gotchas — read before shipping

  • The -webkit-background-clip: text on the price amount fails silently in Windows High Contrast Mode (forced-colors: active) — the entire price number disappears. Add a @media (forced-colors: active) { .ps-06__amt { color: CanvasText; -webkit-text-fill-color: CanvasText; } } guard so the $249 survives WCAG 1.4.11 non-text contrast.
  • The .ps-06__amt uses clamp(56px, 9vw, 88px) — on very narrow phones (< 320px) 56px still renders large, but the $ sits at 0.5em which drops the dollar sign below 28px. If your target market includes Japan / Korea (where 320px viewports are still common), consider a min-height on the price row so the currency symbol doesn't collide with the price row divider.
  • Playfair Display ships true italics, so the <em>flat fee.</em> in the h2 renders correctly. Cormorant Garamond and Georgia (the fallbacks) also ship italics. But if a self-host stack drops italics or you use font-display: swap and the fallback is a system serif without italics, the emphasis looks synthetic-oblique and janky — font-display: optional on Playfair prevents the fallback from ever painting the h2.
  • The two-column .ps-06__feats grid collapses to 1fr at max-width 540px, but the card itself is max-width: 540px — so the collapse only triggers when the section is narrower than 540px, not when the card is. If you shrink the card via a wrapper without shrinking the section, the two-column grid stays at 540px and the CTA text can wrap awkwardly. Match the media query to your actual card width.
  • The ::before sheen uses pointer-events: none — this is critical. Without it, the pseudo-element overlays the CTA and swallows the click on the diagonal band, silently killing conversion on the exact user path you're optimizing. Do not remove it thinking it's decorative.
  • In React / Next.js, if this card is inside a <Suspense> boundary with a loading skeleton, the skeleton's dimensions must exactly match the final card (~740px tall depending on viewport) or the swap triggers a CLS event when the real card hydrates. Pre-render with SSR and let the skeleton be the card in a muted state, not a shorter placeholder.

Techniques used in this demo

Search CodeFronts

Loading…