/* ==========================================================
   Design tokens
   ========================================================== */
:root {
    --bg: #f6f7fd;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.72);
    --text: #0f172a;
    --text-soft: #475569;
    --text-faint: #94a3b8;
    --border: rgba(15, 23, 42, 0.08);

    --primary: #6366f1;
    --primary-2: #8b5cf6;
    --accent: #06b6d4;
    --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #d946ef 100%);
    --grad-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12));

    --ok: #10b981;
    --bad: #e11d48;
    --bad-bg: #fff1f2;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 12px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 30px 80px rgba(99, 102, 241, 0.22);

    --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 28px;
}

:root[data-theme="dark"] {
    --bg: #080b1a;
    --surface: #11152d;
    --surface-glass: rgba(21, 26, 56, 0.7);
    --text: #f1f5f9;
    --text-soft: #a5b0c8;
    --text-faint: #64708f;
    --border: rgba(255, 255, 255, 0.09);
    --grad-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    --bad-bg: rgba(225, 29, 72, 0.14);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 80px rgba(99, 102, 241, 0.25);
}

/* ==========================================================
   Base
   ========================================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p {
    margin: 0;
}

h1, h2, h3 {
    letter-spacing: -0.03em;
    line-height: 1.12;
}

a {
    color: inherit;
}

svg {
    display: block;
}

.wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.55);
    outline-offset: 2px;
}

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

/* ==========================================================
   Navbar (glass)
   ========================================================== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface-glass);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid var(--border);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--grad);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.brand-mark svg {
    width: 18px;
    height: 18px;
    margin-left: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    padding: 8px 14px;
    border-radius: 10px;
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

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

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.icon-btn svg {
    width: 19px;
    height: 19px;
}

.icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: block; }
:root[data-theme="dark"] .icon-btn .i-moon { display: none; }

@media (max-width: 680px) {
    .nav-links a { display: none; }
}

/* ---------- Mobile menu toggle ---------- */
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.nav.open .menu-btn .i-bars { display: none; }
.nav.open .menu-btn .i-close { display: block; }
.mobile-menu { display: none; }

@media (max-width: 680px) {
    .menu-btn { display: inline-flex; }
    .nav-links .icon-btn:first-of-type { margin-left: 0; }
    .nav.open .mobile-menu {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 10px 16px 16px;
        border-top: 1px solid var(--border);
        background: var(--surface);
        box-shadow: var(--shadow-md);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
    }
    .mobile-menu a {
        padding: 13px 14px;
        border-radius: 12px;
        color: var(--text);
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
    }
    .mobile-menu a:hover,
    .mobile-menu a[aria-current="page"] { background: var(--grad-soft); }
}


/* ==========================================================
   Hero
   ========================================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 96px;
    text-align: center;
}

.blob {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    pointer-events: none;
}

.blob-1 {
    top: -140px;
    left: -120px;
    width: 460px;
    height: 460px;
    background: #818cf8;
}

.blob-2 {
    top: 40px;
    right: -140px;
    width: 420px;
    height: 420px;
    background: #e879f9;
}

.blob-3 {
    bottom: -180px;
    left: 38%;
    width: 380px;
    height: 380px;
    background: #22d3ee;
    opacity: 0.35;
}

:root[data-theme="dark"] .blob {
    opacity: 0.28;
}

.hero .wrap {
    position: relative;
    z-index: 1;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px 7px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.pill-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--grad);
    color: #ffffff;
}

.pill-dot svg {
    width: 13px;
    height: 13px;
}

.hero h1 {
    max-width: 19ch;
    margin: 26px auto 0;
    font-size: clamp(2.6rem, 6.4vw, 4.8rem);
    font-weight: 800;
}

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

.hero-sub {
    max-width: 56ch;
    margin: 22px auto 0;
    font-size: 1.15rem;
    color: var(--text-soft);
}

/* ---------- Tool card ---------- */
.tool {
    max-width: 780px;
    margin: 44px auto 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--r-lg);
    background: var(--surface-glass);
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    box-shadow: var(--shadow-lg);
    text-align: left;
}

:root[data-theme="dark"] .tool {
    border-color: var(--border);
}

.field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 18px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.16);
}

.field-box {
    display: contents;
}

.field-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.field input {
    flex: 1;
    min-width: 0;
    padding: 14px 4px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 500;
}

.field input::placeholder {
    color: var(--text-faint);
}

.btn-paste {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    border: 0;
    border-radius: 13px;
    background: var(--grad-soft);
    color: var(--primary);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-paste:hover {
    background: rgba(99, 102, 241, 0.2);
}

.btn-paste svg {
    width: 17px;
    height: 17px;
}

.btn-go {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px 28px;
    border: 0;
    border-radius: 15px;
    background: var(--grad);
    color: #ffffff;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.42);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-go:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(99, 102, 241, 0.5);
}

.btn-go:disabled {
    opacity: 0.75;
    cursor: progress;
    transform: none;
}

.btn-go svg {
    width: 19px;
    height: 19px;
}

.btn-go .spin {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-go.is-loading .spin { display: block; }
.btn-go.is-loading .i-dl { display: none; }

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

.tool-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 22px;
    padding: 16px 8px 6px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
}

.tool-foot span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.tool-foot svg {
    width: 16px;
    height: 16px;
    color: var(--ok);
}

/* ---------- Result ---------- */
.result {
    display: none;
    margin-top: 14px;
}

.result.show {
    display: block;
    animation: pop 0.35s ease both;
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.res-card {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.res-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: #0f172a center / cover no-repeat;
    overflow: hidden;
}

.res-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.45));
}

.res-play {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

.res-play svg {
    width: 22px;
    height: 22px;
    margin-left: 3px;
}

.res-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.res-ready {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    padding: 4px 12px 4px 8px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    color: var(--ok);
    font-size: 13px;
    font-weight: 700;
}

.res-ready svg {
    width: 15px;
    height: 15px;
}

.res-title {
    margin: 10px 0 14px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.res-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.dl-btn {
    display: inline-flex;
    flex: 1 1 150px;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    white-space: nowrap;
    border-radius: 14px;
    background: var(--grad);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.dl-btn:hover {
    filter: brightness(1.06);
}

.dl-btn.is-busy {
    opacity: .75;
    pointer-events: none;
}

.dl-btn svg {
    width: 19px;
    height: 19px;
}

.res-loading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    font-weight: 600;
    color: var(--text-soft);
}

.skeleton {
    flex: 0 0 120px;
    height: 72px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.18) 25%, rgba(148, 163, 184, 0.35) 50%, rgba(148, 163, 184, 0.18) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
    to { background-position: -200% 0; }
}

.res-error {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid rgba(225, 29, 72, 0.25);
    border-radius: 16px;
    background: var(--bad-bg);
    color: var(--bad);
    font-weight: 600;
}

.res-error svg {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 1px;
}

/* ==========================================================
   Sections
   ========================================================== */
.section {
    padding: 88px 0;
}

.section-head {
    max-width: 640px;
    margin: 0 auto 52px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--grad-soft);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.section-head h2 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
}

.section-head p {
    margin-top: 14px;
    color: var(--text-soft);
    font-size: 1.05rem;
}

/* ---------- Bento features ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.tile {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.tile:nth-child(1),
.tile:nth-child(2) {
    grid-column: span 3;
}

.tile:nth-child(n + 3) {
    grid-column: span 2;
}

.tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: var(--grad-soft);
    color: var(--primary);
}

.tile-icon svg {
    width: 24px;
    height: 24px;
}

.tile h3 {
    font-size: 1.2rem;
    font-weight: 800;
}

.tile p {
    margin-top: 8px;
    color: var(--text-soft);
}

.tile-hero {
    position: relative;
    overflow: hidden;
    border: 0;
    background: var(--grad);
    color: #ffffff;
    box-shadow: 0 24px 50px rgba(99, 102, 241, 0.35);
}

.tile-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.tile-hero .tile-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.tile-hero p {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.88);
}

.tile-hero .badges {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.tile-hero .badges span {
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 13px;
    font-weight: 700;
}

/* ---------- Steps ---------- */
.steps-band {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.step {
    position: relative;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--bg);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--grad);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.4);
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 800;
}

.step p {
    margin-top: 8px;
    color: var(--text-soft);
}

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

.faq details {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.faq details[open] {
    border-color: rgba(99, 102, 241, 0.4);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

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

.faq summary::after {
    content: "";
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(99, 102, 241, 0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
    background-position: center;
    background-size: 16px 16px;
    background-repeat: no-repeat;
}

.faq details[open] summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}

.faq details p {
    padding: 0 24px 22px;
    color: var(--text-soft);
}

/* ---------- CTA ---------- */
.cta {
    position: relative;
    overflow: hidden;
    padding: 64px 32px;
    border-radius: 36px;
    background: var(--grad);
    color: #ffffff;
    text-align: center;
    box-shadow: 0 30px 70px rgba(99, 102, 241, 0.4);
}

.cta::before,
.cta::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.cta::before {
    top: -90px;
    left: -60px;
    width: 260px;
    height: 260px;
}

.cta::after {
    right: -70px;
    bottom: -110px;
    width: 300px;
    height: 300px;
}

.cta h2 {
    position: relative;
    z-index: 1;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 800;
}

.cta p {
    position: relative;
    z-index: 1;
    max-width: 46ch;
    margin: 14px auto 28px;
    color: rgba(255, 255, 255, 0.88);
}

.cta a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 15px 32px;
    border-radius: 15px;
    background: #ffffff;
    color: #4f46e5;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.cta a svg {
    width: 19px;
    height: 19px;
}

/* ---------- Footer ---------- */
.foot {
    position: relative;
    margin-top: 40px;
    padding: 64px 0 28px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-soft);
    font-size: 15px;
}

.foot::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad);
    opacity: 0.85;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px 48px;
}

.foot-brand .brand { color: var(--text); font-weight: 800; }

.foot-brand p {
    max-width: 34ch;
    margin: 16px 0 0;
    line-height: 1.6;
}

.foot-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.foot-badges span {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--grad-soft);
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 700;
}

.foot h4 {
    margin: 0 0 16px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.foot-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

.foot a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease, transform 0.15s ease;
}

.foot-col a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.foot-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 13.5px;
}

.foot-bottom a:hover { color: var(--primary); }

@media (max-width: 860px) {
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .foot { padding-top: 48px; }
    .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 900px) {
    .bento {
        grid-template-columns: 1fr 1fr;
    }

    .tile:nth-child(1),
    .tile:nth-child(2),
    .tile:nth-child(n + 3) {
        grid-column: span 1;
    }

    .tile:nth-child(1) {
        grid-column: span 2;
    }

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

@media (max-width: 640px) {
    .hero { padding: 56px 0 64px; }
    .section { padding: 64px 0; }

    /* Mobile: input box and Download button are two separate blocks */
    .field {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .field:focus-within {
        border: 0;
        box-shadow: none;
    }

    .field-box {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px;
        border: 1.5px solid var(--border);
        border-radius: 20px;
        background: var(--surface);
    }

    .field-box:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.16);
    }

    .field-icon { margin-left: 4px; }

    .field input {
        flex: 1 1 0;
        padding: 14px 0;
        font-size: 0.84rem;
    }

    .paste-label { display: none; }

    .btn-paste {
        padding: 11px 10px;
        border-radius: 12px;
    }

    .btn-paste svg {
        width: 20px;
        height: 20px;
    }

    .btn-go {
        width: 100%;
        padding: 16px;
    }

    .res-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .res-buttons {
        gap: 8px;
    }

    .dl-btn {
        flex: 1 1 120px;
        min-width: 0;
        gap: 6px;
        padding: 12px 8px;
        font-size: 14px;
    }

    .dl-btn.is-mp3 {
        flex-basis: 100%;
    }

    .dl-btn svg {
        width: 16px;
        height: 16px;
    }

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

    .tile:nth-child(1),
    .tile:nth-child(2),
    .tile:nth-child(n + 3) {
        grid-column: span 1;
    }

    .cta { padding: 48px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .result.show,
    .skeleton,
    .btn-go .spin { animation: none; }
}
