:root {
    --bg1: #FFF6E9;
    --bg2: #FFEBD2;
    --ink: #4A2C17;
    --ink-soft: #8A6A4F;
    --card: #FFFFFF;
    --cream: #FFFBF3;
    --amber: #F59E0B;
    --amber-deep: #EA8A1F;
    --orange: #E07B39;
    --stroke: #F5D9BC;
    --ring: #FCD9A8;
    --shadow: rgba(234, 138, 31, 0.16);
    --font-display: "Baloo 2", "Comic Sans MS", "Segoe UI", system-ui, sans-serif;
    --font-body: "Quicksand", "Segoe UI", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: none;
}

.shell {
    max-width: 560px;
    margin: 0 auto;
    padding: 28px 20px 56px;
    padding-top: calc(28px + env(safe-area-inset-top));
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
    position: relative;
    z-index: 1;
}

.bg-blobs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
}

.blob-a {
    width: 340px;
    height: 340px;
    background: #FFD9A0;
    top: -80px;
    right: -100px;
}

.blob-b {
    width: 300px;
    height: 300px;
    background: #FFC9A3;
    bottom: -80px;
    left: -110px;
}

.blob-c {
    width: 200px;
    height: 200px;
    background: #FFE29A;
    top: 40%;
    left: -90px;
}

.hero {
    text-align: center;
    margin-bottom: 28px;
}

.avatar-wrap {
    display: inline-block;
    position: relative;
    margin-bottom: 14px;
}

.avatar {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 8px 22px var(--shadow);
    background: var(--amber);
}

.badge {
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(234, 138, 31, 0.14);
    white-space: nowrap;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.site-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 18px 0 4px;
    color: var(--ink);
}

.tagline {
    margin: 0 0 10px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 0.2px;
}

.bio {
    margin: 0 auto;
    max-width: 460px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
}

.social-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 26px;
}

.social-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    padding: 9px 16px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(234, 138, 31, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    touch-action: manipulation;
}

.social-chip:active {
    transform: scale(0.96);
}

.social-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow);
}

.social-chip.brand .social-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.social-chip.brand .social-icon svg.icon-svg {
    fill: #fff;
}

.social-icon {
    font-size: 18px;
    line-height: 1;
}

.lead-card {
    background: linear-gradient(160deg, #FFF3DD 0%, #FFE3C0 100%);
    border: 2px dashed #E8B276;
    border-radius: 26px;
    padding: 26px 22px;
    text-align: center;
    margin-bottom: 28px;
}

.lead-icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 6px;
}

.lead-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 6px 0 6px;
    color: var(--ink);
}

.lead-text {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 18px;
}

.lead-card form {
    display: grid;
    gap: 12px;
}

.lead-card input {
    width: 100%;
    border: 2px solid #F0CFA4;
    border-radius: 14px;
    padding: 15px 16px;
    font-size: 16px;
    font-family: var(--font-body);
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lead-card input:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.lead-card input::placeholder {
    color: #B89A7C;
}

.lead-card button {
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--amber) 0%, var(--orange) 100%);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    padding: 16px 20px;
    min-height: 52px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(234, 138, 31, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    touch-action: manipulation;
}

.lead-card button:active {
    transform: scale(0.98);
}

.lead-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(234, 138, 31, 0.42);
}

.lead-card button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.lead-status {
    color: #B91C1C;
    font-size: 14px;
    font-weight: 600;
    margin: 14px 0 0;
}

.lead-success h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 6px 0 6px;
    color: var(--ink);
}

.success-icon {
    font-size: 44px;
    line-height: 1;
}

.download-btn {
    display: inline-block;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    padding: 15px 22px;
    min-height: 50px;
    border-radius: 14px;
    margin: 6px 0 10px;
    box-shadow: 0 8px 20px rgba(74, 44, 23, 0.25);
    transition: transform 0.15s ease;
    touch-action: manipulation;
}

.download-btn:active {
    transform: scale(0.98);
}

.download-btn:hover {
    transform: translateY(-2px);
}

.link-stack {
    display: grid;
    gap: 14px;
    margin-bottom: 32px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    background: #fff;
    border: 2px solid var(--stroke);
    border-radius: 18px;
    padding: 13px 16px;
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(234, 138, 31, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    touch-action: manipulation;
}

.link-card:active {
    transform: scale(0.99);
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow);
    border-color: var(--ring);
}

.link-emoji {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #FFF0DC;
    font-size: 24px;
}

.link-thumb {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: cover;
    background: #FFF0DC;
}

.link-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.link-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16.5px;
    color: var(--ink);
}

.link-desc {
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.35;
}

.link-arrow {
    flex: 0 0 auto;
    color: var(--ink-soft);
    font-size: 20px;
    transition: transform 0.15s ease;
}

.link-card:hover .link-arrow {
    transform: translateX(3px);
    color: var(--orange);
}

.link-card.highlight {
    background: linear-gradient(135deg, #FFE7C2 0%, #FFC98F 100%);
    border-color: var(--amber);
    animation: pulseGlow 2.4s ease-in-out infinite;
}

.link-card.highlight .link-emoji {
    background: rgba(255, 255, 255, 0.75);
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.35); }
    50% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
}

.foot {
    text-align: center;
    color: var(--ink-soft);
    font-size: 14px;
}

.fineprint {
    font-size: 12.5px;
    color: var(--ink-soft);
    margin: 8px 0 0;
}

.foot p {
    margin: 4px 0;
}

#freebie {
    scroll-margin-top: 18px;
}

.freebie-scroll-wrap {
    display: flex;
    justify-content: center;
    margin: 26px 0 6px;
}

.freebie-scroll {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #F59E0B, #E07B39);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 15px 26px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(224, 123, 57, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    touch-action: manipulation;
    max-width: 100%;
    text-align: center;
    line-height: 1.2;
}

.freebie-scroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(224, 123, 57, 0.45);
}

.freebie-scroll:active {
    transform: translateY(0) scale(0.98);
}

.freebie-scroll-icon,
.freebie-scroll-dn {
    flex: 0 0 auto;
}

.freebie-scroll-dn {
    animation: bounce-dn 1.6s infinite;
}

@keyframes bounce-dn {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

@media (max-width: 380px) {
    .shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .social-bar {
        gap: 8px;
    }

    .social-chip {
        padding: 8px 12px;
        font-size: 13px;
    }

    .freebie-scroll {
        font-size: 14px;
        padding: 14px 20px;
        width: 100%;
    }

    .lead-card {
        padding: 22px 16px;
    }

    .link-card {
        gap: 12px;
        padding: 12px 14px;
    }

    .link-emoji,
    .link-thumb {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }
}

@media (min-width: 640px) {
    .shell {
        padding-top: 44px;
    }

    .avatar {
        width: 124px;
        height: 124px;
    }

    .site-title {
        font-size: 2.4rem;
    }

    .lead-card {
        padding: 32px 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .link-card.highlight {
        animation: none;
    }

    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}