Pricing — Classic 3-tier table
Classic three-column SaaS pricing layout for the fictional Northwind Cloud, with Starter, Pro, and Scale plans shown side by side. Each card carries a price, a short tagline, a feature checklist with check and cross SVG icons, and a call-to-action button. The middle Pro plan is visually elevated with a brand border, a subtle lift, and a Most popular ribbon. Cards raise on hover and selecting any plan flashes an accessible toast confirmation.
MCP
Code
:root {
--brand: #5b5bf0;
--brand-d: #4646d6;
--brand-700: #3a3ab8;
--brand-50: #eef0ff;
--accent: #00b4a6;
--accent-soft: #d8f5f2;
--ink: #101322;
--ink-2: #3a4060;
--muted: #6c7393;
--bg: #f6f7fb;
--white: #ffffff;
--surface: #ffffff;
--line: rgba(16, 19, 34, 0.1);
--line-2: rgba(16, 19, 34, 0.16);
--ok: #2f9e6f;
--warn: #d98a2b;
--danger: #d4503e;
--r-sm: 8px;
--r-md: 14px;
--r-lg: 20px;
--sh-sm: 0 1px 2px rgba(16, 19, 34, 0.08);
--sh-lg: 0 8px 24px rgba(16, 19, 34, 0.08);
}
* {
box-sizing: border-box;
}
html {
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
font-family: "Inter", system-ui, -apple-system, sans-serif;
line-height: 1.5;
color: var(--ink);
background: var(--bg);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-image:
radial-gradient(60rem 30rem at 50% -12rem, rgba(91, 91, 240, 0.1), transparent 70%);
}
.page {
max-width: 1080px;
margin: 0 auto;
padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem) 3.5rem;
}
/* ---------- Header ---------- */
.page__head {
text-align: center;
max-width: 40rem;
margin: 0 auto clamp(2rem, 5vw, 3rem);
}
.eyebrow {
display: inline-flex;
align-items: center;
gap: 0.4rem;
font-size: 0.78rem;
font-weight: 600;
letter-spacing: 0.02em;
color: var(--brand-d);
background: var(--brand-50);
border: 1px solid rgba(91, 91, 240, 0.16);
padding: 0.32rem 0.7rem;
border-radius: 999px;
}
.eyebrow svg {
color: var(--brand);
}
.page__title {
margin: 1rem 0 0.6rem;
font-size: clamp(1.9rem, 5vw, 2.8rem);
font-weight: 800;
letter-spacing: -0.02em;
line-height: 1.1;
}
.page__sub {
margin: 0;
color: var(--muted);
font-size: clamp(0.98rem, 2vw, 1.08rem);
}
/* ---------- Plans grid ---------- */
.plans {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.25rem;
align-items: start;
}
/* ---------- Card ---------- */
.card {
position: relative;
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--r-lg);
padding: 1.6rem 1.5rem 1.75rem;
box-shadow: var(--sh-sm);
display: flex;
flex-direction: column;
transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
transform: translateY(-6px);
box-shadow: var(--sh-lg);
border-color: var(--line-2);
}
.card--pop {
border: 1.5px solid var(--brand);
box-shadow: 0 10px 30px rgba(91, 91, 240, 0.18);
transform: translateY(-10px);
background:
linear-gradient(180deg, rgba(91, 91, 240, 0.05), rgba(91, 91, 240, 0)) ,
var(--surface);
}
.card--pop:hover {
transform: translateY(-16px);
box-shadow: 0 16px 40px rgba(91, 91, 240, 0.24);
}
.ribbon {
position: absolute;
top: 0;
right: 1.4rem;
transform: translateY(-50%);
background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
color: #fff;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.03em;
text-transform: uppercase;
padding: 0.34rem 0.7rem;
border-radius: 999px;
box-shadow: 0 4px 12px rgba(58, 58, 184, 0.35);
}
.card__head {
min-height: 5.4rem;
}
.card__name {
margin: 0;
font-size: 1.2rem;
font-weight: 700;
letter-spacing: -0.01em;
}
.card--pop .card__name {
color: var(--brand-d);
}
.card__tag {
margin: 0.35rem 0 0;
color: var(--muted);
font-size: 0.9rem;
}
.card__price {
display: flex;
align-items: baseline;
gap: 0.4rem;
margin: 0.4rem 0 1.25rem;
}
.card__amount {
font-size: 2.6rem;
font-weight: 800;
letter-spacing: -0.03em;
line-height: 1;
}
.card__currency {
font-size: 1.3rem;
font-weight: 700;
vertical-align: super;
color: var(--ink-2);
}
.card__per {
color: var(--muted);
font-size: 0.92rem;
font-weight: 500;
}
/* ---------- CTA ---------- */
.cta {
font-family: inherit;
font-size: 0.95rem;
font-weight: 600;
cursor: pointer;
width: 100%;
padding: 0.78rem 1rem;
border-radius: var(--r-md);
border: 1px solid transparent;
transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
transform 0.12s ease, box-shadow 0.18s ease;
}
.cta:active {
transform: scale(0.985);
}
.cta:focus-visible {
outline: none;
box-shadow: 0 0 0 3px rgba(91, 91, 240, 0.35);
}
.cta--solid {
background: var(--brand);
color: #fff;
box-shadow: 0 6px 16px rgba(91, 91, 240, 0.3);
}
.cta--solid:hover {
background: var(--brand-d);
box-shadow: 0 8px 22px rgba(91, 91, 240, 0.4);
}
.cta--ghost {
background: var(--white);
color: var(--brand-d);
border-color: var(--line-2);
}
.cta--ghost:hover {
background: var(--brand-50);
border-color: rgba(91, 91, 240, 0.3);
}
/* ---------- Features ---------- */
.features {
list-style: none;
margin: 1.4rem 0 0;
padding: 1.4rem 0 0;
border-top: 1px solid var(--line);
display: flex;
flex-direction: column;
gap: 0.7rem;
}
.feat {
display: flex;
align-items: flex-start;
gap: 0.6rem;
font-size: 0.92rem;
color: var(--ink-2);
}
.feat strong {
color: var(--ink);
font-weight: 700;
}
.feat__ico {
flex: none;
display: inline-flex;
width: 1.25rem;
height: 1.25rem;
border-radius: 999px;
align-items: center;
justify-content: center;
margin-top: 0.05rem;
}
.feat__ico svg {
width: 0.85rem;
height: 0.85rem;
fill: none;
stroke-width: 2.4;
stroke-linecap: round;
stroke-linejoin: round;
}
.feat--on .feat__ico {
background: var(--accent-soft);
}
.feat--on .feat__ico svg {
stroke: var(--accent);
}
.feat--off {
color: var(--muted);
}
.feat--off .feat__ico {
background: rgba(16, 19, 34, 0.05);
}
.feat--off .feat__ico svg {
stroke: var(--muted);
}
/* ---------- Footer ---------- */
.page__foot {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
margin-top: 2.5rem;
color: var(--muted);
font-size: 0.86rem;
}
.page__foot svg {
color: var(--ok);
}
/* ---------- Toast ---------- */
.toast-wrap {
position: fixed;
left: 50%;
bottom: 1.5rem;
transform: translateX(-50%);
display: flex;
flex-direction: column;
gap: 0.5rem;
z-index: 50;
pointer-events: none;
}
.toast {
display: flex;
align-items: center;
gap: 0.55rem;
background: var(--ink);
color: #fff;
font-size: 0.9rem;
font-weight: 500;
padding: 0.7rem 1rem;
border-radius: var(--r-md);
box-shadow: var(--sh-lg);
opacity: 0;
transform: translateY(12px) scale(0.98);
transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-in {
opacity: 1;
transform: translateY(0) scale(1);
}
.toast__dot {
width: 0.6rem;
height: 0.6rem;
border-radius: 999px;
background: var(--accent);
flex: none;
}
/* ---------- Responsive ---------- */
@media (max-width: 900px) {
.plans {
grid-template-columns: 1fr;
max-width: 26rem;
margin: 0 auto;
gap: 1.1rem;
}
.card--pop,
.card--pop:hover,
.card:hover {
transform: none;
}
.card:hover,
.card--pop:hover {
box-shadow: var(--sh-lg);
}
.card--pop {
order: -1;
}
}
@media (max-width: 520px) {
.page {
padding-top: 2rem;
}
.card {
padding: 1.4rem 1.2rem 1.5rem;
}
.card__head {
min-height: 0;
}
.card__amount {
font-size: 2.2rem;
}
.ribbon {
right: 1rem;
font-size: 0.68rem;
}
.toast-wrap {
left: 1rem;
right: 1rem;
transform: none;
}
.toast {
width: 100%;
}
}
@media (prefers-reduced-motion: reduce) {
* {
transition-duration: 0.01ms !important;
}
}(function () {
"use strict";
var toastWrap = document.getElementById("toast-wrap");
var toastTimers = [];
/**
* Show a transient toast message at the bottom of the screen.
* @param {string} msg
*/
function toast(msg) {
if (!toastWrap) return;
var el = document.createElement("div");
el.className = "toast";
var dot = document.createElement("span");
dot.className = "toast__dot";
var text = document.createElement("span");
text.textContent = msg;
el.appendChild(dot);
el.appendChild(text);
toastWrap.appendChild(el);
// Force reflow so the transition runs.
void el.offsetWidth;
el.classList.add("is-in");
var hide = window.setTimeout(function () {
el.classList.remove("is-in");
window.setTimeout(function () {
if (el.parentNode) el.parentNode.removeChild(el);
}, 300);
}, 2400);
toastTimers.push(hide);
// Keep at most 3 visible toasts.
while (toastWrap.children.length > 3) {
toastWrap.removeChild(toastWrap.firstChild);
}
}
// Delegate CTA clicks.
document.addEventListener("click", function (e) {
var btn = e.target.closest ? e.target.closest("[data-cta]") : null;
if (!btn) return;
var plan = btn.getAttribute("data-cta");
toast("Selected the " + plan + " plan");
});
// Allow Escape to dismiss any visible toasts.
document.addEventListener("keydown", function (e) {
if (e.key !== "Escape" || !toastWrap) return;
Array.prototype.forEach.call(toastWrap.querySelectorAll(".toast"), function (t) {
t.classList.remove("is-in");
window.setTimeout(function () {
if (t.parentNode) t.parentNode.removeChild(t);
}, 300);
});
});
})();<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Northwind — Pricing</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<main class="page">
<header class="page__head">
<span class="eyebrow">
<svg viewBox="0 0 24 24" aria-hidden="true" width="14" height="14">
<path d="M13 2 4 14h6l-1 8 9-12h-6z" fill="currentColor" />
</svg>
Northwind Cloud
</span>
<h1 class="page__title">Plans that scale with you</h1>
<p class="page__sub">
Simple, transparent pricing. Start free, upgrade when your team grows.
No hidden fees, cancel anytime.
</p>
</header>
<section class="plans" aria-label="Pricing plans">
<!-- Starter -->
<article class="card" data-plan="Starter">
<header class="card__head">
<h2 class="card__name">Starter</h2>
<p class="card__tag">For solo builders shipping their first project.</p>
</header>
<div class="card__price">
<span class="card__amount"><span class="card__currency">$</span>0</span>
<span class="card__per">/ month</span>
</div>
<button class="cta cta--ghost" type="button" data-cta="Starter">
Get started free
</button>
<ul class="features" aria-label="Starter features">
<li class="feat feat--on">
<span class="feat__ico" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="m5 13 4 4L19 7" /></svg>
</span>
<span>Up to <strong>3</strong> projects</span>
</li>
<li class="feat feat--on">
<span class="feat__ico" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="m5 13 4 4L19 7" /></svg>
</span>
<span>1 GB storage</span>
</li>
<li class="feat feat--on">
<span class="feat__ico" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="m5 13 4 4L19 7" /></svg>
</span>
<span>Community support</span>
</li>
<li class="feat feat--off">
<span class="feat__ico" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="M6 6l12 12M18 6 6 18" /></svg>
</span>
<span>Advanced analytics</span>
</li>
<li class="feat feat--off">
<span class="feat__ico" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="M6 6l12 12M18 6 6 18" /></svg>
</span>
<span>Custom roles & SSO</span>
</li>
</ul>
</article>
<!-- Pro (highlighted) -->
<article class="card card--pop" data-plan="Pro">
<span class="ribbon" aria-hidden="true">Most popular</span>
<header class="card__head">
<h2 class="card__name">Pro</h2>
<p class="card__tag">For growing teams that need power and polish.</p>
</header>
<div class="card__price">
<span class="card__amount"><span class="card__currency">$</span>29</span>
<span class="card__per">/ month</span>
</div>
<button class="cta cta--solid" type="button" data-cta="Pro">
Start 14-day trial
</button>
<ul class="features" aria-label="Pro features">
<li class="feat feat--on">
<span class="feat__ico" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="m5 13 4 4L19 7" /></svg>
</span>
<span>Unlimited projects</span>
</li>
<li class="feat feat--on">
<span class="feat__ico" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="m5 13 4 4L19 7" /></svg>
</span>
<span>100 GB storage</span>
</li>
<li class="feat feat--on">
<span class="feat__ico" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="m5 13 4 4L19 7" /></svg>
</span>
<span>Priority email support</span>
</li>
<li class="feat feat--on">
<span class="feat__ico" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="m5 13 4 4L19 7" /></svg>
</span>
<span>Advanced analytics</span>
</li>
<li class="feat feat--off">
<span class="feat__ico" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="M6 6l12 12M18 6 6 18" /></svg>
</span>
<span>Custom roles & SSO</span>
</li>
</ul>
</article>
<!-- Scale -->
<article class="card" data-plan="Scale">
<header class="card__head">
<h2 class="card__name">Scale</h2>
<p class="card__tag">For organizations with serious infrastructure.</p>
</header>
<div class="card__price">
<span class="card__amount"><span class="card__currency">$</span>99</span>
<span class="card__per">/ month</span>
</div>
<button class="cta cta--ghost" type="button" data-cta="Scale">
Talk to sales
</button>
<ul class="features" aria-label="Scale features">
<li class="feat feat--on">
<span class="feat__ico" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="m5 13 4 4L19 7" /></svg>
</span>
<span>Everything in <strong>Pro</strong></span>
</li>
<li class="feat feat--on">
<span class="feat__ico" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="m5 13 4 4L19 7" /></svg>
</span>
<span>1 TB storage</span>
</li>
<li class="feat feat--on">
<span class="feat__ico" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="m5 13 4 4L19 7" /></svg>
</span>
<span>Dedicated success manager</span>
</li>
<li class="feat feat--on">
<span class="feat__ico" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="m5 13 4 4L19 7" /></svg>
</span>
<span>Advanced analytics</span>
</li>
<li class="feat feat--on">
<span class="feat__ico" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="m5 13 4 4L19 7" /></svg>
</span>
<span>Custom roles & SSO</span>
</li>
</ul>
</article>
</section>
<footer class="page__foot">
<svg viewBox="0 0 24 24" aria-hidden="true" width="16" height="16">
<path d="M12 2 4 5v6c0 5 3.4 8.5 8 11 4.6-2.5 8-6 8-11V5z" fill="none" stroke="currentColor" stroke-width="1.8" />
<path d="m9 12 2 2 4-4" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" />
</svg>
30-day money-back guarantee · Prices in USD · VAT may apply
</footer>
</main>
<div class="toast-wrap" id="toast-wrap" role="status" aria-live="polite"></div>
<script src="script.js"></script>
</body>
</html>Classic 3-tier table
A timeless SaaS pricing pattern: three plan cards — Starter ($0), Pro ($29), and Scale ($99) for the fictional Northwind Cloud — laid out side by side. Each card pairs a price and tagline with a feature checklist that uses check icons for included features and cross icons for excluded ones, so the difference between tiers reads at a glance.
The middle Pro plan is the recommended choice and is set apart visually: a brand-colored border, a soft tinted background, a permanent upward lift, and a Most popular ribbon pinned to its top edge. Hovering any card raises it with a deeper shadow for a tactile feel, while focus-visible rings keep every CTA fully keyboard-accessible.
Interaction is pure vanilla JS via event delegation: clicking any CTA flashes a polite, aria-live toast reading “Selected the {plan} plan”. Toasts stack (capped at three), auto-dismiss after a couple of seconds, and can be cleared with Escape. The layout collapses to a single stacked column below 900px — promoting the Pro card to the top — and is tuned to stay readable down to 360px.