/* ============================================================
   PetC — custom design system, no Bootstrap
   Editorial layout · brand-aligned colors · dark hero
   ============================================================ */

:root {
    --bg: #fef8f1;
    --bg-soft: #fbeedc;
    --ink: #16151e;
    --ink-2: #1f1e2a;
    --ink-soft: #4a4e69;
    --ink-muted: #8a8fa8;
    --accent: #ff7a1a;
    --accent-deep: #e8651e;
    --accent-warm: #ffb547;
    --accent-soft: #ffd9c0;
    --sage: #06a77d;
    --surface: #ffffff;
    --rule: rgba(22, 21, 30, 0.1);
    --radius-sm: 12px;
    --radius: 22px;
    --radius-lg: 36px;
    --shadow-sm: 0 6px 18px rgba(22, 21, 30, 0.06);
    --shadow: 0 22px 60px rgba(22, 21, 30, 0.12);
    --shadow-dark: 0 40px 80px rgba(0, 0, 0, 0.5);
    --max: 1280px;
    --space-3: 1.5rem;
    --space-4: 2.5rem;
    --space-5: 4rem;
    --space-6: 6rem;
    --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    position: relative;
}

/* ============================================================
   Typography
   ============================================================ */

.display, h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; }
.italic { font-style: italic; font-weight: 500; color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink-soft); max-width: 38rem; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent);
}
.eyebrow::before {
    content: '';
    width: 28px;
    height: 1.5px;
    background: currentColor;
}

/* ============================================================
   Top nav with brand-image chip
   ============================================================ */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding: 1.1rem 0;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* Phase 17 — when the zero-pets nudge banner is on screen, it sits as a
   fixed strip just under the nav (top:5rem; ~80px). Shift the document
   down by that strip's height so the hero/first section isn't covered. */
body.has-pet-nudge main {
    padding-top: 3.25rem;
}
.nav.scrolled {
    background: rgba(254, 248, 241, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0.7rem 0;
    box-shadow: 0 1px 0 var(--rule);
}
.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    background: var(--ink);
    padding: 0.55rem 1.1rem;
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(22, 21, 30, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.brand:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(22, 21, 30, 0.22); }
.brand-logo {
    height: 28px;
    width: auto;
    display: block;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}
.nav-links a {
    position: relative;
    display: inline-block;
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(-50%);
}
.btn-join {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--ink);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: transform 0.2s ease, background 0.2s ease;
}
.btn-join:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-join .arrow { transition: transform 0.25s ease; }
.btn-join:hover .arrow { transform: translateX(3px); }
.menu-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; position: relative;
}
.menu-toggle span {
    position: absolute; left: 10px;
    width: 24px; height: 2px;
    background: var(--ink);
    transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
.mobile-nav {
    position: fixed; inset: 0;
    background: var(--ink);
    color: var(--bg);
    z-index: 49;
    display: flex; flex-direction: column;
    padding: 1.1rem clamp(1.25rem, 6vw, 2rem) 2rem;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
    overflow-y: auto;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
/* Brand chip surfaced at the top-left anchors the overlay so the links
   don't float disconnected; the nav's animated hamburger-to-X (which sits
   above this overlay) remains the explicit close affordance. */
.mobile-nav-head {
    display: flex;
    align-items: center;
    /* Leave room on the right for the fixed .menu-toggle (the X). */
    padding-right: 3rem;
    margin-bottom: 1.5rem;
}
.mobile-nav-brand {
    display: inline-flex;
    align-items: center;
    background: rgba(254, 248, 241, 0.08);
    padding: 0.5rem 0.9rem;
    border-radius: 12px;
}
.mobile-nav-brand img { height: 26px; width: auto; display: block; }
/* Links stack from the top with a comfortable hit area and a hairline
   rule between them — reads as a tidy menu, not centered hero type. */
.mobile-nav > a,
.mobile-nav form {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--bg);
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid rgba(254, 248, 241, 0.1);
    opacity: 0;
    transform: translateY(16px);
}
.mobile-nav > a:hover { color: var(--accent-warm); }
.mobile-nav form button {
    background: none; border: none;
    font-family: inherit; font-size: inherit; font-weight: inherit;
    color: var(--accent-warm);
    cursor: pointer;
    padding: 0;
}
.mobile-nav.open > a,
.mobile-nav.open form { animation: mobNavIn 0.45s forwards; }
.mobile-nav.open > a:nth-of-type(1) { animation-delay: 0.08s; }
.mobile-nav.open > a:nth-of-type(2) { animation-delay: 0.14s; }
.mobile-nav.open > a:nth-of-type(3) { animation-delay: 0.2s; }
.mobile-nav.open > a:nth-of-type(4) { animation-delay: 0.26s; }
.mobile-nav.open > a:nth-of-type(5) { animation-delay: 0.32s; }
.mobile-nav.open > a:nth-of-type(6) { animation-delay: 0.38s; }
.mobile-nav.open > a:nth-of-type(7) { animation-delay: 0.44s; }
.mobile-nav.open > a:nth-of-type(8) { animation-delay: 0.5s; }
.mobile-nav.open > a:nth-of-type(9) { animation-delay: 0.56s; }
.mobile-nav.open form { animation-delay: 0.62s; }
@keyframes mobNavIn { to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   Hero — quiet, type-first, editorial
   .hero            → base
   .hero--full      → home page (two-column with brand image)
   ============================================================ */

.hero {
    position: relative;
    padding: 10rem 0 5rem;
    background: var(--bg);
    color: var(--ink);
    overflow: hidden;
}
.hero h1, .hero h2, .hero h3 { color: var(--ink); }
.hero .lead { color: var(--ink-soft); margin-top: 1.75rem; max-width: 36rem; }
.hero .eyebrow { color: var(--accent); }

.hero h1 .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-right: 0.22em;
}
.hero h1 .word > span {
    display: inline-block;
    transform: translateY(110%);
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2.5rem;
}

/* Trust strip below CTAs — small horizontal proof points */
.trust-strip {
    margin-top: 3.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--rule);
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    color: var(--ink-soft);
    font-size: 0.92rem;
}
.trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.trust-strip span::before {
    content: '';
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Full home hero — two-column with brand image card */
.hero--full {
    padding: 9rem 0 6rem;
}
.hero--full .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 5rem;
    align-items: center;
}
.hero-media { position: relative; }
.hero-frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 30px 60px rgba(22, 21, 30, 0.12), 0 0 0 1px var(--rule);
}
.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Hide three.js canvas — hero is type-first now */
#three-canvas { display: none; }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 3;
}
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    flex-wrap: wrap;
}
.hero-stats .stat .num {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    color: #ffffff;
}
.hero-stats .stat .label {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

/* Hero brand image — frame + glow + gentle float */
.hero-media {
    position: relative;
    z-index: 3;
}
.hero-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-dark), 0 0 0 1px rgba(255, 255, 255, 0.06);
    transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
    transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.hero-frame:hover { transform: perspective(1200px) rotateY(-3deg) rotateX(1deg) translateY(-6px); }
.hero-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 122, 26, 0.06), transparent 50%);
    pointer-events: none;
    border-radius: inherit;
}
.hero-image {
    width: 100%;
    height: auto;
    display: block;
}
.hero-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(closest-side, rgba(255, 245, 220, 0.55), transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

.floating-badge {
    position: absolute;
    background: var(--surface);
    color: var(--ink);
    border-radius: 999px;
    padding: 0.75rem 1.15rem;
    box-shadow: var(--shadow);
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 4;
}
.floating-badge .emoji { font-size: 1.1rem; }
.floating-badge.b1 { top: -1rem; right: -1rem; }
.floating-badge.b2 { bottom: 1.5rem; left: -1.5rem; color: var(--sage); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.7rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 0.83rem 1.55rem; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.hero-dark .btn-outline { color: var(--bg); border-color: rgba(254, 248, 241, 0.4); }
.hero-dark .btn-outline:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   Sections
   ============================================================ */

.section { padding: var(--space-6) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: var(--bg); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--bg); }
.section--dark .lead { color: rgba(254, 248, 241, 0.7); }

.section-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: end;
    margin-bottom: var(--space-5);
}
.section-head .meta { color: var(--ink-soft); }
.section-head .meta .num {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

/* ============================================================
   Reveal animation hooks (anime.js)
   ============================================================ */

.reveal { opacity: 0; transform: translateY(40px); }

/* ============================================================
   Values grid (editorial, asymmetric)
   ============================================================ */

.values {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}
.value-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2.2rem;
    position: relative;
    transition: transform 0.3s ease;
    border: 1px solid var(--rule);
}
.value-card { display: flex; flex-direction: column; }
.value-card:hover { transform: translateY(-6px); }
.value-card .vicon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100px;
    margin-bottom: 0.9rem;
    font-size: 2.75rem;
    line-height: 1;
}
.value-card .value-icon {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}
.value-card h3 { margin-bottom: 0.5rem; }
.value-card p { color: var(--ink-soft); }
.value-card .vnum {
    position: absolute; top: 1.4rem; right: 1.6rem;
    font-family: var(--font-display);
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 0.05em;
}
.values .v1 { grid-column: span 5; }
.values .v2 { grid-column: span 7; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.values .v2 h3 { color: var(--bg); }
.values .v2 p { color: rgba(254, 248, 241, 0.7); }
.values .v2 .vnum { color: var(--accent-warm); }
.values .v3 { grid-column: span 7; }
.values .v4 { grid-column: span 5; background: var(--accent); color: #fff; border-color: var(--accent); }
.values .v4 h3 { color: #fff; }
.values .v4 p { color: rgba(255, 255, 255, 0.9); }
.values .v4 .vnum { color: #fff; }

/* ============================================================
   Services list (editorial rows)
   ============================================================ */

.services-list { display: flex; flex-direction: column; }
.service-row {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem 1.75rem;
    border-top: 1px solid var(--rule);
    border-radius: var(--radius);
    color: var(--ink);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.service-row:last-child { border-bottom: 1px solid var(--rule); }
/* Whole row reads as one clickable surface: warm wash, slide, lift. */
.service-row:hover {
    background: var(--bg-soft);
    transform: translateX(10px);
    box-shadow: var(--shadow-sm);
}
.service-row:hover h3 { color: var(--accent); }
.service-row .sicon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 110px;
    font-size: 3rem;
}
.service-row .sicon img {
    display: block;
    width: auto;
    height: 110px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}
.service-row .scopy { min-width: 0; }
.service-row h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); transition: color 0.3s ease; }
.service-row .stagline { color: var(--ink-soft); font-size: 0.98rem; max-width: 44ch; margin-top: 0.45rem; }
/* Action cluster — the at-rest affordance that signals "click me". */
.service-row .saction {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
}
.service-row .scta {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent);
    transition: color 0.2s ease;
}
.service-row:hover .scta { color: var(--accent-deep); }
.service-row .splus {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.service-row:hover .splus { background: var(--accent); color: #fff; transform: translateX(5px); }
/* "Coming soon" row — deliberately inert, no click affordances. */
.service-row--soon { cursor: default; }
.service-row--soon:hover { background: transparent; transform: none; box-shadow: none; }
.service-row--soon h3, .service-row--soon:hover h3 { color: var(--ink-soft); }
.service-row .ssoon {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
    border: 1px dashed var(--ink-muted);
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    white-space: nowrap;
}

.future-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: var(--space-4);
}
.future-card {
    background: rgba(254, 248, 241, 0.06);
    border: 1px solid rgba(254, 248, 241, 0.12);
    border-radius: var(--radius);
    padding: 1.8rem 1.4rem;
    transition: background 0.25s ease, transform 0.25s ease;
}
.future-card:hover { background: rgba(254, 248, 241, 0.12); transform: translateY(-4px); }
.future-card .ficon { font-size: 1.8rem; margin-bottom: 0.7rem; }
.future-card h3 { color: var(--bg); font-size: 1.05rem; margin-bottom: 0.3rem; }
.future-card p { color: rgba(254, 248, 241, 0.6); font-size: 0.88rem; }

/* ============================================================
   Marquee
   ============================================================ */

.marquee {
    overflow: hidden;
    background: var(--accent);
    color: #fff;
    padding: 1.4rem 0;
}
.marquee-track {
    display: inline-flex;
    gap: 3rem;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}
.marquee-track span {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 500;
}
.marquee-track span::before {
    content: '✦';
    margin-right: 3rem;
    color: var(--accent-warm);
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================================
   Quote / pull
   ============================================================ */

.pull {
    text-align: center;
    max-width: 36ch;
    margin: 0 auto;
}
.pull blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.2;
    font-style: italic;
    font-weight: 500;
}
.pull blockquote::before { content: '\201C'; color: var(--accent); }
.pull blockquote::after { content: '\201D'; color: var(--accent); }
.pull .cite { display: block; margin-top: 1.5rem; font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); }

/* ============================================================
   Split layout (story + card)
   ============================================================ */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.split-text h2 { margin-bottom: 1.5rem; }
.split-text p { color: var(--ink-soft); margin-bottom: 1rem; max-width: 36rem; }
.split-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--rule);
}
.split-card h3 { margin-bottom: 1rem; }
.split-card .check-list { list-style: none; }
.split-card .check-list li {
    padding: 0.6rem 0 0.6rem 2rem;
    position: relative;
    border-bottom: 1px solid var(--rule);
    color: var(--ink-soft);
}
.split-card .check-list li:last-child { border-bottom: none; }
.split-card .check-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 22px; height: 22px;
    background: var(--accent);
    border-radius: 50%;
    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='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* ============================================================
   Polaroid — for About story photo
   ============================================================ */

.polaroid {
    background: var(--surface);
    padding: 1rem 1rem 2.5rem;
    border-radius: 6px;
    box-shadow: var(--shadow);
    transform: rotate(-3deg);
    max-width: 460px;
    margin: 0 auto;
    position: relative;
    transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.polaroid:hover { transform: rotate(0deg) translateY(-6px); }
.polaroid img { width: 100%; height: auto; border-radius: 2px; }
.polaroid .caption {
    text-align: center;
    margin-top: 1.1rem;
    font-family: var(--font-display);
    font-style: italic;
    color: var(--ink-soft);
    font-size: 0.95rem;
}
.polaroid::after {
    content: '🐾';
    position: absolute;
    top: -1.2rem;
    right: 1.5rem;
    background: var(--accent);
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    font-size: 1.2rem;
    transform: rotate(8deg);
}

/* ============================================================
   Community perks grid
   ============================================================ */

.perks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.perk {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--rule);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.perk:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.perk .picon {
    width: 72px; height: 72px;
    flex-shrink: 0;
    border-radius: 18px;
    background: var(--accent-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.perk .picon img { width: 56px; height: 56px; object-fit: contain; }
.perk-text { flex: 1; }
.perk h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.perk p { color: var(--ink-soft); font-size: 0.95rem; }

/* ============================================================
   CTA block
   ============================================================ */

.cta {
    background: var(--ink);
    color: var(--bg);
    border-radius: var(--radius-lg);
    padding: clamp(3rem, 6vw, 5rem);
    margin: var(--space-6) 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.cta::before {
    content: '🐾';
    position: absolute;
    font-size: 18rem;
    top: -3rem; right: -3rem;
    opacity: 0.06;
    transform: rotate(-15deg);
}
.cta h2 { color: var(--bg); margin-bottom: 1rem; }
.cta p { color: rgba(254, 248, 241, 0.7); max-width: 32rem; margin: 0 auto 2rem; }

/* ============================================================
   Signup form
   ============================================================ */

.form-shell {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
    margin-top: var(--space-5);
}
.form-side h2 { margin-bottom: 1rem; }
.form-side p { color: var(--ink-soft); margin-bottom: 1.5rem; }
.form-side .form-list { list-style: none; margin-top: 1.5rem; }
.form-side .form-list li {
    display: flex;
    gap: 0.75rem;
    padding: 0.7rem 0;
    color: var(--ink-soft);
}
.form-side .form-list li::before { content: '🐾'; }
.form-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: clamp(1.75rem, 3vw, 2.75rem);
    box-shadow: var(--shadow);
    border: 1px solid var(--rule);
}
.field { margin-bottom: 1.25rem; }
.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.field.invalid input, .field.invalid select, .field.invalid textarea {
    border-color: #e63946;
    background: #fff4f4;
}
.field-error { margin-top: 0.4rem; font-size: 0.83rem; color: #d62828; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field-row .field { margin-bottom: 0; }
.field-row + .field { margin-top: 1.25rem; }
.alert {
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    background: #ffeaea;
    color: #d62828;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
}
.btn-submit { width: 100%; justify-content: center; margin-top: 0.5rem; }
.form-note { text-align: center; margin-top: 1rem; font-size: 0.83rem; color: var(--ink-muted); }

/* Success */
.success-screen {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.success-card {
    text-align: center;
    max-width: 38rem;
    position: relative;
    z-index: 2;
}
.success-card .success-logo {
    height: 60px;
    width: auto;
    background: var(--ink);
    padding: 0.7rem 1.4rem;
    border-radius: 16px;
    margin: 0 auto 1.5rem;
    display: inline-block;
}
.success-card .emoji-burst {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}
.success-card h1 { margin-bottom: 1rem; }
.success-card p { color: var(--ink-soft); margin-bottom: 2rem; }
.confetti-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* ============================================================
   Footer with logo
   ============================================================ */

footer.site-footer {
    background: var(--ink);
    color: var(--bg);
    padding: var(--space-5) 0 var(--space-3);
    margin-top: var(--space-5);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(254, 248, 241, 0.1);
}
.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 1.25rem;
    display: block;
}
.footer-grid p { color: rgba(254, 248, 241, 0.65); max-width: 28rem; }
.footer-grid h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(254, 248, 241, 0.5);
    margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; }
.footer-grid ul a { color: var(--bg); padding: 0.4rem 0; display: block; opacity: 0.85; }
.footer-grid ul a:hover { color: var(--accent); opacity: 1; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    color: rgba(254, 248, 241, 0.5);
    font-size: 0.85rem;
}

/* ============================================================
   404
   ============================================================ */

.notfound {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(160deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.notfound .code {
    font-family: var(--font-display);
    font-size: clamp(8rem, 18vw, 14rem);
    font-weight: 700;
    line-height: 0.9;
    color: var(--ink);
    letter-spacing: -0.04em;
}
.notfound .code .paw { color: var(--accent); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
    .hero--full .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-frame { max-width: 540px; margin: 0 auto; }
    .trust-strip { gap: 1.5rem; }
    .values { grid-template-columns: 1fr; }
    .values .v1, .values .v2, .values .v3, .values .v4 { grid-column: span 1; }
    .value-card .vicon { height: 90px; margin-bottom: 0.8rem; }
    .future-grid { grid-template-columns: repeat(2, 1fr); }
    .perks { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1fr; gap: 2rem; }
    .form-shell { grid-template-columns: 1fr; }
    .section-head { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .floating-badge.b1 { top: -1rem; right: 0.5rem; }
    .floating-badge.b2 { left: 0.5rem; bottom: 0.5rem; }
}
@media (max-width: 700px) {
    .nav-links, .btn-join { display: none; }
    .menu-toggle { display: block; }
    .hero { padding: 7rem 0 3rem; }
    .hero--full { padding: 7rem 0 3rem; min-height: auto; }
    .value-card { padding: 1.8rem; }
    .value-card .vicon { height: 76px; margin-bottom: 0.7rem; font-size: 2.25rem; }
    .value-card .vnum { top: 1.1rem; right: 1.2rem; }
    .service-row { grid-template-columns: 88px 1fr; gap: 0.5rem 1.25rem; padding: 1.5rem 1rem; }
    .service-row:hover { transform: translateX(4px); }
    .service-row .sicon { height: 72px; font-size: 2.4rem; }
    .service-row .sicon img { height: 72px; }
    .service-row .saction { grid-column: 1 / -1; justify-content: flex-start; margin-top: 0.5rem; }
    .future-grid { grid-template-columns: 1fr; }
    .perks { grid-template-columns: 1fr; }
    .perk { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem; }
    .perk .picon { margin-bottom: 0; width: 80px; height: 80px; }
    .perk .picon img { width: 64px; height: 64px; }
    .field-row { grid-template-columns: 1fr; }
    .hero-stats { gap: 1.25rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    .brand-logo { height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .marquee-track { animation: none; }
    .hero-frame { transform: none; }
}

/* ============================================================
   Auth — login / register / dropdown
   ============================================================ */

[x-cloak] { display: none !important; }

.auth-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}
.nav-login {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}
.nav-login:hover {
    color: var(--ink);
    background: rgba(22, 21, 30, 0.05);
}

.user-menu {
    position: relative;
    display: inline-block;
}
.user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--ink);
    color: #fff;
    padding: 0.45rem 0.9rem 0.45rem 0.45rem;
    border-radius: 999px;
    border: none;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.user-menu-trigger:hover { background: var(--accent); transform: translateY(-1px); }
.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.user-menu-trigger:hover .user-avatar { background: var(--ink); color: var(--accent); }
.user-name { line-height: 1; }
.user-chev {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}
.user-chev.open { transform: rotate(180deg); }

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    min-width: 220px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    border: 1px solid var(--rule);
    overflow: hidden;
    z-index: 60;
}
.user-menu-header {
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid var(--rule);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.user-menu-header strong { font-size: 0.92rem; color: var(--ink); }
.user-menu-header span { font-size: 0.78rem; color: var(--ink-muted); }
.user-menu-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.7rem 1.1rem;
    font-size: 0.9rem;
    color: var(--ink);
    background: none;
    border: none;
    border-top: 1px solid var(--rule);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease;
}
.user-menu-link:first-of-type { border-top: none; }
.user-menu-link:hover { background: var(--bg-soft); color: var(--accent); }
.user-menu-logout { color: var(--accent-deep); font-weight: 600; }

/* Google button (used on login/register) */
.btn-google:hover {
    border-color: var(--accent) !important;
    background: var(--bg) !important;
}

@media (max-width: 700px) {
    .auth-actions, .user-menu { display: none; }
}

/* ============================================================
   Google Places Autocomplete (.pac-*) — themed to match PetC
   ============================================================
   The dropdown is appended to <body> by the Google Maps JS SDK
   with class .pac-container. Google sets several styles inline
   (border, box-shadow, font), so `!important` is required.
   Mirrors the input look from .field input: cream bg, --rule
   border, --radius-sm corners, accent-orange focus colour.
   ============================================================ */

.pac-container {
    margin-top: 6px;
    background: var(--bg) !important;
    border: 1px solid var(--rule) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: 0 12px 32px rgba(22, 21, 30, 0.12) !important;
    font-family: var(--font-body) !important;
    padding: 4px 0 0 !important;
    overflow: hidden;
}

.pac-item {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--rule);
    border-bottom: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.35;
    transition: background 0.15s ease, color 0.15s ease;
}
.pac-item:first-of-type { border-top: 0; }

.pac-item:hover,
.pac-item-selected,
.pac-item-selected:hover {
    background: var(--bg-soft);
    color: var(--accent-deep);
}

/* The non-matched portion of the primary line. */
.pac-item-query {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ink);
    padding-right: 0.15rem;
}

/* The bolded matching characters — accent orange so they pop. */
.pac-matched {
    font-weight: 700;
    color: var(--accent);
}

/* Hide Google's default sprite pin; we draw our own dot in --accent. */
.pac-icon,
.pac-icon-marker {
    background-image: none !important;
    width: 18px;
    height: 18px;
    margin-right: 0.6rem;
    position: relative;
    flex: 0 0 auto;
}
.pac-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.18);
    transform: translate(-50%, -50%);
}
.pac-item:hover .pac-icon::after,
.pac-item-selected .pac-icon::after {
    background: var(--accent-deep);
    box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.28);
}

/* Give the "powered by Google" footer some breathing room.
   Attribution is required by Google ToS — never hide it. */
/* Attribution required by Google ToS — kept visible but muted so it
   doesn't dominate. transform-origin pins it to the right edge so
   scaling doesn't shift its position. */
.pac-logo:after {
    margin: 0.15rem 0.85rem 0.3rem;
    background-position: right center;
    opacity: 0.38;
    transform: scale(0.78);
    transform-origin: right center;
}

/* ============================================================
   Form controls — checkbox, select, number — PetC themed
   ============================================================
   Replaces raw browser-default appearance for these controls
   site-wide so booking forms (distance, taxi, catsitting) and
   admin filters share one warm cream/orange look. Uses design
   tokens defined at :root.
   ============================================================ */

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 0;
    padding: 0;
    border: 2px solid var(--rule);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    vertical-align: middle;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
input[type="checkbox"]:hover { border-color: var(--accent); }
input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}
input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
input[type="checkbox"]:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.22);
}
input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

select,
.field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23ff7a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px 8px;
    padding-right: 2.5rem;
    cursor: pointer;
}
.field select:focus {
    background-color: var(--surface);
}
select::-ms-expand { display: none; }
select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    border: 1.5px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--ink);
    font-family: inherit;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
input[type="number"]:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.18);
}
input[type="number"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================
   Responsive layout utilities (mobile overhaul, Phase 19)
   Inline grid-template-columns can't be collapsed by media
   queries, so pages swap their inline grids for these classes.
   ============================================================ */
.r-cards   { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px,1fr)); gap:1.5rem; }
.r-stats   { display:grid; grid-template-columns:repeat(auto-fit, minmax(140px,1fr)); gap:1rem; }
.r-split   { display:grid; grid-template-columns:1.4fr 1fr; gap:2.5rem; align-items:start; }
.r-2col    { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; }
@media (max-width:860px){ .r-split { grid-template-columns:1fr; gap:2rem; } }
@media (max-width:700px){ .r-2col  { grid-template-columns:1fr; } }
/* Grid/flex items default to min-width:auto, refusing to shrink below
   their content's min-content — a wide input or long heading then blows
   the column (and the whole page) past the viewport. Let these tracks
   and their children shrink, and keep form controls inside the column. */
.r-cards, .r-stats, .r-split, .r-2col { min-width:0; }
.r-cards > *, .r-stats > *, .r-split > *, .r-2col > * { min-width:0; }
.r-2col input, .r-2col select, .r-2col textarea { max-width:100%; }
.r-tablewrap         { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.r-tablewrap > table { min-width:560px; }
.hero--page { padding:7rem 0 0; }
@media (max-width:700px){ .hero--page { padding:5.5rem 0 0; } }

/* Mobile nav close (X) must be visible on the dark overlay */
@media (max-width:700px){ .menu-toggle.open span { background: var(--bg); } }

