/* logo.io: landing page styles */

:root {
    --primary: #4F46E5;
    --primary-600: #4338CA;
    --primary-700: #3730A3;
    --primary-50: #EEF2FF;
    --primary-100: #E0E7FF;
    --violet: #7C3AED;
    --pink: #EC4899;
    --ink: #0B0B1A;
    --ink-2: #3F3F55;
    --muted: #6B6B80;
    --line: #E6E6F0;
    --surface: #F7F7FB;
    --white: #FFFFFF;
    --gradient: linear-gradient(120deg, var(--primary) 0%, var(--violet) 55%, var(--pink) 100%);

    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', var(--font);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgb(11 11 26 / 0.06);
    --shadow: 0 10px 30px -12px rgb(11 11 26 / 0.15), 0 2px 6px rgb(11 11 26 / 0.04);
    --shadow-primary: 0 12px 30px -10px rgb(79 70 229 / 0.55);
    --container: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

/* The hidden attribute always wins over component display rules. */
[hidden] { display: none !important; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid rgb(79 70 229 / 0.45); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--primary-100); color: var(--primary-700); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container-narrow { --container: 820px; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 600; font-size: 0.95rem; line-height: 1.2; white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.7; cursor: progress; }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--primary-600); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--primary); background: var(--primary-50); }
.btn-outline { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-soft { background: var(--primary-50); color: var(--primary-700); }
.btn-soft:hover { background: var(--primary-100); }
.btn-light { background: var(--white); color: var(--primary-700); }
.btn-light:hover { background: var(--primary-50); }
.btn-small { padding: 0.45rem 0.8rem; font-size: 0.85rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */

.nav {
    position: sticky; top: 0; z-index: 50;
    transition: background 0.25s, box-shadow 0.25s, border-color 0.25s;
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-open {
    background: rgb(255 255 255 / 0.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand svg { filter: drop-shadow(0 4px 10px rgb(79 70 229 / 0.35)); transition: transform 0.3s cubic-bezier(.3,1.4,.5,1); }
.brand:hover svg { transform: rotate(-8deg) scale(1.05); }
.wordmark { font-weight: 700; letter-spacing: -0.03em; }
.wordmark-tld { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 0.25rem; margin-left: auto; }
.nav-links a { padding: 0.5rem 0.85rem; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 0.95rem; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--primary); background: var(--primary-50); }
.nav-actions { display: flex; gap: 0.5rem; }
.nav-island { display: contents; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 0.5rem; border-radius: 10px; }
.mobile-menu { display: none; }

@media (max-width: 860px) {
    .nav-links, .nav-actions { display: none; }
    .nav-toggle { display: inline-flex; }
    .mobile-menu:not([hidden]) {
        position: absolute; top: 100%; left: 0; right: 0;
        display: flex; flex-direction: column; gap: 0.25rem;
        padding: 0.5rem 1.25rem 1.25rem;
        background: rgb(255 255 255 / 0.97);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        animation: fade-down 0.2s ease-out;
    }
    .mobile-menu a:not(.btn) { padding: 0.75rem 0.25rem; font-weight: 500; border-bottom: 1px solid var(--line); }
    .mobile-menu .btn { margin-top: 0.5rem; }
}

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(1.5rem, 4vw, 2.75rem) 0 3.5rem; overflow: hidden; isolation: isolate; }
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background-image: radial-gradient(rgb(79 70 229 / 0.13) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: float 14s ease-in-out infinite; }
.orb-1 { width: 420px; height: 420px; background: #A5B4FC; top: -120px; left: -80px; }
.orb-2 { width: 360px; height: 360px; background: #C4B5FD; top: 40px; right: -100px; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: #FBCFE8; bottom: -60px; left: 40%; animation-delay: -9s; opacity: 0.4; }

.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.3rem 0.8rem 0.3rem 0.55rem;
    border: 1px solid var(--primary-100); border-radius: 999px;
    background: rgb(255 255 255 / 0.75);
    color: var(--primary-700); font-size: 0.8rem; font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s;
}
.eyebrow:hover { border-color: var(--primary); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgb(79 70 229 / 0.18); animation: pulse 2s infinite; }
.hero-title { margin-top: 1rem; font-size: clamp(2.1rem, 4.8vw, 3.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
.hero-subtitle { max-width: 560px; margin-top: 0.75rem; color: var(--ink-2); font-size: clamp(1rem, 1.4vw, 1.1rem); }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.9rem; }
.trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.trust .icon { color: var(--primary); }

/* ---------- Generator demo ---------- */

/* The island wrapper is a flex item of .hero-inner; without a width it shrinks to its content (e.g. the skeletons). */
.generator-island { width: 100%; max-width: 900px; }
.generator { width: 100%; max-width: 900px; margin-top: 1.75rem; }
.prompt {
    position: relative; display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem;
    background: var(--white);
    border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow), 0 0 0 6px rgb(79 70 229 / 0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.prompt:focus-within { border-color: var(--primary); box-shadow: var(--shadow), 0 0 0 6px rgb(79 70 229 / 0.15); }
.prompt-icon { margin-left: 0.6rem; color: var(--primary); flex-shrink: 0; }
.prompt-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.1rem; padding: 0.6rem 0.25rem; color: var(--ink); }
.prompt-input::placeholder { color: #9A9AAE; }
.prompt-btn { padding: 0.85rem 1.4rem; border-radius: 13px; }

.style-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.chip {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--line); border-radius: 999px;
    background: rgb(255 255 255 / 0.8);
    font-size: 0.85rem; font-weight: 500; color: var(--ink-2);
    transition: all 0.2s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.generator-panel {
    margin-top: 1.5rem;
    background: rgb(255 255 255 / 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: left;
    overflow: hidden;
}
.generator-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dots i:nth-child(1) { background: #FCA5A5; }
.dots i:nth-child(2) { background: #FCD34D; }
.dots i:nth-child(3) { background: #86EFAC; }
.generator-status { flex: 1; font-size: 0.85rem; color: var(--muted); font-weight: 500; }

.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1rem; }
.concept {
    position: relative; padding: 0;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    animation: pop-in 0.45s cubic-bezier(.2,.9,.3,1.2) both;
}
.concept:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.concept.is-selected { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary), var(--shadow); }
.concept .logo-art { width: 100%; height: 100%; }
.concept-tag {
    position: absolute; top: 8px; right: 8px;
    padding: 0.15rem 0.5rem; border-radius: 999px;
    background: rgb(255 255 255 / 0.85); color: var(--ink-2);
    font-size: 0.7rem; font-weight: 600; text-transform: capitalize;
    opacity: 0; transition: opacity 0.2s;
}
.concept:hover .concept-tag, .concept.is-selected .concept-tag { opacity: 1; }
.skeleton {
    animation: none;
    background: linear-gradient(100deg, var(--surface) 30%, var(--primary-50) 50%, var(--surface) 70%);
    background-size: 300% 100%;
    animation: shimmer 1.2s linear infinite;
}
.generator-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; min-height: 56px; padding: 0.6rem 1rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }

@media (max-width: 640px) {
    .prompt { flex-wrap: wrap; }
    .prompt-input { flex-basis: calc(100% - 3rem); }
    .prompt-btn { width: 100%; }
    .concept-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; padding: 0.6rem; }
}

/* ---------- Marquee ---------- */

.marquee-section { padding: 2rem 0 3rem; }
.marquee-label { text-align: center; color: var(--muted); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1.5rem; }
.marquee {
    min-height: 127px;
    display: flex; overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 1rem; padding-right: 1rem; flex-shrink: 0; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { width: 200px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* ---------- Sections ---------- */

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--surface); }
.section-header { max-width: 680px; margin: 0 auto 3.5rem; text-align: center; }
.section-eyebrow { display: inline-block; color: var(--primary); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; }
.section-title { margin-top: 0.75rem; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.section-text { margin-top: 1rem; color: var(--ink-2); font-size: 1.1rem; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 2rem; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--primary-50), transparent 80%); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary); color: var(--white); font-family: var(--font-display); font-weight: 700; box-shadow: var(--shadow-primary); }
.step h3 { margin-top: 1.25rem; font-size: 1.35rem; }
.step p { margin-top: 0.5rem; color: var(--ink-2); }
.step:not(:last-child)::after {
    content: ''; position: absolute; top: 56px; left: calc(2rem + 60px); right: -1.5rem;
    border-top: 2px dashed var(--primary-100);
}

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature { transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-100); }
.feature-icon { display: inline-flex; padding: 0.75rem; border-radius: 14px; background: var(--primary-50); color: var(--primary); }
.feature h3 { margin-top: 1.25rem; font-size: 1.2rem; }
.feature p { margin-top: 0.5rem; color: var(--ink-2); }

/* Use cases */
.usecase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.usecase { padding: 2.5rem; }
.usecase h3 { font-size: 1.6rem; }
.usecase p { margin-top: 0.75rem; color: var(--ink-2); }
.usecase ul { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.usecase li { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; }
.usecase li .icon { color: var(--primary); flex-shrink: 0; }
.usecase-primary { background: var(--ink); border-color: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.usecase-primary::before { content: ''; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px; border-radius: 50%; background: var(--primary); filter: blur(90px); opacity: 0.7; }
.usecase-primary > * { position: relative; }
.usecase-primary p { color: #C7C7D9; }
.usecase-primary li .icon { color: #A5B4FC; }

/* Pricing */
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 0.85rem; margin: -1.5rem 0 2.5rem; color: var(--muted); font-weight: 500; }
.billing-toggle .is-active { color: var(--ink); }
.save { font-style: normal; margin-left: 0.35rem; padding: 0.15rem 0.5rem; border-radius: 999px; background: #DCFCE7; color: #15803D; font-size: 0.75rem; font-weight: 700; }
.switch { position: relative; width: 52px; height: 30px; padding: 0; border: 0; border-radius: 999px; background: #D4D4E0; transition: background 0.2s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); transition: transform 0.25s cubic-bezier(.3,1.4,.5,1); }
.switch[aria-checked="true"] { background: var(--primary); }
.switch[aria-checked="true"] span { transform: translateX(22px); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan-name { font-size: 1.3rem; }
.plan-desc { margin-top: 0.4rem; color: var(--muted); min-height: 3.2em; }
.plan-price { display: flex; align-items: baseline; gap: 0.4rem; margin: 1.5rem 0; }
.plan-price .amount { font-family: var(--font-display); font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.plan-price .period { color: var(--muted); font-size: 0.9rem; }
.plan-features { margin: 1.75rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 0.75rem; }
.plan-features li { display: flex; align-items: center; gap: 0.6rem; color: var(--ink-2); }
.plan-features .icon { color: var(--primary); flex-shrink: 0; }
.plan-featured { border: 2px solid var(--primary); box-shadow: var(--shadow), 0 30px 60px -30px rgb(79 70 229 / 0.45); transform: translateY(-8px); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 0.3rem 0.85rem; border-radius: 999px; background: var(--gradient); color: var(--white); font-size: 0.78rem; font-weight: 700; white-space: nowrap; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial { margin: 0; display: flex; flex-direction: column; }
.stars { color: #F59E0B; letter-spacing: 0.15em; }
.testimonial blockquote { flex: 1; margin: 1rem 0 1.5rem; font-size: 1.05rem; color: var(--ink); }
.testimonial figcaption { display: flex; align-items: center; gap: 0.75rem; }
.testimonial strong { display: block; font-size: 0.95rem; }
.testimonial small { display: block; color: var(--muted); font-size: 0.85rem; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--white); font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.avatar-0 { background: linear-gradient(135deg, var(--primary), var(--violet)); }
.avatar-1 { background: linear-gradient(135deg, #0EA5E9, var(--primary)); }
.avatar-2 { background: linear-gradient(135deg, var(--pink), #F97316); }

/* FAQ */
.faq { display: grid; gap: 0.75rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s; }
.faq details[open] { border-color: var(--primary-100); box-shadow: var(--shadow-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex-shrink: 0; color: var(--primary); transition: transform 0.25s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 1.5rem 1.35rem; color: var(--ink-2); }

/* CTA */
.cta-section { padding: clamp(4rem, 8vw, 6rem) 0; }
.cta {
    position: relative; overflow: hidden;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
    border-radius: 32px;
    background: linear-gradient(135deg, var(--primary-700), var(--primary) 45%, var(--violet));
    color: var(--white); text-align: center;
    box-shadow: 0 40px 80px -40px rgb(79 70 229 / 0.7);
}
.cta::before, .cta::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.15); }
.cta::before { width: 420px; height: 420px; top: -210px; right: -120px; }
.cta::after { width: 300px; height: 300px; bottom: -180px; left: -80px; }
.cta h2 { position: relative; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.cta > p { position: relative; max-width: 560px; margin: 1rem auto 0; color: #E0E7FF; font-size: 1.1rem; }
.cta-form { position: relative; display: flex; gap: 0.5rem; max-width: 480px; margin: 2rem auto 0; padding: 0.4rem; border-radius: 16px; background: rgb(255 255 255 / 0.14); border: 1px solid rgb(255 255 255 / 0.25); }
.cta-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0.6rem 0.9rem; color: var(--white); font: inherit; }
.cta-form input::placeholder { color: rgb(255 255 255 / 0.7); }
.cta-success { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 2rem; padding: 0.85rem 1.25rem; border-radius: 14px; background: rgb(255 255 255 / 0.15); }

@media (max-width: 520px) {
    .cta-form { flex-direction: column; background: none; border: 0; padding: 0; }
    .cta-form input { background: rgb(255 255 255 / 0.14); border: 1px solid rgb(255 255 255 / 0.25); border-radius: 12px; padding: 0.85rem 1rem; }
}

/* Footer */
.footer { border-top: 1px solid var(--line); padding-top: 4rem; background: var(--white); }
.footer-inner { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; }
.footer-brand p { margin-top: 0.75rem; max-width: 280px; color: var(--muted); }
.footer-mail { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; color: var(--ink-2); font-size: 0.95rem; }
.footer-mail:hover { color: var(--primary); }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.4rem; }
.footer-col a { color: var(--ink-2); font-size: 0.95rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-top: 3rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }


/* ---------- Inner pages ---------- */

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: 0.6rem 1rem; border-radius: 10px; background: var(--ink); color: var(--white); font-weight: 600; }
.skip-link:focus { top: 1rem; }

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.page-hero .container { display: flex; flex-direction: column; align-items: center; }
.page-title { margin-top: 0.75rem; max-width: 860px; font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.035em; }
.page-lead { max-width: 640px; margin-top: 1rem; color: var(--ink-2); font-size: clamp(1rem, 1.5vw, 1.15rem); }

.breadcrumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: 0.85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: '/'; margin-right: 0.4rem; color: #C4C4D4; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current] { color: var(--ink-2); font-weight: 500; }

.section-tight { padding-top: clamp(1.5rem, 4vw, 3rem); }
.section-more { margin-top: 2.5rem; text-align: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--primary); font-weight: 600; }
.link-arrow .icon { transition: transform 0.2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Features page */
.feature-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.feature-row { display: flex; gap: 1.25rem; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.feature-row h2 { font-size: 1.35rem; }
.feature-row p { margin-top: 0.5rem; color: var(--ink-2); }
.feature-row .feature-row-lead { color: var(--ink); font-weight: 500; }
.feature-icon-lg { flex-shrink: 0; align-self: flex-start; padding: 0.9rem; }
.kit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.kit-item { display: flex; gap: 1rem; padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.kit-item > .icon { flex-shrink: 0; color: var(--primary); }
.kit-item h3 { font-size: 1.05rem; }
.kit-item p { margin-top: 0.3rem; color: var(--ink-2); font-size: 0.95rem; }

/* How it works page */
.step-rows { display: grid; gap: 1.5rem; max-width: 880px; margin: 0 auto; padding: 0; list-style: none; }
.step-row { display: flex; gap: 1.5rem; padding: 2rem; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--primary-50), var(--white) 70%); border: 1px solid var(--line); }
.step-row .step-num { flex-shrink: 0; }
.step-row h2 { font-size: 1.6rem; }
.step-row p { margin-top: 0.5rem; color: var(--ink-2); }
.tick-list { display: grid; gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.tick-list li { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.tick-list .icon { color: var(--primary); flex-shrink: 0; }
.generator-placeholder { min-height: 520px; }

/* Examples page */
.example-group + .example-group { margin-top: 3.5rem; }
.example-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.example-head h2 { font-size: 1.5rem; }
.example-head p { color: var(--muted); max-width: 520px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item { margin: 0; cursor: default; }
.gallery-item .concept-tag { opacity: 1; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--line); text-align: center; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--font-display); font-size: 1.05rem; background: var(--surface); }
.compare th[scope="row"], .compare thead th:first-child { text-align: left; font-family: var(--font); font-weight: 500; }
.compare-left td { text-align: left; color: var(--ink-2); }
.compare .yes { color: var(--primary); display: inline-flex; }
.compare .no { color: #C4C4D4; display: inline-flex; }

/* FAQ page */
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.callout { display: flex; align-items: center; gap: 1rem; margin-top: 3rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--primary-50); color: var(--primary-700); }
.callout a { font-weight: 600; text-decoration: underline; }

/* Changelog */
.timeline { margin: 0; padding: 0 0 0 1.75rem; list-style: none; border-left: 2px solid var(--primary-100); }
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item::before { content: ''; position: absolute; left: calc(-1.75rem - 7px); top: 0.35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-100); }
.timeline-item time { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.timeline-item h2 { margin-top: 0.35rem; font-size: 1.4rem; }
.timeline-item ul { margin: 0.75rem 0 0; padding-left: 1.2rem; color: var(--ink-2); display: grid; gap: 0.4rem; }

/* Prose (about, legal) */
.prose { color: var(--ink-2); font-size: 1.05rem; line-height: 1.75; }
.prose h2 { margin: 2.5rem 0 0.75rem; color: var(--ink); font-size: 1.45rem; }
.prose h3 { color: var(--ink); font-size: 1.15rem; }
.prose > :first-child { margin-top: 0; }
.prose p + p { margin-top: 1rem; }
.prose ul { margin: 0.75rem 0; padding-left: 1.3rem; display: grid; gap: 0.4rem; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }
.prose .table-wrap { margin: 1rem 0; font-size: 0.95rem; line-height: 1.5; }
.legal-updated { display: inline-block; margin-bottom: 0.5rem; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--surface); font-size: 0.85rem; color: var(--muted); }
.license-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.license-summary .card { padding: 1.5rem; }
.license-summary p { margin-top: 0.5rem; font-size: 0.95rem; line-height: 1.6; }
.card-accent { border: 2px solid var(--primary); }

/* About */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.value h3 { margin-top: 1rem; font-size: 1.15rem; }
.value p { margin-top: 0.5rem; color: var(--ink-2); font-size: 0.95rem; }

/* Blog & careers */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-tag { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--primary-50); color: var(--primary-700); font-size: 0.78rem; font-weight: 600; }
.post h2 { margin-top: 1rem; font-size: 1.25rem; }
.post-soon { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.25rem; color: var(--muted); font-size: 0.9rem; }
.empty-state { text-align: center; padding: 3rem 2rem; }
.empty-state h2 { margin-top: 1rem; font-size: 1.5rem; }
.empty-state p { max-width: 520px; margin: 0.75rem auto 1.5rem; color: var(--ink-2); }

/* Forms */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; align-items: start; }
.contact-aside { display: grid; gap: 1.5rem; }
.contact-aside h2 { margin-top: 1rem; font-size: 1.2rem; }
.contact-aside p { margin: 0.4rem 0 0.75rem; color: var(--ink-2); }
.form { display: grid; gap: 1rem; }
.form h2 { font-size: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.4rem; font-weight: 500; font-size: 0.92rem; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%; padding: 0.75rem 0.9rem;
    border: 1px solid var(--line); border-radius: 12px;
    background: var(--white); font: inherit; font-weight: 400; color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgb(79 70 229 / 0.12); }
.form .btn { justify-self: start; }
.form-success { text-align: center; justify-items: center; }
.form-success p { color: var(--ink-2); }
.form-success a { color: var(--primary); font-weight: 600; }
.form-note { padding: 0.85rem 1rem; border-radius: 12px; background: var(--primary-50); color: var(--primary-700); font-size: 0.9rem; }

/* Auth */
.auth { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: calc(100vh - 72px); padding: 3rem 1.25rem; }
.auth-card { width: 100%; max-width: 440px; text-align: center; padding: 2.5rem 2rem; box-shadow: var(--shadow); }
.auth-brand { justify-content: center; }
.auth h1 { margin-top: 1.25rem; font-size: 1.8rem; }
.auth-sub { margin-top: 0.5rem; color: var(--muted); }
.auth-form { display: grid; gap: 1rem; margin-top: 1.75rem; text-align: left; }
.auth-switch { margin-top: 1.5rem; color: var(--muted); font-size: 0.95rem; }
.auth-switch a, .auth-legal a { color: var(--primary); font-weight: 600; }
.auth-legal { margin-top: 0.75rem; color: var(--muted); font-size: 0.8rem; }

/* 404 */
.not-found { position: relative; isolation: isolate; overflow: hidden; padding: clamp(4rem, 10vw, 7rem) 0; text-align: center; }
.not-found-code { font-family: var(--font-display); font-size: clamp(5rem, 14vw, 9rem); font-weight: 700; line-height: 1; letter-spacing: -0.05em; }
.not-found h1 { margin-top: 1rem; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.not-found p { margin-top: 0.75rem; color: var(--ink-2); }
.not-found-actions { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }
.not-found-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2.5rem; }
.not-found-links a { color: var(--primary); font-weight: 500; }

@media (max-width: 960px) {
    .kit-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .feature-rows, .kit-grid, .post-grid, .values-grid, .license-summary, .form-row { grid-template-columns: 1fr; }
    .feature-row, .step-row { flex-direction: column; padding: 1.5rem; }
}

/* ---------- Responsive grids ---------- */

@media (max-width: 960px) {
    .feature-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
    .plan-featured { transform: none; }
    .footer-inner { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .steps, .feature-grid, .usecase-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .step::after { display: none; }
    .usecase { padding: 2rem; }
}
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Motion ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .plan-featured.reveal.is-visible { transform: translateY(-8px); }
@media (max-width: 960px) { .js .plan-featured.reveal.is-visible { transform: none; } }

@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, 20px) scale(1.06); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgb(79 70 229 / 0.18); } 50% { box-shadow: 0 0 0 7px rgb(79 70 229 / 0.06); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.92) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .marquee-track { animation: none; }
    .marquee { overflow-x: auto; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Logo maker (/create) ---------- */
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1.05rem; border-radius: 14px; }
.js-only { display: none; }
.js .js-only { display: flex; }

.app-page { background: radial-gradient(60rem 40rem at 105% 110%, rgb(79 70 229 / 0.10), transparent 60%), radial-gradient(50rem 36rem at -10% 120%, rgb(236 72 153 / 0.07), transparent 60%), var(--white); background-attachment: fixed; min-height: 100vh; }
.maker { min-height: 100vh; display: flex; flex-direction: column; }
.mk-top { display: flex; align-items: center; gap: 1rem; padding: 1rem clamp(1rem, 3vw, 2rem); min-height: 68px; }
.mk-top .brand { flex-shrink: 0; }
.mk-top-actions { margin-left: auto; display: flex; gap: 0.75rem; align-items: center; flex-shrink: 0; }
.mk-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; flex: 1; min-width: 0; }
.mk-pill { display: inline-flex; align-items: center; gap: 0.4rem; max-width: 16rem; padding: 0.4rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / 0.8); font-size: 0.875rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .2s, color .2s; }
.mk-pill:hover { border-color: var(--primary); color: var(--primary); }
.mk-pill-dots { display: inline-flex; }
.mk-pill-dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white); margin-left: -4px; }
.mk-pill-dots i:first-child { margin-left: 0; }
.mk-progress { height: 3px; background: var(--primary-50); }
.mk-progress span { display: block; height: 100%; background: var(--gradient); border-radius: 0 3px 3px 0; transition: width .4s ease; }
.mk-body { flex: 1; position: relative; display: flex; flex-direction: column; padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem) 2rem; }
.mk-back { position: absolute; top: 1rem; left: clamp(1rem, 3vw, 2rem); display: inline-flex; align-items: center; gap: 0.35rem; border: 0; background: none; color: var(--muted); font-weight: 500; padding: 0.4rem 0.5rem; border-radius: 8px; }
.mk-back:hover { color: var(--primary); background: var(--primary-50); }

.mk-step { width: min(100%, 880px); margin: 0 auto; flex: 1; display: flex; flex-direction: column; animation: fade-down .35s ease both; }
.mk-step.is-wide { width: min(100%, 1080px); }
.mk-step-head { text-align: center; margin: clamp(1.5rem, 5vh, 3.5rem) 0 clamp(1.5rem, 4vh, 2.5rem); }
.mk-title { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
.mk-title-sm { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.mk-sub { margin-top: 0.85rem; color: var(--muted); font-size: 1.1rem; text-wrap: balance; }
.mk-step-body { flex: 1; }
.mk-actions { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin-top: 2.5rem; padding-bottom: 1rem; }
.mk-actions-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.mk-next { min-width: 11rem; }
.mk-next:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.mk-enter { font-size: 0.85rem; color: var(--muted); }
.mk-link { display: inline-flex; align-items: center; gap: 0.3rem; border: 0; background: none; padding: 0.25rem; color: var(--primary); font-weight: 600; border-radius: 6px; }
.mk-link:hover { color: var(--primary-700); text-decoration: underline; text-underline-offset: 3px; }
.mk-add { margin-top: 1.5rem; }

.mk-big-input { width: 100%; border: 0; border-bottom: 2px solid var(--line); background: transparent; padding: 0.4rem 2.5rem 0.6rem 0; font: 600 clamp(1.8rem, 4.5vw, 3rem)/1.2 var(--font-display); letter-spacing: -0.03em; color: var(--ink); outline: none; border-radius: 0; transition: border-color .2s; }
.mk-big-input::placeholder { color: #C5C5D3; }
.mk-big-input:focus { border-bottom-color: var(--primary); }
.mk-big-input:focus-visible { outline: none; }
.mk-field { margin-top: 2rem; display: grid; gap: 0.5rem; }
.mk-field label, .mk-control-label { font-weight: 600; font-size: 0.9rem; color: var(--ink-2); }
.mk-field label span, .mk-control-label span { color: var(--muted); font-weight: 400; }
.mk-input, .mk-select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 0.9rem; font: inherit; background: var(--white); color: var(--ink); }
.mk-input:focus, .mk-select:focus { border-color: var(--primary); outline: 3px solid rgb(79 70 229 / 0.15); }

.mk-combo { position: relative; }
.mk-combo-icon { position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.mk-listbox { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 0.4rem); margin: 0; padding: 0.4rem; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); max-height: 18rem; overflow: auto; }
.mk-listbox li { padding: 0.65rem 0.8rem; border-radius: 10px; cursor: pointer; font-weight: 500; }
.mk-listbox li:hover, .mk-listbox li.is-active { background: var(--primary-50); color: var(--primary-700); }

.mk-ai { display: flex; align-items: center; gap: 0.45rem; margin: 1.75rem 0 1rem; color: var(--ink-2); font-weight: 500; }
.mk-ai .icon { color: var(--primary); }
.mk-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.mk-chip { min-height: 64px; padding: 0.75rem 1rem; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--white); font-weight: 600; transition: border-color .2s, box-shadow .2s, transform .2s; }
.mk-chip:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.mk-chip.is-active { border-color: var(--primary); background: var(--primary-50); color: var(--primary-700); box-shadow: 0 0 0 3px rgb(79 70 229 / 0.15); }
.mk-chip.is-skeleton { width: 160px; border-color: transparent; background: linear-gradient(90deg, var(--surface), #EFEFF6, var(--surface)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; pointer-events: none; }
.mk-chip .icon { vertical-align: -2px; color: var(--primary); }

.mk-badge { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--primary-50); color: var(--primary-700); font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.mk-badge-sm { font-size: 0.65rem; padding: 0.1rem 0.4rem; }

.mk-vibes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.85rem; }
.mk-vibe { position: relative; display: grid; gap: 0.15rem; padding: 1.1rem 1.1rem 1rem; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: var(--white); transition: border-color .2s, box-shadow .2s, transform .2s; }
.mk-vibe:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.mk-vibe.is-active { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(79 70 229 / 0.15); background: linear-gradient(180deg, var(--primary-50), var(--white)); }
.mk-vibe-aa { font-size: 2.2rem; line-height: 1.2; margin-bottom: 0.35rem; color: var(--ink); }
.mk-vibe-label { font-weight: 700; }
.mk-vibe-text { color: var(--muted); font-size: 0.9rem; }
.mk-vibe .mk-badge { position: absolute; top: 0.85rem; right: 0.85rem; }
.mk-check { position: absolute; bottom: 0.85rem; right: 0.85rem; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: var(--white); }

.mk-slots { display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 2rem; }
.mk-slot { width: 52px; height: 52px; border-radius: 50%; border: 2px dashed #D4D4E0; background: var(--white); color: var(--muted); font-weight: 600; display: grid; place-items: center; transition: transform .2s; }
.mk-slot.is-next { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.mk-slot.is-filled { border: 3px solid var(--white); color: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); cursor: pointer; }
.mk-slot.is-filled .icon { opacity: 0; transition: opacity .2s; }
.mk-slot.is-filled:hover .icon { opacity: 1; }
.mk-slot:disabled { cursor: default; }
.mk-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 1.5rem 0.75rem; max-width: 820px; margin: 0 auto; }
.mk-swatch { position: relative; display: grid; justify-items: center; gap: 0.55rem; border: 0; background: none; padding: 0.25rem; font-weight: 600; border-radius: 14px; }
.mk-swatch-dot { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06); transition: transform .2s, box-shadow .2s; }
.mk-swatch:hover .mk-swatch-dot { transform: scale(1.06); }
.mk-swatch.is-active .mk-swatch-dot { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--primary); }
.mk-swatch-dot b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--primary-700); font-size: 0.9rem; }
.mk-swatch .mk-badge { position: absolute; top: 0; right: 0.4rem; }

.mk-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.mk-type { position: relative; display: grid; align-content: start; gap: 0.25rem; padding: 0.75rem 0.75rem 1rem; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: var(--white); transition: border-color .2s, box-shadow .2s, transform .2s; }
.mk-type:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.mk-type.is-active { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(79 70 229 / 0.15); }
.mk-type-art { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 0.6rem; }
.mk-type-label { font-weight: 700; padding: 0 0.25rem; }
.mk-type-text { color: var(--muted); font-size: 0.9rem; padding: 0 0.25rem; }
.mk-key { position: absolute; z-index: 1; top: 1.2rem; left: 1.2rem; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: 0.8rem; font-weight: 700; color: var(--ink-2); }
.mk-type.is-active .mk-key { background: var(--primary); border-color: var(--primary); color: var(--white); }

.mk-symbols { display: grid; gap: 1rem; }
.mk-search { display: flex; align-items: center; gap: 0.6rem; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--muted); }
.mk-search:focus-within { border-color: var(--primary); outline: 3px solid rgb(79 70 229 / 0.15); }
.mk-search input { flex: 1; min-width: 0; border: 0; padding: 0.8rem 0; font: inherit; color: var(--ink); background: none; outline: none; }
.mk-symbol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 0.6rem; }
.mk-symbol { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); transition: border-color .2s, transform .2s, background .2s, color .2s; }
.mk-symbol:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.mk-symbol.is-active { border-color: var(--primary); background: var(--primary); color: var(--white); }
.mk-label { font-weight: 600; font-size: 0.9rem; color: var(--ink-2); margin-top: 0.5rem; }
.mk-empty { color: var(--muted); padding: 1rem 0; text-align: center; }

.mk-loading { display: flex; align-items: center; justify-content: center; gap: 0.75rem; color: var(--muted); font-weight: 500; padding: 3rem 0; flex: 1; }
.mk-spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--primary-100); border-top-color: var(--primary); animation: spin .8s linear infinite; }
.mk-fallback-steps { display: grid; gap: 0.5rem; justify-content: center; color: var(--ink-2); font-weight: 500; }

/* Generating */
.mk-generating { margin: auto; display: grid; justify-items: center; gap: 1.5rem; text-align: center; padding: 2rem 0; animation: fade-down .35s ease both; }
.mk-orb { position: relative; width: 120px; height: 120px; display: grid; place-items: center; color: var(--white); }
.mk-orb .icon { position: relative; z-index: 1; animation: pulse-spin 2.4s ease-in-out infinite; }
.mk-orb span { position: absolute; inset: 0; border-radius: 50%; background: var(--gradient); animation: breathe 2.4s ease-in-out infinite; }
.mk-orb span:nth-child(2) { inset: -16px; opacity: 0.25; animation-delay: .3s; }
.mk-orb span:nth-child(3) { inset: -34px; opacity: 0.1; animation-delay: .6s; }
.mk-generating .mk-title { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.mk-progress-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; text-align: left; min-width: min(100%, 360px); }
.mk-progress-list li { display: flex; align-items: center; gap: 0.7rem; color: #B4B4C4; font-weight: 500; transition: color .3s; }
.mk-progress-list li.is-active { color: var(--ink); }
.mk-progress-list li.is-done { color: var(--ink-2); }
.mk-tick { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; }
.mk-progress-list li.is-active .mk-tick { border-color: var(--primary-100); border-top-color: var(--primary); animation: spin .8s linear infinite; }
.mk-progress-list li.is-done .mk-tick { border-color: var(--primary); background: var(--primary); color: var(--white); }

/* Rendered logos */
.logo-render { line-height: 0; }
.logo-render svg { width: 100%; height: auto; }
.logo-render.is-loading { aspect-ratio: 16 / 10; background: linear-gradient(90deg, var(--surface), #EFEFF6, var(--surface)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: inherit; }

/* Results */
.mk-results { width: min(100%, 1240px); margin: 0 auto; animation: fade-down .35s ease both; }
.mk-results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.mk-results-head .mk-ai { margin: 0 0 0.5rem; }
.mk-results-head .mk-sub { margin-top: 0.4rem; font-size: 1rem; }
.mk-results-tools { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.mk-tabs { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.mk-tabs button { display: inline-flex; align-items: center; gap: 0.35rem; border: 0; background: none; padding: 0.45rem 0.9rem; border-radius: 9px; font-weight: 600; font-size: 0.9rem; color: var(--muted); }
.mk-tabs button.is-active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.mk-card { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--white); animation: pop-in .45s ease both; transition: transform .2s, box-shadow .2s; }
.mk-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mk-card-main { display: block; width: 100%; padding: 0; border: 0; background: none; position: relative; }
.mk-card-cta { position: absolute; left: 50%; bottom: 0.8rem; transform: translate(-50%, 6px); display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 0.85rem; font-weight: 600; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.mk-card:hover .mk-card-cta, .mk-card-main:focus-visible .mk-card-cta { opacity: 1; transform: translate(-50%, 0); }
.mk-fav { position: absolute; top: 0.6rem; right: 0.6rem; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgb(255 255 255 / 0.92); color: var(--muted); box-shadow: var(--shadow-sm); transition: color .2s, transform .2s; }
.mk-fav:hover { color: var(--pink); transform: scale(1.08); }
.mk-fav.is-active { color: var(--pink); }
.mk-fav.is-active .icon, .mk-icon-btn.is-fav .icon { fill: currentColor; }
.mk-more { display: flex; justify-content: center; margin: 2.25rem 0 1rem; }

/* Editor */
.mk-editor { width: min(100%, 1320px); margin: -1rem auto 0; display: grid; gap: 1rem; animation: fade-down .3s ease both; }
.mk-editor-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.mk-editor-tools { display: flex; align-items: center; gap: 0.5rem; }
.mk-icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); transition: color .2s, border-color .2s; }
.mk-icon-btn:hover:not(:disabled) { color: var(--primary); border-color: var(--primary); }
.mk-icon-btn:disabled { opacity: 0.4; cursor: default; }
.mk-icon-btn.is-fav { color: var(--pink); }
.mk-editor-main { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1.25rem; align-items: start; }
.mk-stage { display: grid; gap: 1rem; position: sticky; top: 1rem; }
.mk-canvas { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--white); }
.mk-mockups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.mk-mock { margin: 0; display: grid; gap: 0.4rem; }
.mk-mock figcaption { font-size: 0.8rem; color: var(--muted); text-align: center; font-weight: 500; }
.mk-mock-frame { aspect-ratio: 4 / 3; border-radius: 14px; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; padding: 0.75rem; }
.mk-mock-frame > .logo-render { width: 100%; }
.mk-mock-card { place-items: start; align-content: space-between; padding: 0.9rem; box-shadow: 0 8px 20px -10px rgb(11 11 26 / 0.25); }
.mk-mock-card > .logo-render { width: 70%; }
.mk-mock-card span { font-size: 0.65rem; font-weight: 500; }
.mk-mock-app { background: linear-gradient(160deg, #EEF0F8, #DADDEB); }
.mk-mock-app > .logo-render { width: 52%; filter: drop-shadow(0 6px 10px rgb(11 11 26 / 0.18)); }
.mk-mock-tab { background: #E8E9F1; place-items: stretch; align-content: start; padding: 0.6rem 0.6rem 0; gap: 0; }
.mk-tab-chrome { display: flex; align-items: center; gap: 0.4rem; background: var(--white); border-radius: 10px 10px 0 0; padding: 0.5rem 0.6rem; font-size: 0.72rem; font-weight: 600; white-space: nowrap; overflow: hidden; }
.mk-tab-chrome span { overflow: hidden; text-overflow: ellipsis; }
.mk-favicon { width: 16px; flex-shrink: 0; }
.mk-tab-url { background: var(--white); border-top: 1px solid var(--line); padding: 0.45rem 0.6rem; font-size: 0.65rem; color: var(--muted); height: 100%; }

.mk-panel { border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow-sm); overflow: hidden; }
.mk-panel-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.mk-panel-tabs button { border: 0; background: none; padding: 0.9rem 0.5rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.mk-panel-tabs button.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.mk-panel-body { padding: 1.25rem; display: grid; gap: 1.4rem; max-height: calc(100vh - 11rem); overflow: auto; }
.mk-control { display: grid; gap: 0.6rem; }
.mk-control-label output { float: right; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.mk-control-label-row { display: flex; justify-content: space-between; align-items: center; }
.mk-control-label-row > span { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--ink-2); font-weight: 600; }
.mk-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.mk-seg button { flex: 1; border: 0; background: none; padding: 0.45rem 0.5rem; border-radius: 9px; font-size: 0.85rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.mk-seg button.is-active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.mk-range { width: 100%; accent-color: var(--primary); }
.mk-options { display: grid; gap: 0.6rem; }
.mk-options-2 { grid-template-columns: 1fr 1fr; }
.mk-options-frames { grid-template-columns: repeat(7, 1fr); gap: 0.4rem; }
.mk-option { display: grid; gap: 0.35rem; padding: 0.35rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 0.8rem; font-weight: 600; color: var(--ink-2); overflow: hidden; }
.mk-option .logo-render { border-radius: 8px; overflow: hidden; }
.mk-option:hover { border-color: var(--primary); }
.mk-option.is-active { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(79 70 229 / 0.15); color: var(--primary-700); }
.mk-option-sm { padding: 0.2rem; border-radius: 10px; }
.mk-initials { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-weight: 600; text-align: left; }
.mk-initials:hover { border-color: var(--primary); }
.mk-initials.is-active { border-color: var(--primary); background: var(--primary-50); color: var(--primary-700); }
.mk-initials-aa { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: var(--white); font-size: 1rem; }
.mk-panel .mk-symbol-grid { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 0.45rem; }
.mk-panel .mk-symbol { border-radius: 12px; }
.mk-note { color: var(--muted); }
.mk-fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.mk-font { display: grid; gap: 0.15rem; padding: 0.6rem 0.7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-align: left; font-size: 1.15rem; line-height: 1.2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mk-font small { font-family: var(--font); font-size: 0.7rem; color: var(--muted); font-weight: 500; }
.mk-font:hover { border-color: var(--primary); }
.mk-font.is-active { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(79 70 229 / 0.15); }
.mk-divider { height: 1px; background: var(--line); }
.mk-palettes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.mk-palette { display: flex; justify-content: center; gap: 4px; padding: 0.7rem 0.4rem; border: 1px solid var(--line); border-radius: 12px; }
.mk-palette span { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.7); }
.mk-palette:hover { border-color: var(--primary); }
.mk-palette.is-active { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(79 70 229 / 0.2); }
.mk-color-fields { display: grid; gap: 0.4rem; }
.mk-color-field { display: flex; align-items: center; gap: 0.7rem; padding: 0.35rem 0.6rem 0.35rem 0.35rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 500; }
.mk-color-field input { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; background: none; cursor: pointer; }
.mk-color-field code { margin-left: auto; color: var(--muted); font-size: 0.8rem; }
.mk-switch { display: flex; align-items: center; gap: 0.7rem; font-weight: 500; cursor: pointer; }
.mk-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mk-switch-ui { width: 40px; height: 24px; border-radius: 999px; background: #D4D4E0; position: relative; flex-shrink: 0; transition: background .2s; }
.mk-switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); transition: transform .2s; }
.mk-switch input:checked + .mk-switch-ui { background: var(--primary); }
.mk-switch input:checked + .mk-switch-ui::after { transform: translateX(16px); }
.mk-switch input:focus-visible + .mk-switch-ui { outline: 3px solid rgb(79 70 229 / 0.45); outline-offset: 2px; }

/* Download dialog */
.mk-dialog { width: min(100% - 2rem, 560px); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: 24px; box-shadow: 0 30px 80px -20px rgb(11 11 26 / 0.45); color: var(--ink); }
.mk-dialog::backdrop { background: rgb(11 11 26 / 0.55); backdrop-filter: blur(4px); }
.mk-dialog[open] { animation: pop-in .25s ease both; }
.mk-dialog-inner { position: relative; padding: 1.5rem; display: grid; gap: 1rem; }
.mk-dialog-close { position: absolute; top: 0.9rem; right: 0.9rem; z-index: 1; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.9); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.mk-dialog-close:hover { color: var(--primary); }
.mk-dl-preview { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.mk-dialog-title { font-size: 1.6rem; }
.mk-dialog .mk-sub { margin-top: -0.6rem; font-size: 1rem; }
.mk-dl-kit { border: 1px solid var(--primary-100); background: linear-gradient(180deg, var(--primary-50), var(--white)); border-radius: 18px; padding: 1.1rem; display: grid; gap: 0.9rem; }
.mk-dl-kit .tick-list { margin: 0; font-size: 0.92rem; }
.mk-dl-kit-head { display: flex; align-items: center; gap: 0.75rem; }
.mk-dl-kit-head div { display: grid; flex: 1; }
.mk-dl-kit-head div span { font-size: 0.85rem; color: var(--muted); }
.mk-dl-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--primary); color: var(--white); flex-shrink: 0; }
.mk-bar { height: 6px; border-radius: 99px; background: var(--primary-100); overflow: hidden; }
.mk-bar span { display: block; height: 100%; background: var(--gradient); transition: width .2s; }
.mk-dl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.mk-dl-option { border: 1px solid var(--line); border-radius: 16px; padding: 0.9rem; display: grid; gap: 0.7rem; align-content: space-between; }
.mk-dl-option-head { display: flex; align-items: center; gap: 0.45rem; color: var(--ink-2); }
.mk-dl-controls { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.mk-dl-controls .mk-select { width: auto; flex: 1; padding: 0.5rem 0.6rem; }
.mk-check-label { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 500; cursor: pointer; }
.mk-check-label input { accent-color: var(--primary); width: 16px; height: 16px; }
.mk-dl-note { font-size: 0.85rem; color: var(--muted); }
.mk-dl-status { min-height: 1.4rem; font-size: 0.9rem; text-align: center; }
.mk-dl-status .is-ok { display: inline-flex; align-items: center; gap: 0.35rem; color: #15803D; font-weight: 600; }
.mk-dl-status .is-error { color: #B91C1C; font-weight: 600; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(0.92); } 50% { transform: scale(1.04); } }
@keyframes pulse-spin { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(18deg) scale(1.12); } }

@media (max-width: 1080px) {
    .mk-editor-main { grid-template-columns: 1fr; }
    .mk-stage { position: static; }
    .mk-panel-body { max-height: none; }
}
@media (max-width: 720px) {
    .mk-top { flex-wrap: wrap; }
    .mk-pills { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.25rem; }
    .mk-back { position: static; align-self: flex-start; margin-bottom: 0.5rem; }
    .mk-step-head { margin-top: 0.5rem; }
    .mk-mockups { grid-template-columns: 1fr 1fr; }
    .mk-dl-row { grid-template-columns: 1fr; }
    .mk-options-frames { grid-template-columns: repeat(4, 1fr); }
    .mk-swatch-dot { width: 68px; height: 68px; }
    .mk-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
    .mk-card-cta { display: none; }
    .mk-enter { display: none; }
}
@media (max-width: 420px) {
    .mk-fonts { grid-template-columns: 1fr; }
}

/* Logo maker: Noun Project symbols */
.mk-search-row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.mk-search-row .mk-search { flex: 1; min-width: 220px; }
.mk-seg-inline { flex: 0 0 auto; }
.mk-symbol img { width: 34px; height: 34px; object-fit: contain; }
.mk-symbol.is-active img { filter: invert(1); }
.mk-symbol.is-skeleton { background: linear-gradient(90deg, var(--surface), #EFEFF6, var(--surface)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.mk-terms { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.mk-term { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 36px; padding: 0.4rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 600; font-size: 0.9rem; transition: border-color .2s, background .2s; }
.mk-term:hover { border-color: var(--primary); }
.mk-term.is-active { border-color: var(--primary); background: var(--primary-50); color: var(--primary-700); }
.mk-term .icon { color: var(--primary); }
.mk-credit { font-size: 0.75rem; color: var(--muted); text-align: right; }

/* Logo maker: industry browser */
.mk-combo-toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--muted); }
.mk-combo-toggle:hover, .mk-combo-toggle[aria-expanded="true"] { color: var(--primary); background: var(--primary-50); }
.mk-combo-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mk-listbox { max-height: min(26rem, 55vh); }
.mk-listbox li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.mk-listbox li small { color: var(--muted); font-size: 0.8rem; font-weight: 500; white-space: nowrap; }
.mk-listbox li.mk-listbox-group { display: block; padding: 0; cursor: default; }
.mk-listbox li.mk-listbox-group:hover { background: none; }
.mk-listbox-group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mk-listbox-heading { display: block; position: sticky; top: -0.4rem; z-index: 1; padding: 0.7rem 0.8rem 0.35rem; background: var(--white); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mk-browse { margin-top: 1rem; }

/* Logo maker app: save status and recent projects */
.mk-save { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.mk-save.is-ok .icon { color: #16A34A; }
.mk-save.is-error { color: #B91C1C; }
.mk-recent { width: min(100%, 880px); margin: 1rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.mk-recent h2 { font-size: 1rem; color: var(--ink-2); margin-bottom: 0.75rem; }
.mk-recent ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.6rem; }
.mk-recent a { display: grid; gap: 0.15rem; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); transition: border-color .2s, transform .2s; }
.mk-recent a:hover { border-color: var(--primary); transform: translateY(-2px); }
.mk-recent a span { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 720px) { .mk-save { display: none; } }

/* ---------- Results: refine bar ("Not quite right?") ---------- */

.mk-refine { position: relative; z-index: 5; margin-bottom: 2rem; } /* above the logo grid, so dropdowns overlap it */
.mk-refine::before { content: ""; position: absolute; inset: 30% 4% -14px; z-index: -1; border-radius: 40px; background: linear-gradient(90deg, #67E8F9, #A5B4FC 50%, #C4B5FD); filter: blur(26px); opacity: 0.55; }
.mk-refine-form { background: var(--white); border: 1px solid var(--line); border-radius: 26px; padding: 1.1rem 1.1rem 1rem 1.4rem; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.mk-refine-form:focus-within { border-color: var(--primary-100); }
.mk-refine-form textarea { display: block; width: 100%; min-height: 3.2rem; border: 0; outline: 0; resize: none; background: none; padding: 0.3rem 0; font: inherit; font-size: 1.2rem; color: var(--ink); }
.mk-refine-form textarea::placeholder { color: var(--muted); }
.mk-refine-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; margin-top: 0.75rem; }
.mk-refine-tools { position: relative; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.mk-drop-btn { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.65rem 1rem; border: 1px solid transparent; border-radius: 999px; background: #F1F3F8; color: var(--ink); font: inherit; font-weight: 600; font-size: 1.02rem; transition: background .2s, border-color .2s; }
.mk-drop-btn:hover { background: #E7EAF3; }
.mk-drop-btn.is-open { background: var(--white); border-color: var(--primary); box-shadow: 0 0 0 3px rgb(79 70 229 / 0.12); }
.mk-drop-btn .icon:last-child { color: var(--muted); transition: transform .2s; }
.mk-drop-btn.is-open .icon:last-child { transform: rotate(180deg); }
.mk-drop-letter { width: 20px; text-align: center; font-weight: 700; font-size: 0.95rem; }
.mk-refine-send { flex-shrink: 0; width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--white); transition: background .2s, opacity .2s; }
.mk-refine-send:disabled { background: var(--line); color: var(--muted); }
.mk-refine-send .mk-spinner { width: 18px; height: 18px; border-width: 2px; }
.mk-refine-reply { display: flex; align-items: center; gap: 0.45rem; margin: 0.9rem 0 0 0.4rem; color: var(--primary-700); font-weight: 500; font-size: 0.95rem; animation: fade-down .3s ease both; }

.mk-drop-panel { position: absolute; top: calc(100% + 10px); left: 0; z-index: 30; width: min(420px, calc(100vw - 2.5rem)); max-height: min(70vh, 620px); display: flex; flex-direction: column; gap: 0.85rem; padding: 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px -18px rgb(11 11 26 / 0.3), 0 4px 12px rgb(11 11 26 / 0.06); text-align: left; animation: fade-down .2s ease both; }
.mk-drop-panel:has(.mk-symbols), .mk-drop-panel:has(.mk-opts) { width: min(680px, calc(100vw - 2.5rem)); }
.mk-drop-title { margin: 0; font-weight: 700; font-size: 1.05rem; }
.mk-drop-scroll { overflow-y: auto; margin: 0 -0.25rem; padding: 0 0.25rem; }
.mk-drop-form { display: grid; gap: 0.85rem; }
.mk-drop-field { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; color: var(--ink-2); }
.mk-drop-field small { color: var(--muted); font-weight: 400; }
.mk-drop-field input { padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink); outline: 0; }
.mk-drop-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(79 70 229 / 0.12); }
.mk-drop-actions { display: flex; justify-content: flex-end; padding-top: 0.25rem; }
.mk-drop-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: grid; gap: 2px; }
.mk-drop-list button { width: 100%; display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; border: 0; border-radius: 10px; background: none; font: inherit; text-align: left; color: var(--ink); }
.mk-drop-list button:hover, .mk-drop-list button.is-active { background: var(--primary-50); }
.mk-drop-list button span { flex: 1; font-weight: 600; }
.mk-drop-list button small { color: var(--muted); font-size: 0.8rem; }
.mk-drop-list button .icon { color: var(--primary); }
.mk-drop-label { margin: 0.9rem 0 0.5rem; font-weight: 700; font-size: 0.9rem; }
.mk-drop-label:first-child { margin-top: 0; }
.mk-drop-label small { margin-left: 0.3rem; color: var(--muted); font-weight: 400; }
.mk-drop-hint { display: flex; align-items: center; gap: 0.4rem; margin: 0.75rem 0 0; color: var(--muted); font-size: 0.85rem; }
.mk-drop-hint .icon { color: var(--primary); }
.mk-opts { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.mk-opt { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font: inherit; font-size: 0.9rem; font-weight: 500; color: var(--ink-2); transition: border-color .15s, background .15s; }
.mk-opt:hover { border-color: var(--primary); }
.mk-opt.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.mk-opt-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); }
.mk-card.is-skeleton { aspect-ratio: 4 / 3; animation: shimmer 1.2s linear infinite; background: linear-gradient(100deg, var(--surface) 30%, var(--primary-50) 50%, var(--surface) 70%); background-size: 300% 100%; }

@media (max-width: 640px) {
    .mk-refine-form { padding: 0.9rem; border-radius: 20px; }
    .mk-refine-form textarea { font-size: 1.05rem; }
    .mk-drop-btn { padding: 0.5rem 0.8rem; font-size: 0.92rem; }
    .mk-drop-panel { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-height: 80vh; border-radius: 20px 20px 0 0; }
    .mk-drop-panel:has(.mk-symbols), .mk-drop-panel:has(.mk-opts) { width: 100%; }
}
.mk-font-groups { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.mk-font-groups .mk-opt { padding: 0.3rem 0.65rem; font-size: 0.8rem; }
.mk-font-groups .mk-opt small { opacity: 0.6; margin-left: 0.15rem; }
/* Scrolling list: rows must keep their content height (the buttons clip overflow, so grid would otherwise squash them). */
.mk-fonts { max-height: 440px; overflow-y: auto; grid-auto-rows: max-content; align-content: start; padding: 3px 4px 3px 3px; }

/* ---------- Logo editor (canvas) ---------- */

.maker.is-edit .mk-body { padding: 0; }
.ed { display: flex; flex-direction: column; height: calc(100dvh - 68px); min-height: 520px; background: #F4F5FA; border-top: 1px solid var(--line); }
.ed-top { display: flex; align-items: center; gap: 0.35rem; padding: 0.5rem clamp(0.6rem, 2vw, 1.25rem); background: var(--white); border-bottom: 1px solid var(--line); }
.ed-back { padding: 0.5rem 0.75rem; }
.ed-crumb { padding: 0 0.75rem; margin-right: 0.25rem; border-left: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.ed-spacer { flex: 1; }
.ed-get { padding: 0.6rem 1.1rem; }
.ed-main { flex: 1; min-height: 0; display: flex; }

.ed-rail { width: 78px; flex-shrink: 0; display: flex; flex-direction: column; gap: 0.2rem; padding: 0.6rem 0.4rem; background: var(--white); border-right: 1px solid var(--line); }
.ed-rail button { display: grid; justify-items: center; gap: 0.3rem; padding: 0.6rem 0.2rem; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 0.72rem; font-weight: 600; color: var(--ink-2); transition: background .15s, color .15s; }
.ed-rail button:hover { background: var(--surface); }
.ed-rail button.is-active { background: var(--primary-50); color: var(--primary); }

.ed-panel { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; min-height: 0; background: var(--white); border-right: 1px solid var(--line); animation: fade-down .2s ease both; }
.ed-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0.9rem 0.4rem 1.15rem; }
.ed-panel-head h2 { font-size: 1.05rem; margin: 0; }
.ed-panel-body { flex: 1; overflow-y: auto; padding: 0.5rem 1.15rem 1.5rem; display: grid; gap: 1.2rem; align-content: start; }
.ed-panel .mk-control { margin: 0; }
.ed-panel .mk-symbol-grid { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 0.45rem; }
.ed-panel .mk-symbol { border-radius: 12px; }
.ed-panel .mk-mockups { grid-template-columns: 1fr; }

.ed-stage { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.ed-canvas { flex: 1; min-height: 0; overflow: auto; display: grid; padding: 20px; }
.ed-board { position: relative; margin: auto; background: var(--white); border-radius: 4px; box-shadow: 0 1px 2px rgb(11 11 26 / 0.06), 0 18px 50px -24px rgb(11 11 26 / 0.35); touch-action: none; user-select: none; -webkit-user-select: none; }
.ed-board.is-loading { background: linear-gradient(100deg, var(--surface) 30%, var(--primary-50) 50%, var(--surface) 70%); background-size: 300% 100%; animation: shimmer 1.2s linear infinite; }
.ed-art, .ed-art svg { display: block; width: 100%; height: 100%; }
.ed-art [data-el] { cursor: move; }
.ed-overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ed-frame polygon, .ed-frame line { fill: none; stroke: #3B82F6; }
.ed-handle { fill: var(--white); stroke: #3B82F6; pointer-events: all; }
.ed-handle-scale { cursor: nwse-resize; }
.ed-handle-rotate { fill: #3B82F6; stroke: var(--white); cursor: grab; }
.ed-guide { stroke: #EC4899; stroke-dasharray: 4 3; }

.ed-toolbar-anchor { position: absolute; z-index: 5; }
.ed-toolbar { display: flex; align-items: center; gap: 0.2rem; padding: 0.3rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px -10px rgb(11 11 26 / 0.3); white-space: nowrap; }
.ed-tb-font { max-width: 150px; overflow: hidden; text-overflow: ellipsis; padding: 0.42rem 0.7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.ed-tb-font:hover { border-color: var(--primary); }
.ed-tb-size { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; }
.ed-tb-size button { width: 30px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-2); }
.ed-tb-size span { min-width: 46px; text-align: center; font-size: 0.82rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ed-tb-color { width: 30px; height: 30px; margin: 0 0.15rem; border-radius: 8px; border: 1px solid rgb(0 0 0 / 0.12); }
.mk-icon-btn.is-danger { color: #DC2626; }
.ed-toolbar-dock { position: absolute; z-index: 6; top: 10px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 20px); overflow-x: auto; border-radius: 12px; }

.ed-zoom { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 0.1rem; padding: 0.2rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.ed-zoom-value { min-width: 52px; border: 0; background: none; font: inherit; font-size: 0.85rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.ed-section { display: grid; gap: 0.55rem; }
.ed-label { margin: 0; font-weight: 700; font-size: 0.88rem; }
.ed-label-row { display: flex; align-items: center; justify-content: space-between; }
.ed-label-row > span { display: inline-flex; align-items: center; gap: 0.35rem; }
.ed-picker { display: flex; gap: 0.5rem; }
.ed-native { position: relative; flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgb(0 0 0 / 0.12); overflow: hidden; cursor: pointer; }
.ed-native input { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); opacity: 0; cursor: pointer; }
.ed-hex { flex: 1; min-width: 0; padding: 0 0.85rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95rem; text-transform: uppercase; outline: 0; }
.ed-hex:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(79 70 229 / 0.12); }
.ed-swatches { display: grid; grid-template-columns: repeat(auto-fill, 34px); gap: 0.45rem; }
.ed-swatch { width: 34px; height: 34px; padding: 0; border-radius: 9px; border: 1px solid rgb(0 0 0 / 0.1); transition: transform .15s; }
.ed-swatch:hover { transform: scale(1.08); }
.ed-swatch.is-active { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--primary); }
.ed-hint { margin: 0; color: var(--muted); font-size: 0.85rem; }

.ed-layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.ed-layers li { display: flex; align-items: center; gap: 0.2rem; padding: 0.25rem 0.3rem 0.25rem 0.25rem; border: 1px solid var(--line); border-radius: 12px; }
.ed-layers li.is-active { border-color: var(--primary); background: var(--primary-50); }
.ed-layer-name { flex: 1; padding: 0.55rem 0.6rem; border: 0; background: none; font: inherit; font-weight: 600; text-align: left; color: var(--ink); }

@media (max-width: 760px) {
    .ed { height: calc(100dvh - 68px); min-height: 0; }
    .ed-top { gap: 0.15rem; padding: 0.4rem 0.5rem; }
    .ed-back span, .ed-crumb { display: none; }
    .ed-back { padding: 0.5rem; }
    .ed-get { padding: 0.55rem 0.9rem; }
    .ed-main { flex-direction: column; }
    .ed-stage { order: 1; }
    .ed-panel { order: 2; width: auto; max-height: 46dvh; border-right: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -14px 30px -18px rgb(11 11 26 / 0.35); }
    .ed-panel-head { padding: 0.6rem 0.75rem 0.2rem 1rem; }
    .ed-panel-body { padding: 0.4rem 1rem 1rem; }
    .ed-rail { order: 3; width: auto; flex-direction: row; gap: 0; padding: 0.25rem 0.25rem calc(0.25rem + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); }
    .ed-rail button { flex: 1; padding: 0.45rem 0.1rem; font-size: 0.66rem; }
    .ed-canvas { padding: 12px; }
    .ed-zoom { right: 8px; bottom: 8px; }
    .ed-zoom .mk-icon-btn:last-child { display: none; }
}
.ed-toolbar .mk-icon-btn, .ed-layers .mk-icon-btn, .ed-zoom .mk-icon-btn, .ed-panel-head .mk-icon-btn { width: 34px; height: 34px; border-color: transparent; border-radius: 9px; }
.ed-toolbar .mk-icon-btn:hover, .ed-layers .mk-icon-btn:hover, .ed-zoom .mk-icon-btn:hover, .ed-panel-head .mk-icon-btn:hover { background: var(--surface); }
.ed-top .mk-icon-btn { width: 38px; height: 38px; border-color: transparent; }
.ed-top .mk-icon-btn:hover:not(:disabled) { background: var(--surface); }
/* Panel content must never be wider than the panel. */
.ed-panel-body { grid-template-columns: minmax(0, 1fr); overflow-x: hidden; }
.ed-panel-body > *, .ed-section > * { min-width: 0; }
.ed-panel .mk-palettes { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.ed-panel .mk-palette { min-width: 0; padding: 0.6rem 0.3rem; gap: 3px; }
.ed-panel .mk-palette span { width: 16px; height: 16px; flex-shrink: 0; }
.ed-swatches { grid-template-columns: repeat(auto-fill, minmax(30px, 34px)); }
.mk-more-symbols { justify-self: center; display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.25rem; }
.mk-more-symbols .mk-spinner { width: 16px; height: 16px; border-width: 2px; }
.mk-load-error { margin-top: 2rem; display: grid; gap: 0.6rem; justify-items: center; color: var(--ink-2); }
.mk-load-error pre { max-width: min(640px, 92vw); overflow-x: auto; padding: 0.75rem 1rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: #B91C1C; font-size: 0.8rem; text-align: left; white-space: pre-wrap; }
.mk-search { padding-right: 0.35rem; }
.mk-search-btn { flex-shrink: 0; padding: 0.45rem 0.9rem; border: 0; border-radius: 9px; background: var(--primary); color: var(--white); font: inherit; font-size: 0.88rem; font-weight: 600; }
.mk-search-btn:disabled { background: var(--line); color: var(--muted); }

/* ---------- Home: example logos (display only) ---------- */
.generator-island, .generator { max-width: 720px; }
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.showcase-item { aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; pointer-events: none; }
.showcase-item .logo-art { display: block; width: 100%; height: 100%; }
.showcase-more { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }
@media (max-width: 640px) {
    .showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}

/* ---------- Logo maker on phones and tablets ---------- */
@media (max-width: 1024px) {
    /* The Next button stays in reach: pinned to the bottom of the screen while the step scrolls. */
    .mk-actions {
        position: sticky; bottom: 0; z-index: 20;
        margin: 1.5rem -1rem 0; padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, rgb(255 255 255 / 0), rgb(255 255 255 / 0.96) 28%, var(--white));
        backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    }
    .mk-actions-row { width: 100%; }
    .mk-next { flex: 1; max-width: 26rem; }
    .mk-enter { display: none; }

    /* Answer chips: one row that scrolls sideways, full text in each chip. */
    .mk-pills { order: 3; flex: 1 0 100%; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 calc(-1 * clamp(1rem, 3vw, 2rem)); padding: 0.1rem clamp(1rem, 3vw, 2rem) 0.25rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .mk-pills::-webkit-scrollbar { display: none; }
    .mk-pill { flex-shrink: 0; max-width: none; overflow: visible; }
}
@media (pointer: coarse) {
    .mk-enter { display: none; }
}
@media (max-width: 640px) {
    /* Personality and logo-type cards: two per row, compact. */
    .mk-vibes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
    .mk-vibe { padding: 0.75rem 0.75rem 0.7rem; border-radius: 14px; }
    .mk-vibe-aa { font-size: 1.6rem; margin-bottom: 0.15rem; }
    .mk-vibe-label { font-size: 0.92rem; }
    .mk-vibe-text { font-size: 0.78rem; line-height: 1.3; }
    .mk-vibe .mk-badge { top: 0.55rem; right: 0.55rem; }
    .mk-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
    .mk-type { padding: 0.45rem 0.45rem 0.7rem; border-radius: 14px; }
    .mk-type-art { margin-bottom: 0.4rem; border-radius: 10px; }
    .mk-type-label { font-size: 0.9rem; }
    .mk-type-text { font-size: 0.76rem; line-height: 1.3; }
    .mk-key { top: 0.75rem; left: 0.75rem; width: 22px; height: 22px; font-size: 0.7rem; border-radius: 6px; }
}
@media (max-width: 1024px) {
    /* No gap under the pinned Next button: Safari's 100vh includes the area behind its toolbar,
       so size the page to the visible viewport and drop the bottom padding. */
    .app-page { min-height: 100dvh; }
    .maker { min-height: 100dvh; }
    .mk-body { padding-bottom: 0; }
}
@media (max-width: 1024px) {
    .mk-results, .mk-recent { padding-bottom: 2rem; }
}

@media (max-width: 640px) {
    /* Color step: five compact swatches per row. */
    .mk-slots { gap: 0.6rem; margin-bottom: 1.4rem; }
    .mk-slot { width: 42px; height: 42px; font-size: 0.9rem; }
    .mk-swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem 0.35rem; }
    .mk-swatch { gap: 0.35rem; padding: 0.15rem; font-size: 0.82rem; }
    .mk-swatch-dot { width: min(60px, 15vw); height: min(60px, 15vw); }
    .mk-swatch.is-active .mk-swatch-dot { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--primary); }
    .mk-swatch-dot b { width: 24px; height: 24px; font-size: 0.78rem; }
    .mk-swatch .mk-badge { top: -0.35rem; right: -0.1rem; padding: 0.05rem 0.3rem; font-size: 0.6rem; }
    /* Results: two logos per row. */
    .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
    .mk-fav { transform: scale(0.85); transform-origin: top right; }
}

/* First screen of the logo maker: the server draws it and the app then redraws the same thing,
   so skip the entrance animation (it would play twice). Removed on the first step change. */
.mk-first .mk-step, .mk-first .mk-results, .mk-first .mk-generating, .mk-first .mk-recent { animation: none; }
