This commit is contained in:
2026-05-18 09:43:29 +12:00
parent b950229003
commit 6ff970015f
189 changed files with 18603 additions and 2727 deletions
+213 -236
View File
@@ -10,50 +10,48 @@
mobileOrder: number;
};
export let variant: 'pricing' | 'service' = 'service';
$: featured = plan.isPopular;
const ctaLabel = 'Book a Meet & Greet';
</script>
<article
class="plan-card"
class:plan-card--popular={plan.isPopular}
class:plan-card--featured={featured}
class:plan-card--supporting={!featured}
class:plan-card--pricing={variant === 'pricing'}
class:plan-card--service={variant === 'service'}
style="--mobile-order:{plan.mobileOrder};"
>
{#if plan.isPopular}
<span class="plan-card__ribbon">
<Icon name="fas fa-star" className="plan-card__ribbon-icon" />
Popular
{#if featured}
<span class="plan-card__ribbon" aria-label="Most chosen routine">
<Icon name="fas fa-paw" className="plan-card__ribbon-icon" />
Goodwalk favourite
</span>
{/if}
<div class="plan-card__header">
<div class="plan-card__eyebrow">
<span class="plan-card__eyebrow-badge">
<Icon name={variant === 'pricing' ? 'fas fa-paw' : 'fas fa-leaf'} className="plan-card__eyebrow-icon" />
</span>
<span>{plan.isPopular ? 'Goodwalk favourite' : variant === 'pricing' ? 'Flexible routine' : 'Tailored support'}</span>
<header class="plan-card__header">
<h3 class="plan-card__title">{plan.title}</h3>
<div class="plan-card__price-block">
<span class="plan-card__price">{plan.price}</span>
<span class="plan-card__period">{plan.period}</span>
</div>
<h3>{plan.title}</h3>
<div class="plan-card__price">{plan.price}</div>
<p class="plan-card__period">{plan.period}</p>
</div>
<div class="plan-card__body">
<p class="plan-card__feature-label">
<Icon name="fas fa-circle-check" className="plan-card__feature-label-icon" />
What's included
</p>
<ul class="plan-card__features">
{#each plan.features as feature}
<li>
<Icon
name={variant === 'pricing' ? 'fas fa-check' : 'fas fa-paw'}
className="plan-card__feature-icon"
/>
<span>{feature}</span>
</li>
{/each}
</ul>
</div>
<a class="btn btn-yellow plan-card__cta" href="#newlead">Book a Meet &amp; Greet</a>
</header>
<ul class="plan-card__features">
{#each plan.features as feature}
<li>
<Icon name="fas fa-check" className="plan-card__feature-icon" />
<span>{feature}</span>
</li>
{/each}
</ul>
<a class="btn btn-yellow plan-card__cta" href="#newlead">
{ctaLabel}
<Icon name="fas fa-arrow-right" />
</a>
</article>
<style>
@@ -62,310 +60,289 @@
position: relative;
display: flex;
flex-direction: column;
border-radius: 28px;
border: 1.5px solid rgba(17, 20, 24, 0.09);
padding: 38px 26px 30px;
overflow: visible;
border-radius: 26px;
padding: 30px 26px 28px;
overflow: hidden;
isolation: isolate;
transition:
transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
box-shadow 0.22s ease,
border-color 0.22s ease,
filter 0.22s ease;
transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
box-shadow 0.28s ease,
border-color 0.22s ease;
}
.plan-card::before {
content: '';
position: absolute;
inset: 0 0 auto;
height: 88px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
pointer-events: none;
}
.plan-card--popular {
border: 2px solid var(--yellow);
/* ── Supporting plans (white on cream page) ── */
.plan-card--supporting {
background: var(--surface-panel);
border: 1px solid rgba(33, 48, 33, 0.10);
color: var(--text-heading);
box-shadow:
inset 0 0 0 1px rgba(242, 191, 47, 0.45),
0 14px 34px rgba(17, 20, 24, 0.06);
0 1px 0 rgba(255, 255, 255, 0.7) inset,
0 10px 24px rgba(17, 20, 24, 0.08),
0 2px 6px rgba(17, 20, 24, 0.05);
}
/* ── Service variant ── */
.plan-card--service {
align-items: stretch;
height: 100%;
background: linear-gradient(180deg, rgba(251, 251, 251, 0.98) 0%, rgba(247, 248, 246, 1) 100%);
/* ── Featured plan (green-drenched, brand-true) ── */
.plan-card--featured {
background-color: var(--gw-green);
background-image: none;
border: 1px solid rgba(255, 209, 0, 0.22);
color: rgba(255, 248, 230, 0.96);
box-shadow:
inset 0 0 0 1px rgba(17, 20, 24, 0.045),
0 8px 40px rgba(0, 0, 0, 0.06);
0 1px 0 rgba(255, 248, 230, 0.08) inset,
0 22px 46px rgba(33, 48, 33, 0.30),
0 4px 10px rgba(33, 48, 33, 0.18);
padding-top: 44px;
}
/* ── Pricing variant ── */
.plan-card--pricing {
align-items: center;
text-align: center;
background: linear-gradient(180deg, rgba(251, 251, 251, 0.98) 0%, rgba(247, 248, 246, 1) 100%);
box-shadow:
inset 0 0 0 1px rgba(17, 20, 24, 0.045),
0 14px 34px rgba(17, 20, 24, 0.05);
.plan-card--featured .plan-card__header,
.plan-card--featured .plan-card__features {
background: transparent;
}
.plan-card--pricing.plan-card--popular {
background:
radial-gradient(circle at top, rgba(255, 209, 0, 0.12), rgba(255, 209, 0, 0) 40%),
linear-gradient(180deg, rgba(251, 251, 251, 0.98) 0%, rgba(247, 248, 246, 1) 100%);
/* ── Pricing variant: featured can grow taller on desktop for hierarchy ── */
.plan-card--pricing.plan-card--featured {
padding: 48px 28px 32px;
}
.plan-card__header,
.plan-card__body {
position: relative;
z-index: 1;
width: 100%;
}
/* ── Ribbon ── */
/* ── Ribbon (featured only) — hand-pinned stamp ── */
.plan-card__ribbon {
display: inline-flex;
align-items: center;
gap: 6px;
gap: 7px;
position: absolute;
top: 0;
left: 50%;
transform: translate(-50%, -40%);
padding: 6px 12px;
top: 16px;
left: 22px;
padding: 5px 11px 5px 9px;
border-radius: 999px;
background: linear-gradient(135deg, var(--gw-green), var(--green-mid));
color: #fff;
background: var(--yellow);
color: var(--gw-green);
font-family: var(--font-head);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.04em;
letter-spacing: 0.06em;
text-transform: uppercase;
box-shadow: 0 10px 20px rgba(17, 20, 24, 0.08);
white-space: nowrap;
transform: rotate(-3deg);
transform-origin: 12px 50%;
box-shadow:
0 1px 0 rgba(33, 48, 33, 0.10),
0 8px 18px rgba(255, 209, 0, 0.32);
z-index: 2;
transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.plan-card--featured:hover .plan-card__ribbon {
transform: rotate(-1deg) translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
.plan-card__ribbon,
.plan-card--featured:hover .plan-card__ribbon {
transform: none;
transition: none;
}
}
:global(.plan-card__ribbon-icon) {
color: var(--yellow);
font-size: 10px;
}
.plan-card__eyebrow {
display: inline-flex;
align-items: center;
gap: 10px;
margin-bottom: 18px;
color: var(--gw-green);
font-family: var(--font-head);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
/* ── Header ── */
.plan-card__header {
/* Override the global `header { ... }` in layout.css (page chrome only).
Without this, every card inherits a background band and box-shadow. */
background: transparent;
box-shadow: none;
z-index: 1;
isolation: auto;
overflow: visible;
position: relative;
}
.plan-card__eyebrow-badge {
display: inline-flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
border-radius: 12px;
background: linear-gradient(135deg, var(--gw-green), var(--green-mid));
color: #fff;
box-shadow: 0 10px 22px rgba(33, 48, 33, 0.14);
}
:global(.plan-card__eyebrow-icon) {
color: var(--yellow);
font-size: 14px;
}
/* ── Heading ── */
.plan-card h3 {
.plan-card__title {
margin: 0;
font-family: var(--font-head);
font-size: 22px;
line-height: 1.2;
color: #16181d;
font-size: 19px;
font-weight: 600;
line-height: 1.25;
letter-spacing: -0.005em;
}
.plan-card--featured .plan-card__title {
color: rgba(255, 248, 230, 0.96);
}
.plan-card--supporting .plan-card__title {
color: var(--text-heading);
}
/* ── Price block ── */
.plan-card__price-block {
display: flex;
align-items: baseline;
flex-wrap: wrap;
column-gap: 8px;
row-gap: 4px;
margin-top: 18px;
min-width: 0;
}
/* ── Price ── */
.plan-card__price {
font-family: var(--font-head);
line-height: 1;
}
.plan-card--service .plan-card__price {
margin-top: 20px;
font-size: 44px;
color: var(--gw-green);
}
.plan-card--pricing .plan-card__price {
margin-top: 22px;
font-size: 52px;
line-height: 0.95;
letter-spacing: -0.05em;
color: #16181d;
}
/* ── Period ── */
.plan-card__period {
margin: 8px 0 0;
font-size: 14px;
text-transform: uppercase;
}
.plan-card--service .plan-card__period {
color: #5d6166;
font-size: 50px;
font-weight: 600;
letter-spacing: 0.06em;
line-height: 1;
letter-spacing: -0.035em;
}
.plan-card--pricing .plan-card__period {
color: #5e6167;
letter-spacing: 0.08em;
.plan-card--featured .plan-card__price {
color: var(--yellow);
position: relative;
display: inline-block;
}
.plan-card__body {
margin-top: 24px;
padding-top: 18px;
border-top: 1px solid rgba(17, 20, 24, 0.07);
.plan-card--supporting .plan-card__price {
color: var(--text-heading);
font-size: 48px;
}
.plan-card__feature-label {
display: inline-flex;
align-items: center;
gap: 8px;
margin: 0 0 14px;
color: #59606d;
font-family: var(--font-head);
font-size: 11px;
font-weight: 700;
.plan-card__period {
font-family: var(--font-body);
font-size: 13px;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
}
:global(.plan-card__feature-label-icon) {
color: var(--gw-green);
font-size: 12px;
.plan-card--featured .plan-card__period {
color: rgba(255, 248, 230, 0.78);
}
.plan-card--supporting .plan-card__period {
color: var(--text-muted);
}
/* ── Features ── */
.plan-card__features {
margin: 0;
padding: 0;
list-style: none;
}
.plan-card--service .plan-card__features {
position: relative;
z-index: 1;
flex: 1 1 auto;
margin: 24px 0 0;
padding: 20px 0 0;
list-style: none;
border-top: 1px solid currentColor;
}
/* Service: bullet style */
.plan-card--service .plan-card__features li {
.plan-card--featured .plan-card__features {
border-top-color: rgba(255, 248, 230, 0.24);
}
.plan-card--supporting .plan-card__features {
border-top-color: rgba(33, 48, 33, 0.10);
}
.plan-card__features li {
display: grid;
grid-template-columns: 18px minmax(0, 1fr);
grid-template-columns: 16px minmax(0, 1fr);
gap: 10px;
color: #34363a;
font-size: 15px;
line-height: 1.5;
align-items: start;
font-size: 14px;
line-height: 1.55;
}
.plan-card--service .plan-card__features li + li {
margin-top: 12px;
.plan-card__features li + li {
margin-top: 10px;
}
:global(.plan-card--service .plan-card__feature-icon) {
margin-top: 3px;
color: var(--yellow-soft);
font-size: 12px;
.plan-card--featured .plan-card__features li {
color: rgba(255, 248, 230, 0.94);
}
/* Pricing: divider style */
.plan-card--pricing .plan-card__features {
width: 100%;
.plan-card--supporting .plan-card__features li {
color: var(--text-heading-soft);
}
.plan-card--pricing .plan-card__features li {
display: grid;
grid-template-columns: 18px minmax(0, 1fr);
gap: 10px;
padding: 15px 0;
border-top: 1px solid rgba(17, 20, 24, 0.08);
color: #34363a;
font-size: 16px;
line-height: 1.5;
text-align: left;
:global(.plan-card__feature-icon) {
margin-top: 4px;
font-size: 11px;
}
.plan-card--pricing .plan-card__features li:first-child {
padding-top: 0;
border-top: none;
:global(.plan-card--featured .plan-card__feature-icon) {
color: var(--yellow);
}
:global(.plan-card--pricing .plan-card__feature-icon) {
margin-top: 3px;
:global(.plan-card--supporting .plan-card__feature-icon) {
color: var(--gw-green);
font-size: 12px;
}
/* ── CTA ── */
.plan-card__cta {
display: flex;
width: fit-content;
margin: 28px auto 0;
position: relative;
z-index: 1;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
margin-top: 26px;
align-self: center;
width: auto;
min-width: 180px;
padding-inline: 22px;
font-family: var(--font-head);
}
/* ── Hover ── */
@media (hover: hover) {
.plan-card--service:hover {
.plan-card--supporting:hover {
transform: translateY(-2px);
border-color: rgba(17, 20, 24, 0.14);
box-shadow:
inset 0 0 0 1px rgba(17, 20, 24, 0.055),
0 10px 40px rgba(0, 0, 0, 0.08);
filter: brightness(1.015);
border-color: rgba(33, 48, 33, 0.28);
}
.plan-card--pricing:hover {
transform: translateY(-2px);
border-color: rgba(17, 20, 24, 0.14);
.plan-card--featured:hover {
transform: translateY(-3px);
box-shadow:
inset 0 0 0 1px rgba(17, 20, 24, 0.06),
0 18px 38px rgba(17, 20, 24, 0.08);
filter: brightness(1.012);
inset 0 1px 0 rgba(255, 248, 230, 0.10),
0 26px 52px rgba(33, 48, 33, 0.26);
}
.plan-card--popular:hover {
border-color: var(--yellow);
}
}
.plan-card:active {
transform: translateY(-2px) scale(0.992);
transform: translateY(-1px);
}
/* ── Pricing variant alignment overrides ── */
.plan-card--pricing {
text-align: left;
}
/* ── Mobile ── */
@media (max-width: 768px) {
.plan-card {
order: var(--mobile-order, 0);
width: min(100%, 420px);
width: min(100%, 440px);
margin-inline: auto;
padding: 36px 22px 28px;
padding: 28px 22px 24px;
}
.plan-card__body {
margin-top: 22px;
padding-top: 16px;
.plan-card--featured {
padding-top: 44px;
}
.plan-card--pricing .plan-card__price {
font-size: 46px;
.plan-card--pricing.plan-card--featured {
padding: 44px 22px 24px;
}
.plan-card__price {
font-size: 44px;
}
.plan-card--supporting .plan-card__price {
font-size: 42px;
}
.plan-card__cta {
display: none;
width: 100%;
min-width: 0;
}
}
</style>