/* =========================================================
   Dream Forge Mobile — light theme (2026-09 redesign)
   KYZO mascot branding: Blurple actions, lavender wash,
   opaque white cards, restrained tints.
   ========================================================= */

:root {
    color-scheme: light;

    /* Surfaces */
    --bg: #ffffff;
    --wash: #f5f4fc;          /* brand light lavender */
    --wash-2: #eeecfb;
    --card: #ffffff;
    --line: #e7e5f3;
    --line-strong: #d6d2ee;

    /* Text */
    --text: #1b1538;          /* brand purple-black */
    --text-2: #3b3657;
    --muted: #5d5878;         /* 6.6:1 on white */
    --faint: #6f6a8a;         /* 5.2:1 on white */

    /* Brand */
    --brand: #5b4cf0;         /* action colour, 5.6:1 with white */
    --brand-hover: #4a3cd8;
    --brand-ink: #4436c9;     /* brand-coloured text on white, 7:1 */
    --brand-tint: #efedfe;
    --brand-tint-2: #e3e0fd;
    --mint: #1f9d7a;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --r-sm: 10px;
    --r: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --gutter: clamp(16px, 4.5vw, 48px);
    --max: 1200px;
    --nav-h: 64px;

    --shadow-sm: 0 1px 2px rgba(27, 21, 56, .05), 0 1px 1px rgba(27, 21, 56, .03);
    --shadow: 0 1px 2px rgba(27, 21, 56, .04), 0 8px 24px -8px rgba(27, 21, 56, .10);
    --shadow-lg: 0 2px 4px rgba(27, 21, 56, .04), 0 24px 60px -18px rgba(45, 30, 120, .28);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

a {
    color: var(--brand-ink);
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.12;
    text-wrap: balance;
}

p {
    margin: 0;
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    background: var(--text);
    color: #fff;
    font-weight: 600;
}

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

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: clamp(64px, 9vw, 112px) 0;
}

.section--wash {
    background: var(--wash);
}

.eyebrow {
    display: inline-block;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-ink);
    margin-bottom: 14px;
}

.h2 {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
}

.lead {
    font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
    line-height: 1.65;
    color: var(--muted);
    text-wrap: pretty;
}

.section-head {
    max-width: 680px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head .lead {
    margin-top: 16px;
}

.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ---------- Buttons & badges ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9375rem;
    transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 1px 2px rgba(45, 30, 120, .2), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.btn-primary:hover {
    background: var(--brand-hover);
}

.btn-primary:active {
    transform: scale(.97);
}

.store-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.badge:hover {
    opacity: .88;
}

.badge:active {
    transform: scale(.97);
}

.badge img {
    height: 48px;
    width: auto;
}

/* Google's PNG carries its own clear space (~25% of badge height);
   pull it in on three sides so both badges share a visual baseline. */
.badge-google img {
    height: 72px;
    max-width: none; /* the negative margin shrinks the box; don't let max-width squash the art */
    margin: -12px -12px -12px 0;
}

.cta-band .badge:focus-visible {
    outline-color: #fff;
}

/* ---------- Device frame (CSS only, screenshots stay clean) ---------- */
.device {
    position: relative;
    width: 100%;
    aspect-ratio: 1206 / 2622;
    padding: 3.2%;
    border-radius: 15.5% / 7.2%;
    background: #17142a;
    box-shadow:
        0 0 0 1px rgba(27, 21, 56, .10),
        inset 0 0 0 1.5px #3a3656,
        var(--shadow-lg);
}

.device img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13% / 6%;
    background: var(--wash);
}

/* ---------- Nav ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.site-nav.scrolled {
    border-bottom-color: var(--line);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -.015em;
}

.nav-logo-img {
    display: block;
    flex: none;
    width: auto;
    height: 28px;
}

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

.nav-links {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--text-2);
    font-size: .9375rem;
    font-weight: 500;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}

.nav-links a:hover {
    background: var(--wash);
    color: var(--text);
}

.nav-cta {
    min-height: 40px;
    padding: 0 16px;
    font-size: .875rem;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .25s var(--ease), opacity .2s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
    background:
        radial-gradient(60% 55% at 85% 20%, rgba(98, 82, 242, .10), transparent 70%),
        radial-gradient(50% 50% at 10% 90%, rgba(98, 82, 242, .06), transparent 70%),
        linear-gradient(180deg, var(--wash) 0%, #fbfbfe 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}

.app-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-2);
}

.app-chip img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand-tint);
    object-fit: contain;
    padding: 2px;
}

.app-chip strong {
    color: var(--text);
    font-weight: 700;
    letter-spacing: .06em;
}

.hero h1 {
    font-size: clamp(2.5rem, 6.2vw, 4.25rem);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.hero h1 .accent {
    color: var(--brand);
}

.hero .lead {
    margin-top: 22px;
    max-width: 540px;
}

.hero-store {
    margin-top: 32px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    font-size: .875rem;
    color: var(--muted);
}

.hero-meta li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero-meta svg {
    color: var(--mint);
    flex: none;
}

.hero-visual {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.18fr 1fr;
    align-items: center;
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
}

.hero-visual .device {
    grid-row: 1;
}

.hero-visual .d-left {
    grid-column: 1 / 2;
    transform: translateX(22%) rotate(-5deg) scale(.94);
    z-index: 1;
}

.hero-visual .d-center {
    grid-column: 2 / 3;
    z-index: 3;
}

.hero-visual .d-right {
    grid-column: 3 / 4;
    transform: translateX(-22%) rotate(5deg) scale(.94);
    z-index: 2;
}

.hero-blob {
    position: absolute;
    inset: 12% 6% 8%;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(98, 82, 242, .16), transparent);
    filter: blur(8px);
}

/* ---------- Hero mascot (KYZO coach, same artwork as the app) ---------- */
.hero-mascot {
    position: absolute;
    right: -9%;
    bottom: -4%;
    width: 38%;
    z-index: 4;
}

.mascot-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    border-radius: 40%;
}

.mascot-btn:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 4px;
}

.mascot-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.mascot-svg * {
    transform-box: view-box;
}

.m-pop {
    transform-origin: 36px 76px;
    animation: m-pop .9s cubic-bezier(.34, 1.56, .64, 1) .35s both;
}

.m-body {
    transform-origin: 36px 76px;
    animation: m-float 3.4s ease-in-out 1.3s infinite;
}

.m-shadow {
    transform-origin: 36px 73.2px;
    animation: m-shadow 3.4s ease-in-out 1.3s infinite;
}

.m-glow {
    transform-origin: 36px 42px;
    animation: m-glow 3.4s ease-in-out 1.3s infinite;
}

.m-leaf {
    transform-origin: 35.3px 22px;
    animation: m-leaf 2.8s ease-in-out infinite;
}

.m-hand-r {
    transform-origin: 56.5px 36.2px;
    animation: m-wave 6s ease-in-out 1.6s infinite;
}

.m-hand-l {
    transform-origin: 15.5px 37.8px;
    animation: m-sway 3.4s ease-in-out 1.3s infinite;
}

.m-face {
    transition: transform .25s ease-out;
}

.m-eyes {
    transform-origin: 36px 35.6px;
    animation: m-blink 4.6s linear 2s infinite;
}

.m-happy {
    opacity: 0;
}

.m-sparkles {
    transform-origin: 60px 11px;
    animation: m-twinkle 2.6s ease-in-out infinite;
}

.m-star {
    transform-origin: 36px 60.75px;
    animation: m-spin 7s linear infinite;
}

.m-blush {
    transition: opacity .2s;
}

.mascot-btn:hover .m-body {
    animation-duration: 1.6s;
}

/* Tap: hop, squash on landing, happy eyes, blush */
.hero-mascot.is-happy .m-body {
    animation: m-hop .8s cubic-bezier(.3, .7, .4, 1) both;
}

.hero-mascot.is-happy .m-shadow {
    animation: m-hop-shadow .8s ease both;
}

.hero-mascot.is-happy .m-hand-l,
.hero-mascot.is-happy .m-hand-r {
    animation: m-cheer .8s ease both;
}

.hero-mascot.is-happy .m-hand-l {
    animation-name: m-cheer-l;
}

.hero-mascot.is-happy .m-eyes {
    opacity: 0;
    animation: none;
}

.hero-mascot.is-happy .m-happy,
.hero-mascot.is-happy .m-blush {
    opacity: .9;
}

.hero-mascot.is-happy .m-sparkles {
    animation: m-burst .8s ease both;
}

.mascot-bubble {
    position: absolute;
    right: 52%;
    bottom: 92%;
    width: max-content;
    max-width: 240px;
    margin: 0;
    padding: 10px 14px;
    border-radius: 16px 16px 4px 16px;
    background: #fff;
    color: var(--text);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.3;
    box-shadow: 0 10px 30px rgba(40, 30, 110, .16), 0 0 0 1px rgba(98, 82, 242, .12);
    opacity: 0;
    transform: translateY(8px) scale(.9);
    transform-origin: 100% 100%;
    transition: opacity .25s, transform .35s cubic-bezier(.34, 1.56, .64, 1);
    pointer-events: none;
}

.mascot-bubble.show {
    opacity: 1;
    transform: none;
}

.hero-mascot.is-paused * {
    animation-play-state: paused !important;
}

@keyframes m-pop {
    0% { transform: translateY(40px) scale(.3); opacity: 0; }
    60% { opacity: 1; }
    100% { transform: none; opacity: 1; }
}

@keyframes m-float {
    0%, 100% { transform: translateY(0) rotate(0); }
    25% { transform: translateY(-2.4px) rotate(-2deg); }
    50% { transform: translateY(-4.5px) rotate(0); }
    75% { transform: translateY(-2.4px) rotate(2deg); }
}

@keyframes m-shadow {
    0%, 100% { transform: scale(1); opacity: .22; }
    50% { transform: scale(.8); opacity: .12; }
}

@keyframes m-glow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: .7; }
}

@keyframes m-leaf {
    0%, 100% { transform: rotate(-7deg); }
    50% { transform: rotate(9deg); }
}

@keyframes m-wave {
    0%, 55%, 100% { transform: rotate(0); }
    62% { transform: rotate(-120deg); }
    68% { transform: rotate(-95deg); }
    74% { transform: rotate(-125deg); }
    80% { transform: rotate(-95deg); }
    88% { transform: rotate(0); }
}

@keyframes m-sway {
    0%, 100% { transform: rotate(0); }
    50% { transform: rotate(6deg); }
}

@keyframes m-blink {
    0%, 93%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(.1); }
    97% { transform: scaleY(1); }
}

@keyframes m-twinkle {
    0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
    50% { transform: scale(.72) rotate(12deg); opacity: .55; }
}

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

@keyframes m-hop {
    0% { transform: none; }
    15% { transform: translateY(2px) scale(1.08, .9); }
    45% { transform: translateY(-16px) scale(.96, 1.05) rotate(-6deg); }
    70% { transform: translateY(0) scale(1.06, .93); }
    85% { transform: translateY(-2px) scale(.98, 1.02); }
    100% { transform: none; }
}

@keyframes m-hop-shadow {
    0%, 100% { transform: scale(1); opacity: .22; }
    45% { transform: scale(.55); opacity: .08; }
}

@keyframes m-cheer {
    0%, 100% { transform: rotate(0); }
    30%, 70% { transform: rotate(-130deg); }
}

@keyframes m-cheer-l {
    0%, 100% { transform: rotate(0); }
    30%, 70% { transform: rotate(130deg); }
}

@keyframes m-burst {
    0% { transform: scale(1); }
    40% { transform: scale(1.5) rotate(20deg); }
    100% { transform: scale(1); }
}

/* ---------- Stats ---------- */
.stats {
    padding: 0;
    margin-top: calc(-1 * clamp(28px, 4vw, 44px));
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}

.stat {
    padding: clamp(20px, 3vw, 30px) clamp(18px, 2.4vw, 28px);
}

.stat+.stat {
    border-left: 1px solid var(--line);
}

.stat-num {
    display: block;
    font-size: clamp(1.75rem, 3.4vw, 2.375rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.stat-label {
    display: block;
    margin-top: 4px;
    font-weight: 600;
    color: var(--text-2);
}

.stat-sub {
    display: block;
    margin-top: 4px;
    font-size: .875rem;
    line-height: 1.5;
    color: var(--muted);
}

/* ---------- Pills ---------- */
.pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    font-size: .9375rem;
    font-weight: 500;
    color: var(--text-2);
}

.pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    opacity: .7;
}

.plan-line {
    margin-top: 28px;
    text-align: center;
    color: var(--muted);
}

.plan-line strong {
    color: var(--text);
}

/* ---------- Feature rows ---------- */
.features {
    display: grid;
    gap: clamp(72px, 10vw, 128px);
}

.feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(36px, 6vw, 88px);
}

.feature:nth-child(even) .feature-copy {
    order: 2;
}

.feature h3 {
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

.feature .lead {
    margin-top: 16px;
}

.feature-list {
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text-2);
}

.feature-list .tick {
    flex: none;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand-ink);
}

.feature-visual {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(14px, 2.4vw, 28px);
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
    padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 44px);
    border-radius: var(--r-xl);
    background: var(--wash);
}

.feature-visual .device:nth-child(2) {
    transform: translateY(8%);
}

.feature-visual .device {
    --shadow-lg: 0 2px 4px rgba(27, 21, 56, .04), 0 18px 40px -16px rgba(45, 30, 120, .30);
}

/* ---------- Gallery ---------- */
.gallery {
    display: flex;
    gap: clamp(16px, 2.4vw, 28px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 12px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 40px;
    scroll-padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}

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

.shot {
    flex: 0 0 clamp(180px, 20vw, 232px);
    margin: 0;
    scroll-snap-align: start;
}

.shot figcaption {
    margin-top: 18px;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--text-2);
    text-align: center;
}

.shot .device {
    --shadow-lg: 0 16px 36px -18px rgba(45, 30, 120, .32);
}

.gallery-hint {
    margin-top: 4px;
    font-size: .875rem;
    color: var(--muted);
    text-align: center;
}

/* ---------- FAQ ---------- */
.faq {
    display: grid;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.faq-item[open] {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--text);
    border-radius: var(--r);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary svg {
    flex: none;
    color: var(--brand-ink);
    transition: transform .25s var(--ease);
}

.faq-item[open] summary svg {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 20px 20px;
    color: var(--muted);
}

/* ---------- CTA ---------- */
.cta-band {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    padding: clamp(32px, 5vw, 56px);
    border-radius: var(--r-xl);
    background: linear-gradient(135deg, #5b4cf0 0%, #4a3cd8 100%);
    color: #fff;
}

.cta-band::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    pointer-events: none;
}

.cta-copy {
    display: flex;
    align-items: center;
    gap: 22px;
    position: relative;
    z-index: 1;
}

.cta-copy img {
    flex: none;
    width: 84px;
    height: 84px;
}

.cta-band h2 {
    color: #fff;
    font-size: clamp(1.625rem, 3.2vw, 2.25rem);
}

.cta-band p {
    margin-top: 10px;
    color: rgba(255, 255, 255, .88);
    max-width: 520px;
}

.cta-band .store-row {
    position: relative;
    z-index: 1;
}

/* ---------- Studio ---------- */
.principles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.principle {
    padding: 26px 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.principle-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--brand-tint);
    color: var(--brand-ink);
}

.principle h3 {
    font-size: 1.125rem;
    letter-spacing: -.015em;
}

.principle p {
    margin-top: 8px;
    font-size: .9375rem;
    color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.contact-inner .lead {
    margin-top: 16px;
}

.contact-mail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    font-size: clamp(1.125rem, 2.4vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--brand-ink);
    word-break: break-word;
    border-radius: 8px;
}

.contact-mail:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.contact-cards {
    display: grid;
    gap: 12px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
}

.contact-card>svg {
    flex: none;
    color: var(--brand-ink);
}

.contact-label {
    display: block;
    font-size: .8125rem;
    color: var(--muted);
}

.contact-card a,
.contact-card .val {
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

/* ---------- Footer ---------- */
#footer {
    background: var(--wash);
    border-top: 1px solid var(--line);
    padding: clamp(48px, 7vw, 72px) 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text);
}

.footer-logo img {
    display: block;
    flex: none;
    width: auto;
    height: 28px;
}

.footer-brand p {
    margin-top: 14px;
    max-width: 340px;
    font-size: .9375rem;
    color: var(--muted);
}

.footer-links h3 {
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 12px;
}

.footer-links ul {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    display: inline-block;
    padding: 5px 0;
    font-size: .9375rem;
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--brand-ink);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: .875rem;
    color: var(--muted);
}

.footer-bottom a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-bottom a:hover {
    color: var(--brand-ink);
}

.fb-links {
    display: flex;
    gap: 18px;
}

.fb-links a {
    text-decoration: none;
}

/* ---------- Legal / sub pages ---------- */
.page-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}

.page-header {
    padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 40px);
    background: linear-gradient(180deg, var(--wash), #fff);
    border-bottom: 1px solid var(--line);
}

.page-header h1 {
    font-size: clamp(2rem, 4.6vw, 3rem);
    letter-spacing: -.03em;
}

.page-header p,
.page-header .last-updated {
    margin-top: 12px;
    color: var(--muted);
}

.page-content {
    padding-top: clamp(36px, 5vw, 56px);
    padding-bottom: clamp(56px, 8vw, 96px);
}

.page-content>.container,
.page-header>.container {
    max-width: 820px;
}

.page-content h2 {
    font-size: clamp(1.3rem, 2.6vw, 1.6rem);
    letter-spacing: -.02em;
    margin-top: 44px;
    margin-bottom: 14px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.page-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.page-content h3 {
    font-size: 1.1rem;
    letter-spacing: -.015em;
    margin-top: 28px;
    margin-bottom: 10px;
}

.page-content p,
.page-content li {
    color: var(--text-2);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 14px;
}

.page-content ul,
.page-content ol {
    padding-left: 22px;
    margin: 0 0 18px;
}

.page-content li {
    margin-bottom: 8px;
}

.page-content a {
    color: var(--brand-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.page-content a:hover {
    color: var(--brand-hover);
}

.page-content strong {
    color: var(--text);
    font-weight: 600;
}

.page-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: .92rem;
}

.page-content th,
.page-content td {
    border: 1px solid var(--line);
    padding: 11px 14px;
    text-align: left;
    color: var(--text-2);
    vertical-align: top;
}

.page-content th {
    background: var(--wash);
    color: var(--text);
    font-weight: 600;
}

.page-content code {
    background: var(--wash);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: .9em;
}

.page-content~#footer,
.page-content+#footer {
    padding: 28px 0;
}

.page-content~#footer .footer-bottom {
    margin-top: 0;
}

/* ---------- Reveal ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.js .reveal.visible {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .principles {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 2px;
        padding: 10px var(--gutter) 18px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        min-height: 48px;
        padding: 0 12px;
        font-size: 1rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero .lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-store,
    .hero-meta {
        justify-content: center;
    }

    .hero-visual {
        max-width: 480px;
    }

    .hero-mascot {
        right: -6%;
        width: 36%;
    }

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

    .stat:nth-child(3) {
        border-left: 0;
    }

    .stat:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }

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

    .feature:nth-child(even) .feature-copy {
        order: 0;
    }

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

    .contact-inner {
        grid-template-columns: 1fr;
    }
}

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

    .hero-visual {
        grid-template-columns: .8fr 1.3fr .8fr;
    }

    .hero-mascot {
        right: -3%;
        bottom: -6%;
        width: 38%;
    }

    .mascot-bubble {
        max-width: 160px;
        font-size: .82rem;
        padding: 8px 11px;
    }

    .store-row {
        justify-content: center;
    }

    .stat {
        padding: 18px 16px;
    }

    .stat-sub {
        display: none;
    }

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

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

    .cta-copy img {
        width: 64px;
        height: 64px;
    }

    .cta-band .store-row {
        justify-content: flex-start;
    }

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

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

@media (max-width: 400px) {
    .badge img {
        height: 42px;
    }

    .badge-google img {
        height: 63px;
        margin: -10.5px -10.5px -10.5px 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .mascot-svg *,
    .hero-mascot.is-happy .m-body {
        animation: none !important;
    }
}
