2026-05-13 20:44:01 +12:00
|
|
|
<script lang="ts">
|
2026-05-15 16:27:39 +12:00
|
|
|
import Icon from '$lib/components/Icon.svelte';
|
|
|
|
|
|
2026-05-13 20:44:01 +12:00
|
|
|
export let plan: {
|
|
|
|
|
title: string;
|
|
|
|
|
price: string;
|
|
|
|
|
period: string;
|
|
|
|
|
features: string[];
|
|
|
|
|
isPopular: boolean;
|
|
|
|
|
mobileOrder: number;
|
|
|
|
|
};
|
|
|
|
|
export let variant: 'pricing' | 'service' = 'service';
|
2026-05-19 23:36:58 +12:00
|
|
|
export let hideCtaOnMobile = false;
|
2026-05-18 09:43:29 +12:00
|
|
|
|
|
|
|
|
$: featured = plan.isPopular;
|
|
|
|
|
const ctaLabel = 'Book a Meet & Greet';
|
2026-05-13 20:44:01 +12:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<article
|
|
|
|
|
class="plan-card"
|
2026-05-18 09:43:29 +12:00
|
|
|
class:plan-card--featured={featured}
|
|
|
|
|
class:plan-card--supporting={!featured}
|
2026-05-13 20:44:01 +12:00
|
|
|
class:plan-card--pricing={variant === 'pricing'}
|
|
|
|
|
class:plan-card--service={variant === 'service'}
|
|
|
|
|
style="--mobile-order:{plan.mobileOrder};"
|
|
|
|
|
>
|
2026-05-18 09:43:29 +12:00
|
|
|
{#if featured}
|
|
|
|
|
<span class="plan-card__ribbon" aria-label="Most chosen routine">
|
|
|
|
|
<Icon name="fas fa-paw" className="plan-card__ribbon-icon" />
|
|
|
|
|
Goodwalk favourite
|
2026-05-15 16:27:39 +12:00
|
|
|
</span>
|
2026-05-13 20:44:01 +12:00
|
|
|
{/if}
|
2026-05-18 09:43:29 +12:00
|
|
|
|
|
|
|
|
<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>
|
2026-05-15 16:27:39 +12:00
|
|
|
</div>
|
2026-05-18 09:43:29 +12:00
|
|
|
</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>
|
|
|
|
|
|
2026-05-19 23:36:58 +12:00
|
|
|
<a
|
|
|
|
|
class="btn btn-yellow plan-card__cta"
|
|
|
|
|
class:plan-card__cta--mobile-hidden={hideCtaOnMobile}
|
|
|
|
|
href="#newlead"
|
|
|
|
|
>
|
2026-05-18 09:43:29 +12:00
|
|
|
{ctaLabel}
|
|
|
|
|
<Icon name="fas fa-arrow-right" />
|
|
|
|
|
</a>
|
2026-05-13 20:44:01 +12:00
|
|
|
</article>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
/* ── Base ── */
|
|
|
|
|
.plan-card {
|
|
|
|
|
position: relative;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2026-05-18 09:43:29 +12:00
|
|
|
border-radius: 26px;
|
|
|
|
|
padding: 30px 26px 28px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
isolation: isolate;
|
2026-05-13 20:44:01 +12:00
|
|
|
transition:
|
2026-05-18 09:43:29 +12:00
|
|
|
transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
|
|
|
|
|
box-shadow 0.28s ease,
|
|
|
|
|
border-color 0.22s ease;
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
/* ── 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);
|
2026-05-15 16:27:39 +12:00
|
|
|
box-shadow:
|
2026-05-18 09:43:29 +12:00
|
|
|
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);
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
/* ── 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);
|
2026-05-13 20:44:01 +12:00
|
|
|
box-shadow:
|
2026-05-18 09:43:29 +12:00
|
|
|
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;
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
.plan-card--featured .plan-card__header,
|
|
|
|
|
.plan-card--featured .plan-card__features {
|
|
|
|
|
background: transparent;
|
2026-05-15 16:27:39 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
/* ── Pricing variant: featured can grow taller on desktop for hierarchy ── */
|
|
|
|
|
.plan-card--pricing.plan-card--featured {
|
|
|
|
|
padding: 48px 28px 32px;
|
2026-05-15 16:27:39 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
/* ── Ribbon (featured only) — hand-pinned stamp ── */
|
2026-05-13 20:44:01 +12:00
|
|
|
.plan-card__ribbon {
|
2026-05-15 16:27:39 +12:00
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
2026-05-18 09:43:29 +12:00
|
|
|
gap: 7px;
|
2026-05-13 20:44:01 +12:00
|
|
|
position: absolute;
|
2026-05-18 09:43:29 +12:00
|
|
|
top: 16px;
|
|
|
|
|
left: 22px;
|
|
|
|
|
padding: 5px 11px 5px 9px;
|
2026-05-13 20:44:01 +12:00
|
|
|
border-radius: 999px;
|
2026-05-18 09:43:29 +12:00
|
|
|
background: var(--yellow);
|
|
|
|
|
color: var(--gw-green);
|
2026-05-13 20:44:01 +12:00
|
|
|
font-family: var(--font-head);
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
font-weight: 700;
|
2026-05-18 09:43:29 +12:00
|
|
|
letter-spacing: 0.06em;
|
2026-05-13 20:44:01 +12:00
|
|
|
text-transform: uppercase;
|
2026-05-18 09:43:29 +12:00
|
|
|
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);
|
2026-05-15 16:27:39 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
.plan-card--featured:hover .plan-card__ribbon {
|
|
|
|
|
transform: rotate(-1deg) translateY(-1px);
|
2026-05-15 16:27:39 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
|
|
|
.plan-card__ribbon,
|
|
|
|
|
.plan-card--featured:hover .plan-card__ribbon {
|
|
|
|
|
transform: none;
|
|
|
|
|
transition: none;
|
|
|
|
|
}
|
2026-05-15 16:27:39 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
:global(.plan-card__ribbon-icon) {
|
|
|
|
|
font-size: 10px;
|
2026-05-15 16:27:39 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
/* ── 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;
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
.plan-card__title {
|
2026-05-13 20:44:01 +12:00
|
|
|
margin: 0;
|
|
|
|
|
font-family: var(--font-head);
|
2026-05-18 09:43:29 +12:00
|
|
|
font-size: 19px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
line-height: 1.25;
|
|
|
|
|
letter-spacing: -0.005em;
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
.plan-card--featured .plan-card__title {
|
|
|
|
|
color: rgba(255, 248, 230, 0.96);
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
.plan-card--supporting .plan-card__title {
|
|
|
|
|
color: var(--text-heading);
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
/* ── 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;
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
.plan-card__price {
|
|
|
|
|
font-family: var(--font-head);
|
|
|
|
|
font-size: 50px;
|
2026-05-13 20:44:01 +12:00
|
|
|
font-weight: 600;
|
2026-05-18 09:43:29 +12:00
|
|
|
line-height: 1;
|
|
|
|
|
letter-spacing: -0.035em;
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
.plan-card--featured .plan-card__price {
|
|
|
|
|
color: var(--yellow);
|
|
|
|
|
position: relative;
|
|
|
|
|
display: inline-block;
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
.plan-card--supporting .plan-card__price {
|
|
|
|
|
color: var(--text-heading);
|
|
|
|
|
font-size: 48px;
|
2026-05-15 16:27:39 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
.plan-card__period {
|
|
|
|
|
font-family: var(--font-body);
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
font-weight: 600;
|
2026-05-15 16:27:39 +12:00
|
|
|
letter-spacing: 0.08em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
.plan-card--featured .plan-card__period {
|
|
|
|
|
color: rgba(255, 248, 230, 0.78);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.plan-card--supporting .plan-card__period {
|
|
|
|
|
color: var(--text-muted);
|
2026-05-15 16:27:39 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-13 20:44:01 +12:00
|
|
|
/* ── Features ── */
|
|
|
|
|
.plan-card__features {
|
2026-05-18 09:43:29 +12:00
|
|
|
position: relative;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
flex: 1 1 auto;
|
|
|
|
|
margin: 24px 0 0;
|
|
|
|
|
padding: 20px 0 0;
|
2026-05-13 20:44:01 +12:00
|
|
|
list-style: none;
|
2026-05-18 09:43:29 +12:00
|
|
|
border-top: 1px solid currentColor;
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
.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);
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
.plan-card__features li {
|
2026-05-15 16:27:39 +12:00
|
|
|
display: grid;
|
2026-05-18 09:43:29 +12:00
|
|
|
grid-template-columns: 16px minmax(0, 1fr);
|
2026-05-15 16:27:39 +12:00
|
|
|
gap: 10px;
|
2026-05-18 09:43:29 +12:00
|
|
|
align-items: start;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
line-height: 1.55;
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
.plan-card__features li + li {
|
|
|
|
|
margin-top: 10px;
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
.plan-card--featured .plan-card__features li {
|
|
|
|
|
color: rgba(255, 248, 230, 0.94);
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
.plan-card--supporting .plan-card__features li {
|
|
|
|
|
color: var(--text-heading-soft);
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
:global(.plan-card__feature-icon) {
|
|
|
|
|
margin-top: 4px;
|
|
|
|
|
font-size: 11px;
|
2026-05-15 16:27:39 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
:global(.plan-card--featured .plan-card__feature-icon) {
|
|
|
|
|
color: var(--yellow);
|
2026-05-15 16:27:39 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
:global(.plan-card--supporting .plan-card__feature-icon) {
|
2026-05-15 16:27:39 +12:00
|
|
|
color: var(--gw-green);
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ── CTA ── */
|
|
|
|
|
.plan-card__cta {
|
2026-05-18 09:43:29 +12:00
|
|
|
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;
|
2026-05-13 20:44:01 +12:00
|
|
|
font-family: var(--font-head);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ── Hover ── */
|
|
|
|
|
@media (hover: hover) {
|
2026-05-18 09:43:29 +12:00
|
|
|
.plan-card--supporting:hover {
|
2026-05-13 20:44:01 +12:00
|
|
|
transform: translateY(-2px);
|
2026-05-18 09:43:29 +12:00
|
|
|
border-color: rgba(33, 48, 33, 0.28);
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
.plan-card--featured:hover {
|
|
|
|
|
transform: translateY(-3px);
|
2026-05-15 16:27:39 +12:00
|
|
|
box-shadow:
|
2026-05-18 09:43:29 +12:00
|
|
|
inset 0 1px 0 rgba(255, 248, 230, 0.10),
|
|
|
|
|
0 26px 52px rgba(33, 48, 33, 0.26);
|
2026-05-15 16:27:39 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.plan-card:active {
|
2026-05-18 09:43:29 +12:00
|
|
|
transform: translateY(-1px);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ── Pricing variant alignment overrides ── */
|
|
|
|
|
.plan-card--pricing {
|
|
|
|
|
text-align: left;
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ── Mobile ── */
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
.plan-card {
|
|
|
|
|
order: var(--mobile-order, 0);
|
2026-05-18 22:25:43 +12:00
|
|
|
width: 100%;
|
2026-05-15 16:27:39 +12:00
|
|
|
margin-inline: auto;
|
2026-05-18 22:25:43 +12:00
|
|
|
padding: 22px 18px 20px;
|
|
|
|
|
border-radius: 22px;
|
2026-05-18 09:43:29 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.plan-card--featured {
|
2026-05-18 22:25:43 +12:00
|
|
|
padding-top: 36px;
|
2026-05-18 09:43:29 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.plan-card--pricing.plan-card--featured {
|
2026-05-18 22:25:43 +12:00
|
|
|
padding: 36px 18px 20px;
|
2026-05-15 16:27:39 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
.plan-card__price {
|
2026-05-18 22:25:43 +12:00
|
|
|
font-size: 36px;
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-18 09:43:29 +12:00
|
|
|
.plan-card--supporting .plan-card__price {
|
2026-05-18 22:25:43 +12:00
|
|
|
font-size: 34px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.plan-card__title {
|
|
|
|
|
font-size: 17px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.plan-card__price-block {
|
|
|
|
|
margin-top: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.plan-card__features {
|
|
|
|
|
margin-top: 18px;
|
|
|
|
|
padding-top: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.plan-card__features li {
|
|
|
|
|
gap: 8px;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
line-height: 1.45;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.plan-card__features li + li {
|
|
|
|
|
margin-top: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.plan-card__cta {
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
padding-inline: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.plan-card__ribbon {
|
|
|
|
|
top: 12px;
|
|
|
|
|
left: 16px;
|
|
|
|
|
padding: 4px 9px 4px 8px;
|
|
|
|
|
font-size: 10px;
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.plan-card__cta {
|
2026-05-18 09:43:29 +12:00
|
|
|
width: 100%;
|
|
|
|
|
min-width: 0;
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
2026-05-19 23:36:58 +12:00
|
|
|
|
|
|
|
|
.plan-card__cta--mobile-hidden {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
2026-05-13 20:44:01 +12:00
|
|
|
}
|
|
|
|
|
</style>
|