:root {
    color-scheme: light dark;
    --bg: #f8f7f3;
    --text: #1d1d1f;
    --muted: #66666b;
    --panel: #ffffff;
    --line: #d9d6cd;
    --accent: #1f6f68;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #101112;
        --text: #f5f5f7;
        --muted: #b0b0b5;
        --panel: #1d1f21;
        --line: #36383b;
        --accent: #78c8bd;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

main {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0;
}

header {
    margin-bottom: 32px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

a {
    color: var(--accent);
}

nav a {
    font-weight: 600;
    text-decoration: none;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3.25rem);
    line-height: 1.05;
}

h2 {
    margin-top: 32px;
    font-size: 1.35rem;
}

p,
li {
    font-size: 1.02rem;
}

.lede {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.15rem;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    margin: 24px 0;
}

.muted {
    color: var(--muted);
}

footer {
    border-top: 1px solid var(--line);
    margin-top: 44px;
    padding-top: 22px;
    color: var(--muted);
    font-size: 0.95rem;
}

footer nav {
    margin: 0 0 14px;
    gap: 12px 18px;
}

footer p {
    margin-top: 0;
    margin-bottom: 0;
}

footer a:focus-visible {
    border-radius: 4px;
    outline: 3px solid color-mix(in srgb, currentColor 45%, transparent);
    outline-offset: 4px;
}

.home-page main {
    width: min(1120px, calc(100% - 32px));
}

.home-page header {
    max-width: 760px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 36px 0 24px;
}

.product-card {
    --card-accent: #1f6f68;
    --card-button: #173f3c;
    position: relative;
    min-height: 590px;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid color-mix(in srgb, var(--card-accent) 28%, var(--line));
    border-radius: 28px;
    padding: 32px;
    background: var(--panel);
    box-shadow: 0 18px 45px rgba(28, 32, 34, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 58px rgba(28, 32, 34, 0.14);
}

.madegood-card {
    --card-accent: #e4513f;
    --card-button: #064f57;
    background:
        radial-gradient(circle at 15% 5%, rgba(236, 83, 65, 0.18), transparent 42%),
        linear-gradient(145deg, #fffaf4 0%, #f6eee4 100%);
}

.mixer-card {
    --card-accent: #d9902d;
    --card-button: #2e756f;
    background:
        radial-gradient(circle at 90% 8%, rgba(226, 151, 49, 0.22), transparent 38%),
        linear-gradient(145deg, #fffaf0 0%, #eef4ee 100%);
}

.product-card-copy {
    position: relative;
    z-index: 3;
}

.product-card h2 {
    margin: 6px 0 14px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.035em;
}

.product-card-copy > p:not(.product-kicker) {
    max-width: 440px;
    margin: 0;
    color: #4e5153;
    font-size: 1.06rem;
}

.product-kicker {
    margin: 0;
    color: var(--card-accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.product-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 24px;
}

.product-card-actions a {
    color: #4e5153;
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

.product-card-actions .product-card-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 10px 18px;
    background: var(--card-button);
    color: #fffdf8;
    font-size: 0.95rem;
    box-shadow: 0 9px 24px color-mix(in srgb, var(--card-button) 22%, transparent);
}

.product-card-button span {
    font-size: 1.2rem;
    transition: transform 180ms ease;
}

.product-card-button:hover span {
    transform: translateX(3px);
}

.product-card-art {
    position: relative;
    min-height: 285px;
    margin: 26px -10px -24px;
}

.product-card-art img {
    position: absolute;
    right: 10px;
    bottom: 0;
    z-index: 1;
    display: block;
    width: 245px;
    height: auto;
    max-width: 70%;
    border-radius: 24%;
    filter: drop-shadow(0 20px 24px rgba(36, 32, 24, 0.17));
    transform: rotate(2deg);
}

.madegood-card .product-card-art img {
    border-radius: 21.5%;
}

.mixer-card .product-card-art img {
    right: 14px;
    width: 235px;
    max-width: 68%;
    transform: rotate(-2deg);
}

.pixel-trail {
    position: absolute;
    left: 12%;
    bottom: 15%;
    width: 130px;
    height: 125px;
    opacity: 0.65;
    background:
        linear-gradient(135deg, rgba(228, 81, 63, 0.95), rgba(6, 79, 87, 0.9));
    clip-path: polygon(0 35%, 18% 35%, 18% 22%, 35% 22%, 35% 8%, 48% 8%, 48% 0, 62% 0, 62% 16%, 78% 16%, 78% 30%, 100% 30%, 100% 45%, 82% 45%, 82% 60%, 65% 60%, 65% 75%, 48% 75%, 48% 90%, 32% 90%, 32% 100%, 16% 100%, 16% 82%, 0 82%);
    filter: blur(0.3px);
    transform: rotate(-16deg);
}

.paint-swatch {
    position: absolute;
    border-radius: 50% 46% 54% 42%;
    filter: blur(0.2px);
}

.swatch-one {
    left: 5%;
    bottom: 20%;
    width: 128px;
    height: 86px;
    background: rgba(217, 144, 45, 0.62);
    transform: rotate(-12deg);
}

.swatch-two {
    left: 25%;
    bottom: 8%;
    width: 115px;
    height: 80px;
    background: rgba(47, 125, 117, 0.62);
    transform: rotate(8deg);
}

.swatch-three {
    left: 11%;
    bottom: 4%;
    width: 62px;
    height: 48px;
    background: rgba(151, 65, 43, 0.52);
}

@media (prefers-color-scheme: dark) {
    .madegood-card {
        background:
            radial-gradient(circle at 15% 5%, rgba(228, 81, 63, 0.24), transparent 42%),
            linear-gradient(145deg, #262222 0%, #1d2324 100%);
    }

    .mixer-card {
        background:
            radial-gradient(circle at 90% 8%, rgba(217, 144, 45, 0.22), transparent 38%),
            linear-gradient(145deg, #28241d 0%, #1b2523 100%);
    }

    .product-card-copy > p:not(.product-kicker),
    .product-card-actions a {
        color: #c9c8c4;
    }
}

@media (max-width: 780px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        min-height: 560px;
    }
}

@media (max-width: 520px) {
    .product-card {
        min-height: 520px;
        border-radius: 22px;
        padding: 25px;
    }

    .product-card-art {
        min-height: 245px;
    }

    .product-card-art img {
        width: 215px;
        max-width: 68%;
    }
}

.apps-page main {
    width: min(900px, calc(100% - 32px));
}

.apps-header {
    max-width: 720px;
}

.apps-page .eyebrow {
    color: var(--accent);
}

.apps-directory {
    display: grid;
    gap: 16px;
    margin: 32px 0 24px;
}

.app-listing {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    background: var(--panel);
}

.app-listing img,
.app-placeholder-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(28, 32, 34, 0.12);
}

.app-placeholder-icon {
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, #1f6f68, #385f86);
    color: #fffaf2;
    font-size: 1.8rem;
    font-weight: 800;
}

.app-listing h2 {
    margin: 2px 0 6px;
    font-size: 1.6rem;
}

.app-listing p {
    margin: 0;
}

.app-listing > div > p:not(.app-status) {
    color: var(--muted);
}

.app-status {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-listing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: center;
    margin-top: 16px;
}

.app-listing-actions .button-link {
    min-height: 42px;
    border-color: var(--accent);
    color: var(--accent);
}

.app-listing-actions .button-link.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg);
}

.app-listing-actions .button-link.disabled {
    border-color: var(--line);
    color: var(--muted);
    cursor: default;
}

.app-listing-actions a:not(.button-link) {
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 560px) {
    .app-listing {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .app-listing img,
    .app-placeholder-icon {
        width: 76px;
        height: 76px;
        border-radius: 18px;
    }

    .app-listing h2 {
        font-size: 1.25rem;
    }
}

.product-page {
    --product-bg: #f2f0eb;
    --product-text: #171a1c;
    --product-muted: #5e6267;
    --product-panel: #ffffff;
    --product-line: #ddd6ca;
    --product-teal: #1f756d;
    --product-blue: #385f86;
    --product-ochre: #d59332;
    --product-rust: #89451f;
    background: var(--product-bg);
    color: var(--product-text);
}

@media (prefers-color-scheme: dark) {
    .product-page {
        --product-bg: #151719;
        --product-text: #f5f2ed;
        --product-muted: #c2bcb3;
        --product-panel: #202326;
        --product-line: #3a3d40;
        --product-teal: #63c8bb;
        --product-blue: #8eb3d6;
        --product-ochre: #e6aa50;
        --product-rust: #cc7547;
    }
}

.product-page main {
    width: 100%;
    margin: 0;
    padding: 0;
}

.product-hero {
    position: relative;
    min-height: 92svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
}

.product-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    z-index: -2;
}

.product-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(11, 13, 14, 0.88), rgba(11, 13, 14, 0.48) 52%, rgba(11, 13, 14, 0.14)),
        linear-gradient(0deg, rgba(11, 13, 14, 0.9), rgba(11, 13, 14, 0.08) 62%);
    z-index: -1;
}

.product-hero-copy {
    width: min(720px, calc(100% - 40px));
    margin: 0 auto;
    padding: 88px 0 96px;
    color: #fffaf2;
}

.product-hero-copy h1 {
    max-width: 680px;
    font-size: clamp(3.1rem, 12vw, 7.5rem);
    letter-spacing: 0;
}

.product-hero-copy p {
    max-width: 620px;
    color: rgba(255, 250, 242, 0.86);
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--product-ochre);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 250, 242, 0.7);
    border-radius: 8px;
    padding: 10px 18px;
    color: #fffaf2;
    font-weight: 700;
    text-decoration: none;
}

.button-link.primary {
    border-color: #fffaf2;
    background: #fffaf2;
    color: #173431;
}

.product-intro,
.feature-band,
.pricing-section,
.audience-section,
.faq-section,
.split-feature,
.privacy-callout,
.product-footer {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.product-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    gap: 48px;
    padding: 70px 0 34px;
}

.product-intro h2,
.feature-band h2,
.pricing-section h2,
.audience-section h2,
.faq-section h2,
.split-feature h2,
.privacy-callout h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.product-intro p,
.pricing-section p,
.audience-section p,
.faq-section p,
.split-feature p,
.privacy-callout p,
.feature-grid p {
    color: var(--product-muted);
}

.phone-showcase {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 34px 0 72px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.phone-frame {
    margin: 0;
    border-radius: 30px;
    padding: 10px;
    background: #101112;
    box-shadow: 0 18px 54px rgba(34, 28, 20, 0.2);
}

.phone-frame.large.raised {
    margin-top: 42px;
}

.phone-frame img {
    display: block;
    width: 100%;
    border-radius: 22px;
}

.phone-frame figcaption {
    padding: 14px 8px 6px;
    color: #f7f2ea;
    font-size: 0.95rem;
    line-height: 1.35;
}

.feature-band {
    padding: 72px 0;
    border-top: 1px solid var(--product-line);
    border-bottom: 1px solid var(--product-line);
}

.feature-band > h2 {
    max-width: 780px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.feature-grid article {
    border: 1px solid var(--product-line);
    border-radius: 8px;
    padding: 20px;
    background: color-mix(in srgb, var(--product-panel) 88%, transparent);
}

.feature-grid h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.feature-grid p {
    margin: 0;
    font-size: 0.98rem;
}

.pricing-section {
    padding: 72px 0;
}

.pricing-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    gap: 48px;
    align-items: start;
    margin-bottom: 30px;
}

.pricing-heading h2 {
    margin: 0;
}

.pricing-heading > p:not(.eyebrow) {
    margin: 0;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tier-card {
    border: 1px solid var(--product-line);
    border-radius: 8px;
    padding: 24px;
    background: color-mix(in srgb, var(--product-panel) 92%, transparent);
}

.tier-kicker {
    margin: 0 0 8px;
    color: var(--product-teal);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tier-card h3 {
    margin: 0 0 14px;
    font-size: 1.35rem;
    line-height: 1.2;
}

.tier-card ul {
    margin: 0;
    padding-left: 1.2em;
}

.tier-card li {
    margin-bottom: 8px;
    color: var(--product-muted);
    font-size: 0.98rem;
}

.tier-note {
    margin: 18px 0 0;
    font-size: 0.96rem;
}

.audience-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    gap: 48px;
    padding: 72px 0;
    border-bottom: 1px solid var(--product-line);
}

.audience-section h2,
.faq-section h2 {
    margin: 0;
}

.audience-section > p {
    margin: 0;
}

.faq-section {
    padding: 72px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.faq-grid article {
    border-top: 3px solid var(--product-teal);
    padding: 20px 0 0;
}

.faq-grid h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.faq-grid p {
    margin: 0;
    font-size: 0.98rem;
}

.split-feature {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(240px, 360px);
    gap: 52px;
    align-items: center;
    padding: 76px 0;
}

.split-feature.reverse {
    grid-template-columns: minmax(240px, 360px) minmax(280px, 0.9fr);
}

.split-feature.reverse > div {
    order: 2;
}

.split-feature.reverse > figure {
    order: 1;
}

.split-feature .phone-frame {
    max-width: 360px;
}

.privacy-callout {
    margin-bottom: 64px;
    border-radius: 8px;
    padding: 34px;
    background: var(--product-teal);
    color: #fffaf2;
}

.privacy-callout .eyebrow,
.privacy-callout p,
.privacy-callout a {
    color: #fffaf2;
}

.privacy-callout p {
    max-width: 780px;
}

.product-footer {
    border-top: 1px solid var(--product-line);
    padding: 26px 0 44px;
}

.product-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin: 0 0 14px;
}

.product-footer nav a {
    color: var(--product-muted);
    font-weight: 700;
    text-decoration: none;
}

.product-footer p {
    color: var(--product-muted);
}

@media (max-width: 840px) {
    .product-hero {
        min-height: 88svh;
    }

    .product-hero-image {
        object-position: 58% 14%;
    }

    .product-hero-shade {
        background:
            linear-gradient(0deg, rgba(11, 13, 14, 0.92), rgba(11, 13, 14, 0.46) 62%, rgba(11, 13, 14, 0.18));
    }

    .product-hero-copy {
        padding: 84px 0 58px;
    }

    .product-intro,
    .pricing-heading,
    .audience-section,
    .split-feature,
    .split-feature.reverse {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .split-feature.reverse > div,
    .split-feature.reverse > figure {
        order: initial;
    }

    .phone-showcase,
    .feature-grid,
    .tier-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .phone-showcase {
        width: min(430px, calc(100% - 28px));
    }

    .phone-frame.large.raised {
        margin-top: 0;
    }

    .split-feature .phone-frame {
        max-width: min(360px, 100%);
    }

    .privacy-callout {
        padding: 26px;
    }
}

.madegood-page {
    --product-bg: #f3f1ea;
    --product-text: #162025;
    --product-muted: #5c6569;
    --product-panel: #fffdf8;
    --product-line: #d8d4c8;
    --product-teal: #0e5758;
    --product-blue: #d95847;
    --product-ochre: #b47a2e;
    background: var(--product-bg);
    color: var(--product-text);
}

@media (prefers-color-scheme: dark) {
    .madegood-page {
        --product-bg: #121719;
        --product-text: #f6f3ec;
        --product-muted: #bcc4c6;
        --product-panel: #1d2427;
        --product-line: #364044;
        --product-teal: #69c4bd;
        --product-blue: #ff8170;
        --product-ochre: #e0aa5d;
    }
}

.madegood-page main {
    width: 100%;
    margin: 0;
    padding: 0;
}

.madegood-hero {
    width: min(1120px, calc(100% - 40px));
    min-height: 82svh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
    gap: 68px;
    align-items: center;
    padding: 76px 0;
}

.madegood-hero-copy h1 {
    max-width: 760px;
    font-size: clamp(3.5rem, 10vw, 7.6rem);
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.madegood-hero-copy > p:not(.eyebrow) {
    max-width: 650px;
    color: var(--product-muted);
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
}

.madegood-page .button-link {
    border-color: var(--product-blue);
    color: var(--product-blue);
}

.madegood-page .button-link.primary {
    background: var(--product-blue);
    color: #fff;
}

.madegood-mark {
    aspect-ratio: 1;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 21.5%;
    box-shadow: 0 30px 80px rgba(29, 38, 42, 0.18);
}

.madegood-workflow {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
    gap: 54px;
    padding: 76px 0;
}

.madegood-workflow h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.04;
}

.madegood-workflow ol {
    margin: 0;
    padding-left: 1.4em;
}

.madegood-workflow li {
    margin-bottom: 20px;
    color: var(--product-muted);
}

.madegood-workflow strong {
    color: var(--product-text);
}

@media (max-width: 840px) {
    .madegood-hero,
    .madegood-workflow {
        grid-template-columns: 1fr;
    }

    .madegood-hero {
        gap: 44px;
        padding: 64px 0;
    }

    .madegood-mark {
        width: min(420px, 100%);
        justify-self: center;
    }
}
