* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --page: #080808;
    --page-soft: #0c0c0c;
    --surface: #171717;
    --surface-2: #121212;
    --surface-3: #1d1d1d;
    --text: #ffffff;
    --muted: #a5a5a5;
    --muted-2: #777777;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .15);
    --purple: #5635ff;
    --purple-dark: #4429df;
    --internal-blue: #1d5f9b;
    --internal-blue-dark: #0d2844;
    --internal-blue-line: rgba(111, 177, 235, .24);
    --internal-blue-text: #e0f1ff;
    --font: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --container: 1440px;
    --clay-shadow: 0 16px 30px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .025), inset 0 -1px 0 rgba(0, 0, 0, .55);
    --clay-shadow-small: 0 8px 18px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .02), inset 0 -1px 0 rgba(0, 0, 0, .52);
}

html {
    min-width: 320px;
    background: var(--page);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--page);
    color: var(--text);
    font-family: var(--font);
    font-weight: 500;
    line-height: 1.45;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 3px;
}

/* Header */
.sell-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 74px;
    background: rgba(8, 8, 8, .98);
    border-bottom: 1px solid var(--line);
}

.sell-header-inner {
    width: min(var(--container), calc(100% - 40px));
    min-height: 74px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.sell-logo,
.mobile-logo {
    display: inline-flex;
    align-items: center;
}

.sell-logo img,
.mobile-logo img {
    width: auto;
    max-width: 190px;
    height: 34px;
    object-fit: contain;
    object-position: left center;
}

.desktop-nav {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 25px;
}

.desktop-nav a,
.account-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: #d7d7d7;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.account-link:hover {
    color: #ffffff;
    border-bottom-color: var(--purple);
}

.desktop-actions {
    display: flex;
    align-items: center;
    gap: 17px;
}

.contact-link,
.mobile-contact,
.plan-button,
.internal-cta {
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: var(--purple);
    color: #ffffff;
    box-shadow: var(--clay-shadow-small);
    font-size: 14px;
    font-weight: 730;
    line-height: 1.15;
    text-align: center;
}

.contact-link:hover,
.mobile-contact:hover,
.plan-button:hover {
    background: var(--purple-dark);
}

.mobile-menu-button {
    display: none;
}

/* Mobile drawer */
.sell-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, .72);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, visibility 160ms ease;
}

.sell-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sell-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    width: min(380px, 92vw);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #111111;
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 34px rgba(0, 0, 0, .48), inset 1px 0 0 rgba(255, 255, 255, .02);
    transform: translateX(101%);
    transition: transform 180ms ease;
}

.sell-mobile-menu.active {
    transform: translateX(0);
}

.sell-mobile-head {
    min-height: 74px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.mobile-close-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface);
    color: #ffffff;
    box-shadow: var(--clay-shadow-small);
    cursor: pointer;
    font-size: 29px;
    line-height: 1;
}

.sell-mobile-links {
    padding: 10px 18px;
}

.sell-mobile-links a {
    min-height: 54px;
    display: flex;
    align-items: center;
    color: #e0e0e0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    font-weight: 650;
}

.sell-mobile-links a.active {
    color: #ffffff;
    border-bottom-color: var(--purple);
}

.mobile-contact {
    margin: auto 18px 18px;
}

/* Main */
.sell-page {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 72px;
}

.pricing-intro {
    padding: 12px 0 28px;
    text-align: center;
}

.pricing-intro > p,
.internal-heading > p {
    margin-bottom: 10px;
    color: #8f8f8f;
    font-size: 11px;
    font-weight: 730;
    letter-spacing: .14em;
    line-height: 1;
    text-transform: uppercase;
}

.pricing-intro h1 {
    color: #ffffff;
    font-size: clamp(42px, 5vw, 70px);
    font-weight: 650;
    letter-spacing: -.055em;
    line-height: 1;
}

.plan-controls {
    min-height: 48px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.billing-switch {
    padding: 4px;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--clay-shadow-small);
}

.billing-switch button {
    min-height: 38px;
    padding: 0 15px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #909090;
    cursor: pointer;
    font-size: 13px;
    font-weight: 680;
}

.billing-switch button.active {
    background: var(--surface-3);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), inset 0 -1px 0 rgba(0, 0, 0, .6), 0 5px 12px rgba(0, 0, 0, .28);
}

.internal-marketplace-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 15px;
    color: var(--internal-blue-text);
    background: var(--internal-blue);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(230, 245, 255, .035), inset 0 -1px 0 rgba(0, 0, 0, .48);
    font-size: 13px;
    font-weight: 680;
    white-space: nowrap;
}

.internal-marketplace-link:hover {
    color: #ffffff;
    background: #2472b6;
    border-color: rgba(255, 255, 255, .10);
}

/* Plans */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.plan-card {
    min-width: 0;
    min-height: 490px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--clay-shadow);
}

.plan-card:hover,
.plan-card:focus-within {
    border-color: rgba(86, 53, 255, .38);
}

.plan-top {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
}

.plan-name-block {
    min-width: 0;
}

.plan-name-block h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 680;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.plan-name-block p {
    min-height: 36px;
    margin-top: 6px;
    color: #a8a8a8;
    font-size: 13px;
    line-height: 1.35;
}

.price-block {
    min-width: max-content;
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    color: #ffffff;
    white-space: nowrap;
}

.from-label {
    margin-right: 5px;
    color: #858585;
    font-size: 10px;
    font-weight: 600;
}

.currency {
    margin-right: 1px;
    font-size: 16px;
    font-weight: 620;
}

.price-number {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: 1;
}

.price-period {
    margin-left: 3px;
    color: #8b8b8b;
    font-size: 11px;
}

.plan-card:last-child .price-number {
    font-size: 27px;
}

.plan-button {
    --spectrum-angle: 0deg;
    --spectrum-speed: 1.65s;
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 50px;
    margin: 28px 0 20px;
    padding: 8px 12px;
    overflow: hidden;
    border: 0;
    border-radius: 11px;
    background: #4c2de8;
    box-shadow:
        0 9px 18px rgba(0, 0, 0, .34),
        inset 0 1px 0 rgba(255, 255, 255, .07),
        inset 0 -1px 0 rgba(0, 0, 0, .38);
    transition: background-color 130ms ease, transform 90ms ease;
}

/* Strong Vendiac spectrum edge.
   The entire 3px perimeter stays visible while saturated colour moves
   around it. The effect never fills the button and has no blur or glow. */
@property --spectrum-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.plan-button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 3px;
    background: conic-gradient(
        from var(--spectrum-angle),
        #ff2d55 0deg,
        #ff453a 36deg,
        #ff9f0a 72deg,
        #ffd60a 108deg,
        #30d158 144deg,
        #00c7be 180deg,
        #64d2ff 216deg,
        #0a84ff 252deg,
        #5e5ce6 288deg,
        #bf5af2 324deg,
        #ff2d55 360deg
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: vendiacSpectrumEdge var(--spectrum-speed) linear infinite;
}

.plan-button:hover {
    background: #4024d4;
}

.plan-button:active {
    transform: translateY(2px) scale(.994);
}

@keyframes vendiacSpectrumEdge {
    to {
        --spectrum-angle: 360deg;
    }
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 11px;
}

.feature-list li {
    color: #a8a8a8;
    font-size: 13px;
    line-height: 1.4;
}

.payment-status {
    margin-top: 15px;
    color: #777777;
    font-size: 11px;
}

/* Internal marketplace */
.internal-section {
    margin-top: 54px;
    padding: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr) auto;
    align-items: center;
    gap: 34px;
    background: var(--internal-blue-dark);
    border: 1px solid var(--internal-blue-line);
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(221, 240, 255, .032), inset 0 -1px 0 rgba(0, 0, 0, .52);
    scroll-margin-top: 92px;
}

.internal-heading > p {
    color: #8fc7f4;
}

.internal-heading h2 {
    color: #ffffff;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 650;
    letter-spacing: -.045em;
    line-height: 1.05;
}

.internal-rates {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.internal-rates > div {
    min-width: 0;
}

.internal-rates dt {
    color: #a9cde9;
    font-size: 11px;
    line-height: 1.2;
}

.internal-rates dd {
    margin-top: 7px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1;
}

.internal-cta {
    min-width: 148px;
    background: var(--internal-blue);
    border-color: rgba(255, 255, 255, .06);
    color: var(--internal-blue-text);
}

.internal-cta:hover {
    background: #2472b6;
}

/* Laptop */
@media (max-width: 1190px) {
    .sell-header-inner,
    .sell-page {
        width: calc(100% - 30px);
    }

    .desktop-nav {
        gap: 16px;
    }

    .desktop-nav a,
    .account-link {
        font-size: 13px;
    }

    .plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plan-card {
        min-height: 450px;
    }

    .internal-section {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .internal-cta {
        width: max-content;
    }
}

/* iPad keeps normal navigation */
@media (max-width: 900px) and (min-width: 701px) {
    .sell-header-inner {
        gap: 13px;
    }

    .sell-logo img {
        max-width: 150px;
        height: 30px;
    }

    .desktop-nav {
        gap: 11px;
    }

    .desktop-nav a,
    .account-link {
        font-size: 12px;
    }

    .desktop-actions .contact-link {
        display: none;
    }
}

/* Phones */
@media (max-width: 700px) {
    .sell-header {
        min-height: 68px;
    }

    .sell-header-inner {
        width: calc(100% - 20px);
        min-height: 68px;
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .desktop-nav,
    .desktop-actions {
        display: none;
    }

    .sell-logo img {
        max-width: 154px;
        height: 29px;
    }

    .mobile-menu-button {
        width: 44px;
        height: 44px;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .mobile-menu-button span {
        width: 26px;
        height: 2px;
        display: block;
        background: #ffffff;
    }

    .sell-page {
        width: calc(100% - 20px);
        padding-top: 28px;
    }

    .pricing-intro {
        padding: 4px 0 22px;
    }

    .pricing-intro h1 {
        font-size: clamp(38px, 11vw, 48px);
    }

    .plan-controls {
        margin-bottom: 14px;
    }

    .billing-switch button {
        min-height: 36px;
        padding: 0 13px;
        font-size: 12px;
    }

    .internal-marketplace-link {
        min-height: 38px;
        font-size: 12px;
    }

    .plans-grid {
        width: 100%;
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding: 2px 14px 18px 0;
    }

    .plans-grid::-webkit-scrollbar {
        display: none;
    }

    .plan-card {
        flex: 0 0 min(340px, 84vw);
        min-height: 472px;
        padding: 20px;
        scroll-snap-align: start;
    }

    .plan-name-block h2 {
        font-size: 23px;
    }

    .price-number {
        font-size: 28px;
    }

    .plan-card:last-child .price-number {
        font-size: 24px;
    }

    .plan-button {
        margin-top: 24px;
    }

    .internal-section {
        margin-top: 38px;
        padding: 24px;
        gap: 24px;
    }

    .internal-rates {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .internal-rates dd {
        font-size: 22px;
    }

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

@media (max-width: 430px) {
    .sell-header-inner,
    .sell-page {
        width: calc(100% - 16px);
    }

    .sell-logo img,
    .mobile-logo img {
        max-width: 144px;
        height: 27px;
    }

    .pricing-intro h1 {
        font-size: 38px;
    }

    .plan-controls {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .internal-marketplace-link {
        align-self: flex-end;
    }

    .plan-card {
        flex-basis: 88vw;
    }

    .plan-top {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .price-block {
        justify-self: start;
    }

    .internal-rates {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

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

    .plan-button::before {
        animation: none;
        --spectrum-angle: 225deg;
    }

    .sell-menu-overlay,
    .sell-mobile-menu,
    .plan-button {
        transition: none;
    }
}
