@font-face {
    font-family: "Rubik";
    src: url("/landing-assets/Rubik-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Rubik";
    src: url("/landing-assets/Rubik-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Rubik";
    src: url("/landing-assets/Rubik-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #1f1f39;
    --muted: #6e7191;
    --red: #fb4e4e;
    --red-deep: #e91f35;
    --teal: #0d9488;
    --surface: #ffffff;
    --soft: #f7f7fc;
    --cream: #fff7ed;
    --line: #ececf4;
    --shadow: 0 22px 55px rgba(31, 31, 57, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--soft);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 7% 18%, rgba(251, 78, 78, 0.12), transparent 25rem),
        radial-gradient(circle at 93% 82%, rgba(13, 148, 136, 0.12), transparent 26rem),
        linear-gradient(180deg, #fff 0%, #fff 66%, #f7f7fc 100%);
    font-family: "Rubik", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.page-shell {
    width: min(1160px, calc(100% - 40px));
    min-height: calc(100vh - 76px);
    margin: 0 auto;
    padding: 30px 0 46px;
}

.brand-header {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 72px;
}

.brand-logo {
    width: clamp(190px, 23vw, 255px);
    height: auto;
    display: block;
}

.intro {
    max-width: 760px;
    margin: 26px auto 34px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--red-deep);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.eyebrow::before,
.eyebrow::after {
    width: 22px;
    height: 2px;
    content: "";
    border-radius: 999px;
    background: var(--red);
}

.intro h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.55rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.intro p:not(.eyebrow) {
    max-width: 620px;
    margin: 16px auto 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.8vw, 1.16rem);
    line-height: 1.65;
}

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

.choice-card {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    text-decoration: none;
    isolation: isolate;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.choice-card::after {
    position: absolute;
    z-index: -1;
    right: -110px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    content: "";
    border-radius: 50%;
    background: rgba(251, 78, 78, 0.07);
}

.choice-card--web::after {
    background: rgba(13, 148, 136, 0.08);
}

.choice-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 78, 78, 0.35);
    box-shadow: 0 30px 65px rgba(31, 31, 57, 0.16);
}

.choice-card--web:hover {
    border-color: rgba(13, 148, 136, 0.42);
}

.choice-card:focus-visible {
    outline: 4px solid rgba(13, 148, 136, 0.27);
    outline-offset: 4px;
}

.choice-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 288px;
    overflow: hidden;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(251, 78, 78, 0.97), rgba(233, 31, 53, 0.92)),
        var(--red);
}

.choice-visual::before {
    position: absolute;
    inset: -30% 40% -30% -12%;
    content: "";
    transform: rotate(-10deg);
    background: #ffc928;
    opacity: 0.95;
}

.choice-visual--web {
    background: linear-gradient(145deg, #f0fbf9, #d8f2ee);
}

.choice-visual--web::before {
    inset: -30% -15% -40% 72%;
    transform: rotate(15deg);
    background: var(--teal);
    opacity: 0.16;
}

.phone {
    position: relative;
    z-index: 1;
    width: 154px;
    height: 252px;
    padding: 8px;
    border: 5px solid #1f1f39;
    border-radius: 28px;
    background: #1f1f39;
    box-shadow: 0 18px 36px rgba(31, 31, 57, 0.28);
    transform: rotate(-4deg) translateY(8px);
}

.phone-speaker {
    position: absolute;
    z-index: 3;
    top: 8px;
    left: 50%;
    width: 38px;
    height: 5px;
    transform: translateX(-50%);
    border-radius: 99px;
    background: #1f1f39;
}

.phone-screen {
    height: 100%;
    overflow: hidden;
    border-radius: 17px;
    background: #fff;
}

.phone-brand {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 18px 9px 8px;
    color: var(--ink);
    font-size: 0.55rem;
    font-weight: 700;
}

.phone-brand img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.phone-food {
    width: 100%;
    height: 76px;
    display: block;
    object-fit: cover;
}

.phone-copy {
    display: grid;
    gap: 5px;
    padding: 12px 11px 8px;
}

.phone-copy strong {
    font-size: 0.68rem;
    line-height: 1.25;
}

.phone-copy span {
    color: var(--muted);
    font-size: 0.48rem;
    line-height: 1.45;
}

.mini-button {
    display: block;
    width: max-content;
    margin: 3px 11px;
    padding: 7px 9px;
    border-radius: 999px;
    color: #fff;
    background: var(--teal);
    font-size: 0.48rem;
    font-weight: 700;
}

.browser-frame {
    position: relative;
    z-index: 1;
    width: min(90%, 455px);
    overflow: hidden;
    border: 6px solid var(--ink);
    border-radius: 14px 14px 8px 8px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(31, 31, 57, 0.2);
    transform: rotate(2deg) translateY(10px);
}

.browser-frame::after {
    display: block;
    width: 68%;
    height: 8px;
    margin: 0 auto -8px;
    content: "";
    border-radius: 0 0 12px 12px;
    background: var(--ink);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 27px;
    padding: 0 9px;
    background: var(--soft);
}

.browser-bar i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
}

.browser-bar i:nth-child(2) {
    background: #ffc928;
}

.browser-bar i:nth-child(3) {
    background: var(--teal);
}

.browser-bar span {
    margin-left: 5px;
    color: var(--muted);
    font-size: 0.46rem;
}

.browser-frame > img {
    width: 100%;
    height: 122px;
    display: block;
    object-fit: cover;
}

.browser-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    padding: 12px;
}

.browser-menu span {
    padding: 10px 4px;
    border-radius: 7px;
    color: var(--ink);
    background: var(--soft);
    font-size: 0.42rem;
    font-weight: 700;
    text-align: center;
}

.version-pill {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 14px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    color: #fff;
    background: rgba(31, 31, 57, 0.75);
    box-shadow: 0 8px 18px rgba(31, 31, 57, 0.16);
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.choice-visual--web .version-pill {
    color: var(--teal);
    border-color: rgba(13, 148, 136, 0.18);
    background: rgba(255, 255, 255, 0.88);
}

.choice-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 22px 2px 18px;
}

.choice-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 15px;
    color: var(--red-deep);
    background: rgba(251, 78, 78, 0.1);
}

.choice-card--web .choice-icon {
    color: var(--teal);
    background: rgba(13, 148, 136, 0.1);
}

.choice-icon svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.choice-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--red-deep);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.11em;
}

.choice-card--web .choice-kicker {
    color: var(--teal);
}

.choice-content h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.25;
}

.choice-content p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.5;
}

.choice-button {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding: 14px 20px;
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.choice-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.choice-button--dark {
    background: var(--ink);
}

.choice-button--primary {
    background: var(--teal);
}

.help-text {
    margin: 28px auto 0;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

footer {
    display: flex;
    width: min(1160px, calc(100% - 40px));
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.84rem;
}

footer nav {
    display: flex;
    gap: 20px;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    color: var(--teal);
}

@media (max-width: 820px) {
    .page-shell {
        min-height: auto;
        padding-top: 22px;
    }

    .intro {
        margin-top: 20px;
    }

    .choice-grid {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin: 0 auto;
    }

    .choice-visual {
        min-height: 270px;
    }
}

@media (max-width: 520px) {
    .page-shell,
    footer {
        width: min(100% - 24px, 1160px);
    }

    .page-shell {
        padding-bottom: 34px;
    }

    .brand-header {
        min-height: 54px;
    }

    .intro {
        margin: 16px auto 24px;
    }

    .intro p:not(.eyebrow) {
        font-size: 0.94rem;
    }

    .choice-grid {
        gap: 18px;
    }

    .choice-card {
        padding: 14px;
        border-radius: 22px;
    }

    .choice-visual {
        min-height: 224px;
        border-radius: 16px;
    }

    .phone {
        width: 128px;
        height: 208px;
        border-radius: 23px;
    }

    .phone-food {
        height: 56px;
    }

    .phone-copy {
        padding-top: 8px;
    }

    .browser-frame > img {
        height: 96px;
    }

    .choice-content {
        margin: 18px 2px 15px;
    }

    .choice-icon {
        width: 43px;
        height: 43px;
        border-radius: 13px;
    }

    .choice-content p {
        font-size: 0.86rem;
    }

    footer {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Compact phone chooser: both primary actions stay in the first viewport.
   Keep scrolling available for zoom, large text and unusually short screens. */
@media (max-width: 820px) {
    .page-shell { width: calc(100% - 24px); min-height: 0; padding: 12px 0 10px; }
    .brand-header { min-height: 42px; }
    .brand-logo { width: 148px; }
    .intro { margin: 12px auto 16px; }
    .intro h1 { font-size: 1.65rem; line-height: 1.15; }
    .eyebrow, .intro p:not(.eyebrow) { display: none; }
    .choice-grid { gap: 12px; max-width: 540px; }
    .choice-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px 12px; padding: 12px; border-radius: 18px; }
    .choice-card:hover { transform: none; }
    .choice-visual { grid-column: 1; grid-row: 1 / 3; min-height: 0; height: 116px; border-radius: 12px; }
    .phone { position: absolute; width: 128px; height: 208px; transform: scale(.46) rotate(-4deg); }
    .browser-frame { position: absolute; width: 180px; transform: scale(.37) rotate(2deg); }
    .version-pill { display: none; }
    .choice-content { grid-column: 2; margin: 0; align-self: center; }
    .choice-icon, .choice-kicker, .choice-content p { display: none; }
    .choice-content h2 { font-size: 1.1rem; line-height: 1.3; }
    .choice-button { grid-column: 2; min-height: 44px; padding: 10px 8px; border-radius: 10px; font-size: .85rem; gap: 6px; align-self: end; }
    .choice-button svg { width: 17px; height: 17px; flex-shrink: 0; }
    .help-text { max-width: 540px; margin: 12px auto 0; font-size: .72rem; line-height: 1.4; }
    footer { width: calc(100% - 24px); min-height: 0; padding: 10px 0; gap: 7px; font-size: .7rem; flex-direction: column; justify-content: center; }
    footer nav { gap: 16px; }
}
