/* =====================================================================
   UNISON protect — Pet Insurance
   1. Variables   2. Reset   3. Typography   4. Global   5. Navbar
   6. Hero   7. Cards   8. Sections   9. Plans   10. Stories   11. App
   12. Claims   13. FAQ   14. Forms   15. Footer   16. Responsive
   17. Accessibility & motion
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Variables — brand values from "Unison Color and typography usage"
   --------------------------------------------------------------------- */
:root {
    /* Brand (documented) */
    --primary-purple: #330066;
    --secondary-purple: #6A5ACD;
    --cta-green: #339933;
    --cta-green-hover: #297C29;
    --button-text: #FAFAFA;
    --text: #171717;
    --muted: #A3A3A3;
    /* disabled / placeholder only */
    --error: #F2271B;
    --success: #1F8722;
    --focus: #097BF7;

    /* Derived tints (lighter versions of the documented purples/green) */
    --lav-25: #FBFAFF;
    --lav-50: #F6F3FE;
    --lav-100: #EEE9FC;
    --lav-200: #E0D8F8;
    --lav-300: #C8BCF1;
    --purple-800: #4A1A8C;
    --green-50: #EAF5EA;
    --text-soft: #4B4658;
    /* supporting copy on light backgrounds */
    --white: #FFFFFF;

    /* Type */
    --font-display: "Raleway", "Segoe UI", system-ui, sans-serif;
    --font-body: "Open Sans", "Segoe UI", system-ui, sans-serif;
    --fs-sm: 0.875rem;
    /* 14px — smallest permitted size */
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-h3: 1.25rem;
    --fs-h2: clamp(2rem, 1.4rem + 2.2vw, 3rem);
    --fs-h1: clamp(2.6rem, 1.5rem + 4.2vw, 4.6rem);

    /* Layout */
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --section-y: clamp(72px, 8vw, 120px);
    --header-h: 80px;

    /* Shape & depth */
    --r-sm: 12px;
    --r-md: 20px;
    --r-lg: 28px;
    --r-xl: 44px;
    --r-pill: 999px;
    --shadow-sm: 0 2px 8px rgba(51, 0, 102, 0.06);
    --shadow-md: 0 12px 32px -8px rgba(51, 0, 102, 0.14);
    --shadow-lg: 0 28px 60px -18px rgba(51, 0, 102, 0.28);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------
   2. Reset
   --------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

input,
button,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
    padding: 0;
}

a {
    color: inherit;
}

fieldset {
    border: 0;
    padding: 0;
    min-width: 0;
}

[hidden] {
    display: none !important;
}

/* ---------------------------------------------------------------------
   3. Typography — Raleway = brand & headings, Open Sans = reading & UI
   --------------------------------------------------------------------- */
body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: lining-nums;
    /* Raleway defaults to old-style figures */
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    color: var(--primary-purple);
    line-height: 1.12;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

.section-title {
    font-size: var(--fs-h2);
    font-weight: 800;
}

.section-sub {
    color: var(--text-soft);
    font-size: var(--fs-md);
    margin-top: 12px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--secondary-purple);
}

.eyebrow .icon {
    width: 18px;
    height: 18px;
}

.pill-label {
    display: inline-block;
    padding: 4px 14px;
    margin-bottom: 14px;
    border: 1.5px solid var(--lav-300);
    border-radius: var(--r-pill);
    background: var(--white);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--secondary-purple);
}

.fineprint {
    font-size: var(--fs-sm);
    color: var(--text-soft);
    margin-top: 16px;
}

.nowrap {
    white-space: nowrap;
}

/* Hand-written accent notes (Raleway italic — no additional fonts) */
.hand-note {
    position: absolute;
    z-index: 3;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.2;
    color: var(--secondary-purple);
    transform: rotate(-8deg);
    pointer-events: none;
}

.hand-note__heart {
    display: inline-block;
    width: 22px;
    height: 22px;
    vertical-align: -4px;
    margin-left: 4px;
    color: var(--primary-purple);
}

/* ---------------------------------------------------------------------
   4. Global — layout, buttons, icons, decoration
   --------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section-y);
    position: relative;
    overflow-x: clip;
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 20px;
    height: 20px;
    flex: none;
}

/* Buttons — green = action (brand rule) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 26px;
    border-radius: var(--r-pill);
    border: 2px solid transparent;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--fs-base);
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}

.btn .icon {
    width: 18px;
    height: 18px;
    transition: transform .25s var(--ease);
}

.btn:hover .icon {
    transform: translateX(3px);
}

.btn--green {
    background: var(--cta-green);
    color: var(--button-text);
    box-shadow: 0 10px 22px -10px rgba(51, 153, 51, .7);
}

.btn--green:hover {
    background: var(--cta-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -10px rgba(41, 124, 41, .75);
}

.btn--green:active {
    transform: translateY(0);
}

.btn--outline {
    background: var(--white);
    color: var(--cta-green-hover);
    border-color: var(--cta-green);
}

.btn--outline:hover {
    background: var(--cta-green);
    color: var(--button-text);
}

.btn--sm {
    min-height: 44px;
    padding: 10px 20px;
    font-size: var(--fs-sm);
}

.btn--lg {
    min-height: 56px;
    padding: 14px 32px;
    font-size: var(--fs-md);
}

.btn--block {
    width: 100%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--primary-purple);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    text-decoration-color: var(--lav-300);
    transition: color .2s, text-decoration-color .2s;
}

.link-arrow .icon {
    width: 18px;
    height: 18px;
    transition: transform .25s var(--ease);
}

.link-arrow:hover {
    color: var(--cta-green-hover);
    text-decoration-color: currentColor;
}

.link-arrow:hover .icon {
    transform: translateX(4px);
}

.icon-tile {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--lav-100);
    color: var(--primary-purple);
}

.icon-tile .icon {
    width: 28px;
    height: 28px;
}

.icon-tile--sm {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.icon-tile--sm .icon {
    width: 22px;
    height: 22px;
}

/* Placeholder tokens for content the source docs don't supply */
.ph {
    padding: 0 4px;
    border-radius: 4px;
    background: var(--lav-100);
    color: var(--primary-purple);
    font-weight: 600;
    white-space: nowrap;
}

.ph--dark {
    background: rgba(255, 255, 255, .14);
    color: var(--white);
}

/* Decorative shapes */
.blob,
.ring {
    position: absolute;
    pointer-events: none;
}

.deco-paw {
    position: absolute;
    pointer-events: none;
    color: var(--lav-300);
    z-index: 0;
}

.deco-paw svg {
    width: 100%;
    height: 100%;
}

.doodle {
    position: absolute;
    pointer-events: none;
    color: var(--secondary-purple);
    z-index: 3;
}

.float-card,
.float-chip {
    position: absolute;
    z-index: 4;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

/* ---------------------------------------------------------------------
   5. Topbar & Navbar
   --------------------------------------------------------------------- */
.topbar {
    background: var(--topbar-bg);
    color: var(--white);
    font-size: var(--fs-sm);
}

:root {
    /* shared by the topbar and the purple strip behind the navbar's rounded corners */
    --topbar-bg: linear-gradient(90deg, var(--primary-purple) 0%, var(--purple-800) 50%, var(--primary-purple) 100%);
    --header-radius: 24px;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
}

.topbar__msg {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar__msg .icon {
    width: 14px;
    height: 14px;
    color: var(--lav-300);
}

.topbar__nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.topbar__nav li {
    position: relative;
    display: flex;
    align-items: center;
}

/* thin "|" separators between the utility links */
.topbar__nav li + li::before {
    content: "";
    width: 1px;
    height: 14px;
    margin-right: 4px;
    background: rgba(255, 255, 255, .35);
}

.topbar__nav a {
    display: inline-block;
    padding: 8px 12px;
    border-radius: var(--r-pill);
    text-decoration: none;
    font-weight: 600;
    opacity: .9;
    transition: background-color .2s, opacity .2s;
}

.topbar__nav a:hover {
    background: rgba(255, 255, 255, .12);
    opacity: 1;
}

/* White navbar with rounded top corners sitting on the purple topbar:
   a purple strip (same gradient as the topbar) fills the corners, and the
   white bar is drawn on ::before so its radius can animate. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--topbar-bg) top / 100% var(--header-radius) no-repeat;
    transition: box-shadow .3s var(--ease), background-size .3s var(--ease);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    /* solid white: must match the wave exactly, or a seam shows while scrolling */
    background: var(--white);
    border-radius: var(--header-radius) var(--header-radius) 0 0;
    transition: border-radius .3s var(--ease);
}

/* Wavy bottom edge under the navbar (same path as the CTA band's bottom wave) */
.site-header__wave {
    position: absolute;
    left: 0;
    top: calc(100% - 1px);
    width: 100%;
    height: clamp(18px, 2.6vw, 38px);
    fill: var(--white);
    pointer-events: none;
    transition: filter .3s var(--ease);
}

/* Once stuck to the top of the viewport, square it off so no purple shows.
   The shadow follows the wave rather than the header's straight edge. */
.site-header.is-scrolled {
    background-size: 100% 0;
}

.site-header.is-scrolled .site-header__wave {
    /* offset well beyond the blur's reach so no shadow bleeds up into the navbar */
    filter: drop-shadow(0 14px 6px rgba(51, 0, 102, .12));
}

.site-header.is-scrolled::before {
    border-radius: 0;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--header-h);
}

.brand {
    flex: none;
    display: block;
    border-radius: 8px;
}

.brand img {
    height: 52px;
    width: auto;
}

.primary-nav {
    margin-inline: auto;
}

.primary-nav ul {
    display: flex;
    gap: 2px;
}

.primary-nav a {
    position: relative;
    display: block;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--primary-purple);
    text-decoration: none;
    border-radius: var(--r-pill);
    transition: background-color .2s;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--cta-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}

.primary-nav a:hover {
    background: var(--lav-50);
}

.primary-nav a:hover::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.header-cta {
    margin-left: 6px;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--lav-100);
    color: var(--primary-purple);
    place-items: center;
}

.menu-toggle__bars {
    position: relative;
    display: block;
    width: 22px;
    height: 16px;
}

.menu-toggle__bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease);
}

.menu-toggle__bars span:nth-child(1) {
    top: 0;
}

.menu-toggle__bars span:nth-child(2) {
    top: 7px;
}

.menu-toggle__bars span:nth-child(3) {
    top: 14px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}

.mobile-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    padding: 12px var(--gutter) 28px;
    transform-origin: top;
    animation: drop-in .35s var(--ease);
}

.mobile-menu__list li+li {
    border-top: 1px solid var(--lav-100);
}

.mobile-menu__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-lg);
    color: var(--primary-purple);
    text-decoration: none;
}

.mobile-menu__list a::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2.5px solid var(--lav-300);
    border-top: 2.5px solid var(--lav-300);
    transform: rotate(45deg);
    margin-right: 6px;
}

.mobile-menu__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
}

.mobile-menu__list li {
    opacity: 0;
    transform: translateY(-6px);
    animation: item-in .4s var(--ease) forwards;
}

.mobile-menu__list li:nth-child(2) {
    animation-delay: .04s;
}

.mobile-menu__list li:nth-child(3) {
    animation-delay: .08s;
}

.mobile-menu__list li:nth-child(4) {
    animation-delay: .12s;
}

.mobile-menu__list li:nth-child(5) {
    animation-delay: .16s;
}

.mobile-menu__list li:nth-child(6) {
    animation-delay: .2s;
}

.mobile-menu__list li:nth-child(7) {
    animation-delay: .24s;
}

@keyframes drop-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes item-in {
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 6vw, 88px) 0 clamp(120px, 12vw, 170px);
    background:
        radial-gradient(60% 70% at 100% 0%, var(--lav-100) 0%, transparent 70%),
        linear-gradient(180deg, var(--lav-25) 0%, var(--lav-50) 100%);
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.hero__copy {
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: var(--fs-h1);
    font-weight: 800;
    margin-top: 18px;
    letter-spacing: -0.025em;
    line-height: 1.04;
}

.hero__title-main {
    display: block;
}

.hero__title-accent {
    display: inline-block;
    margin-top: 6px;
    font-style: italic;
    color: var(--secondary-purple);
}

.hero__underlined {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.hero__underline {
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 16px;
    color: var(--cta-green);
    opacity: .85;
}

.hero__lead {
    margin-top: 30px;
    max-width: 30em;
    font-size: var(--fs-lg);
    color: var(--text-soft);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    margin-top: 32px;
}

.trust-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 32em;
    margin-top: 36px;
    padding: 14px 18px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .75);
    border: 1px solid var(--lav-200);
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: 1.55;
}

.trust-note>.icon {
    color: var(--secondary-purple);
    margin-top: 1px;
}

.hero__visual {
    position: relative;
    aspect-ratio: 1 / 0.94;
    max-width: 600px;
    width: 100%;
    justify-self: end;
}

.blob--hero-lav {
    inset: -4% -10% -2% 4%;
    background: var(--lav-200);
    border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
    animation: morph 16s ease-in-out infinite;
}

.blob--hero-purple {
    width: 38%;
    aspect-ratio: 1;
    right: -6%;
    bottom: 2%;
    background: var(--secondary-purple);
    opacity: .9;
    border-radius: 62% 38% 46% 54% / 55% 44% 56% 45%;
    animation: morph 12s ease-in-out infinite reverse;
}

.blob--hero-green {
    width: 16%;
    aspect-ratio: 1;
    left: 2%;
    top: 4%;
    background: var(--cta-green);
    opacity: .85;
    border-radius: 50% 50% 46% 54% / 60% 40% 60% 40%;
}

.hero__photo {
    position: absolute;
    inset: 6% 2% 8% 8%;
    z-index: 2;
    overflow: hidden;
    border-radius: 46% 54% 44% 56% / 50% 44% 56% 50%;
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--white);
}

.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 45% 50%;
    transform: scale(1.08);
    animation: slow-pan 18s ease-in-out infinite alternate;
}

.hero__inset {
    position: absolute;
    z-index: 4;
    left: -2%;
    bottom: 4%;
    width: 28%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--white);
    box-shadow: var(--shadow-md);
}

.hero__inset img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 25%;
}

.hero__card {
    right: -2%;
    bottom: -3%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px 16px 16px;
    border-radius: var(--r-md);
    max-width: 270px;
    animation: floaty 7s ease-in-out infinite;
}

.float-card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 14px;
    background: var(--green-50);
    color: var(--cta-green);
}

.float-card__icon .icon {
    width: 26px;
    height: 26px;
}

.hero__card p {
    display: grid;
    line-height: 1.35;
}

.hero__card strong {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.0625rem;
    color: var(--primary-purple);
}

.hero__card span {
    font-size: var(--fs-sm);
    color: var(--text-soft);
}

.hero__chip {
    top: 7%;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--r-pill);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--primary-purple);
    animation: floaty 8s ease-in-out -3s infinite;
}

.hero__chip .icon {
    color: var(--secondary-purple);
}

.hero__note {
    top: -6%;
    left: 28%;
}

.doodle--hero-arrow {
    width: 70px;
    height: 48px;
    top: 2%;
    left: 58%;
    transform: rotate(8deg);
}

.doodle--hero-sparks {
    width: 36px;
    height: 36px;
    left: 18%;
    top: 14%;
    color: var(--cta-green);
    z-index: 1;
    transform: rotate(-30deg);
}

.deco-paw--a {
    width: 64px;
    height: 64px;
    left: 3%;
    bottom: 22%;
    transform: rotate(-20deg);
    opacity: .6;
}

.deco-paw--b {
    width: 40px;
    height: 40px;
    left: 44%;
    top: 8%;
    transform: rotate(18deg);
    opacity: .5;
}

@keyframes morph {

    0%,
    100% {
        border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
    }

    50% {
        border-radius: 44% 56% 42% 58% / 56% 44% 58% 42%;
    }
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes slow-pan {
    from {
        transform: scale(1.08) translate(0, 0);
    }

    to {
        transform: scale(1.12) translate(-1.5%, -1%);
    }
}

/* ---------------------------------------------------------------------
   7. Cards — benefit cards overlapping the hero
   --------------------------------------------------------------------- */
.benefits {
    position: relative;
    z-index: 2;
    margin-top: clamp(-100px, -8vw, -70px);
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Cards 1 & 2 stack on the left, card 3 spans both rows on the right */
.benefits__grid>.benefit-card:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.benefit-card {
    position: relative;
    overflow: hidden;
    padding: 28px 26px 30px;
    border-radius: var(--r-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.benefit-card::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--lav-50);
    transition: transform .5s var(--ease);
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.benefit-card:hover::after {
    transform: scale(1.5);
}

.benefit-card>* {
    position: relative;
    z-index: 1;
}

.benefit-card__title {
    font-size: var(--fs-h3);
    font-weight: 800;
    margin-top: 20px;
}

.benefit-card p {
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 0.9375rem;
    line-height: 1.55;
}

/* ---------------------------------------------------------------------
   8. Sections — Why, CTA band, Coverage
   --------------------------------------------------------------------- */
/* Why choose us */
.why__grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr 0.9fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

.why__copy p {
    margin-top: 18px;
    color: var(--text-soft);
    font-size: var(--fs-md);
}

.why__copy .btn {
    margin-top: 28px;
}

.why__visual {
    position: relative;
    aspect-ratio: 1;
    max-width: 440px;
    width: 100%;
    justify-self: center;
}

.blob--why {
    inset: -2% -6% 4% -4%;
    background: var(--lav-100);
    border-radius: 50% 50% 44% 56% / 58% 46% 54% 42%;
    animation: morph 14s ease-in-out infinite;
}

.ring--why {
    inset: 4%;
    border: 2px dashed var(--lav-300);
    border-radius: 50%;
    animation: spin 60s linear infinite;
}

.why__photo {
    position: absolute;
    inset: 10%;
    overflow: hidden;
    z-index: 1;
    border-radius: 50% 50% 48% 52% / 54% 50% 50% 46%;
    border: 8px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.why__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    transition: transform .8s var(--ease);
}

.why__visual:hover .why__photo img {
    transform: scale(1.05);
}

.deco-paw--why1 {
    width: 46px;
    height: 46px;
    left: -4%;
    top: 6%;
    transform: rotate(-22deg);
}

.deco-paw--why2 {
    width: 30px;
    height: 30px;
    right: 0;
    bottom: 4%;
    transform: rotate(28deg);
    color: var(--secondary-purple);
    opacity: .5;
}

.doodle--why-heart {
    width: 70px;
    height: 46px;
    right: -6%;
    top: 2%;
}

.doodle--why-sparks {
    width: 34px;
    height: 34px;
    left: 6%;
    bottom: 6%;
    color: var(--cta-green);
    transform: rotate(200deg);
}

.why__list {
    display: grid;
    gap: 14px;
}

.why__list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px 12px 12px;
    border-radius: var(--r-md);
    background: var(--white);
    border: 1px solid var(--lav-100);
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    transition: border-color .25s, transform .3s var(--ease), box-shadow .3s var(--ease);
}

.why__list li:hover {
    border-color: var(--lav-300);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* CTA band */
.cta-band {
    position: relative;
    color: var(--white);
}

.cta-band__wave {
    display: block;
    width: 100%;
    height: clamp(28px, 4vw, 60px);
    fill: var(--primary-purple);
}

.cta-band__wave--top {
    margin-bottom: -1px;
}

.cta-band__wave--bottom {
    margin-top: -1px;
}

.cta-band__body {
    position: relative;
    overflow: hidden;
    background: #330066;
    padding-block: clamp(28px, 4vw, 44px);
}

.cta-band__shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cta-band__shape--1 {
    width: 640px;
    height: 640px;
    right: -220px;
    top: 50%;
    transform: translateY(-50%);
    /* background: radial-gradient(circle, rgba(106, 90, 205, .55) 0%, rgba(106, 90, 205, 0) 65%); */
}

.cta-band__shape--2 {
    width: 150px;
    height: 150px;
    left: 44%;
    top: 50%;
    transform: translateY(-50%);
    border: 2px dashed rgba(255, 255, 255, .14);
}

.deco-paw--band1 {
    width: 54px;
    height: 54px;
    left: 38%;
    top: 8%;
    color: rgba(255, 255, 255, .08);
    transform: rotate(-15deg);
}

.deco-paw--band2 {
    width: 34px;
    height: 34px;
    right: 4%;
    bottom: 20%;
    color: rgba(255, 255, 255, .1);
    transform: rotate(25deg);
}

.cta-band__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    align-items: center;
    gap: 24px 40px;
}

.cta-band__lead {
    display: flex;
    align-items: center;
    gap: 22px;
}

.cta-band__heart {
    display: grid;
    place-items: center;
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .06);
    color: var(--white);
}

.cta-band__heart .icon {
    width: 30px;
    height: 30px;
    animation: beat 2.4s ease-in-out infinite;
}

.cta-band__title {
    color: var(--white);
    font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.125rem);
    font-weight: 800;
}

.cta-band__text {
    color: rgba(255, 255, 255, .88);
    font-size: var(--fs-base);
    max-width: 30em;
}

@keyframes beat {

    0%,
    60%,
    100% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.14);
    }
}

/* Coverage */
.coverage {
    background: linear-gradient(180deg, var(--white) 0%, var(--lav-25) 100%);
}

.coverage__grid {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}

.coverage__visual {
    position: relative;
    aspect-ratio: 1 / 0.92;
    width: 100%;
    max-width: 540px;
}

.blob--cov {
    inset: 2% 0 -2% -8%;
    background: var(--lav-200);
    border-radius: 42% 58% 50% 50% / 50% 42% 58% 50%;
    animation: morph 18s ease-in-out infinite;
}

.blob--cov-green {
    width: 15%;
    aspect-ratio: 1;
    right: 2%;
    bottom: 10%;
    z-index: 2;
    background: var(--cta-green);
    opacity: .9;
    border-radius: 50% 50% 46% 54% / 60% 40% 60% 40%;
    box-shadow: 0 0 0 6px var(--white);
}

.coverage__photo {
    position: absolute;
    inset: 6% 6% 4% 0;
    z-index: 1;
    overflow: hidden;
    border-radius: 48% 52% 40% 60% / 52% 40% 60% 48%;
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--white);
}

.coverage__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 45% 40%;
}

.coverage__note {
    left: -2%;
    bottom: 0;
    transform: rotate(-10deg);
}

.check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
    margin-top: 28px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.check-list__wide {
    grid-column: 1 / -1;
}

.check {
    display: grid;
    place-items: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--cta-green);
    color: var(--button-text);
    margin-top: -2px;
}

.check .icon {
    width: 15px;
    height: 15px;
}

.notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 28px;
    padding: 16px 18px;
    border-radius: var(--r-md);
    background: var(--lav-50);
    border-left: 4px solid var(--secondary-purple);
    font-size: var(--fs-sm);
    color: var(--text-soft);
}

.notice .icon {
    color: var(--secondary-purple);
    margin-top: 1px;
}

.notice a,
.faq-item__inner a,
.included a {
    color: var(--primary-purple);
    font-weight: 700;
    text-underline-offset: 3px;
}

.notice a:hover,
.faq-item__inner a:hover {
    color: var(--cta-green-hover);
}

/* ---------------------------------------------------------------------
   9. Plans — comparison built from the product page review table
   --------------------------------------------------------------------- */
.plans {
    overflow: hidden;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(40px, 5vw, 56px);
}

.deco-paw--plans1 {
    width: 60px;
    height: 60px;
    left: 3%;
    top: 18%;
    transform: rotate(-24deg);
    opacity: .6;
}

.deco-paw--plans2 {
    width: 44px;
    height: 44px;
    right: 4%;
    bottom: 14%;
    transform: rotate(20deg);
    opacity: .6;
}

.plans__swipe {
    display: none;
}

.compare {
    --row-h: 58px;
    display: grid;
    grid-template-columns: minmax(210px, 1fr) repeat(4, minmax(0, 1fr));
    grid-template-rows: auto repeat(8, var(--row-h)) auto;
    column-gap: 20px;
    position: relative;
    z-index: 1;
}

.compare__labels,
.plan-card {
    grid-row: 1 / -1;
    display: grid;
    grid-template-rows: subgrid;
}

.compare__labels ul,
.plan-card__rows {
    grid-row: 2 / span 8;
    display: grid;
    grid-template-rows: subgrid;
}

.compare__labels-head {
    display: flex;
    align-items: flex-end;
    padding: 0 0 14px 4px;
}

.compare__labels-head span {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--fs-lg);
    color: var(--primary-purple);
}

.compare__labels li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 4px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.3;
    border-top: 1px solid var(--lav-100);
}

.compare__labels li .icon {
    width: 20px;
    height: 20px;
    color: var(--secondary-purple);
}

.plan-card {
    background: var(--white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--lav-100);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--lav-300);
}

.plan-card__head {
    position: relative;
    text-align: center;
    padding: 28px 18px 22px;
    background: linear-gradient(180deg, var(--lav-50), var(--white));
    border-bottom: 1px solid var(--lav-100);
}

.plan-card__icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--primary-purple);
    color: var(--white);
    margin-bottom: 12px;
}

.plan-card__icon .icon {
    width: 26px;
    height: 26px;
}

.plan-card__head h3 {
    font-size: 1.5rem;
    font-weight: 800;
}

.plan-card__head p {
    margin-top: 6px;
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: 1.45;
}

.plan-card__rows>div {
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--lav-100);
}

.plan-card__rows>div:first-child {
    border-top: 0;
}

.plan-card__rows>div:nth-child(even) {
    background: var(--lav-25);
}

.plan-card__rows dt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.plan-card__rows dd {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--primary-purple);
}

.plan-card__rows>div:first-child dd {
    font-size: 1.375rem;
}

.plan-card__foot {
    padding: 20px 18px 24px;
    text-align: center;
    border-top: 1px solid var(--lav-100);
}

.plan-card__foot p {
    font-size: var(--fs-sm);
    color: var(--text-soft);
    margin-bottom: 12px;
}

.included {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
    margin-top: 32px;
    padding: 22px 28px;
    border-radius: var(--r-lg);
    background: var(--lav-50);
    border: 1px dashed var(--lav-300);
    position: relative;
    z-index: 1;
}

.included__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.included__head h3 {
    font-size: var(--fs-md);
    font-weight: 800;
    white-space: nowrap;
}

.included__badge {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cta-green);
    color: var(--button-text);
}

.included__badge .icon {
    width: 16px;
    height: 16px;
}

.included__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.included__list li {
    padding: 8px 14px;
    border-radius: var(--r-pill);
    background: var(--white);
    font-size: 12px;
    color: var(--text-soft);
    box-shadow: var(--shadow-sm);
}

.included__list strong {
    color: var(--primary-purple);
}

.included .link-arrow {
    display: inline;
    font-size: 0.9375rem;
}

/* Arrow follows the last word when the link wraps */
.included .link-arrow .icon {
    display: inline-block;
    margin-left: 6px;
    vertical-align: -0.2em;
}

/* ---------------------------------------------------------------------
   10. Stories — polaroid collage
   --------------------------------------------------------------------- */
.stories {
    background: var(--lav-50);
    overflow: hidden;
}

.stories::before {
    content: "";
    position: absolute;
    right: -140px;
    top: -140px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: var(--lav-100);
}

.stories__grid {
    position: relative;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.stories__copy p {
    margin-top: 18px;
    color: var(--text-soft);
    font-size: var(--fs-md);
    max-width: 26em;
}

.stories__copy .btn {
    margin-top: 28px;
}

.stories__gallery {
    position: relative;
    min-width: 0;
    padding: 12px 0 30px;
}

/* Infinite slider: the track holds the list twice (second copy added by JS),
   so sliding by exactly -50% lands on an identical frame and loops seamlessly. */
.stories__viewport {
    --card-w: 220px;
    --card-gap: 24px;
    overflow: hidden;
    padding-block: 40px;
    /* soft fade at both edges so cards glide in and out */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.stories__track {
    display: flex;
    gap: var(--card-gap);
    padding-right: var(--card-gap);
    width: max-content;
    animation: stories-slide var(--slide-duration, 42s) linear infinite;
}

.stories__track > li {
    flex: none;
    width: var(--card-w);
}

/* pause while hovered, or while a card has keyboard focus */
.stories__gallery:hover .stories__track,
.stories__gallery:focus-within .stories__track {
    animation-play-state: paused;
}

@keyframes stories-slide {
    to {
        transform: translateX(-50%);
    }
}

.polaroid {
    background: var(--white);
    padding: 12px 12px 16px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.polaroid img {
    width: 100%;
    aspect-ratio: 13 / 14;
    object-fit: cover;
    border-radius: 6px;
}

.polaroid figcaption {
    padding-top: 12px;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: 1rem;
    color: var(--secondary-purple);
    line-height: 1.3;
}

.polaroid figcaption strong {
    display: block;
    font-style: normal;
    font-weight: 800;
    color: var(--primary-purple);
    font-size: 1.0625rem;
}

.polaroid--1 {
    transform: rotate(-4deg) translateY(12px);
}

.polaroid--2 {
    transform: rotate(3deg) translateY(-18px);
}

.polaroid--3 {
    transform: rotate(-2deg) translateY(20px);
}

.polaroid:hover {
    transform: rotate(0) translateY(-6px) scale(1.03);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.stories__note {
    right: -1%;
    bottom: -50px;
}

.doodle--stories-sparks {
    width: 44px;
    height: 44px;
    left: 30%;
    top: -4px;
    color: var(--cta-green);
}

/* ---------------------------------------------------------------------
   11. App
   --------------------------------------------------------------------- */
.app__grid {
    display: grid;
    grid-template-columns: 0.95fr 1.25fr 0.8fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

.app__copy p {
    margin-top: 16px;
    color: var(--text-soft);
    font-size: var(--fs-md);
}

.app__copy .link-arrow {
    margin-top: 24px;
}

/* Joii app image (transparent PNG) */
.app__visual {
    position: relative;
    margin: 0;
    width: 100%;
    max-width: 560px;
    justify-self: center;
}

.app__visual img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
}

.deco-paw--app {
    width: 52px;
    height: 52px;
    left: -2%;
    bottom: 4%;
    color: var(--secondary-purple);
    opacity: .35;
    transform: rotate(-18deg);
}
.app__features {
    display: grid;
    gap: 14px;
}

.app__features li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* ---------------------------------------------------------------------
   12. Claims
   --------------------------------------------------------------------- */
.claim {
    padding-top: 0;
}

.claim__panel {
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 5vw, 64px);
    border-radius: var(--r-xl);
    background:
        radial-gradient(70% 90% at 100% 0%, var(--lav-200) 0%, transparent 60%),
        var(--lav-50);
}

.deco-paw--claim1 {
    width: 70px;
    height: 70px;
    left: 62%;
    top: 30%;
    transform: rotate(-16deg);
    color: var(--lav-200);
}

.deco-paw--claim2 {
    width: 40px;
    height: 40px;
    left: 3%;
    bottom: 20px;
    transform: rotate(22deg);
    color: var(--lav-200);
}

.claim__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.claim__intro .btn {
    margin-top: 24px;
}

.claim__photo {
    flex: none;
    width: clamp(200px, 24vw, 280px);
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50% 50% 46% 54% / 55% 45% 55% 45%;
    border: 8px solid var(--white);
    box-shadow: var(--shadow-lg);
    margin-right: clamp(0px, 3vw, 40px);
}

.claim__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 44px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 26px 22px 24px;
    border-radius: var(--r-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 46px;
    right: -24px;
    width: 20px;
    height: 20px;
    background: var(--secondary-purple);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.step__num {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-purple);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 0 0 6px var(--lav-100);
}

.step__icon {
    position: absolute;
    top: 26px;
    right: 22px;
    color: var(--cta-green);
}

.step__icon .icon {
    width: 26px;
    height: 26px;
}

.step h3 {
    font-size: 1.1875rem;
    font-weight: 800;
    margin-top: 18px;
}

.step p {
    margin-top: 6px;
    color: var(--text-soft);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* ---------------------------------------------------------------------
   13. FAQ
   --------------------------------------------------------------------- */
.faq {
    padding-top: 0;
}

.faq__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.faq__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    align-items: start;
}

.faq__col {
    display: grid;
    gap: 16px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--r-md);
    border: 1px solid var(--lav-200);
    transition: border-color .25s, box-shadow .25s;
}

.faq-item:hover {
    border-color: var(--lav-300);
}

.faq-item.is-open {
    border-color: var(--secondary-purple);
    box-shadow: var(--shadow-md);
}

.faq-item h3 {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    letter-spacing: 0;
}

.faq-item__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 64px;
    padding: 16px 20px 16px 24px;
    text-align: left;
    font-weight: 700;
    color: var(--primary-purple);
    line-height: 1.4;
    border-radius: var(--r-md);
}

.faq-item__sign {
    position: relative;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lav-100);
    transition: background-color .25s, transform .35s var(--ease);
}

.faq-item__sign::before,
.faq-item__sign::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--primary-purple);
    transform: translate(-50%, -50%);
    transition: transform .35s var(--ease), background-color .25s;
}

.faq-item__sign::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item__btn[aria-expanded="true"] .faq-item__sign {
    background: var(--cta-green);
    transform: rotate(180deg);
}

.faq-item__btn[aria-expanded="true"] .faq-item__sign::before,
.faq-item__btn[aria-expanded="true"] .faq-item__sign::after {
    background: var(--button-text);
}

.faq-item__btn[aria-expanded="true"] .faq-item__sign::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .4s var(--ease);
}

.faq-item__panel.is-open {
    grid-template-rows: 1fr;
}

.faq-item__inner {
    overflow: hidden;
}

.faq-item__body {
    padding: 0 24px 22px;
    color: var(--text-soft);
}

.faq-item__body > * + * {
    margin-top: 12px;
}

.faq-item__body ul {
    display: grid;
    gap: 8px;
}

.faq-item__body li {
    position: relative;
    padding-left: 20px;
}

.faq-item__body li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--secondary-purple);
}

.faq-item__body strong {
    color: var(--text);
}

.faq-item__q {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.faq-item__q .icon {
    color: var(--secondary-purple);
}

/* ---------------------------------------------------------------------
   14. Forms (shared form card, used by the contact form)
   --------------------------------------------------------------------- */
.quote-form {
    margin-top: 28px;
    padding: clamp(22px, 3vw, 32px);
    border-radius: var(--r-lg);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--lav-100);
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
    align-content: start;
}

.field__label {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text);
    padding: 0;
}

.req {
    color: var(--error);
}

.input {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 2px solid var(--lav-200);
    border-radius: var(--r-sm);
    background: var(--white);
    font-size: var(--fs-base);
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}

.input::placeholder {
    color: var(--muted);
}

.input:hover {
    border-color: var(--lav-300);
}

.input:focus {
    outline: none;
    border-color: var(--focus);
    box-shadow: 0 0 0 4px rgba(9, 123, 247, .18);
}

.input[aria-invalid="true"] {
    border-color: var(--error);
}

.field__error {
    color: var(--error);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.form-note {
    font-size: var(--fs-sm);
    color: var(--text-soft);
    margin-top: -6px;
}

.form-note span {
    color: var(--error);
}

.form-success {
    padding: 14px 16px;
    border-radius: var(--r-sm);
    background: var(--green-50);
    border-left: 4px solid var(--success);
    color: var(--success);
    font-weight: 600;
    font-size: 0.9375rem;
}

/* ---------------------------------------------------------------------
   15. Footer
   --------------------------------------------------------------------- */
.site-footer {
    position: relative;
    color: rgba(255, 255, 255, .88);
    background: var(--lav-50);
}

.site-footer__wave {
    display: block;
    width: 100%;
    height: clamp(34px, 5vw, 70px);
    fill: var(--primary-purple);
    margin-bottom: -1px;
}

.site-footer__body {
    position: relative;
    overflow: hidden;
    background: var(--primary-purple);
    padding: clamp(32px, 4vw, 48px) 0 28px;
}

.deco-paw--foot {
    width: 180px;
    height: 180px;
    right: -30px;
    top: -20px;
    color: rgba(255, 255, 255, .04);
    transform: rotate(-18deg);
}

.footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.75fr repeat(3, 1fr) auto;
    gap: 32px;
}

.footer-brand__logo {
    display: inline-block;
    border-radius: 8px;
}

.footer-brand__logo img {
    height: 72px;
    width: auto;
}

.footer-brand p {
    margin-top: 18px;
    font-size: 0.9375rem;
}

.footer-col h2 {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0;
    margin-bottom: 14px;
}

.footer-col ul:not(.socials) {
    display: grid;
    gap: 4px;
}

.footer-col a {
    display: inline-block;
    padding: 4px 0;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color .2s;
}

.footer-col a:hover {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.socials {
    display: flex;
    gap: 10px;
}

.socials a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: var(--white);
    transition: background-color .25s, transform .25s var(--ease);
}

.socials a:hover {
    background: var(--cta-green);
    transform: translateY(-3px);
    text-decoration: none;
}

.footer-legal {
    margin-top: 40px;
    padding: 18px 20px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: var(--fs-sm);
}

.footer-bottom__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom__tag .icon {
    width: 16px;
    height: 16px;
    color: var(--lav-300);
}

/* ---------------------------------------------------------------------
   16. Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1240px) {
    .primary-nav a {
        padding-inline: 10px;
    }

    .primary-nav a::after {
        left: 10px;
        right: 10px;
    }
}

@media (max-width: 1180px) {

    .primary-nav {
        display: none;
    }

    .menu-toggle {
        display: grid;
    }

    .header-actions {
        margin-left: auto;
    }

    .why__grid {
        grid-template-columns: 1fr 1fr;
    }

    .why__copy {
        grid-column: 1 / -1;
        max-width: 640px;
    }

    .app__grid {
        grid-template-columns: 1fr 1fr;
    }

    .app__copy {
        grid-column: 1 / -1;
        max-width: 640px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr repeat(3, 1fr);
    }

    .footer-grid>.footer-col:last-child {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .footer-grid>.footer-col:last-child h2 {
        margin: 0;
    }
}

@media (max-width: 1024px) {
    :root {
        --header-h: 72px;
    }

    .brand img {
        height: 46px;
    }

    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-band__inner {
        grid-template-columns: 1fr auto;
    }

    .cta-band__text {
        grid-column: 1;
        grid-row: 2;
        padding-left: 94px;
    }

    .cta-band__btn {
        grid-row: 1 / span 2;
        grid-column: 2;
    }

    .compare {
        grid-template-columns: minmax(170px, 1fr) repeat(4, minmax(0, 1fr));
        column-gap: 12px;
    }

    .compare__labels li {
        font-size: var(--fs-sm);
    }

    .plan-card__rows dd {
        font-size: 1rem;
    }

    .plan-card__rows>div:first-child dd {
        font-size: 1.1875rem;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .step:nth-child(2)::after {
        display: none;
    }

    .stories__grid {
        grid-template-columns: 1fr;
    }

    .stories__copy {
        max-width: 640px;
    }
}

@media (max-width: 900px) {
    .hero {
        padding-bottom: 140px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        justify-self: center;
        max-width: 560px;
        margin-top: 12px;
    }

    .hero__note {
        top: -8%;
        left: auto;
        right: 8%;
    }

    .coverage__grid {
        grid-template-columns: 1fr;
    }

    .coverage__visual {
        justify-self: center;
    }

    .faq__cols {
        grid-template-columns: 1fr;
    }

    .included {
        flex-direction: column;
        align-items: flex-start;
    }

    .included__head h3 {
        white-space: normal;
    }

    .included__badge {
        flex-shrink: 0;
    }
}

/* Plans switch to swipeable cards below 1180px: four columns don't fit at tablet widths */
@media (max-width: 1180px) {
    /* Plans: horizontal scroll cards with inline labels */
    .plans__swipe {
        display: flex;
        align-items: center;
        gap: 8px;
        justify-content: center;
        margin: -24px 0 16px;
        font-size: var(--fs-sm);
        font-weight: 600;
        color: var(--secondary-purple);
    }

    .plans__swipe .icon {
        width: 16px;
        height: 16px;
        animation: nudge 1.8s ease-in-out infinite;
    }

    .compare {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin-inline: calc(var(--gutter) * -1);
        padding: 8px var(--gutter) 28px;
        scroll-padding-inline: var(--gutter);
        scrollbar-width: thin;
        scrollbar-color: var(--lav-300) transparent;
    }

    .compare__labels {
        display: none;
    }

    .plan-card {
        flex: 0 0 min(340px, 84%);
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
    }

    .plan-card:hover {
        transform: none;
    }

    .plan-card__rows {
        display: block;
        flex: 1;
    }

    .plan-card__rows>div {
        justify-content: space-between;
        gap: 12px;
        min-height: 52px;
        padding: 10px 18px;
    }

    .plan-card__rows dt {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        white-space: normal;
        font-size: var(--fs-sm);
        font-weight: 600;
        color: var(--text);
        line-height: 1.35;
    }

    .plan-card__rows dd {
        text-align: right;
        flex: none;
    }

    .plan-card__rows>div:first-child dd {
        font-size: 1.125rem;
    }
}

@keyframes nudge {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

@media (max-width: 768px) {
    .topbar__msg {
        display: none;
    }

    .topbar__inner {
        justify-content: center;
    }

    .why__grid,
    .app__grid {
        grid-template-columns: 1fr;
    }

    .why__visual {
        max-width: 380px;
    }

    .cta-band__inner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .cta-band__text {
        padding-left: 0;
        grid-row: auto;
    }

    .cta-band__btn {
        grid-row: auto;
        grid-column: auto;
        justify-self: start;
    }

    .claim__top {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .claim__photo {
        width: 200px;
        margin: 0;
    }

    .deco-paw--claim1 {
        left: auto;
        right: 8%;
        top: 40px;
    }

    /* Claim: vertical timeline */
    .steps {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-left: 8px;
    }

    .steps::before {
        content: "";
        position: absolute;
        left: 30px;
        top: 30px;
        bottom: 30px;
        width: 2px;
        background: repeating-linear-gradient(180deg, var(--lav-300) 0 6px, transparent 6px 12px);
    }

    .step {
        display: grid;
        grid-template-columns: 44px 1fr;
        column-gap: 18px;
        padding: 18px 56px 18px 0;
        background: transparent;
        box-shadow: none;
    }

    .step:hover {
        transform: none;
        box-shadow: none;
    }

    .step::after {
        display: none;
    }

    .step__num {
        grid-row: 1 / span 2;
        position: relative;
        z-index: 1;
    }

    .step h3 {
        margin-top: 0;
        grid-column: 2;
    }

    .step p {
        grid-column: 2;
    }

    .step>* {
        position: relative;
    }

    .step__icon {
        position: absolute;
        top: 18px;
        right: 12px;
    }

    .step {
        position: relative;
    }

    .step::before {
        content: "";
        position: absolute;
        inset: 0 0 0 62px;
        border-radius: var(--r-md);
        background: var(--white);
        box-shadow: var(--shadow-sm);
        z-index: 0;
    }

    .step h3,
    .step p {
        padding-left: 18px;
    }

    .faq__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-grid>.footer-col:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .benefits__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .benefits__grid>.benefit-card:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
    }

    .benefit-card {
        display: grid;
        grid-template-columns: 60px 1fr;
        column-gap: 18px;
        padding: 22px;
    }

    /* Icon + heading side by side, paragraphs full width below */
    .benefit-card .icon-tile {
        grid-column: 1;
        grid-row: 1;
    }

    .benefit-card__title {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        margin-top: 0;
        font-size: var(--fs-md);
    }

    .benefit-card p {
        grid-column: 1 / -1;
        margin-top: 12px;
    }

    .benefit-card p + p {
        margin-top: 8px;
    }

    .hero__card {
        right: 0;
        bottom: -8%;
        max-width: 240px;
        padding: 12px 14px 12px 12px;
    }

    .hero__chip {
        top: 2%;
        right: 2%;
    }

    .hero__inset {
        width: 26%;
        left: 0;
        bottom: 14%;
    }

    .hero__note,
    .doodle--hero-arrow {
        display: none;
    }

    /* slider runs edge to edge on small screens */
    .stories__viewport {
        --card-w: 190px;
        --card-gap: 16px;
        margin-inline: calc(var(--gutter) * -1);
    }

    .stories__note,
    .coverage__note {
        display: none;
    }

    .check-list {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-cta {
        padding-inline: 16px;
    }

    .header-cta .icon {
        display: none;
    }

    .brand img {
        height: 42px;
    }

    .site-header__inner {
        gap: 12px;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__actions {
        gap: 20px;
    }

    .btn--lg {
        font-size: var(--fs-base);
    }

    .cta-band__lead {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .cta-band__heart {
        width: 56px;
        height: 56px;
    }

    .cta-band__btn {
        width: 100%;
    }

    .claim__panel {
        padding: 32px 18px;
        border-radius: var(--r-lg);
    }

    .footer-grid {
        gap: 28px 20px;
    }

    .footer-grid>.footer-col:last-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .mobile-menu__actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 340px) {
    .header-cta {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------------
   17. Accessibility & motion
   --------------------------------------------------------------------- */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 12px 20px;
    border-radius: var(--r-pill);
    background: var(--primary-purple);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    transition: top .2s;
}

.skip-link:focus {
    top: 12px;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.btn:focus-visible,
.faq-item__btn:focus-visible {
    outline-offset: 4px;
}

.cta-band :focus-visible,
.site-footer :focus-visible,
.topbar :focus-visible {
    outline-color: var(--white);
}

/* Scroll reveal (enabled by JS only, so content is never hidden without it) */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.js [data-reveal="right"] {
    transform: translateX(32px);
}

.js [data-reveal="zoom"] {
    transform: scale(.94);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.js .polaroid[data-reveal].is-visible.polaroid--1 {
    transform: rotate(-4deg) translateY(12px);
}

.js .polaroid[data-reveal].is-visible.polaroid--2 {
    transform: rotate(3deg) translateY(-18px);
}

.js .polaroid[data-reveal].is-visible.polaroid--3 {
    transform: rotate(-2deg) translateY(20px);
}

.js .polaroid[data-reveal].is-visible:hover {
    transform: rotate(0) translateY(-6px) scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .hero__photo img {
        transform: scale(1.08);
    }

    /* No auto-sliding: let people scroll the stories by hand instead */
    .stories__track {
        animation: none !important;
    }

    .stories__viewport {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* ---------------------------------------------------------------------
   18. Content carried over from the existing product page
   (Joii Pet Care, claim tips, full FAQs, contact, policy documents, chat)
   --------------------------------------------------------------------- */
.benefit-card p a {
    color: var(--primary-purple);
    font-weight: 700;
    text-underline-offset: 3px;
}

.benefit-card p a:hover {
    color: var(--cta-green-hover);
}

/* Why: rows with a title and description need a wider column */
@media (min-width: 1181px) {
    .why__grid {
        grid-template-columns: 0.95fr 0.85fr 1.2fr;
    }
}

.why__list--detail {
    gap: 12px;
}

/* Longer band copy: drop the dashed ring that sat behind it */
.cta-band__shape--2 {
    display: none;
}

.why__list--detail li {
    align-items: flex-start;
    font-weight: 400;
    color: var(--text-soft);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.why__list--detail strong {
    display: block;
    margin-bottom: 2px;
    font-weight: 700;
    font-size: var(--fs-base);
    color: var(--primary-purple);
}

/* Plans: terms line */
.plans__terms {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--text-soft);
}

.plans__terms .icon {
    width: 18px;
    height: 18px;
    color: var(--secondary-purple);
}

.plans__terms a,
.contact a:not(.contact__card),
.cover-notes a {
    color: var(--primary-purple);
    font-weight: 700;
    text-underline-offset: 3px;
}

/* PawGuard: single-condition product, lightest card (lavender tint) */
.plan-card--pawguard {
    background: var(--lav-50);
    border-color: var(--lav-200);
}

.plan-card--pawguard .plan-card__head {
    background: linear-gradient(180deg, var(--lav-100), var(--lav-50));
    border-bottom-color: var(--lav-200);
}

.plan-card--pawguard .plan-card__icon {
    background: var(--secondary-purple);
}

.plan-card--pawguard .plan-card__rows > div,
.plan-card--pawguard .plan-card__foot {
    border-color: var(--lav-200);
}

.plan-card--pawguard .plan-card__rows > div:nth-child(even) {
    background: rgba(255, 255, 255, .55);
}

/* value qualifier ("for a single claim") and "Not included" cells */
.plan-card__rows dd small,
.cover-table td small {
    display: block;
    margin-top: 2px;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-soft);
    white-space: normal;
}

.plan-card__rows dd {
    line-height: 1.2;
}

/* desktop columns centre values; the mobile cards keep them right-aligned */
@media (min-width: 1181px) {
    .plan-card__rows dd {
        text-align: center;
    }
}

.plan-card__rows dd.is-none,
.cover-table td.is-none {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-soft);
}

/* Plans: stepped card backgrounds — Essentials white, Premium secondary purple,
   Complete primary purple. CTA buttons stay white/green on every card. */
.plan-card--premium {
    --plan-bg: var(--secondary-purple);
    --plan-head: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0));
    --plan-stripe: rgba(255, 255, 255, .07);
}

.plan-card--complete {
    --plan-bg: linear-gradient(180deg, var(--purple-800) 0%, var(--primary-purple) 45%);
    --plan-head: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0));
    --plan-stripe: rgba(255, 255, 255, .05);
}

.plan-card--premium,
.plan-card--complete {
    background: var(--plan-bg);
    border-color: transparent;
    color: var(--white);
}

.plan-card--premium:hover,
.plan-card--complete:hover {
    border-color: transparent;
}

.plan-card--premium .plan-card__head,
.plan-card--complete .plan-card__head {
    background: var(--plan-head);
    border-bottom-color: rgba(255, 255, 255, .16);
}

.plan-card--premium .plan-card__icon,
.plan-card--complete .plan-card__icon {
    background: var(--white);
    color: var(--primary-purple);
}

.plan-card--premium .plan-card__head h3,
.plan-card--complete .plan-card__head h3,
.plan-card--premium .plan-card__rows dd,
.plan-card--complete .plan-card__rows dd,
.plan-card--premium .plan-card__rows dt,
.plan-card--complete .plan-card__rows dt {
    color: var(--white);
}

.plan-card--premium .plan-card__head p,
.plan-card--complete .plan-card__head p,
.plan-card--premium .plan-card__foot p,
.plan-card--complete .plan-card__foot p {
    color: var(--white); /* full white keeps 14px text above 4.5:1 on #6A5ACD */
}

.plan-card--premium .plan-card__rows > div,
.plan-card--complete .plan-card__rows > div,
.plan-card--premium .plan-card__foot,
.plan-card--complete .plan-card__foot {
    border-color: rgba(255, 255, 255, .16);
}

.plan-card--premium .plan-card__rows > div:nth-child(even),
.plan-card--complete .plan-card__rows > div:nth-child(even) {
    background: var(--plan-stripe);
}

.plan-card--premium .btn--outline,
.plan-card--complete .btn--outline {
    border-color: var(--white);
}

.plan-card--premium .btn--outline:hover,
.plan-card--complete .btn--outline:hover {
    border-color: var(--cta-green);
}

.plan-card--premium :focus-visible,
.plan-card--complete :focus-visible {
    outline-color: var(--white);
}

/* Coverage: single-column checklist + benefit chips */
.check-list--single {
    grid-template-columns: 1fr;
}

.coverage__sub {
    margin-top: 28px;
    font-weight: 700;
    color: var(--primary-purple);
}

.coverage__chips {
    margin-top: 14px;
}

.coverage__chips li {
    color: var(--primary-purple);
    font-weight: 600;
}

/* Joii Pet Care */
.joii {
    background: var(--lav-50);
    overflow: hidden;
}

.joii::before {
    content: "";
    position: absolute;
    left: -160px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: var(--lav-100);
}

.joii__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}

.joii__copy .check-list {
    margin-top: 24px;
}

.joii__copy .notice {
    background: var(--white);
}

.joii__copy .btn {
    margin-top: 24px;
}

.joii__visual {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1.08;
    justify-self: center;
}

.blob--joii {
    inset: -4% -8% 0 6%;
    background: var(--lav-200);
    border-radius: 55% 45% 48% 52% / 46% 54% 46% 54%;
    animation: morph 16s ease-in-out infinite;
}

.joii__photo {
    position: absolute;
    inset: 4% 4% 8% 0;
    z-index: 1;
    overflow: hidden;
    border-radius: 160px 160px var(--r-xl) var(--r-xl);
    border: 8px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.joii__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% 50%;
}

/* Joii app mockup: transparent PNG with its own shapes, so no frame, crop or blob */
.joii__visual--app {
    max-width: 560px;
    aspect-ratio: auto;
}

.joii__visual--app .joii__photo {
    position: relative;
    inset: auto;
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.joii__visual--app .joii__photo img {
    height: auto;
    object-fit: contain;
}

.joii__card {
    left: -8%;
    bottom: 2%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px 14px 14px;
    border-radius: var(--r-md);
    animation: floaty 7s ease-in-out infinite;
}

.joii__card p {
    display: grid;
    line-height: 1.35;
}

.joii__card strong {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--primary-purple);
}

.joii__card span {
    font-size: var(--fs-sm);
    color: var(--text-soft);
}

.deco-paw--joii {
    width: 46px;
    height: 46px;
    right: -2%;
    top: 4%;
    color: var(--secondary-purple);
    opacity: .4;
    transform: rotate(20deg);
    z-index: 2;
}

/* Claim: before you make a claim */
.claim__tips {
    position: relative;
    z-index: 1;
    margin-top: 44px;
    padding-top: 36px;
    border-top: 1px dashed var(--lav-300);
}

.claim__tips-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.claim__tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    align-items: start;
}

.faq-item h4 {
    font-family: var(--font-body);
    font-size: var(--fs-base);
}

/* FAQ: full list toggle, lifetime table, note */
.faq__more {
    display: grid;
    gap: 16px;
}

.faq__toggle[aria-expanded="true"] .icon {
    transform: rotate(-90deg);
}

.faq__toggle .icon {
    transform: rotate(90deg);
}

.faq__toggle:hover .icon {
    transform: rotate(90deg) translateX(3px);
}

.faq__toggle[aria-expanded="true"]:hover .icon {
    transform: rotate(-90deg) translateX(3px);
}

/* FAQ product tabs (Lifetime Cover / PawGuard) */
.faq-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.faq-tabs__list {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    border-radius: var(--r-pill);
    background: var(--lav-100);
    border: 1px solid var(--lav-200);
}

.faq-tabs__tab {
    min-height: 44px;
    padding: 10px 26px;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: var(--fs-base);
    color: var(--primary-purple);
    transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}

.faq-tabs__tab:hover {
    background: rgba(255, 255, 255, .6);
}

.faq-tabs__tab[aria-selected="true"] {
    background: var(--primary-purple);
    color: var(--white);
    box-shadow: 0 8px 18px -8px rgba(51, 0, 102, .6);
}

.faq-panel:focus-visible {
    outline-offset: 6px;
    border-radius: var(--r-md);
}

.faq-panel__note {
    margin-bottom: 24px;
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--text-soft);
}

.faq-panel__note strong {
    color: var(--primary-purple);
}

/* numbered steps inside answers (e.g. PawGuard claims) */
.faq-item__body ol {
    display: grid;
    gap: 8px;
    counter-reset: faq-step;
}

.faq-item__body ol > li {
    counter-increment: faq-step;
    padding-left: 30px;
}

.faq-item__body ol > li::before {
    content: counter(faq-step);
    top: .15em;
    left: 0;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    font-size: var(--fs-sm);
    font-weight: 700;
    line-height: 1;
    color: var(--white);
}

@media (max-width: 480px) {
    .faq-tabs__list {
        display: flex;
        width: 100%;
    }

    .faq-tabs__tab {
        flex: 1;
        padding-inline: 12px;
    }
}

.faq__more-action {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.faq__note {
    margin-top: 28px;
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--text-soft);
}

.faq-table-wrap {
    overflow-x: auto;
    border-radius: var(--r-sm);
    border: 1px solid var(--lav-200);
}

.faq-table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}

.faq-table th,
.faq-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid var(--lav-100);
}

.faq-table thead th {
    background: var(--primary-purple);
    color: var(--white);
    font-weight: 700;
}

.faq-table tbody th {
    text-align: left;
    color: var(--text);
    font-weight: 700;
}

.faq-table tbody tr:last-child th,
.faq-table tbody tr:last-child td {
    border-bottom: 0;
    background: var(--green-50);
}

.faq-table__mark {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.faq-table__mark .icon {
    width: 14px;
    height: 14px;
}

.faq-table__mark--yes {
    background: var(--success);
    color: var(--white);
}

.faq-table__mark--no {
    background: var(--error);
    color: var(--white);
}

.faq-table__mark--warn {
    background: #FFF3CD;
    color: #8A5A00;
}

/* Contact */
.contact {
    padding-top: 0;
    /* last section: fade into the lavender behind the footer wave */
    background: linear-gradient(180deg, var(--white) 0%, var(--lav-50) 100%);
}

.contact__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.contact__card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: var(--r-md);
    background: var(--white);
    border: 1px solid var(--lav-200);
    text-decoration: none;
    transition: border-color .25s, transform .3s var(--ease), box-shadow .3s var(--ease);
}

.contact__copy .section-sub {
    margin-bottom: 12px;
}

.contact__card:hover {
    border-color: var(--lav-300);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact__card > span:last-child {
    display: grid;
    min-width: 0;
    line-height: 1.4;
    color: var(--text-soft);
    font-size: 0.9375rem;
}

.contact__card strong {
    color: var(--primary-purple);
    font-size: var(--fs-base);
}

.contact__email {
    overflow-wrap: anywhere;
    color: var(--primary-purple);
    font-weight: 600;
}

.contact-form {
    margin-top: 0;
}

.input--area {
    min-height: 150px;
    resize: vertical;
    line-height: 1.55;
}

.deco-paw--contact1 {
    width: 56px;
    height: 56px;
    right: 4%;
    top: 0;
    transform: rotate(18deg);
    opacity: .6;
}

.deco-paw--contact2 {
    width: 36px;
    height: 36px;
    left: 3%;
    bottom: 14%;
    transform: rotate(-24deg);
    opacity: .6;
}

/* Footer additions */
/* Modals (native <dialog>) */
.modal {
    width: min(920px, calc(100% - 32px));
    max-height: min(88vh, 900px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: var(--r-lg);
    background: var(--white);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal[open] {
    display: flex;
    flex-direction: column;
    animation: drop-in .35s var(--ease);
}

.modal::backdrop {
    background: rgba(28, 0, 56, .55);
    backdrop-filter: blur(3px);
}

.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: var(--primary-purple);
    color: var(--white);
}

.modal__head h2 {
    color: var(--white);
    font-size: 1.375rem;
    font-weight: 800;
}

.modal__close {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: var(--white);
    transition: background-color .2s;
}

.modal__close:hover {
    background: rgba(255, 255, 255, .24);
}

.modal__close:focus-visible {
    outline-color: var(--white);
}

.modal__body {
    overflow-y: auto;
    padding: 24px;
}


.cover-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--lav-200);
    border-radius: var(--r-md);
}

.cover-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.cover-table th,
.cover-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--lav-100);
    text-align: center;
}

.cover-table thead th {
    position: sticky;
    top: 0;
    background: var(--lav-100);
    color: var(--primary-purple);
    font-family: var(--font-display);
    font-weight: 800;
}

.cover-table thead th:first-child,
.cover-table tbody th {
    text-align: left;
}

.cover-table tbody th {
    font-weight: 700;
    color: var(--text);
}

.cover-table tbody th span {
    display: block;
    font-weight: 400;
    font-size: var(--fs-sm);
    color: var(--text-soft);
}

.cover-table td {
    font-weight: 700;
    color: var(--primary-purple);
    white-space: nowrap;
}

.cover-table tbody tr:nth-child(even) {
    background: var(--lav-25);
}

.cover-table__sub th {
    padding-left: 34px !important;
    position: relative;
    font-weight: 600 !important;
}

.cover-table__sub th::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 8px;
    height: 2px;
    background: var(--lav-300);
}

.cover-table__excess th,
.cover-table__excess td {
    background: var(--green-50);
    border-bottom: 0;
}

.cover-notes {
    list-style: decimal;
    padding-left: 22px;
    margin-top: 16px;
    display: grid;
    gap: 6px;
    font-size: var(--fs-sm);
    color: var(--text-soft);
}

.modal .notice {
    margin-top: 20px;
}

/* Cover table: product-type group headings above the plan names */
.cover-table thead .cover-table__groups th,
.cover-table thead .cover-table__groups td {
    position: static;
    padding: 10px 12px;
    background: var(--primary-purple);
    color: var(--white);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
}

.cover-table thead .cover-table__groups th + th {
    border-left: 2px solid var(--white);
}

/* Policy documents: list + PDF preview */
.modal--docs {
    width: min(1140px, calc(100% - 32px));
    max-height: 92vh;
}

.docs {
    display: flex;
    height: min(78vh, 760px);
    min-height: 0;
}

.docs__list {
    flex: none;
    width: 300px;
    overflow-y: auto;
    border-right: 1px solid var(--lav-200);
    background: var(--lav-25);
}

.docs__hint {
    display: none;
}

.docs__date {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 18px;
    background: var(--lav-100);
    border-bottom: 1px solid var(--lav-200);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--secondary-purple);
}

.docs__item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    padding: 10px 18px;
    border-left: 4px solid transparent;
    border-bottom: 1px solid var(--lav-100);
    text-align: left;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--primary-purple);
    transition: background-color .2s, border-color .2s;
}

.docs__item .icon {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--secondary-purple);
}

.docs__item:hover {
    background: var(--lav-50);
}

/* selected state uses the action green (brand rule: green = selection) */
.docs__item.is-active {
    background: var(--green-50);
    border-left-color: var(--cta-green);
    color: var(--cta-green-hover);
}

.docs__item.is-active .icon {
    color: var(--cta-green);
}

.docs__item:focus-visible {
    outline-offset: -3px;
}

.docs__preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.docs__back {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--lav-100);
    font-weight: 700;
    color: var(--primary-purple);
}

.docs__back .icon {
    width: 18px;
    height: 18px;
    transform: rotate(180deg);
}

.docs__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--lav-200);
}

.docs__title {
    font-size: var(--fs-md);
    font-weight: 800;
    min-width: 0;
    overflow-wrap: anywhere;
}

.docs__download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    min-height: 40px;
    padding: 6px 14px;
    border: 1.5px solid var(--cta-green);
    border-radius: var(--r-pill);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--cta-green-hover);
    text-decoration: none;
    transition: background-color .2s, color .2s;
}

.docs__download .icon {
    width: 16px;
    height: 16px;
}

.docs__download:hover {
    background: var(--cta-green);
    color: var(--button-text);
}

.docs__viewer {
    flex: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px;
    background: var(--lav-50);
    text-align: center;
}

.docs__viewer:focus-visible {
    outline-offset: -3px;
}

.docs__viewer canvas {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 8px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm), 0 0 0 1px var(--lav-200);
}

.docs__page {
    margin: 0 auto 10px;
    background: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow-sm), 0 0 0 1px var(--lav-200);
}

.docs__page canvas {
    width: 100%;
    height: 100%;
    margin: 0;
    box-shadow: none;
}

.docs__status {
    padding: 48px 16px;
    color: var(--text-soft);
    font-size: 0.9375rem;
}

.docs__status a {
    color: var(--primary-purple);
    font-weight: 700;
    text-underline-offset: 3px;
}

.docs__pager {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 10px;
    border-top: 1px solid var(--lav-200);
}

.docs__page-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-purple);
    color: var(--white);
    transition: opacity .2s;
}

.docs__page-btn[data-page="prev"] .icon {
    transform: rotate(180deg);
}

.docs__page-btn:disabled {
    opacity: .35;
    cursor: default;
}

.docs__page-info {
    min-width: 64px;
    text-align: center;
    font-weight: 700;
    color: var(--primary-purple);
}

/* phones: list first, preview replaces it once a document is tapped */
.docs.is-mobile {
    flex-direction: column;
    height: min(80vh, 760px);
}

.docs.is-mobile .docs__hint {
    display: block;
    padding: 12px 18px;
    border-bottom: 1px solid var(--lav-200);
    font-size: var(--fs-sm);
    color: var(--text-soft);
    background: var(--lav-50);
}

.docs.is-mobile .docs__list {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    border-right: 0;
}

.docs.is-mobile .docs__preview {
    display: none;
}

.docs.is-mobile .docs__back {
    display: flex;
}

.docs.is-mobile .docs__pager {
    display: flex;
}

.docs.is-mobile.show-preview .docs__list {
    display: none;
}

.docs.is-mobile.show-preview .docs__preview {
    display: flex;
    min-height: 0;
    flex: 1;
}

/* Chat assistant */
.chat {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.chat__launcher {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-purple);
    color: var(--white);
    box-shadow: 0 14px 30px -10px rgba(51, 0, 102, .6);
    transition: transform .3s var(--ease), background-color .25s;
}

.chat__launcher .icon {
    width: 26px;
    height: 26px;
}

.chat__launcher:hover {
    transform: translateY(-3px);
    background: var(--purple-800);
}

.chat__launcher[aria-expanded="true"] {
    background: var(--secondary-purple);
}

.chat__window {
    display: flex;
    flex-direction: column;
    width: min(360px, calc(100vw - 32px));
    height: min(500px, calc(100vh - 140px));
    border-radius: var(--r-lg);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--lav-100);
    overflow: hidden;
    animation: drop-in .3s var(--ease);
}

.chat__window[hidden] {
    display: none !important;
}

.chat__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 14px 16px;
    background: var(--primary-purple);
    color: var(--white);
}

.chat__avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
}

.chat__titles {
    display: grid;
    flex: 1;
    line-height: 1.3;
}

.chat__titles span {
    font-size: var(--fs-sm);
    opacity: .85;
}

.chat__close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
}

.chat__close:hover {
    background: rgba(255, 255, 255, .14);
}

.chat__close:focus-visible {
    outline-color: var(--white);
}

.chat__messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    overflow-y: auto;
    background: var(--lav-25);
}

.chat__msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: var(--fs-sm);
    line-height: 1.5;
    white-space: pre-wrap;
}

.chat__msg--bot {
    align-self: flex-start;
    background: var(--lav-100);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.chat__msg--user {
    align-self: flex-end;
    background: var(--primary-purple);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.chat__msg--error {
    align-self: flex-start;
    background: #FFEDEC;
    color: #B3150C;
    border-bottom-left-radius: 4px;
}

.chat__msg--typing {
    color: var(--text-soft);
    font-style: italic;
}

.chat__form {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid var(--lav-100);
}

.chat__input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 10px 14px;
    border: 2px solid var(--lav-200);
    border-radius: var(--r-pill);
    font-size: var(--fs-sm);
}

.chat__input::placeholder {
    color: var(--muted);
}

.chat__input:focus {
    outline: none;
    border-color: var(--focus);
    box-shadow: 0 0 0 4px rgba(9, 123, 247, .18);
}

.chat__send {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cta-green);
    color: var(--button-text);
    transition: background-color .2s;
}

.chat__send:hover {
    background: var(--cta-green-hover);
}

@media (max-width: 1024px) {
    .claim__tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .joii__grid,
    .contact__grid {
        grid-template-columns: 1fr;
    }

    .joii__visual {
        max-width: 380px;
        order: -1;
    }

    .joii__visual--app {
        max-width: 460px;
    }

    .joii__card {
        left: 0;
    }
}

@media (max-width: 480px) {
    .plans__terms {
        align-items: flex-start;
        text-align: left;
    }

    .modal__body {
        padding: 18px;
    }

    .chat {
        right: 14px;
        bottom: 14px;
    }

    .chat__launcher {
        width: 54px;
        height: 54px;
    }
}

/* ---------------------------------------------------------------------
   Decorative bones and cat collars (same treatment as the paw prints).
   Placed in section padding / edge zones so they never sit on text.
   --------------------------------------------------------------------- */
.deco-bone,
.deco-collar {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    color: var(--lav-300);
}

.deco-bone svg,
.deco-collar svg {
    width: 100%;
    height: 100%;
}

.deco-bone {
    width: 60px;
    height: 30px;
}

.deco-collar {
    width: 46px;
    height: 46px;
}

.deco-bone--why { right: 6%; top: 30px; transform: rotate(-18deg); opacity: .8; }
.deco-collar--why { left: 4%; bottom: 26px; transform: rotate(12deg); opacity: .8; }

.deco-bone--band { left: 58%; bottom: 14%; width: 48px; height: 24px; color: rgba(255, 255, 255, .1); transform: rotate(20deg); }

.deco-bone--plans { right: 9%; top: 34px; transform: rotate(24deg); opacity: .7; }
.deco-collar--plans { left: 7%; bottom: 30px; transform: rotate(-10deg); opacity: .7; }

.deco-collar--stories { left: 44%; bottom: 26px; transform: rotate(-14deg); color: var(--secondary-purple); opacity: .35; }

.deco-bone--cov { right: 5%; bottom: 28px; transform: rotate(-12deg); opacity: .8; }

.deco-collar--joii { left: 6%; top: 30px; transform: rotate(16deg); color: var(--secondary-purple); opacity: .35; }
.deco-bone--joii { left: 38%; bottom: 26px; transform: rotate(10deg); opacity: .8; }

.deco-bone--appsec { left: 3%; top: 34px; transform: rotate(-24deg); opacity: .8; }
.deco-bone--app { right: 2%; bottom: 2%; z-index: 2; color: var(--secondary-purple); opacity: .35; transform: rotate(18deg); }
.deco-collar--app { left: 6%; top: -4%; z-index: 2; color: var(--secondary-purple); opacity: .35; transform: rotate(-12deg); }

.deco-bone--claim { right: 4%; bottom: 22px; color: var(--lav-200); transform: rotate(-16deg); }
.deco-collar--claim { left: 8%; top: 26px; color: var(--lav-200); transform: rotate(14deg); }

.deco-bone--faq { left: 5%; bottom: 30px; transform: rotate(14deg); opacity: .8; }

.deco-collar--contact { right: 10%; bottom: 28px; transform: rotate(-16deg); opacity: .8; }

.deco-bone--foot { left: -20px; bottom: 30px; width: 150px; height: 75px; color: rgba(255, 255, 255, .04); transform: rotate(-20deg); }

/* keep small screens uncluttered: only the ones inside visuals stay */
@media (max-width: 768px) {
    .deco-bone:not(.deco-bone--app),
    .deco-collar:not(.deco-collar--app) {
        display: none;
    }
}
