/* ==========================================================
   Chillberry theme stylesheet
   Brand colours are defined in :root
   ========================================================== */
:root {
    --pink: #ff6fa8;
    --pink-dark: #e84f8c;
    --pink-soft: #ffe3ee;
    --mint: #3fcfa5;
    --mint-soft: #dcf7ee;
    --lemon: #ffc93c;
    --lemon-soft: #fff3cf;
    --berry: #8c7bff;
    --berry-soft: #ebe7ff;
    --choco: #3b2418;
    --choco-2: #6b4a3a;
    --cream: #fff7ec;
    --cream-2: #fdeedb;
    --white: #ffffff;
    --line: #f1e1cc;

    --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
    --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 10px 30px -12px rgba(59, 36, 24, .22);
    --shadow-lg: 0 24px 60px -20px rgba(59, 36, 24, .32);
    --container: 1200px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--choco);
    background: var(--cream);
    overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--pink-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--choco); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; color: var(--choco); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; }
h1 em, h2 em { font-style: normal; color: var(--pink); position: relative; white-space: nowrap; }
h1 em::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .22em;
    background: var(--lemon); border-radius: 99px; z-index: -1; opacity: .8;
}
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--choco-2); }
.muted { color: var(--choco-2); opacity: .85; font-size: .95rem; }
.center { text-align: center; }
.mt { margin-top: 1.5rem; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--choco); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 6px; }

.icon { flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font-family: var(--font-head); font-weight: 600; font-size: 1rem;
    padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
    text-align: center; line-height: 1.2; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { font-size: 1.1rem; padding: .95em 1.8em; }
.btn-sm { font-size: .88rem; padding: .5em 1.1em; }
.btn-block { width: 100%; }
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 8px 20px -8px var(--pink); }
.btn-primary:hover { background: var(--pink-dark); color: #fff; box-shadow: 0 12px 24px -8px var(--pink); }
.btn-dark { background: var(--choco); color: #fff; }
.btn-dark:hover { background: #24150d; color: #fff; }
.btn-ghost { background: #fff; color: var(--choco); border-color: var(--choco); }
.btn-ghost:hover { background: var(--choco); color: #fff; }
.btn-light { background: #fff; color: var(--choco); }
.btn-light:hover { background: var(--cream); color: var(--choco); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.15); color: #fff; }

.eyebrow {
    display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
    letter-spacing: .04em; text-transform: uppercase; color: var(--pink-dark);
    background: var(--pink-soft); padding: .35em .95em; border-radius: 999px; margin-bottom: 1rem;
}

/* ---------- Top bar & header ---------- */
.topbar { background: var(--choco); color: #fbe7c6; font-size: .88rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar p { margin: 0; }
.topbar a { color: var(--lemon); font-weight: 700; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 20px; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; color: #fbe7c6; font-weight: 600; }

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 247, 236, .92);
    backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
    transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -12px rgba(59,36,24,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--choco); }
.logo:hover { color: var(--choco); }
.logo svg { transition: transform .4s var(--ease); }
.logo:hover svg { transform: rotate(-12deg) scale(1.05); }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; line-height: 1; display: flex; flex-direction: column; }
.logo-text small { font-family: var(--font-body); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pink-dark); margin-top: 4px; }
.logo-light, .logo-light:hover { color: #fff; }
.logo-light .logo-text small { color: var(--lemon); }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
    font-family: var(--font-head); font-weight: 500; font-size: 1.02rem; color: var(--choco);
    padding: .5em .9em; border-radius: 999px; transition: background .2s, color .2s;
}
.site-nav a:not(.btn):hover { background: var(--pink-soft); color: var(--pink-dark); }
.site-nav a.active { background: var(--choco); color: #fff; }
.nav-cta { margin-left: 10px; }

.nav-toggle { display: none; background: none; border: 0; color: var(--choco); cursor: pointer; padding: 8px; border-radius: 12px; }
.nav-toggle-close { display: none; }
.nav-open .nav-toggle-open { display: none; }
.nav-open .nav-toggle-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 60px 0 90px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.center-actions { justify-content: center; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 700; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { color: #fff; background: var(--mint); border-radius: 50%; padding: 3px; }

.hero-art { position: relative; height: 520px; }
.hero-circle {
    position: absolute; inset: 40px 30px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffd6e6, var(--pink) 75%);
    box-shadow: inset 0 -20px 60px rgba(0,0,0,.08);
}
.hero-main { position: absolute; left: 50%; top: 50%; width: 300px; margin: -170px 0 0 -150px; filter: drop-shadow(0 30px 30px rgba(59,36,24,.25)); }
.hero-side { position: absolute; width: 140px; filter: drop-shadow(0 20px 20px rgba(59,36,24,.2)); }
.hero-side-a { left: 0; bottom: 30px; transform: rotate(-12deg); }
.hero-side-b { right: 0; top: 10px; }
.hero-side-b.float-slow { animation-delay: -2s; }
.hero-bubble {
    position: absolute; background: #fff; padding: 12px 18px; border-radius: 18px; font-weight: 700; font-size: .95rem;
    box-shadow: var(--shadow); white-space: nowrap;
}
.hero-bubble strong { font-family: var(--font-head); color: var(--pink); font-size: 1.3rem; margin-right: 4px; }
.bubble-1 { right: 10px; bottom: 90px; animation: float 5s ease-in-out infinite; }
.bubble-2 { left: 10px; top: 60px; animation: float 6s ease-in-out infinite -3s; }
.dot { position: absolute; border-radius: 50%; }
.d1 { width: 18px; height: 18px; background: var(--lemon); top: 20px; left: 45%; }
.d2 { width: 12px; height: 12px; background: var(--mint); bottom: 40px; right: 40%; }
.d3 { width: 22px; height: 22px; background: var(--berry); top: 45%; left: 4%; opacity: .7; }
.d4 { width: 14px; height: 14px; background: var(--pink-dark); top: 30%; right: 2%; }

.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 0; pointer-events: none; }
.blob-a { width: 420px; height: 420px; background: var(--mint-soft); top: -120px; left: -140px; }
.blob-b { width: 380px; height: 380px; background: var(--lemon-soft); bottom: -160px; right: 20%; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.float { animation: float 5s ease-in-out infinite; }
.float-slow { animation: float 7s ease-in-out infinite; }
.hero-side-a.float-slow { animation-name: float-rot; }
@keyframes float-rot { 0%, 100% { transform: rotate(-12deg) translateY(0); } 50% { transform: rotate(-8deg) translateY(-12px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: 60px 0 50px; background: linear-gradient(180deg, var(--pink-soft), var(--cream)); }
.page-hero-inner { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.page-hero-inner > div:only-child { grid-column: 1 / -1; max-width: 780px; }
.page-hero-art { max-width: 240px; justify-self: center; filter: drop-shadow(0 24px 24px rgba(59,36,24,.2)); }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: -10px; margin-bottom: 10px; position: relative; z-index: 3; }

/* ---------- Marquee ---------- */
.marquee { background: var(--choco); color: #fff; overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg); margin: -10px -10px 0; position: relative; z-index: 3; }
.marquee-track { display: flex; gap: 26px; width: max-content; animation: marquee 50s linear infinite; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; white-space: nowrap; }
.marquee-dot { color: var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 90px 0; position: relative; }
.section-tint { background: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head p { color: var(--choco-2); font-size: 1.08rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-form { align-items: start; grid-template-columns: .9fr 1.1fr; }

.bg-pink { background: var(--pink); color: #fff; }
.bg-mint { background: var(--mint); color: #fff; }
.bg-lemon { background: var(--lemon); color: var(--choco); }
.bg-berry { background: var(--berry); color: #fff; }
.bg-pink-soft { background: var(--pink-soft); }
.bg-mint-soft { background: var(--mint-soft); }
.bg-lemon-soft { background: var(--lemon-soft); }
.bg-berry-soft { background: var(--berry-soft); }

.feature-icon { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-list { display: grid; gap: 18px; margin: 26px 0 30px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature h3 { margin-bottom: .2em; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--choco-2); font-size: .98rem; }

/* Art stack */
.art-stack { position: relative; height: 460px; max-width: 480px; margin: 0 auto; }
.art-card { position: absolute; border-radius: 32px; padding: 30px; box-shadow: var(--shadow-lg); }
.art-card-a { width: 58%; left: 0; top: 0; background: var(--mint-soft); transform: rotate(-6deg); }
.art-card-b { width: 58%; right: 0; bottom: 0; background: var(--pink-soft); transform: rotate(5deg); }
.art-badge {
    position: absolute; left: 44%; top: 42%; transform: translate(-50%, -50%) rotate(-8deg);
    background: var(--lemon); border-radius: 50%; width: 136px; height: 136px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    box-shadow: var(--shadow); border: 5px solid #fff; font-weight: 700; font-size: .85rem; line-height: 1.2;
}
.art-badge strong { font-family: var(--font-head); font-size: 2.2rem; line-height: 1; }

/* ---------- Flavour cards ---------- */
.flavour-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px; }
.flavour-card {
    background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    transition: transform .35s var(--ease), box-shadow .35s;
}
.section-tint .flavour-card { background: var(--cream); }
.flavour-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.flavour-art {
    position: relative; aspect-ratio: 1 / .92; display: flex; align-items: center; justify-content: center; padding: 22px;
    background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--tint) 45%, #fff) 0%, color-mix(in srgb, var(--tint) 18%, #fff) 70%);
}
@supports not (background: color-mix(in srgb, red 50%, white)) {
    .flavour-art { background: var(--cream-2); }
}
.flavour-art .ic-svg, .flavour-art img { height: 100%; width: auto; transition: transform .5s var(--ease); }
.flavour-art img { width: 100%; object-fit: cover; border-radius: 16px; }
.flavour-card:hover .ic-svg { transform: rotate(-6deg) scale(1.06); }
.tag { position: absolute; top: 14px; left: 14px; background: var(--choco); color: #fff; font-size: .75rem; font-weight: 800; padding: .3em .8em; border-radius: 999px; letter-spacing: .02em; }
.flavour-body { padding: 18px 20px 22px; }
.flavour-cat { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--pink-dark); }
.flavour-body h3 { margin: .2em 0 .35em; font-size: 1.2rem; }
.flavour-body p { margin: 0; font-size: .93rem; color: var(--choco-2); }
.flavour-card.is-hidden { display: none; }

.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.chip {
    font-family: var(--font-head); font-weight: 600; font-size: 1rem; background: #fff; color: var(--choco);
    border: 2px solid var(--line); border-radius: 999px; padding: .55em 1.3em; cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--pink); color: var(--pink-dark); }
.chip.active { background: var(--pink); color: #fff; border-color: var(--pink); }
.empty-state { text-align: center; color: var(--choco-2); }

/* ---------- Benefits ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit {
    background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
    transition: transform .3s var(--ease); border: 2px solid transparent;
}
.section-tint .benefit { background: var(--cream); box-shadow: none; }
.benefit:hover { transform: translateY(-6px); border-color: var(--pink-soft); }
.benefit h3 { margin: 18px 0 8px; }
.benefit p { margin: 0; color: var(--choco-2); font-size: .98rem; }

/* ---------- Stats ---------- */
.stats-band { background: var(--pink); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.stats-band::before, .stats-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); }
.stats-band::before { width: 300px; height: 300px; left: -80px; top: -120px; }
.stats-band::after { width: 220px; height: 220px; right: -40px; bottom: -110px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; position: relative; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.1; }
.stat span { font-weight: 700; opacity: .95; }

/* ---------- Franchise models ---------- */
.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.model-card {
    --accent: var(--pink); --accent-soft: var(--pink-soft);
    background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow);
    display: flex; flex-direction: column; position: relative; border-top: 8px solid var(--accent);
    transition: transform .3s var(--ease), box-shadow .3s;
}
.section-tint .model-card { background: var(--cream); }
.model-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.model-mint { --accent: var(--mint); --accent-soft: var(--mint-soft); }
.model-lemon { --accent: var(--lemon); --accent-soft: var(--lemon-soft); }
.model-berry { --accent: var(--berry); --accent-soft: var(--berry-soft); }
.model-badge { align-self: flex-start; background: var(--accent-soft); color: var(--choco); font-size: .75rem; font-weight: 800; padding: .3em .8em; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.model-card h3 { font-size: 1.45rem; margin-bottom: 10px; }
.model-invest { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--choco); margin-bottom: 14px; line-height: 1.1; }
.model-invest small { display: block; font-family: var(--font-body); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--choco-2); margin-bottom: 4px; }
.model-facts { margin: 0 0 16px; padding: 14px 0; border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); display: grid; gap: 8px; }
.model-facts div { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.model-facts dt { color: var(--choco-2); }
.model-facts dd { margin: 0; font-weight: 800; text-align: right; }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; font-size: .93rem; }
.ticks li { display: flex; gap: 8px; align-items: flex-start; }
.ticks .icon { color: #fff; background: var(--mint); border-radius: 50%; padding: 2px; margin-top: 3px; }
.ticks-lg { font-size: 1.02rem; gap: 12px; margin: 20px 0; }
.model-ideal { font-size: .88rem; color: var(--choco-2); margin-top: auto; padding-top: 6px; }

/* ---------- Process steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
.step { background: var(--cream); border-radius: var(--radius); padding: 30px 28px; position: relative; }
.section:not(.section-tint) .step { background: #fff; box-shadow: var(--shadow); }
.step-num {
    width: 54px; height: 54px; border-radius: 50%; background: var(--pink); color: #fff; font-family: var(--font-head);
    font-size: 1.5rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
    box-shadow: 0 0 0 6px var(--pink-soft);
}
.step:nth-child(3n+2) .step-num { background: var(--mint); box-shadow: 0 0 0 6px var(--mint-soft); }
.step:nth-child(3n) .step-num { background: var(--berry); box-shadow: 0 0 0 6px var(--berry-soft); }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--choco-2); font-size: .97rem; }

/* ---------- Testimonials ---------- */
.testimonials { background: linear-gradient(180deg, var(--cream) 0%, var(--lemon-soft) 100%); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { margin: 0; background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stars { display: flex; gap: 2px; color: var(--lemon); margin-bottom: 14px; }
.stars .icon { fill: var(--lemon); }
.testimonial blockquote { margin: 0 0 22px; font-size: 1.02rem; flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial figcaption small { display: block; color: var(--choco-2); font-size: .85rem; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: #fff; flex-shrink: 0; }
.avatar-0 { background: var(--pink); } .avatar-1 { background: var(--mint); } .avatar-2 { background: var(--berry); } .avatar-3 { background: var(--lemon); color: var(--choco); }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 90px; }
.cta-inner {
    background: linear-gradient(120deg, var(--berry), var(--pink)); color: #fff; border-radius: 32px; padding: 50px 56px;
    display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-inner::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.12); right: -60px; top: -100px; }
.cta-inner h2 { color: #fff; margin-bottom: .3em; }
.cta-inner p { margin: 0; opacity: .95; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

/* ---------- Opportunity / compare ---------- */
.opportunity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.opp-card { border-radius: var(--radius); padding: 30px 26px; }
.opp-card strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1.1; margin-bottom: 10px; }
.opp-card p { margin: 0; color: var(--choco-2); font-size: .97rem; }
.source-note { text-align: center; font-size: .82rem; color: var(--choco-2); margin-top: 22px; opacity: .8; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .96rem; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { background: var(--choco); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.compare-table tbody th { background: var(--cream); font-weight: 800; white-space: nowrap; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover td { background: #fffaf3; }

.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.support-item { background: var(--cream); border-radius: var(--radius-sm); padding: 16px 18px; display: flex; align-items: center; gap: 12px; font-weight: 700; }
.support-item span { width: 42px; height: 42px; border-radius: 12px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--pink); flex-shrink: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq details { background: var(--cream); border-radius: var(--radius-sm); padding: 0 24px; border: 2px solid transparent; transition: border-color .2s; }
.faq details[open] { border-color: var(--pink-soft); background: #fff; box-shadow: var(--shadow); }
.faq summary {
    cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 600; font-size: 1.12rem;
    padding: 20px 36px 20px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border-radius: 50%; background: var(--pink); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem; transition: transform .3s;
}
.faq details[open] summary::after { content: "–"; background: var(--choco); }
.faq details p { margin: 0 0 20px; color: var(--choco-2); }

/* ---------- Mission / timeline ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { border-radius: var(--radius); padding: 38px; }
.mv-card h3 { font-size: 1.6rem; margin: 18px 0 10px; }
.mv-card p { margin: 0; font-size: 1.05rem; color: var(--choco-2); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; border-left: 4px dotted var(--pink); display: grid; gap: 26px; }
.timeline li { position: relative; background: #fff; border-radius: var(--radius-sm); padding: 20px 24px; box-shadow: var(--shadow); }
.timeline li::before { content: ""; position: absolute; left: -43px; top: 24px; width: 22px; height: 22px; border-radius: 50%; background: var(--lemon); border: 4px solid #fff; box-shadow: 0 0 0 3px var(--pink); }
.timeline .year { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--pink); }
.timeline p { margin: 4px 0 0; }

/* ---------- Contact ---------- */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 70px; }
.info-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.info-card h3 { margin: 16px 0 6px; }
.info-card p { margin: 0 0 4px; word-break: break-word; }
.contact-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.contact-points li { display: flex; align-items: center; gap: 14px; }
.contact-points small { display: block; color: var(--choco-2); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-points div > a, .contact-points div > span { font-weight: 800; color: var(--choco); font-size: 1.05rem; word-break: break-word; }
.contact-points a:hover { color: var(--pink-dark); }
.map-wrap { margin-top: 26px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--cream-2); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Forms ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.section-form { background: linear-gradient(180deg, var(--cream) 0%, var(--mint-soft) 100%); }
.form { padding: 34px; position: relative; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 800; font-size: .9rem; }
.field label span { color: var(--pink-dark); }
.field input, .field select, .field textarea {
    font: inherit; font-size: 1rem; color: var(--choco); background: var(--cream);
    border: 2px solid var(--line); border-radius: 14px; padding: .75em 1em; width: 100%;
    transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; -webkit-appearance: none;
}
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233b2418' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pink); background: #fff; box-shadow: 0 0 0 4px var(--pink-soft); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #e5484d; background: #fff5f5; }
.field-error { color: #d0343a; font-size: .85rem; font-weight: 700; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 600 !important; font-size: .9rem !important; cursor: pointer; }
.field .check > span { color: inherit; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pink); flex-shrink: 0; appearance: auto; -webkit-appearance: checkbox; padding: 0; }
.form-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .85rem; color: var(--choco-2); margin: 14px 0 0; text-align: center; }
.alert { padding: 14px 18px; border-radius: 14px; font-weight: 700; margin-bottom: 20px; }
.alert-error { background: #fff0f0; color: #b4232a; border: 2px solid #ffd0d0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .7; cursor: wait; transform: none; }

/* ---------- Thanks / prose ---------- */
.thanks { padding: 80px 0 100px; }
.thanks-art { width: 190px; margin: 0 auto 20px; filter: drop-shadow(0 20px 20px rgba(59,36,24,.2)); }
.prose h1 { font-size: clamp(2rem, 4vw, 3rem); }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Footer ---------- */
.site-footer { color: #fbe7c6; position: relative; margin-top: 0; }
.footer-wave { color: var(--choco); line-height: 0; margin-bottom: -1px; }
.footer-wave svg { width: 100%; height: 60px; }
.footer-main { background: var(--choco); padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { margin: 18px 0; opacity: .85; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1.15rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #fbe7c6; }
.site-footer a:hover { color: var(--pink); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.footer-contact .icon { color: var(--pink); margin-top: 3px; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.social a:hover { background: var(--pink); color: #fff; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem; opacity: .85; }
.footer-bottom p { margin: 0; }

.to-top {
    position: fixed; right: 20px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%;
    background: var(--choco); color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 700; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s; z-index: 90; transform: translateY(10px);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--pink); color: #fff; }

.mobile-cta { display: none; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Apply popup ---------- */
/* Page scroll lock while the popup is open (classes set by main.js) */
html.modal-open { overflow: hidden; }
/* overflow: visible keeps body from becoming a scroll container, so the sticky header stays in place */
body.modal-lock { position: fixed; left: 0; right: 0; width: 100%; overflow: visible; }
html.modal-open .mobile-cta, html.modal-open .to-top { visibility: hidden; }

.apply-modal {
    border: 0; padding: 0; border-radius: 28px;
    width: min(940px, calc(100% - 32px)); max-width: calc(100% - 32px);
    max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
    overflow: auto; overscroll-behavior: contain;
    background: #fff; color: var(--choco);
    box-shadow: 0 40px 100px -30px rgba(59, 36, 24, .55), var(--shadow-lg);
}
.apply-modal:not([open]) { display: none; }   /* browsers without native dialog support */
.apply-modal:focus { outline: none; }
.apply-modal[open] { animation: modal-in .4s var(--ease); }
.apply-modal::backdrop {
    background: rgba(59, 36, 24, .45);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.apply-modal[open]::backdrop { animation: modal-fade .3s ease; }

@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }

/* Blur the page directly where backdrop-filter is not supported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    html.modal-open .topbar,
    html.modal-open .site-header,
    html.modal-open main,
    html.modal-open .site-footer,
    html.modal-open .mobile-cta,
    html.modal-open .to-top { filter: blur(6px); }
}

.modal-close {
    position: absolute; top: 14px; right: 14px; z-index: 5;
    width: 42px; height: 42px; border-radius: 50%; border: 0; padding: 0;
    background: var(--cream); color: var(--choco); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s, transform .3s var(--ease);
}
.modal-close:hover { background: var(--pink); color: #fff; transform: rotate(90deg); }
.modal-close:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; border-radius: 50%; }

.modal-grid { display: grid; grid-template-columns: .85fr 1.15fr; }
.modal-side {
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    background: linear-gradient(160deg, var(--pink), var(--berry)); color: #fff;
    padding: 36px 30px; border-radius: 28px 0 0 28px;
}
.modal-side::after {
    content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%;
    background: rgba(255, 255, 255, .12); right: -90px; bottom: -80px; pointer-events: none;
}
.modal-side > * { position: relative; z-index: 1; }
.eyebrow-light { align-self: flex-start; background: rgba(255, 255, 255, .2); color: #fff; }
.modal-side-title { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; line-height: 1.2; color: #fff; margin: 0 0 18px; }
.ticks-light { font-size: .95rem; }
.ticks-light li { color: #fff; }
.ticks-light .icon { background: rgba(255, 255, 255, .25); }
.modal-art { width: 150px; margin: auto auto 0; padding-top: 18px; filter: drop-shadow(0 18px 18px rgba(59, 36, 24, .25)); }
.modal-call { font-size: .88rem; color: rgba(255, 255, 255, .9); margin: 18px 0 0; line-height: 1.4; }
.modal-call strong { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: #fff; }

.modal-body { padding: 34px 32px 28px; min-width: 0; }
.modal-body h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: .3em; padding-right: 44px; }
.modal-text { color: var(--choco-2); font-size: .98rem; margin-bottom: 20px; }

.form.form-compact { padding: 0; background: none; box-shadow: none; }
.form-compact .form-grid { gap: 14px; margin-bottom: 18px; }
.form-compact .field input:not([type="checkbox"]), .form-compact .field select { padding-top: .65em; padding-bottom: .65em; }
.form-compact .form-note { margin-top: 10px; }

/* ---------- Franchise thank-you page ---------- */
.ty-hero { position: relative; overflow: hidden; padding: 70px 0 60px; background: linear-gradient(180deg, var(--mint-soft), var(--cream)); }
.ty-hero .container { position: relative; z-index: 2; }
.ty-badge {
    width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 24px;
    background: var(--mint); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 10px rgba(63, 207, 165, .18);
    animation: ty-pop .7s var(--ease) both;
}
@keyframes ty-pop { 0% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.08); } 100% { transform: scale(1); } }

.ty-summary {
    max-width: 720px; margin: 30px auto 0; display: grid; grid-template-columns: repeat(3, 1fr);
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.ty-summary > div { padding: 18px 20px; min-width: 0; border-left: 2px dashed var(--line); }
.ty-summary > div:first-child { border-left: 0; }
.ty-summary span { display: block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--choco-2); margin-bottom: 4px; }
.ty-summary strong { display: block; font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: var(--choco); word-break: break-word; overflow-wrap: anywhere; }
.ty-summary > div:first-child strong { color: var(--pink-dark); letter-spacing: .02em; }
.ty-mail { max-width: 640px; margin: 18px auto 0; font-size: .95rem; color: var(--choco-2); }
.ty-mail .icon { display: inline-block; vertical-align: -4px; margin-right: 6px; color: var(--mint); }
.ty-mail strong { color: var(--choco); overflow-wrap: anywhere; }

.ty-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 50px; align-items: start; }
.ty-steps { list-style: none; padding: 0; margin: 30px 0 0; }
.ty-steps li { display: flex; gap: 18px; position: relative; padding-bottom: 30px; }
.ty-steps li::before {
    content: ""; position: absolute; left: 22px; top: 56px; bottom: 8px;
    border-left: 3px dotted var(--pink); opacity: .55;
}
.ty-steps li:last-child { padding-bottom: 0; }
.ty-steps li:last-child::before { display: none; }
.ty-steps li > div { min-width: 0; padding-top: 2px; }
.ty-step-num {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; position: relative; z-index: 1;
    background: var(--pink); color: #fff; font-family: var(--font-head); font-size: 1.25rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--pink-soft);
}
.ty-steps small { display: block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--pink-dark); }
.ty-steps h3 { margin: .2em 0; }
.ty-steps p { margin: 0; color: var(--choco-2); font-size: .97rem; }

.ty-side { display: grid; gap: 20px; position: sticky; top: 100px; }
.ty-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.ty-card h3 { margin-bottom: 14px; }
.ty-card .ticks { margin-bottom: 0; }
.ty-card-dark { background: var(--choco); color: #fbe7c6; }
.ty-card-dark h3 { color: #fff; margin-bottom: 8px; }
.ty-card-dark .btn { margin-top: 6px; }
.ty-link { display: block; text-align: center; color: var(--lemon); font-weight: 700; margin-top: 12px; word-break: break-word; }
.ty-link:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .apply-modal[open], .apply-modal[open]::backdrop,
    .ty-badge { animation: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
    .flavour-grid { grid-template-columns: repeat(3, 1fr); }
    .model-grid { grid-template-columns: repeat(2, 1fr); }
    .opportunity-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
    .topbar-links a:last-child { display: none; }
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: stretch;
        padding: 20px; gap: 6px; box-shadow: 0 20px 40px -20px rgba(59,36,24,.35);
        transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
        max-height: calc(100vh - 78px); overflow-y: auto;
    }
    .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
    .site-nav a:not(.btn) { padding: .8em 1em; font-size: 1.1rem; }
    .nav-cta { margin: 10px 0 0; }

    .hero { padding: 40px 0 70px; }
    .hero-inner, .split, .split-form, .page-hero-inner { grid-template-columns: 1fr; }
    .hero-art { height: 420px; max-width: 480px; width: 100%; margin: 0 auto; }
    .hero-main { width: 240px; margin: -140px 0 0 -120px; }
    .hero-side { width: 110px; }
    .page-hero-art { display: none; }
    .split-art { order: -1; }
    .split-form .split-art { order: 0; }
    .art-stack { height: 380px; }
    .benefit-grid, .testimonial-grid, .steps { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
    .cta-inner { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
    .section { padding: 70px 0; }
    .mv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    body { font-size: 16px; padding-bottom: 72px; }
    .container { padding: 0 16px; }
    .topbar p { font-size: .8rem; }
    .topbar-links { display: none; }
    .header-inner { height: 68px; }
    .site-nav { max-height: calc(100vh - 68px); }
    .logo-text { font-size: 1.35rem; }
    .logo svg { width: 38px; height: 38px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-art { height: 340px; }
    .hero-circle { inset: 30px 10px; }
    .hero-main { width: 190px; margin: -112px 0 0 -95px; }
    .hero-side { width: 84px; }
    .hero-bubble { font-size: .8rem; padding: 8px 12px; }
    .hero-bubble strong { font-size: 1.05rem; }
    .flavour-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .flavour-body { padding: 14px; }
    .flavour-body h3 { font-size: 1.02rem; }
    .flavour-body p { font-size: .85rem; }
    .model-grid, .benefit-grid, .testimonial-grid, .steps, .opportunity-grid, .info-grid, .support-grid, .footer-grid { grid-template-columns: 1fr; }
    .form { padding: 24px 18px; }
    .form-grid { grid-template-columns: 1fr; }
    .art-stack { height: 300px; }
    .art-card { padding: 20px; }
    .art-badge { width: 110px; height: 110px; }
    .art-badge strong { font-size: 1.7rem; }
    .section { padding: 56px 0; }
    .section-head { margin-bottom: 34px; }
    .cta-band { padding-bottom: 56px; }
    .cta-inner { padding: 32px 22px; border-radius: 24px; }
    .cta-actions, .cta-actions .btn { width: 100%; }
    .marquee-track { font-size: 1.05rem; }
    .info-grid { margin-bottom: 44px; }
    .mv-card { padding: 28px; }
    .timeline { padding-left: 24px; }
    .timeline li::before { left: -37px; }
    .to-top { bottom: 84px; right: 14px; width: 42px; height: 42px; }

    .mobile-cta {
        display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96);
        box-shadow: 0 -8px 24px -12px rgba(59,36,24,.35); backdrop-filter: blur(8px);
    }
    .mobile-cta .btn { flex: 1; padding: .8em 1em; font-size: .95rem; }
    .mobile-cta .btn-light { flex: 0 0 auto; border: 2px solid var(--choco); }
}

/* Popup and thank-you page */
@media (max-width: 960px) {
    .ty-grid { grid-template-columns: 1fr; gap: 40px; }
    .ty-side { position: static; }
}

@media (max-width: 760px) {
    .apply-modal {
        width: 100%; max-width: 100%; height: 100%; height: 100dvh;
        max-height: none; margin: 0; border-radius: 0;
    }
    .apply-modal[open] { animation-name: modal-sheet-in; }
    .modal-grid { grid-template-columns: 1fr; }
    .modal-side { display: none; }
    .modal-body { padding: 64px 18px calc(24px + env(safe-area-inset-bottom)); }
    .modal-body h2 { padding-right: 0; }
    .modal-close { position: fixed; top: 12px; right: 12px; }
    .form-compact .form-grid { grid-template-columns: 1fr; }
}
@keyframes modal-sheet-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
    .ty-hero { padding: 50px 0 44px; }
    .ty-badge { width: 80px; height: 80px; margin-bottom: 20px; }
    .ty-summary { grid-template-columns: 1fr; }
    .ty-summary > div { border-left: 0; border-top: 2px dashed var(--line); padding: 14px 18px; }
    .ty-summary > div:first-child { border-top: 0; }
    .ty-steps li { gap: 14px; }
    .ty-card { padding: 24px 20px; }
}
