/* ================================================================
   CODEX · styles.css — Apple-level aesthetics
   ================================================================ */

/* ─── Variables ─── */
:root {
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display',
        'Inter', 'Segoe UI', sans-serif;

    --primary: #3d0022;
    --primary-mid: #6b1038;
    --primary-glow: rgba(61, 0, 34, 0.10);
    --accent: #c2476e;
    --accent-soft: rgba(194, 71, 110, 0.15);

    --bg: #fafafa;
    --bg-2: #f5f5f7;
    --bg-card: #ffffff;
    --hdr-bg: rgba(250, 250, 250, 0.88);

    --ink: #1d1d1f;
    --ink-2: #6e6e73;
    --ink-3: #aeaeb2;

    --line: #d2d2d7;
    --line-2: #e8e8ed;

    --sh-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
    --sh-md: 0 6px 24px rgba(0, 0, 0, 0.08);
    --sh-lg: 0 20px 60px rgba(0, 0, 0, 0.12);

    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 24px;

    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
    --primary: #e0709a;
    --primary-mid: #c2476e;
    --primary-glow: rgba(224, 112, 154, 0.12);
    --accent: #f090b0;
    --accent-soft: rgba(240, 144, 176, 0.12);

    --bg: #050505;
    --bg-2: #111113;
    --bg-card: #1c1c1e;
    --hdr-bg: rgba(5, 5, 5, 0.90);

    --ink: #f5f5f7;
    --ink-2: #8e8e93;
    --ink-3: #48484a;

    --line: #3a3a3c;
    --line-2: #2c2c2e;

    --sh-sm: 0 1px 4px rgba(0, 0, 0, 0.5);
    --sh-md: 0 6px 24px rgba(0, 0, 0, 0.6);
    --sh-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* ─── Reset ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background .4s ease, color .4s ease;
}

/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUpSm {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes lineGrow {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: .5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@keyframes overlayIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes overlayOut {
    from {
        opacity: 1
    }

    to {
        opacity: 0
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
}

@keyframes shimmerSlide {
    from {
        transform: translateX(-100%) skewX(-12deg);
    }

    to {
        transform: translateX(200%) skewX(-12deg);
    }
}

@keyframes dotFloat {

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

    33% {
        transform: translateY(-18px) translateX(8px);
    }

    66% {
        transform: translateY(10px) translateX(-6px);
    }
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ─── Scroll-reveal ─── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s cubic-bezier(0.22, 1, 0.36, 1), transform .75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: .07s;
}

.reveal-delay-2 {
    transition-delay: .14s;
}

.reveal-delay-3 {
    transition-delay: .21s;
}

.reveal-delay-4 {
    transition-delay: .28s;
}

/* ================================================================
   HEADER
   ================================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--hdr-bg);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid var(--line-2);
    transition: box-shadow .3s ease, border-color .3s ease, background .4s ease;
}

.header.scrolled {
    box-shadow: var(--sh-sm);
    border-bottom-color: var(--line);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-image {
    height: 34px;
    width: auto;
    transition: opacity .2s ease, transform .3s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo:hover .logo-image {
    opacity: .75;
    transform: scale(1.04);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0;
}

.nav-menu a {
    display: block;
    padding: .3rem .8rem;
    color: var(--ink-2);
    font-size: .84rem;
    font-weight: 400;
    text-decoration: none;
    border-radius: 7px;
    transition: color .15s, background .15s;
    letter-spacing: .01em;
}

.nav-menu a:hover {
    color: var(--ink);
    background: var(--bg-2);
}

.nav-cta-link {
    background: var(--primary) !important;
    color: white !important;
    font-weight: 500 !important;
    border-radius: 99px !important;
    padding: .32rem 1rem !important;
    margin-left: .5rem;
    transition: opacity .2s, transform .2s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.nav-cta-link:hover {
    opacity: .85 !important;
    background: var(--primary) !important;
    transform: translateY(-1px) !important;
}

.theme-toggle {
    width: 34px;
    height: 34px;
    border: none;
    background: none;
    border-radius: 50%;
    color: var(--ink-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    flex-shrink: 0;
    transition: background .15s, color .15s, transform .3s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-toggle:hover {
    background: var(--bg-2);
    color: var(--ink);
    transform: rotate(20deg);
}

.theme-icon {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

/* ================================================================
   HERO — cinematic, scroll-layered
   ================================================================ */
.hero {
    position: relative;
    background: var(--primary);
    color: white;
    padding: 0;
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    align-items: center;
}

/* Deep layered background */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% -10%, rgba(194, 71, 110, .35) 0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 15% 70%, rgba(107, 16, 56, .5) 0%, transparent 60%),
        radial-gradient(ellipse 80% 70% at 85% 80%, rgba(30, 0, 15, .7) 0%, transparent 60%),
        linear-gradient(160deg, #3d0022 0%, #1a000d 60%, #0d0009 100%);
}

/* Animated ambient orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    will-change: transform, opacity;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    top: -10%;
    left: -8%;
    background: radial-gradient(circle, rgba(194, 71, 110, .18) 0%, transparent 70%);
    animation: glowPulse 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 500px;
    height: 500px;
    bottom: -15%;
    right: -5%;
    background: radial-gradient(circle, rgba(107, 16, 56, .25) 0%, transparent 70%);
    animation: glowPulse 11s ease-in-out infinite 2s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    top: 40%;
    left: 60%;
    background: radial-gradient(circle, rgba(194, 71, 110, .12) 0%, transparent 70%);
    animation: dotFloat 14s ease-in-out infinite 1s;
}

/* Floating geometric ring */
.hero-ring {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .06);
    z-index: 1;
    animation: ringRotate 40s linear infinite;
}

.hero-ring::before {
    content: '';
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .04);
    animation: ringRotate 30s linear infinite reverse;
}

.hero-ring::after {
    content: '';
    position: absolute;
    inset: 70px;
    border-radius: 50%;
    border: 1px dashed rgba(194, 71, 110, .15);
}

/* Dot grid texture */
.hero-dots {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    margin: 0 auto;
    padding: 8rem 2rem;
    width: 100%;
}

.hero-content {
    max-width: 640px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.75rem;
    opacity: 0;
    animation: fadeUpSm .6s cubic-bezier(0.22, 1, 0.36, 1) .2s forwards;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--accent);
    opacity: .7;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.04em;
    color: white;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp .8s cubic-bezier(0.22, 1, 0.36, 1) .35s forwards;
}

/* Gradient text for accent words */
.hero h1 em {
    font-style: normal;
    background: linear-gradient(130deg, #ffb3cd 0%, #ff7baa 40%, #ffffff 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .6);
    max-width: 480px;
    margin-bottom: 2.5rem;
    font-weight: 400;
    opacity: 0;
    animation: fadeUp .8s cubic-bezier(0.22, 1, 0.36, 1) .5s forwards;
}

.hero-buttons {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    align-items: center;
    opacity: 0;
    animation: fadeUp .8s cubic-bezier(0.22, 1, 0.36, 1) .65s forwards;
}

/* Stats strip */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    opacity: 0;
    animation: fadeUp .8s cubic-bezier(0.22, 1, 0.36, 1) .85s forwards;
    flex-wrap: wrap;
}

.hero-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -.03em;
    color: white;
    line-height: 1;
    margin-bottom: .2rem;
}

.hero-stat-label {
    font-size: .78rem;
    color: rgba(255, 255, 255, .45);
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ─── Buttons ─── */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .72rem 1.6rem;
    border-radius: 99px;
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .25s ease, opacity .2s;
}

/* shimmer sweep on hover */
.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
    opacity: 0;
    transition: opacity .2s;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
    opacity: 1;
    animation: shimmerSlide .5s ease forwards;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
}

.btn-secondary {
    background: rgba(255, 255, 255, .08);
    color: white;
    border: 1px solid rgba(255, 255, 255, .18);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .14);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

/* ================================================================
   SECTIONS
   ================================================================ */
.section {
    padding: 7rem 2rem;
    position: relative;
}

.section-alt {
    background: var(--bg-2);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: .85rem;
    opacity: .85;
}

.section-header h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.08;
    color: var(--ink);
    margin-bottom: .65rem;
}

.section-header p {
    font-size: 1.02rem;
    color: var(--ink-2);
    line-height: 1.65;
    max-width: 440px;
}

/* ================================================================
   SERVICES — glass morphism cards
   ================================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    padding: 2.5rem 2.25rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    outline: none;
    transition:
        border-color .3s ease,
        box-shadow .3s ease,
        transform .4s cubic-bezier(0.34, 1.56, 0.64, 1),
        background .3s ease;
}

/* Glowing top border revealed on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    opacity: 0;
    transition: opacity .4s ease;
}

/* Subtle glow behind card */
.service-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--accent-soft) 0%, transparent 70%);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

.service-card:hover,
.service-card.active {
    border-color: var(--line);
    box-shadow: var(--sh-md), 0 0 0 1px var(--primary-glow);
    transform: translateY(-6px);
}

.service-card:hover::before,
.service-card.active::before {
    opacity: 1;
}

.service-card:hover::after,
.service-card.active::after {
    opacity: 1;
}

.service-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 1.5rem;
    background: var(--primary-glow);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s ease, transform .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-icon,
.service-card.active .service-icon {
    background: var(--primary);
    transform: scale(1.1) rotate(-4deg);
}

.service-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary);
    transition: stroke .3s;
}

.service-card:hover .service-icon svg,
.service-card.active .service-icon svg {
    stroke: white;
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .5rem;
    letter-spacing: -.01em;
}

.service-card>p {
    font-size: .88rem;
    color: var(--ink-2);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
}

.service-list li {
    font-size: .83rem;
    color: var(--ink-2);
    padding: .32rem 0 .32rem 1.1rem;
    position: relative;
    border-top: 1px solid var(--line-2);
    transition: color .2s, padding-left .2s;
}

.service-list li:first-child {
    border-top: none;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    opacity: .5;
    transition: opacity .2s, transform .2s;
}

.service-card:hover .service-list li,
.service-card.active .service-list li {
    color: var(--ink);
}

.service-card:hover .service-list li::before,
.service-card.active .service-list li::before {
    opacity: 1;
    transform: translateY(-50%) scale(1.3);
}

/* ================================================================
   PRODUCTS
   ================================================================ */
.products-filter {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: .36rem 1rem;
    border-radius: 99px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink-2);
    font-size: .81rem;
    font-weight: 400;
    cursor: pointer;
    transition: all .2s ease;
    letter-spacing: .01em;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.25rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition:
        border-color .3s ease,
        box-shadow .3s ease,
        transform .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover {
    border-color: var(--line);
    box-shadow: var(--sh-md);
    transform: translateY(-5px);
}

.product-card.hidden {
    display: none;
}

/* Accent strip top */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card-header {
    padding: 1.75rem 1.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.product-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .3s, transform .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .product-icon {
    background: var(--primary);
    transform: scale(1.1) rotate(-5deg);
}

.product-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
    transition: stroke .3s;
}

.product-card:hover .product-icon svg {
    stroke: white;
}

.product-tag {
    margin-left: auto;
    flex-shrink: 0;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.product-info h3 {
    font-size: .98rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .2rem;
    letter-spacing: -.01em;
}

.product-info p {
    font-size: .82rem;
    color: var(--ink-2);
    line-height: 1.45;
}

.product-card-body {
    padding: 1.25rem 1.75rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-features {
    list-style: none;
}

.product-features li {
    font-size: .83rem;
    color: var(--ink-2);
    padding: .32rem 0 .32rem 1rem;
    position: relative;
    border-top: 1px solid var(--line-2);
    transition: color .15s, padding-left .2s;
}

.product-features li:first-child {
    border-top: none;
}

.product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--primary);
    opacity: .45;
    transition: opacity .2s;
}

.product-card:hover .product-features li {
    color: var(--ink);
}

.product-card:hover .product-features li::before {
    opacity: 1;
}

.product-divider {
    height: 1px;
    background: var(--line-2);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-industry {
    font-size: .74rem;
    color: var(--primary);
    font-weight: 500;
}

.product-cta {
    font-size: .8rem;
    color: var(--ink-3);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: .25rem;
    transition: color .2s, gap .2s;
}

.product-card:hover .product-cta {
    color: var(--primary);
    gap: .5rem;
}

.product-cta-arrow {
    display: inline-block;
    transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .product-cta-arrow {
    transform: translateX(3px);
}

/* ================================================================
   ABOUT
   ================================================================ */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    padding: 2.75rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s, transform .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-card::before {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--primary-glow);
    transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1), opacity .4s;
    opacity: .5;
}

.about-card:hover {
    border-color: var(--line);
    box-shadow: var(--sh-md);
    transform: translateY(-4px);
}

.about-card:hover::before {
    transform: scale(1.4);
    opacity: 1;
}

.about-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 1.5rem;
}

.about-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary);
}

.about-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .75rem;
    letter-spacing: -.015em;
}

.about-card p {
    font-size: .92rem;
    color: var(--ink-2);
    line-height: 1.75;
}

/* ================================================================
   VALUES
   ================================================================ */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    padding: 2rem 1.75rem;
    cursor: pointer;
    outline: none;
    position: relative;
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s, transform .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animated glow spot */
.value-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-glow);
    transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1), opacity .3s;
    opacity: 0;
}

.value-card:hover,
.value-card.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary-glow), var(--sh-md);
    transform: translateY(-5px);
}

.value-card:hover::after,
.value-card.active::after {
    opacity: 1;
    transform: scale(1.5);
}

.value-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-card:hover .value-icon {
    transform: scale(1.15) rotate(-5deg);
}

.value-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary);
}

.value-card h3 {
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .5rem;
    letter-spacing: -.01em;
    position: relative;
    z-index: 1;
}

.value-card p {
    font-size: .84rem;
    color: var(--ink-2);
    line-height: 1.65;
    position: relative;
    z-index: 1;
    transition: color .2s;
}

.value-card:hover p,
.value-card.active p {
    color: var(--ink);
}

/* Active accent left bar */
.value-card.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 3px 0 0 3px;
}

/* ================================================================
   CONTACT
   ================================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    transition: border-color .3s, box-shadow .3s, transform .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-card:hover {
    border-color: var(--line);
    box-shadow: var(--sh-md);
    transform: translateY(-4px);
}

.contact-icon {
    width: 32px;
    height: 32px;
    transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-card:hover .contact-icon {
    transform: scale(1.15);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary);
}

.contact-card h4 {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: .2rem;
}

.contact-card p {
    font-size: .84rem;
    color: var(--ink-2);
    line-height: 1.6;
}

.contact-card-link {
    text-decoration: none;
    cursor: pointer;
}

.contact-map-hint {
    font-size: .78rem;
    font-weight: 500;
    color: var(--primary);
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .25s, transform .25s;
    margin-top: .1rem;
}

.contact-card-link:hover .contact-map-hint {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--line-2);
    padding: 2.5rem 2rem;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: .02em;
    line-height: 1;
}

.logo-tagline {
    font-size: .72rem;
    color: var(--ink-3);
    line-height: 1.4;
}

.footer p {
    font-size: .8rem;
    color: var(--ink-3);
}

/* ================================================================
   SERVICE MODAL
   ================================================================ */
.service-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
}

.service-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
    animation: overlayIn .25s ease forwards;
}

.service-modal-overlay.closing {
    animation: overlayOut .22s ease forwards;
    pointer-events: none;
}

.service-modal {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    max-width: 680px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--sh-lg);
    opacity: 0;
    transform: translateY(40px) scale(0.96);
}

.service-modal::-webkit-scrollbar {
    width: 4px;
}

.service-modal::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 4px;
}

.service-modal-overlay.active .service-modal {
    animation: modalIn .45s cubic-bezier(0.22, 1, 0.36, 1) .04s forwards;
}

.service-modal-overlay.closing .service-modal {
    animation: modalOut .22s ease forwards;
}

.service-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-2);
    border-radius: 50%;
    color: var(--ink-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    z-index: 10;
    transition: background .15s, transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-modal-close:hover {
    background: var(--line);
    transform: rotate(90deg) scale(1.1);
}

.service-modal-close svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.service-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2.25rem 2.25rem 0;
}

.service-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--r-sm);
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-modal-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--primary);
}

.service-modal-title-group h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .2rem;
    letter-spacing: -.02em;
}

.service-modal-subtitle {
    font-size: .87rem;
    color: var(--ink-2);
}

.service-modal-body {
    padding: 1.75rem 2.25rem;
}

.service-modal-description {
    font-size: .92rem;
    color: var(--ink-2);
    line-height: 1.75;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--line-2);
}

.service-modal-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.service-modal-column h4 {
    font-size: .7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1rem;
}

.service-modal-features,
.service-modal-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.service-modal-features li,
.service-modal-benefits li {
    font-size: .86rem;
    color: var(--ink-2);
    padding: .38rem 0 .38rem 1.2rem;
    position: relative;
    border-top: 1px solid var(--line-2);
    line-height: 1.5;
    transition: color .15s, padding-left .2s;
}

.service-modal-features li:first-child,
.service-modal-benefits li:first-child {
    border-top: none;
}

.service-modal-features li:hover,
.service-modal-benefits li:hover {
    color: var(--ink);
    padding-left: 1.35rem;
}

.service-modal-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
}

.service-modal-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .8;
}

.service-modal-footer {
    padding: 0 2.25rem 2.25rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .75rem;
}

.service-modal-cta {
    background: var(--primary) !important;
    color: white !important;
    padding: .68rem 1.5rem;
    border-radius: 99px;
    font-size: .87rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: opacity .2s, transform .25s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    display: inline-block;
}

.service-modal-cta:hover {
    opacity: .88;
    transform: translateY(-2px) scale(1.02);
}

.btn-secondary-outline {
    background: transparent;
    color: var(--ink-2);
    padding: .68rem 1.25rem;
    border-radius: 99px;
    font-size: .87rem;
    font-weight: 400;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: border-color .2s, color .2s, transform .25s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width:1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .hero {
        min-height: auto;
    }

    .hero-ring {
        display: none;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .section {
        padding: 4.5rem 1.5rem;
    }

    .about-grid,
    .values-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: .75rem;
    }

    .service-modal-overlay {
        padding: .75rem;
        align-items: flex-end;
    }

    .service-modal {
        border-radius: var(--r-lg) var(--r-lg) 0 0;
        max-height: 92vh;
    }

    .service-modal-header {
        padding: 1.75rem 1.5rem 0;
    }

    .service-modal-body {
        padding: 1.5rem;
    }

    .service-modal-columns {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .service-modal-footer {
        padding: 0 1.5rem 1.75rem;
        flex-direction: column;
    }

    .service-modal-cta,
    .btn-secondary-outline {
        width: 100%;
        text-align: center;
    }

    .hero-stats {
        gap: 1.5rem;
    }
}

/* ================================================================
   CONTACT — enlaces y botón interactivo
   ================================================================ */
.contact-card-link,
.contact-card-btn {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: left;
    background: none;
    border: 1px solid var(--line-2);
    width: 100%;
    font-family: inherit;
    cursor: pointer;
}

.contact-card-btn {
    border-radius: var(--r-md);
    padding: 2rem;
}

.contact-map-hint {
    display: inline-block;
    margin-top: .75rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: .02em;
    transition: gap .2s;
}

.contact-card-link:hover .contact-map-hint,
.contact-card-btn:hover .contact-map-hint {
    letter-spacing: .06em;
}

/* ================================================================
   SCHEDULE MODAL — calendario interactivo
   ================================================================ */
.schedule-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: overlayIn .25s ease;
}

.schedule-overlay.hidden {
    display: none;
}

.schedule-modal {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 22px;
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 28px 80px rgba(0,0,0,.22);
    animation: modalIn .35s cubic-bezier(0.22,1,0.36,1) both;
    padding: 2rem;
}

.schedule-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--bg-2);
    color: var(--ink-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, transform .25s cubic-bezier(0.34,1.56,0.64,1);
}

.schedule-close:hover {
    background: var(--line);
    transform: rotate(90deg) scale(1.1);
}

/* Header */
.schedule-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-right: 2.5rem; /* space for ×  button */
}

.schedule-header-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.schedule-header-icon svg {
    stroke: var(--primary);
}

.schedule-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.01em;
}

.schedule-header p {
    font-size: .8rem;
    color: var(--ink-2);
    margin-top: .15rem;
}

/* Month nav */
.schedule-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: .5rem 0;
}

.schedule-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--line-2);
    background: var(--bg-card);
    color: var(--ink-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, color .15s, transform .2s cubic-bezier(0.34,1.56,0.64,1);
}

.schedule-nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.08);
}

.schedule-month-label {
    font-size: .92rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.01em;
    flex: 1;
    text-align: center;
}

/* Calendar */
.schedule-cal {
    margin-bottom: 1.25rem;
}

.schedule-cal-head {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: .4rem;
}

.schedule-cal-head span {
    font-size: .68rem;
    font-weight: 700;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .2rem 0;
}

.schedule-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.cal-cell {
    aspect-ratio: 1;
    min-height: 32px;      /* prevents collapse on very small screens */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: .83rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, color .15s, transform .18s cubic-bezier(0.34,1.56,0.64,1);
    user-select: none;
    position: relative;
    line-height: 1;
}

.cal-cell.empty {
    pointer-events: none;
}

.cal-cell.workday {
    color: var(--ink);
    background: transparent;
}

.cal-cell.workday:hover {
    background: var(--primary-glow);
    color: var(--primary);
    transform: scale(1.1);
}

.cal-cell.weekend {
    color: var(--ink-3);
    background: transparent;
}

.cal-cell.weekend:hover {
    background: var(--bg-2);
    transform: scale(1.05);
}

.cal-cell.past {
    opacity: .38;
}

.cal-cell.today {
    background: var(--primary);
    color: white !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(61,0,34,.25);
}

.cal-cell.today:hover {
    background: var(--primary-mid);
    transform: scale(1.1);
}

.cal-cell.selected {
    background: var(--primary) !important;
    color: white !important;
    font-weight: 700;
    transform: scale(1.12);
    box-shadow: 0 4px 16px rgba(0,0,0,.25), 0 0 0 2px var(--primary);
    outline: 2px solid rgba(255,255,255,.3);
    outline-offset: -2px;
}

/* ── Dark mode: calendar color overrides ── */
[data-theme="dark"] .cal-cell.workday {
    color: #e8e8ed;                     /* brighter than --ink for legibility */
}

[data-theme="dark"] .cal-cell.workday:hover {
    background: rgba(224, 112, 154, .18);
    color: #f090b0;
}

[data-theme="dark"] .cal-cell.weekend {
    color: #636366;                     /* lighter than --ink-3 (#48484a) on dark bg */
}

[data-theme="dark"] .cal-cell.weekend:hover {
    background: rgba(255,255,255,.06);
    color: #8e8e93;
}

[data-theme="dark"] .cal-cell.today {
    background: var(--primary);        /* #e0709a in dark */
    box-shadow: 0 4px 14px rgba(224, 112, 154, .35);
}

[data-theme="dark"] .cal-cell.selected {
    background: var(--primary) !important;
    box-shadow: 0 4px 18px rgba(224, 112, 154, .45), 0 0 0 2px var(--accent);
    outline: 2px solid rgba(255,255,255,.2);
    outline-offset: -2px;
}

[data-theme="dark"] .cal-cell.past {
    opacity: .28;
}

/* Detail panel */
.schedule-detail {
    border: 1px solid var(--line-2);
    border-radius: 14px;
    min-height: 90px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.schedule-detail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.5rem;
    color: var(--ink-3);
    font-size: .82rem;
    text-align: center;
}

.schedule-detail-placeholder svg {
    stroke: var(--ink-3);
    opacity: .5;
}

.schedule-detail-card {
    padding: 1.1rem 1.25rem;
    animation: fadeUpSm .3s ease both;
}

.schedule-detail-card.open {
    background: linear-gradient(135deg, rgba(34,197,94,.06) 0%, transparent 60%);
}

.schedule-detail-card.closed {
    background: linear-gradient(135deg, rgba(239,68,68,.05) 0%, transparent 60%);
}

.schedule-detail-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
    flex-wrap: wrap;
}

.schedule-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .7rem;
    border-radius: 99px;
}

.badge-open {
    background: #dcfce7;
    color: #15803d;
}

.badge-closed {
    background: #fee2e2;
    color: #b91c1c;
}

[data-theme="dark"] .badge-open {
    background: rgba(34,197,94,.18);
    color: #4ade80;
}

[data-theme="dark"] .badge-closed {
    background: rgba(239,68,68,.18);
    color: #f87171;
}

.schedule-detail-date {
    font-size: .78rem;
    color: var(--ink-2);
}

.schedule-detail-hours {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .96rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .5rem;
}

.schedule-detail-hours svg {
    stroke: var(--primary);
    flex-shrink: 0;
}

.schedule-detail-note {
    font-size: .78rem;
    color: var(--ink-2);
    line-height: 1.5;
    margin-bottom: .75rem;
}

.schedule-detail-actions {
    display: flex;
    gap: .6rem;
    margin-top: .65rem;
}

.schedule-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .48rem 1rem;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s, transform .25s cubic-bezier(0.34,1.56,0.64,1);
}

.schedule-cta-btn:hover {
    opacity: .85;
    transform: translateY(-1px);
}

.phone-btn {
    background: var(--primary);
    color: white;
}

.email-btn {
    background: var(--bg-2);
    color: var(--ink);
    border: 1px solid var(--line-2);
}

/* Legend */
.schedule-legend {
    display: flex;
    gap: 1.1rem;
    justify-content: center;
    padding-top: .25rem;
}

.schedule-legend-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .74rem;
    color: var(--ink-2);
}

.schedule-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.schedule-legend-dot.open   { background: #22c55e; }
.schedule-legend-dot.closed { background: #ef4444; }
.schedule-legend-dot.today  { background: var(--primary); }

/* ── Tablet ≤ 640px ── */
@media (max-width: 640px) {
    .schedule-overlay { padding: 1rem; }

    .schedule-modal {
        padding: 1.5rem 1.25rem 1.25rem;
        border-radius: 18px;
        max-height: 94vh;
    }

    .schedule-header-icon { width: 38px; height: 38px; border-radius: 10px; }
    .schedule-header h3   { font-size: .95rem; }
    .schedule-header p    { font-size: .74rem; }

    .schedule-cal-head span { font-size: .6rem; letter-spacing: .02em; }

    .cal-cell { font-size: .76rem; border-radius: 6px; }

    /* hide full date string — badge gives enough context */
    .schedule-detail-date { display: none; }
}

/* ── Mobile ≤ 420px: bottom-sheet ── */
@media (max-width: 420px) {
    .schedule-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .schedule-modal {
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        max-height: 90vh;
        padding: 1rem 1rem 2rem;
        animation: scheduleSheetIn .35s cubic-bezier(0.22,1,0.36,1) both;
    }

    /* drag-handle pill */
    .schedule-modal::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: var(--line);
        border-radius: 99px;
        margin: 0 auto .65rem;
    }

    .schedule-header      { margin-bottom: .85rem; }
    .schedule-nav-btn     { width: 30px; height: 30px; }
    .schedule-month-label { font-size: .82rem; }

    .cal-cell {
        font-size: .7rem;
        min-height: 26px;
        border-radius: 5px;
    }

    .schedule-cal-head span { font-size: .54rem; }

    .schedule-detail { border-radius: 10px; }
    .schedule-detail-card { padding: .8rem .85rem; }
    .schedule-detail-hours { font-size: .88rem; }

    /* actions full-width */
    .schedule-detail-actions { flex-wrap: wrap; }
    .schedule-cta-btn { flex: 1; justify-content: center; }

    .schedule-legend { gap: .65rem; }
}

@keyframes scheduleSheetIn {
    from { transform: translateY(60px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}