/* ===================================
   LUMINA STUDIO LP – Kive-Level Design System
   ===================================
   Light, minimal, premium aesthetic
   Inter + Noto Sans JP typography
   =================================== */

/* ===================================
   CSS Variables
   =================================== */
:root {
    /* Colors – Light Theme */
    --white: #ffffff;
    --zinc-50: #fafafa;
    --zinc-100: #f4f4f5;
    --zinc-200: #e4e4e7;
    --zinc-300: #d4d4d8;
    --zinc-400: #a1a1aa;
    --zinc-500: #71717a;
    --zinc-600: #52525b;
    --zinc-700: #3f3f46;
    --zinc-800: #27272a;
    --zinc-900: #18181b;
    --zinc-950: #09090b;

    /* Typography */
    --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --section-py: 6rem;
    --section-py-lg: 8rem;

    /* Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);

    /* Touch */
    --touch-min: 44px;

    /* iOS Safe Area */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: #fcfcfd;
    color: var(--zinc-900);
    line-height: 1.65;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===================================
   Container
   =================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===================================
   Section Backgrounds
   =================================== */
.section-white {
    padding: var(--section-py) 0;
    background: #fcfcfd;
}

.section-alt {
    padding: var(--section-py) 0;
    background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
}

.section-dark {
    padding: var(--section-py) 0;
    background: linear-gradient(180deg, #18181b 0%, #09090b 100%);
    color: var(--white);
}

/* ===================================
   Section Header
   =================================== */
.section-header {
    text-align: center;
    max-width: 520px;
    margin: 0 auto 3.5rem;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--zinc-500);
    margin-bottom: 1rem;
}

.section-title,
.kive-title {
    font-size: clamp(2.1rem, 4.2vw, 2.8rem);
    font-weight: 650;
    /* Fallback to 600 if env missing */
    letter-spacing: -0.045em;
    line-height: 1.12;
    margin-bottom: 1rem;
    color: var(--zinc-900);
}

.section-desc {
    font-size: 1rem;
    color: var(--zinc-600);
    line-height: 1.7;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===================================
   Navigation (Sticky)
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--zinc-200);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--zinc-900);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--zinc-600);
    padding: 0.5rem 0;
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--zinc-900);
}

.btn-nav {
    background: var(--zinc-900) !important;
    color: var(--white) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius-full) !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    min-height: 36px !important;
    transition: background 0.2s, transform 0.2s !important;
}

.btn-nav:hover {
    background: var(--zinc-800) !important;
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 1.5px;
    background: var(--zinc-900);
    transition: all 0.3s ease;
    display: block;
}

/* ===================================
   Buttons
   =================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--zinc-900);
    color: var(--white);
    border-radius: var(--radius-full);
    padding: 0.75rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    min-height: var(--touch-min);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--zinc-800);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--zinc-900);
    border: 1px solid var(--zinc-200);
    border-radius: var(--radius-full);
    padding: 0.75rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    min-height: var(--touch-min);
    transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
    background: var(--zinc-50);
    border-color: var(--zinc-300);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.btn-sm {
    padding: 0 1rem;
    font-size: 0.8125rem;
    height: 40px;
    min-height: 40px;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    min-height: 48px;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Dark section buttons */
.btn-primary-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--zinc-900);
    border-radius: var(--radius-full);
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    min-height: 48px;
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
    border: none;
}

.btn-primary-light:hover {
    background: var(--zinc-100);
    transform: translateY(-1px);
}

.btn-secondary-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    min-height: 48px;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    cursor: pointer;
}

.btn-secondary-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    position: relative;
    padding-top: calc(64px + 4rem);
    padding-bottom: var(--section-py);
    background: var(--white);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-copy {
    max-width: 520px;
}

.hero-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--zinc-500);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--zinc-900);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--zinc-600);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.hero-note {
    font-size: 0.8125rem;
    color: var(--zinc-400);
}

/* ===================================
   Hero Studio Shot (3D UI Card)
   =================================== */
.studio-hero-wrap {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
}

.studio-hero-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #e4e4e7;
    background: #fff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .14);
    transform: perspective(1200px) rotateY(-10deg) rotateX(6deg);
    transform-origin: center;
    transition: transform .35s ease, box-shadow .35s ease;
    will-change: transform;
    /* Prevent collapse if the user hasn't uploaded the screeenshot yet */
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.studio-hero-card:hover {
    transform: perspective(1200px) rotateY(-6deg) rotateX(3deg) translateY(-2px);
    box-shadow: 0 24px 75px rgba(0, 0, 0, .18);
}

.studio-hero-card img {
    width: 100%;
    height: auto;
    display: block;
}

.studio-hero-chips {
    position: absolute;
    left: 14px;
    top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    pointer-events: none;
    /* D&D邪魔しない */
}

.studio-hero-glow {
    position: absolute;
    inset: -30px -40px -40px -40px;
    background: radial-gradient(closest-side, rgba(0, 0, 0, .08), rgba(0, 0, 0, 0));
    filter: blur(18px);
    z-index: -1;
    pointer-events: none;
}

/* ===================================
   Hero SaaS Rotator
   =================================== */
.hero-rotator {
    position: relative;
    display: flex;
    flex-direction: column;
}

.hero-rotator-top {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    z-index: 10;
}

.hero-rotator-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--zinc-900);
    opacity: 0.7;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-rotator-chips {
    display: flex;
    gap: 6px;
}

.ui-chip {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--zinc-900);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.ui-chip-muted {
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.5);
}

/* Crossfade Media */
.hero-rotator-media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 480px;
    overflow: hidden;
}

.hero-rotator-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.01);
    transition: opacity 600ms ease, transform 1200ms ease;
}

.hero-rotator-img.is-active {
    opacity: 1;
    transform: scale(1.0);
}

/* Inset Shadow (Kive-like polish) */
.studio-hero-inset {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04), inset 0 2px 10px rgba(0, 0, 0, 0.02);
    pointer-events: none;
    z-index: 5;
}

/* Base grid pattern for extra polish */
.studio-hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 16px 16px;
    z-index: 0;
    pointer-events: none;
}

/* Progress Bar */
.hero-rotator-progress {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    height: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    overflow: hidden;
    z-index: 10;
}

.hero-rotator-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(124, 58, 237, 1), rgba(24, 24, 27, 1));
    transition: width linear;
}

@media (prefers-reduced-motion: reduce) {
    .hero-rotator-img {
        transition: none;
    }
}

.studio-hero-card img.is-drop-target {
    outline-offset: 6px;
}

/* --- Hero background: subtle gradient + noise for SaaS air --- */
.hero-section {
    position: relative;
    padding-top: calc(64px + 4rem);
    padding-bottom: 4rem;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 70%, #ffffff 100%);
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
    background-image:
        radial-gradient(rgba(0, 0, 0, 0.55) 0.7px, transparent 0.7px);
    background-size: 18px 18px;
    mask-image: radial-gradient(circle at 40% 10%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 60%);
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    background: radial-gradient(800px 380px at 70% 30%, rgba(0, 0, 0, 0.08), transparent 60%);
}

/* --- Typography tighten (Kive-ish) --- */
.hero-title {
    letter-spacing: -0.045em;
    line-height: 1.08;
}

/* --- Studio Hero Card refinements --- */
.studio-hero-wrap {
    isolation: isolate;
}

.studio-hero-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    box-shadow:
        0 22px 70px rgba(0, 0, 0, .14),
        inset 0 1px 0 rgba(255, 255, 255, .7);
    transition: aspect-ratio 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.studio-hero-card.is-ec {
    aspect-ratio: 3 / 4;
}

.studio-hero-card.is-campaign {
    aspect-ratio: 16 / 9;
}

/* Faux window bar */
.studio-windowbar {
    position: relative;
    z-index: 10;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.studio-windowbar .dot {
    width: 9px;
    height: 9px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.18);
}

.studio-windowbar-title {
    margin-left: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: rgba(0, 0, 0, 0.55);
}

/* Tabs */
.studio-hero-tabs {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.10);
}

.studio-tab {
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.55);
    color: rgba(0, 0, 0, 0.70);
    border-radius: 9999px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    min-height: 30px;
    transition: background 0.2s, color 0.2s;
}

.studio-tab:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.85);
}

.studio-tab.is-active {
    background: #18181b;
    color: #fff;
    border-color: rgba(0, 0, 0, 0.0);
}

/* Stage + images */
.studio-hero-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Empty State UI */
.studio-empty-state {
    position: absolute;
    inset: 44px 0 0 0;
    /* Keep text below windowbar */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, rgba(240, 240, 245, 0.4), transparent);
    border: 1px dashed rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    margin: 16px;
    opacity: 1;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.empty-icon {
    color: var(--zinc-300);
    margin-bottom: 12px;
}

.empty-text {
    text-align: center;
    margin-bottom: 20px;
}

.empty-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--zinc-700);
    margin-bottom: 4px;
}

.empty-sub {
    font-size: 11px;
    color: var(--zinc-500);
}

.empty-dummy-ui {
    display: flex;
    gap: 8px;
}

.dummy-label {
    padding: 4px 10px;
    background: var(--white);
    border: 1px solid var(--zinc-200);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    color: var(--zinc-400);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.studio-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    transform: scale(0.995);
    transition: opacity 280ms ease, transform 280ms ease;
    user-select: none;
}

.studio-hero-img.is-active {
    opacity: 1;
    transform: scale(1);
}

/* D&D hint */
.studio-dd-hint {
    position: absolute;
    inset: 0;
    padding-top: 44px;
    /* Offset for window bar */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.38);
    transition: opacity 200ms ease;
    pointer-events: none;
    z-index: 2;
}

.studio-hero-card:hover .studio-dd-hint {
    opacity: 1;
}

/* Progress bar */
.studio-rotator-progress {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 10px;
    height: 6px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.10);
    overflow: hidden;
    z-index: 10;
}

.studio-rotator-bar {
    height: 100%;
    width: 0%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #7c3aed, #a855f7, #7c3aed);
}

/* D&D highlight: keep rounded */
.studio-hero-img.is-drop-target {
    outline: 4px solid #18181b;
    outline-offset: -4px;
    filter: brightness(0.8);
}

/* mobile: keep clean */
@media (max-width: 768px) {
    .studio-hero-stage {
        padding-top: 44px;
    }

    .studio-hero-img {
        inset: 44px 0 18px 0;
    }
}


/* Fallback Placeholders */
.tile-placeholder {
    width: 100%;
    height: 100%;
    min-height: inherit;
}

/* ===================================
   Feature Cards
   =================================== */
.card-grid {
    display: grid;
    gap: 1.5rem;
}

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

.card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.feature-card {
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    padding: 1.75rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.card-icon-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--zinc-700);
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--zinc-900);
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.875rem;
    color: var(--zinc-600);
    line-height: 1.6;
}

/* ===================================
   Steps Row
   =================================== */
.steps-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    padding: 2rem;
    background: var(--zinc-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--zinc-200);
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--zinc-900);
    letter-spacing: -0.02em;
}

.step-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--zinc-700);
}

.step-divider {
    width: 2rem;
    height: 1px;
    background: var(--zinc-300);
}

/* ===================================
   Sample Gallery
   =================================== */
.sample-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
    margin-top: 3rem;
}

.sample-large {
    grid-column: span 2;
}

.sample-small {
    grid-column: span 1;
}

.sample-placeholder {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--zinc-200);
    aspect-ratio: 4/3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.25rem;
}

.sample-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--zinc-100), var(--white), var(--zinc-100));
}

.sample-gradient-alt {
    background: linear-gradient(135deg, #f5f3ff, var(--white), #faf5ff);
}

.sample-gradient-warm {
    background: linear-gradient(135deg, #fefce8, var(--white), #fef3c7);
}

.sample-gradient-cool {
    background: linear-gradient(135deg, #f0f9ff, var(--white), #e0f2fe);
}

.sample-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: radial-gradient(var(--zinc-900) 1px, transparent 1px);
    background-size: 14px 14px;
}

.sample-label {
    position: relative;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--zinc-400);
    letter-spacing: 0.02em;
}


/* ===================================
   Output Format Grid (How-It-Works)
   =================================== */
.output-format-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 3rem;
}

.output-format-card {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    padding: 28px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.output-format-card:hover {
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
    border-color: #18181b;
    transform: translateY(-2px);
}

/* Header */
.ofcard-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.ofcard-title {
    font-size: 18px;
    font-weight: 700;
    color: #18181b;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

.ofcard-ratio-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #71717a;
    text-transform: uppercase;
}

.ofcard-status {
    font-size: 11px;
    font-weight: 500;
    color: #52525b;
    background: #fafafa;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    padding: 3px 8px;
    letter-spacing: 0.02em;
}

/* View pills */
.ofcard-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.ofcard-pill {
    font-size: 12px;
    font-weight: 500;
    color: #18181b;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    padding: 6px 10px;
    white-space: nowrap;
    line-height: 1;
}

/* Optional line */
.ofcard-optional {
    font-size: 12px;
    color: #a1a1aa;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Resolution row — pinned to bottom */
.ofcard-res {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f4f4f5;
}

.ofcard-res-btn {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid #e4e4e7;
    background: #ffffff;
    color: #52525b;
    cursor: default;
    line-height: 1;
    transition: none;
}

.ofcard-res-btn.is-active {
    background: #18181b;
    color: #ffffff;
    border-color: #18181b;
    box-shadow: 0 6px 18px rgba(24, 24, 27, 0.18);
}

@media (max-width: 768px) {
    .output-format-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .output-format-card {
        padding: 22px;
    }

    .ofcard-pills {
        gap: 6px;
    }
}


/* ===================================
   Mid CTA
   =================================== */
.mid-cta {
    text-align: center;
    padding: 2rem 0;
}

.mid-cta-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 2rem;
}

.mid-cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Pricing
   =================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--zinc-200);
    background: var(--white);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.pricing-card-enterprise {
    border-color: var(--zinc-900);
    border-width: 2px;
}

.pricing-plan-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--zinc-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.pricing-price {
    margin-bottom: 1rem;
}

.pricing-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--zinc-900);
    letter-spacing: -0.03em;
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--zinc-500);
    margin-left: 0.25rem;
}

.pricing-desc {
    font-size: 0.875rem;
    color: var(--zinc-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--zinc-200);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    font-size: 0.875rem;
    color: var(--zinc-700);
    padding: 0.5rem 0;
    padding-left: 1.25rem;
    position: relative;
}

/* ===================================
   Drag & Drop Image Replacement
   =================================== */
img[data-img-key] {
    cursor: pointer;
    transition: filter 0.2s ease, outline 0.2s ease;
}

img[data-img-key]:hover {
    filter: brightness(0.9);
}

img[data-img-key].is-drop-target {
    outline: 4px solid var(--zinc-900);
    outline-offset: -4px;
    filter: brightness(0.8);
}

.dd-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    border-radius: inherit;
    z-index: 10;
}

.tile:hover .dd-hover-overlay,
.sample-placeholder:hover .dd-hover-overlay,
.hero-rotator-media:hover .dd-hover-overlay,
.kive-ui-viewport:hover .dd-hover-overlay,
.kive-thumb:hover .dd-hover-overlay,
img[data-img-key]:hover+.dd-hover-overlay {
    opacity: 1;
}

/* Ensure UI elements do not intercept drag/drop/click events */
.chip,
.sample-label {
    pointer-events: none;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--zinc-400);
    font-weight: 600;
}

.pricing-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--zinc-500);
    margin-top: 2rem;
}

/* ===================================
   FAQ
   =================================== */
.faq-container {
    max-width: 680px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--zinc-200);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--zinc-900);
    text-align: left;
    cursor: pointer;
    min-height: var(--touch-min);
    background: none;
    border: none;
    font-family: inherit;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--zinc-600);
}

.faq-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zinc-400);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    font-size: 0.875rem;
    color: var(--zinc-600);
    line-height: 1.7;
}

/* ===================================
   Final CTA
   =================================== */
.section-final-cta {
    padding: var(--section-py-lg) 0;
}

.final-cta {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.final-cta-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

.final-cta-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.final-cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Contact Form
   =================================== */
.contact-form-wrapper {
    max-width: 560px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--zinc-700);
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--zinc-200);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--zinc-900);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: var(--touch-min);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--zinc-900);
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    font-size: 0.875rem;
    text-align: center;
    padding: 0.5rem;
}

.form-message.success {
    color: #16a34a;
}

.form-message.error {
    color: #ef4444;
}

.contact-info {
    text-align: center;
    margin-top: 2.5rem;
}

.contact-info p {
    font-size: 0.8125rem;
    color: var(--zinc-500);
    margin-bottom: 0.25rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--zinc-950);
    color: var(--white);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.footer .logo-text {
    color: var(--white);
}

.footer-tagline {
    font-size: 0.8125rem;
    color: var(--zinc-500);
    margin-top: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--zinc-500);
    margin-bottom: 1rem;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-column a {
    font-size: 0.875rem;
    color: var(--zinc-400);
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--zinc-600);
}

/* ===================================
   Scroll Animations
   =================================== */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Mobile Responsive
   =================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-copy {
        max-width: 100%;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-mosaic {
        max-width: 480px;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    :root {
        --section-py: 4rem;
        --section-py-lg: 5rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Nav mobile */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--zinc-200);
        flex-direction: column;
        padding: 1rem;
        gap: 0.25rem;
        box-shadow: var(--shadow-md);
    }

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

    .nav-links a {
        width: 100%;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-md);
    }

    .nav-links a:hover {
        background: var(--zinc-50);
    }

    .btn-nav {
        text-align: center !important;
        margin-top: 0.5rem;
    }

    /* Mobile menu toggle animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    /* Hero mobile */
    .hero-section {
        padding-top: calc(64px + 2.5rem);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .studio-hero-wrap {
        max-width: 100%;
        top: 0;
    }

    .studio-hero-card {
        transform: none;
        box-shadow: 0 8px 30px rgba(0, 0, 0, .1);
    }

    .studio-hero-card:hover {
        transform: none;
        box-shadow: 0 8px 30px rgba(0, 0, 0, .1);
    }

    .hero-title {
        font-size: 2.25rem;
    }

    /* Cards mobile */
    .card-grid-3,
    .card-grid-4 {
        grid-template-columns: 1fr;
    }

    /* Steps mobile */
    .steps-row {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .step-divider {
        width: 1px;
        height: 1.5rem;
        background: var(--zinc-300);
    }

    /* Sample gallery mobile */
    .sample-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .sample-large {
        grid-column: span 1;
    }

    /* Pricing mobile */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        gap: 2rem;
    }

    /* Section header mobile */
    .section-header {
        max-width: 100%;
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .mosaic-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .mosaic-chips {
        gap: 0.375rem;
    }

    .chip {
        font-size: 0.625rem;
        padding: 0.2rem 0.5rem;
    }
}

/* ===================================
   Dev Mode
   =================================== */
.dev-mode-indicator {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: var(--zinc-900);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

body.dev-mode .dev-mode-indicator {
    opacity: 1;
}

/* ===================================
   Kive Features Area (SaaS Layout)
   =================================== */
.kive-features {
    position: relative;
}

.kive-features::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    background: radial-gradient(800px 800px at 80% 50%, rgba(124, 58, 237, 0.15), transparent 70%);
}

.kive-head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.kive-title {
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--zinc-900);
}

.kive-sub {
    font-size: 1.125rem;
    color: var(--zinc-600);
}

.kive-wrap {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

/* Left: Narrative Steps */
.kive-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 30vh;
    /* Allow scrolling past the last item */
}

.kive-step {
    display: flex;
    gap: 1.25rem;
    text-align: left;
    padding: 1.5rem;
    border-radius: 20px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.4;
    border: 1px solid transparent;
}

.kive-step.is-active {
    opacity: 1;
    background: var(--white);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.kive-step:hover:not(.is-active) {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.5);
}

.kive-step-kicker {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--zinc-400);
    padding-top: 0.25rem;
}

.kive-step.is-active .kive-step-kicker {
    color: var(--zinc-900);
}

.kive-step-title {
    font-size: 1.25rem;
    font-weight: 650;
    letter-spacing: -0.03em;
    color: var(--zinc-900);
    margin-bottom: 0.5rem;
}

.kive-step-desc {
    font-size: 0.95rem;
    color: var(--zinc-500);
    line-height: 1.6;
}

/* Right: Sticky UI */
.kive-sticky {
    flex: 1.2;
    position: sticky;
    top: 104px;
    /* Account for navbar + breathing room */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kive-ui-frame {
    background: #fbfbfb;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    position: relative;
}

.kive-ui-topbar {
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 10;
}

.kive-ui-dots {
    display: flex;
    gap: 6px;
    flex: 1;
}

.kive-ui-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
}

.kive-ui-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    color: var(--zinc-500);
    letter-spacing: 0.04em;
}

.kive-ui-actions {
    display: flex;
    gap: 6px;
    flex: 1;
    justify-content: flex-end;
}

.kive-pill {
    font-size: 10px;
    font-weight: 600;
    color: var(--zinc-600);
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 8px;
    border-radius: 6px;
}

.kive-ui-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e4e4e7;
    overflow: hidden;
    cursor: pointer;
}

.kive-viewport-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    user-select: none;
    z-index: 1;
}

.kive-viewport-img.is-active {
    opacity: 1;
    z-index: 2;
}

/* Empty product-like state */
.kive-empty {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.kive-empty *,
.kive-thumb-empty * {
    pointer-events: none;
}

.kive-empty.is-hidden {
    opacity: 0;
}

.kive-empty-inner {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kive-empty-grid {
    position: absolute;
    inset: 0;
    background-size: 24px 24px;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

.kive-empty-card {
    position: relative;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 24px 32px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    z-index: 2;
}

.kive-icon {
    color: var(--zinc-300);
    margin-bottom: 12px;
}

.kive-empty-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--zinc-700);
    margin-bottom: 4px;
}

.kive-empty-desc {
    font-size: 12px;
    color: var(--zinc-400);
}

.kive-ui-footer {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
}

.kive-metrics {
    display: flex;
    gap: 24px;
}

.kive-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kive-metric .n {
    font-size: 13px;
    font-weight: 600;
    color: var(--zinc-900);
}

.kive-metric .l {
    font-size: 10px;
    font-weight: 500;
    color: var(--zinc-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.kive-footer-cta {
    display: flex;
    gap: 8px;
}

.kive-thumb-row {
    display: flex;
    gap: 12px;
}

.kive-thumb {
    flex: 1;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #f4f4f5;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.kive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 2;
}

.kive-thumb-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zinc-300);
    z-index: 1;
}

@media (max-width: 991px) {
    .kive-wrap {
        flex-direction: column;
        gap: 3rem;
    }

    .kive-steps {
        padding-bottom: 0;
    }

    .kive-step {
        padding: 1rem;
    }

    .kive-sticky {
        width: 100%;
        position: relative;
        top: 0;
    }

    .kive-metrics {
        display: none;
        /* Simplify on mobile */
    }
}
/* =============================================================
   KIVE-LEVEL POLISH — added 2026-02-20
   All new rules scoped to new classes, no existing rules touched
   ============================================================= */

/* ── A-2: Hero UI Overlay ─────────────────────────────────── */
.hero-ui-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    z-index: 10;
    pointer-events: none;
}

.hero-ui-preset-label {
    font-size: 10px;
    font-weight: 500;
    color: rgba(24,24,27,0.55);
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 6px;
    padding: 3px 8px;
    backdrop-filter: blur(6px);
    letter-spacing: 0.02em;
}

.hero-ui-status-pills {
    display: flex;
    gap: 4px;
}

.hero-ui-pill {
    font-size: 10px;
    font-weight: 600;
    color: #52525b;
    background: rgba(255,255,255,0.82);
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    padding: 3px 8px;
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.hero-ui-pill.is-live {
    color: #18181b;
    border-color: #18181b;
    background: #f4f4f5;
}

.studio-hero-card:hover .hero-ui-pill {
    transform: translateY(-2px);
    opacity: 1;
}

/* Results strip */
.hero-ui-results-strip {
    position: absolute;
    bottom: 44px;
    left: 0;
    right: 0;
    display: flex;
    gap: 6px;
    padding: 0 12px;
    z-index: 10;
    pointer-events: none;
    transition: transform 0.25s ease;
}

.studio-hero-card:hover .hero-ui-results-strip {
    transform: translateY(-6px);
}

.hero-ui-thumb {
    flex: 1;
    height: 44px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f4f4f5 0%, #e4e4e7 100%);
    border: 1px solid rgba(0,0,0,0.07);
}

.hero-ui-thumb:nth-child(2) {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}
.hero-ui-thumb:nth-child(3) {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

/* ── A-3: Hero radial background ─────────────────────────── */
.hero-section {
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(139,92,246,0.04) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 10% 80%, rgba(99,102,241,0.03) 0%, transparent 70%),
        var(--zinc-50, #fafafa);
}

/* ── B: Output format card Preview frames ─────────────────── */
.ofcard-preview {
    border-radius: 10px;
    border: 1px solid #e4e4e7;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f9f9fb;
    transition: box-shadow 0.25s ease;
}

.ofcard-preview-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.ofdot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d4d4d8;
}
.ofdot:nth-child(1) { background: #fca5a5; }
.ofdot:nth-child(2) { background: #fde68a; }
.ofdot:nth-child(3) { background: #86efac; }

.ofbar-title {
    font-size: 10px;
    font-weight: 500;
    color: #a1a1aa;
    margin-left: 4px;
    letter-spacing: 0.02em;
}

.ofcard-preview-body {
    display: flex;
    gap: 8px;
    padding: 10px;
    min-height: 80px;
    align-items: center;
    transition: transform 0.3s ease;
    overflow: hidden;
}

/* Hover: inner preview scales — the SaaS feel */
.output-format-card:hover .ofcard-preview-body {
    transform: scale(1.025);
}
.output-format-card:hover .ofcard-preview {
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

/* Mock content shapes */
.ofmock-portrait {
    flex: 0 0 52px;
    height: 70px;
    border-radius: 6px;
    background: linear-gradient(160deg, #e2e8f0 0%, #cbd5e1 100%);
}

.ofmock-stack {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}
.ofmock-thumb {
    height: 18px;
    border-radius: 5px;
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 100%);
}
.ofmock-thumb:nth-child(2) { width: 75%; }
.ofmock-thumb:nth-child(3) { width: 50%; }

.ofmock-square {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ede9fe 0%, #c4b5fd 100%);
}

.ofmock-wide {
    width: 100%;
    height: 54px;
    border-radius: 6px;
    background: linear-gradient(90deg, #1e293b 0%, #334155 50%, #475569 100%);
    position: relative;
    overflow: hidden;
}
.ofmock-wide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 60%, rgba(255,255,255,0.08) 100%);
}

/* Aspect ratios for preview containers */
.ofcard-preview--ec .ofcard-preview-body { min-height: 90px; }
.ofcard-preview--ig .ofcard-preview-body {
    min-height: 100px;
    justify-content: center;
}
.ofcard-preview--ads .ofcard-preview-body { min-height: 74px; }

/* Status dot */
.ofstatus-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    margin-right: 4px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* ── C-1: kive-step active accent line ───────────────────── */
.kive-step.is-active {
    border-left: 2px solid #a1a1aa;
    padding-left: calc(1.25rem - 2px);
}

/* ── D-1: Card grid stagger ──────────────────────────────── */
.card-grid .feature-card:nth-child(1) { transition-delay: 0ms; }
.card-grid .feature-card:nth-child(2) { transition-delay: 60ms; }
.card-grid .feature-card:nth-child(3) { transition-delay: 120ms; }
.card-grid .feature-card:nth-child(4) { transition-delay: 180ms; }

/* Stagger for output format cards */
.output-format-grid .output-format-card:nth-child(1) { transition-delay: 0ms; }
.output-format-grid .output-format-card:nth-child(2) { transition-delay: 80ms; }
.output-format-grid .output-format-card:nth-child(3) { transition-delay: 160ms; }

/* ── D-2: Unified hover / focus / active for interactive ── */
.btn-primary,
.btn-secondary,
.btn-primary-light,
.ofcard-res-btn,
.studio-tab,
.kive-step {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
                border-color 0.15s ease, opacity 0.15s ease;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-primary-light:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.btn-primary:active,
.btn-secondary:active,
.btn-primary-light:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.ofcard-res-btn:focus-visible,
.studio-tab:focus-visible {
    outline: 2px solid rgba(24,24,27,0.15);
    outline-offset: 3px;
}

/* ── Reduce motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hero-ui-results-strip,
    .hero-ui-pill,
    .ofcard-preview-body,
    .output-format-card,
    .feature-card,
    .btn-primary,
    .btn-secondary,
    .btn-primary-light {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
}

/* ── Mobile: de-escalate heavy transforms ───────────────── */
@media (max-width: 768px) {
    .hero-ui-overlay,
    .hero-ui-results-strip {
        display: none;
    }
    .output-format-card:hover .ofcard-preview-body {
        transform: none;
    }
}


/* =============================================================
   OFGALLERY — Asymmetric image gallery (Case C)
   =============================================================  */

.ofgallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 3rem;
}

/* Left: tall card */
.ofgallery-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ofgallery-main .ofgallery-img-wrap {
    flex: 1;
    min-height: 360px;
}

/* Right: two stacked */
.ofgallery-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ofgallery-sub {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Image slot */
.ofgallery-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #e4e4e7;
    background: #f4f4f5;
    cursor: pointer;
}

.ofgallery-main .ofgallery-img-wrap { min-height: 380px; }
.ofgallery-sub .ofgallery-img-wrap  { min-height: 160px; }

.ofgallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
    transition: transform 0.35s ease, opacity 0.3s ease;
}

.ofgallery-img-wrap:hover .ofgallery-img {
    transform: scale(1.03);
}

/* Hint overlay */
.ofgallery-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(24,24,27,0.5);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    letter-spacing: 0.02em;
    backdrop-filter: blur(2px);
    border-radius: inherit;
    z-index: 5;
}

.ofgallery-img-wrap:hover .ofgallery-hint,
.ofgallery-img-wrap.is-over .ofgallery-hint {
    opacity: 1;
}

.ofgallery-img-wrap.is-over {
    border-color: #18181b;
    box-shadow: 0 0 0 2px #18181b;
}

/* Hidden file input */
.ofgallery-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
    width: 100%;
    height: 100%;
}

/* Footer: label + pills */
.ofgallery-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ofgallery-label {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ofgallery-title {
    font-size: 14px;
    font-weight: 700;
    color: #18181b;
    letter-spacing: -0.01em;
}

.ofgallery-ratio {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #a1a1aa;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
    .ofgallery {
        grid-template-columns: 1fr;
    }
    .ofgallery-main .ofgallery-img-wrap {
        min-height: 240px;
    }
    .ofgallery-sub .ofgallery-img-wrap {
        min-height: 140px;
    }
}


/* =============================================================
   LOGO — MiuMiu-style (Rubik 900 + lowercase + 5x size)
   2026-02-20
   ============================================================= */
.logo-text {
    font-family: 'Rubik', 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 5.625rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: lowercase;
    color: var(--zinc-900);
    line-height: 1;
}

.footer .logo-text {
    color: var(--white);
}

/* Tighten nav when logo is large */
.site-header .container {
    align-items: center;
}

@media (max-width: 768px) {
    .logo-text {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}


/* =============================================================
   LOGO UPDATE 2 — Header back to original size (uppercase)
   Footer: full-width MiuMiu-style display logo
   ============================================================= */

/* Header logo — original compact size, uppercase */
.logo-text {
    font-family: 'Rubik', 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--zinc-900);
    line-height: 1;
}

/* Full-width footer display logo */
.footer-display-logo {
    width: 100%;
    overflow: hidden;
    padding: 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: flex-end;
}

.footer-display-logo-text {
    font-family: 'Rubik', 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(4rem, 18vw, 18rem);
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--white);
    line-height: 0.85;
    white-space: nowrap;
    display: block;
    width: 100%;
    text-align: left;
    padding: 0 0 0 0;
    /* Clip bottom so only top of letters show, like MiuMiu */
    overflow: hidden;
}

@media (max-width: 768px) {
    .footer-display-logo-text {
        font-size: clamp(3rem, 20vw, 8rem);
    }
}


/* Footer SVG full-width logo */
.footer-display-logo-svg {
    display: block;
    width: 100%;
    height: auto;
}


/* Footer SVG — force taller display */
.footer-display-logo-svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 15vw;
}


/* =============================================================
   OFGALLERY v2 — Carousel + correct aspect ratios (2026-02-21)
   ============================================================= */

/* Carousel wrapper */
.ofgallery-carousel {
    position: relative;
    width: 100%;
}

/* Track — only show one slide at a time */
.ofgallery-carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
}

/* Individual slides */
.ofgallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.ofgallery-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Image inside slide fills the 3:4 area */
.ofgallery-slide .ofgallery-img-wrap {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: none;
    min-height: unset;
}

/* Instagram portrait 3:4 */
.ofgallery-img-wrap--portrait {
    aspect-ratio: 3 / 4;
    min-height: unset !important;
}

/* Ads landscape 16:9 — let the container set height via aspect-ratio */
.ofgallery-img-wrap--landscape {
    aspect-ratio: 16 / 9;
    min-height: unset !important;
}

/* Carousel nav */
.ofc-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.ofc-btn {
    background: none;
    border: 1px solid #e4e4e7;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    color: #18181b;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}
.ofc-btn:hover {
    background: #f4f4f5;
    border-color: #a1a1aa;
}

.ofc-dots {
    display: flex;
    gap: 5px;
}
.ofc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4d4d8;
    transition: background 0.2s;
    cursor: pointer;
}
.ofc-dot.is-active {
    background: #18181b;
}

/* Slide label overlay (bottom-left of image) */
.ofc-labels {
    position: absolute;
    bottom: 12px;
    left: 12px;
    pointer-events: none;
}
.ofc-label {
    display: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    background: rgba(24,24,27,0.55);
    backdrop-filter: blur(4px);
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}
.ofc-label.is-active {
    display: inline-block;
}

/* Right column: ensure portrait + landscape sizes work together */
.ofgallery-sub .ofgallery-img-wrap--portrait {
    width: 100%;
    position: relative;
    display: block;
}
.ofgallery-sub .ofgallery-img-wrap--landscape {
    width: 100%;
    position: relative;
    display: block;
}

/* Override base styles that set absolute positioning on the img */
.ofgallery-img-wrap--portrait .ofgallery-img,
.ofgallery-img-wrap--landscape .ofgallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =============================================================
   OFGALLERY v3 — Kive editorial grid (2026-02-21)
   Top: EC(3:4) + IG(3:4) | Bottom: Ads(16:9) full-width
   ============================================================= */

.ofgallery {
    display: grid;
    grid-template-areas:
        "ec ig"
        "ads ads";
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 2.5rem;
}

.ofgallery-ec  { grid-area: ec; }
.ofgallery-ig  { grid-area: ig; }
.ofgallery-ads { grid-area: ads; }

/* Carousel track: 3:4 aspect ratio */
.ofgallery-carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    background: #f4f4f5;
}

/* Slide */
.ofgallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.ofgallery-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.ofgallery-slide .ofgallery-img-wrap {
    position: absolute;
    inset: 0;
    border: none;
    border-radius: inherit;
    min-height: unset;
}

/* Portrait (3:4) — IG */
.ofgallery-img-wrap--portrait {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e4e4e7;
    background: #f4f4f5;
    min-height: unset !important;
    cursor: pointer;
}

/* Landscape (16:9) — Ads */
.ofgallery-img-wrap--landscape {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e4e4e7;
    background: #f4f4f5;
    min-height: unset !important;
    cursor: pointer;
}

/* Images inside portrait/landscape fill */
.ofgallery-img-wrap--portrait .ofgallery-img,
.ofgallery-img-wrap--landscape .ofgallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.ofgallery-img-wrap--portrait:hover .ofgallery-img,
.ofgallery-img-wrap--landscape:hover .ofgallery-img {
    transform: scale(1.03);
}

/* Bottom overlay on carousel */
.ofc-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    z-index: 10;
    border-radius: 0 0 12px 12px;
}

.ofc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

/* Bottom overlay on IG/Ads */
.ofgallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    z-index: 10;
    border-radius: 0 0 12px 12px;
}

/* Tag label */
.ofc-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.95);
    text-transform: uppercase;
}
.ofc-ratio {
    font-weight: 500;
    opacity: 0.65;
    font-size: 10px;
}

/* Dark pills (over dark bg) */
.ofcard-pills--dark {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.ofcard-pill--dark {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    transition: background 0.15s, border-color 0.15s;
}
.ofcard-pill--dark.is-active {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}

/* Carousel nav (inside overlay) */
.ofc-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.ofc-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    color: #fff;
    backdrop-filter: blur(4px);
    transition: background 0.15s;
}
.ofc-btn:hover { background: rgba(255,255,255,0.35); }

.ofc-dots { display: flex; gap: 4px; }
.ofc-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.2s;
}
.ofc-dot.is-active { background: #fff; }

/* D&D hint overlay */
.ofgallery-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(24,24,27,0.5);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(2px);
    border-radius: inherit;
    z-index: 20;
}
.ofgallery-img-wrap:hover .ofgallery-hint,
.ofgallery-img-wrap.is-over .ofgallery-hint { opacity: 1; }
.ofgallery-img-wrap.is-over { outline: 2px solid #fff; }

/* D&D hint on portrait/landscape wrappers */
.ofgallery-img-wrap--portrait .ofgallery-hint,
.ofgallery-img-wrap--landscape .ofgallery-hint { z-index: 30; }

/* File input */
.ofgallery-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 25;
    width: 100%;
    height: 100%;
}

/* Mobile */
@media (max-width: 640px) {
    .ofgallery {
        grid-template-areas:
            "ec ec"
            "ig ads";
        grid-template-columns: 1fr 1fr;
    }
    .ofgallery-img-wrap--landscape {
        aspect-ratio: 4 / 3;
    }
}


/* =============================================================
   EC Carousel — Thumbnail strip (all 4 slots droppable)
   ============================================================= */
.ofc-thumbstrip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 6px;
}

.ofc-thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: #f4f4f5;
    transition: border-color 0.2s;
}
.ofc-thumb.is-active {
    border-color: #18181b;
}
.ofc-thumb.is-over {
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px #7c3aed33;
}
.ofc-thumb:hover:not(.is-active) {
    border-color: #a1a1aa;
}

.ofc-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.ofc-thumb-label {
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    pointer-events: none;
}

/* File input inside thumb */
.ofc-thumb .ofgallery-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
    width: 100%;
    height: 100%;
}



/* =============================================================
   PRODUCTION GUARD — disable all D&D UI (2026-02-21 hotfix)
   ============================================================= */
.ofgallery-hint,
.studio-dd-hint,
.ofgallery-file-input,
.ofc-thumb .ofgallery-file-input {
    display: none !important;
    pointer-events: none !important;
}
.ofgallery-img-wrap,
.ofgallery-img-wrap--portrait,
.ofgallery-img-wrap--landscape,
.ofc-thumb {
    cursor: default !important;
}


/* =============================================================
   PRODUCTION HARDLOCK — no D&D, no file picker (2026-02-21)
   ============================================================= */
input[type="file"],
.ofgallery-file-input,
.ofgallery-hint,
.studio-dd-hint {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    overflow: hidden !important;
}
.ofgallery-img-wrap,
.ofgallery-img-wrap--portrait,
.ofgallery-img-wrap--landscape,
.studio-hero-card,
.ofc-thumb {
    cursor: default !important;
}
img[data-img-key] {
    cursor: default !important;
    pointer-events: none !important;
}

/* =============================================================
   LUMINA PDP HERO CARD — COS-style product detail page mock
   2026-02-23
   ============================================================= */

/* ── Card shell ─────────────────────────────────────────────── */
.pdp-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #f9f8f7;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow:
        0 22px 70px rgba(0,0,0,.13),
        inset 0 1px 0 rgba(255,255,255,.7);
    transform: perspective(1200px) rotateY(-10deg) rotateX(6deg);
    transform-origin: center;
    transition: transform .35s ease, box-shadow .35s ease;
    will-change: transform;
    max-width: 560px;
    margin-left: auto;
}
.pdp-card:hover {
    transform: perspective(1200px) rotateY(-6deg) rotateX(3deg) translateY(-2px);
    box-shadow: 0 28px 80px rgba(0,0,0,.17), inset 0 1px 0 rgba(255,255,255,.7);
}
@media (max-width: 768px) {
    .pdp-card {
        transform: none !important;
        box-shadow: 0 8px 30px rgba(0,0,0,.1);
        max-width: 100%;
    }
}

/* ── Tab pill row ───────────────────────────────────────────── */
.pdp-tabs {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
    display: inline-flex;
    gap: 5px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0,0,0,0.09);
}
.pdp-tab {
    border: 1px solid rgba(0,0,0,0.09);
    background: rgba(255,255,255,0.5);
    color: rgba(0,0,0,0.6);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, color .2s;
    font-family: inherit;
}
.pdp-tab.is-active {
    background: #18181b;
    color: #fff;
    border-color: transparent;
}

/* ── View switching ─────────────────────────────────────────── */
.pdp-view {
    display: none;
}
.pdp-view.is-active {
    display: flex;
}

/* ── EC View layout (COSライク 2カラム) ─────────────────────── */
.pdp-view--ec {
    flex-direction: row;
    min-height: 480px;
}

/* Left: gallery (55%) */
.pdp-gallery {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #ede9e4;
}
.pdp-main-img-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
}
.pdp-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.pdp-img.is-active {
    opacity: 1;
}
.pdp-view-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.38);
    backdrop-filter: blur(4px);
    padding: 3px 8px;
    border-radius: 12px;
    pointer-events: none;
    z-index: 5;
}
/* Thumbnail dot strip */
.pdp-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 8px 0 6px;
    background: #ede9e4;
}
.pdp-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background .2s;
}
.pdp-dot.is-active {
    background: #18181b;
}

/* Right: product info (45%) */
.pdp-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 16px 16px;
    background: #fff;
    gap: 0;
    overflow-y: auto;
}

/* Brand */
.pdp-brand {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: #71717a;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Product name */
.pdp-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: #18181b;
    margin-bottom: 8px;
}

/* Price */
.pdp-price {
    font-size: 15px;
    font-weight: 700;
    color: #18181b;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.pdp-tax { font-size: 10px; font-weight: 400; color: #a1a1aa; }

/* Divider line */
.pdp-info::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: #f4f4f5;
    margin-bottom: 12px;
    order: -1;
    /* pseudo divider after brand/name/price group */
}

/* Color swatches */
.pdp-colors { margin-bottom: 12px; }
.pdp-field-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #71717a;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    gap: 6px;
    align-items: center;
}
.pdp-field-value {
    font-weight: 500;
    text-transform: none;
    color: #18181b;
    letter-spacing: 0;
}
.pdp-swatches { display: flex; gap: 6px; }
.pdp-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .15s;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}
.pdp-swatch.is-active {
    border-color: #18181b;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12), 0 0 0 2px #fff, 0 0 0 3.5px #18181b;
}

/* Size chips */
.pdp-sizes { margin-bottom: 14px; }
.pdp-size-chips { display: flex; gap: 5px; }
.pdp-size {
    font-size: 11px;
    font-weight: 600;
    color: #52525b;
    border: 1px solid #e4e4e7;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    min-width: 30px;
    text-align: center;
}
.pdp-size.is-active {
    background: #18181b;
    color: #fff;
    border-color: #18181b;
}

/* CTA */
.pdp-cta {
    width: 100%;
    background: #18181b;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: default;
    margin-bottom: 8px;
    font-family: inherit;
}

/* Shipping note */
.pdp-shipping {
    font-size: 10px;
    color: #a1a1aa;
    text-align: center;
    margin-bottom: 12px;
}

/* AI badge */
.pdp-ai-badge {
    margin-top: auto;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #a1a1aa;
    text-transform: uppercase;
    border-top: 1px solid #f4f4f5;
    padding-top: 10px;
    text-align: center;
}

/* ── Campaign View (editorial 16:9) ─────────────────────────── */
.pdp-view--campaign {
    flex-direction: column;
    min-height: 0;
}
.pdp-campaign-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.pdp-campaign-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pdp-campaign-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 22px;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.pdp-campaign-season {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 2px;
}
.pdp-campaign-brand {
    font-family: 'Rubik', sans-serif;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1;
}


/* =============================================================
   KIVE SECTION — empty-state overlay hidden (images now real files)
   2026-02-23
   ============================================================= */
#kiveEmpty,
.kive-thumb-empty,
.dd-hover-overlay {
    display: none !important;
}
/* Show images properly */
.kive-viewport-img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.kive-viewport-img.is-active {
    display: block;
}
.kive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =============================================================
   KIVE-STYLE 3-COLUMN GALLERY — 2026-02-24
   ============================================================= */
.kive3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 2.5rem;
    padding: 0;
}

/* ── Card shell ─────────────────────────────────────────────── */
.k3-card {
    background: #111113;
    border: 1px solid #1e1e21;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.k3-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

/* ── Visual area (top) ──────────────────────────────────────── */
.k3-visual {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}
.k3-visual > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── EC split (input left / output right) ───────────────────── */
.k3-split {
    display: flex;
    min-height: 320px;
}
.k3-split-left,
.k3-split-right {
    flex: 1;
    position: relative;
    overflow: hidden;
}
.k3-split-left {
    border-right: 1.5px solid rgba(255,255,255,0.08);
}
.k3-split-left img,
.k3-split-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* EC carousel within right panel */
.k3-ec-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: block !important;
}
.k3-ec-img.is-active {
    opacity: 1;
}
/* INPUT / OUTPUT side labels */
.k3-side-label {
    position: absolute;
    bottom: 8px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border-radius: 10px;
    pointer-events: none;
    z-index: 5;
}
.k3-side-label--in {
    left: 8px;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
}
.k3-side-label--out {
    right: 8px;
    background: rgba(167,139,250,0.25);
    color: #c4b5fd;
}

/* ── Tab strip (EC view selector) ──────────────────────────── */
.k3-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 10px 0;
    background: #111113;
}
.k3-tab {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid #27272a;
    color: #71717a;
    background: transparent;
    transition: background .15s, color .15s, border-color .15s;
}
.k3-tab.is-active {
    background: #27272a;
    color: #fafafa;
    border-color: #3f3f46;
}

/* ── Instagram visual (tall portrait) ──────────────────────── */
.k3-visual--ig {
    min-height: 360px;
}
.k3-visual--ig img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* ── Ads layout (main left + thumbs right) ──────────────────── */
.k3-ads-layout {
    display: flex;
    min-height: 320px;
}
.k3-ads-main {
    flex: 1;
    position: relative;
    overflow: hidden;
}
.k3-ads-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.k3-ads-thumbs {
    flex: 0 0 72px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 3px;
    background: #0d0d0f;
    border-left: 1px solid #1e1e21;
}
.k3-ads-thumbs img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    opacity: 0.85;
    transition: opacity .2s;
}
.k3-ads-thumbs img:hover { opacity: 1; }

/* ── Badge row ──────────────────────────────────────────────── */
.k3-badge-row {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 4px;
    z-index: 5;
    pointer-events: none;
}
.k3-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15,15,15,0.7);
    color: #e4e4e7;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}
.k3-badge--dim { color: #71717a; }

/* ── Caption ────────────────────────────────────────────────── */
.k3-caption {
    padding: 14px 16px 16px;
    border-top: 1px solid #1e1e21;
}
.k3-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fafafa;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}
.k3-dim { color: #52525b; font-weight: 400; }
.k3-desc {
    font-size: 0.75rem;
    color: #71717a;
    line-height: 1.55;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .kive3col { grid-template-columns: 1fr 1fr; }
    .k3-card--ads { grid-column: span 2; }
    .k3-ads-layout { min-height: 220px; }
}
@media (max-width: 600px) {
    .kive3col { grid-template-columns: 1fr; }
    .k3-card--ads { grid-column: span 1; }
}

/* card-grid-5 — 5 feature cards in one row (2026-02-24) */
.card-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1100px) {
    .card-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
    .card-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .card-grid-5 { grid-template-columns: 1fr; }
}

/* Campaign view removed */
.pdp-tabs { display: none !important; }
.pdp-view--campaign { display: none !important; }

/* kive3col — force 3:4 portrait image area (2026-02-25) */
.k3-visual {
    aspect-ratio: 3 / 4 !important;
    min-height: unset !important;
    height: unset !important;
    flex: none !important;
}
/* EC split inherits via children */
.k3-split { height: 100%; }

/* ═══════════════════════════════════════════════════════════════
   FEAT-ROWS — Kive.ai style left-text / right-image (2026-02-25)
   ═══════════════════════════════════════════════════════════════ */

/* Full-bleed breakout from .container */
.feat-rows {
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    background: #080808;
    overflow: hidden;
}

/* Row */
.feat-row {
    display: flex;
    min-height: 58vh;
    border-top: 1px solid #1c1c1e;
    align-items: stretch;
}
.feat-row:first-child { border-top: none; }

/* ── Left: text panel ── */
.feat-text {
    width: 42%;
    flex-shrink: 0;
    padding: 5rem clamp(2rem, 4vw, 5rem) 5rem clamp(2rem, 5vw, 6rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.feat-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 1.25rem;
}

.feat-heading {
    font-size: clamp(30px, 3.2vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: #f5f5f7;
    margin: 0 0 1.25rem;
}

.feat-desc {
    font-size: 0.925rem;
    line-height: 1.75;
    color: #777;
    max-width: 380px;
    margin-bottom: 1.75rem;
}

.feat-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.feat-bullets li {
    font-size: 0.82rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.feat-bullets li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #a78bfa;
    flex-shrink: 0;
}

/* ── Right: visual panel ── */
.feat-visual {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 420px;
}
.feat-visual > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Row 2: モデル画像は頭から表示 */
.feat-row--model .feat-visual > img {
    object-position: top center;
}

/* ── EC split ── */
.feat-visual--split { overflow: hidden; }
.feat-split {
    display: flex;
    height: 100%;
    width: 100%;
}
.feat-sl, .feat-sr {
    flex: 1;
    position: relative;
    overflow: hidden;
}
.feat-sl::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    right: 0;
    width: 1px;
    background: rgba(255,255,255,0.12);
}
.feat-sl img, .feat-sr img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feat-sr .feat-ec-img {
    opacity: 0;
    transition: opacity .35s ease;
}
.feat-sr .feat-ec-img.is-active { opacity: 1; }

.feat-sidetag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 2;
    pointer-events: none;
}
.feat-sidetag--out { color: #c4b5fd; border-color: rgba(167,139,250,0.3); }

.feat-ec-tabs {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
    z-index: 3;
}
.feat-ec-tab {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 3px 9px;
    border-radius: 20px;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    color: rgba(255,255,255,0.45);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all .15s;
    user-select: none;
}
.feat-ec-tab.is-active {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}
.feat-ec-tab:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 960px) {
    .feat-rows {
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    .feat-row {
        flex-direction: column;
        min-height: auto;
    }
    .feat-text {
        width: 100%;
        padding: 2.5rem 1.5rem;
    }
    .feat-visual { min-height: 55vw; }
    .feat-heading { font-size: clamp(26px, 6vw, 40px); }
}
