/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #08090a;
    --text-primary: #f7f8f8;
    --text-secondary: #8a8f98;
    --accent: #00e5e5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    padding: 60px 20px;
    position: relative;
}

/* Close Button */
.close-button {
    position: fixed;
    top: 20px;
    right: 20px;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button:hover {
    transform: scale(1.1) rotate(90deg);
    opacity: 0.8;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Logo */
.logo-section {
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.logo {
    max-width: 312px;
    height: auto;
}

/* Headline */
.headline {
    font-size: clamp(34px, 5.6vw, 67px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.2s forwards;
}

/* Copy */
.copy {
    max-width: 600px;
    margin: 0 auto 60px;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.4s forwards;
}

.copy p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* CTA Section */
.cta-section {
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.8s forwards;
}

.form-headline {
    color: #00e5e5;
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.email-input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 2rem;
    font-size: 16px;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 50px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.email-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.email-input:focus {
    outline: none;
    border-color: var(--accent);
    background: transparent;
}

.cta-button {
    padding: 0.75rem 2rem;
    font-size: 16px;
    font-weight: 400;
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.cta-button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(0);
}

.form-message {
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    color: #22c55e;
}

.form-message.error {
    display: block;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
}

/* Offer Text */
.offer-text {
    margin-top: 30px;
    text-align: center;
}

.offer-title {
    font-size: 16px;
    font-weight: 400;
    color: var(--accent);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.offer-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--accent);
    max-width: 450px;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 640px) {
    body {
        padding: 40px 16px;
    }

    .logo {
        max-width: 262.5px;
    }

    .headline {
        margin-bottom: 30px;
    }

    .copy {
        margin-bottom: 60px;
    }

    .copy p {
        font-size: 15px;
    }


    .email-form {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
    }
}

/* App Store CTA */
.app-store-link {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-link:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.app-store-badge {
    height: 56px;
    width: auto;
}

.live-badge {
    display: inline-block;
    background-color: var(--accent, #e1ff00);
    color: #0a0a0a;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.cta-top {
    margin: 0 auto 64px;
    text-align: center;
}

.cta-note {
    margin-top: 16px;
    font-size: 15px;
    color: var(--text-secondary);
}

.cta-note a {
    color: var(--accent);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Page layout, guided by linear.app: left-aligned, tight type, full-width hairlines */
html,
body {
    overflow-x: clip;
}

body {
    padding: 0 32px;
}

.container {
    max-width: 1136px;
    text-align: left;
}

.hero {
    padding: 72px 0 96px;
}

.logo {
    display: block;
    width: 168px;
    max-width: 168px;
}

.logo-section {
    margin-bottom: 40px;
}

.headline {
    font-size: clamp(42px, 5.6vw, 72px);
    font-weight: 510;
    line-height: 1;
    letter-spacing: -0.022em;
    margin-bottom: 24px;
}

.copy {
    margin: 0 0 36px;
}

.copy p {
    font-size: 19px;
    line-height: 1.5;
    margin: 0;
}

.cta-top {
    margin: 0;
    text-align: left;
}

.live-badge {
    display: none;
}

.cta-note {
    font-size: 15px;
}

/* Sections */
.band {
    position: relative;
    padding: 96px 0;
}

.band::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-50%);
}

.band-head {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: baseline;
    gap: 32px;
    margin-bottom: 56px;
}

.band-head-last {
    margin-bottom: 0;
}

.band h2 {
    font-size: clamp(34px, 4.2vw, 48px);
    font-weight: 510;
    line-height: 1.05;
    letter-spacing: -0.022em;
    text-wrap: balance;
}

.band-head > p {
    font-size: clamp(19px, 2vw, 24px);
    line-height: 1.35;
    letter-spacing: -0.012em;
    color: #d0d6e0;
}

/* Feature cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.feature {
    display: flex;
    flex-direction: column;
    background: #0f1011;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.feature-copy {
    padding: 28px 28px 24px;
}

.feature h3 {
    font-size: 20px;
    font-weight: 590;
    letter-spacing: -0.012em;
    margin-bottom: 4px;
}

.feature p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.feature-pro {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 8px;
    border: 1px solid rgba(0, 245, 245, 0.5);
    border-radius: 100px;
    color: #00f5f5;
    font-size: 12px;
    font-weight: 510;
    letter-spacing: 0;
    vertical-align: 2px;
}

.feature-shot {
    height: 380px;
    margin-top: auto;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
    mask-image: linear-gradient(to bottom, #000 62%, transparent);
}

.feature-shot img {
    display: block;
    width: min(340px, 86%);
    height: auto;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

/* Trades: one slide at a time, chosen by tab */
.trade-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 20px;
}

.trade-tab {
    padding: 7px 10px;
    border: 0;
    border-radius: 100px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 14px;
    font-weight: 510;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.trade-tab:hover {
    color: var(--text-primary);
}

.trade-tab.is-active {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.trade-tab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.trade-panel {
    overflow: hidden;
    border-radius: 16px;
    background: #f1f3f6;
    color: #111a2e;
}

.trade-slide {
    display: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: center;
}

.trade-slide.is-active {
    display: grid;
    animation: tradeFade 0.3s ease;
}

@keyframes tradeFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.trade-copy {
    padding: 40px;
}

.trade-copy h3 {
    font-size: clamp(30px, 3.6vw, 42px);
    font-weight: 510;
    line-height: 1.08;
    letter-spacing: -0.022em;
    margin-bottom: 12px;
    text-wrap: balance;
}

.trade-copy p {
    font-size: 17px;
    line-height: 1.4;
    color: #4b5563;
}

/* Blend the photo's cut edge into the panel, stopping short of the phone */
.trade-slide img {
    display: block;
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 7%);
    mask-image: linear-gradient(to right, transparent, #000 7%);
}

/* Free and Pro */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan {
    padding-right: 28px;
}

.plan-pro {
    padding: 0 0 0 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.plan h3 {
    font-size: 15px;
    font-weight: 510;
    color: var(--text-secondary);
}

.plan-price {
    font-size: 24px;
    font-weight: 510;
    letter-spacing: -0.012em;
    margin-bottom: 16px;
}

.plan-pro .plan-price {
    color: #00f5f5;
}

.plan ul {
    list-style: none;
}

.plan li {
    padding: 4px 0;
    font-size: 15px;
    color: #d0d6e0;
}

.plan-note {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Closing */
.closing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.closing-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.closing-mascot {
    width: 88px;
    height: auto;
}

.closing h2 {
    font-size: clamp(48px, 7vw, 80px);
}

.closing-action p {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.closing-action p a {
    color: inherit;
}

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

    .band {
        padding: 64px 0;
    }

    .band-head {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        margin-bottom: 36px;
    }

    .band-head-last {
        margin-bottom: 0;
    }

    .feature-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
}

@media (max-width: 640px) {
    body {
        padding: 0 20px;
    }

    .logo {
        max-width: 144px;
    }

    .trade-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -20px 16px;
        padding: 0 20px;
        scrollbar-width: none;
    }

    .trade-tabs::-webkit-scrollbar {
        display: none;
    }

    .trade-slide,
    .trade-slide.is-active {
        grid-template-columns: minmax(0, 1fr);
    }

    .trade-copy {
        padding: 28px 24px 16px;
    }

    .trade-slide img {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .headline {
        margin-bottom: 20px;
    }

    .copy p {
        font-size: 17px;
    }

    .plan-grid {
        gap: 28px;
        grid-template-columns: minmax(0, 1fr);
    }

    .plan {
        padding: 0;
    }

    .plan-pro {
        padding: 28px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        transition: none !important;
    }
}
