/* ==========================================================================
   Appchitec light theme
   ========================================================================== */

:root {
    --paper: #FFFFFF;
    --surface: #FFFFFF;
    --tint: #F5F5F7;
    --ink: #1D1D1F;
    --ink-2: #424245;
    --muted: #626268;
    --line: #E5E5E7;
    --line-strong: #D2D2D7;
    --studio: #0071E3;
    --studio-ink: #0066CC;
    --focus: #1F5FD1;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-display: var(--font-sans);

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 2px rgb(21 23 28 / 0.06);
    --shadow: 0 1px 2px rgb(21 23 28 / 0.05), 0 18px 40px -24px rgb(21 23 28 / 0.28);

    --container: 1180px;
    --gutter: clamp(20px, 4vw, 40px);
    --header-h: 68px;

    /* Defaults for any element that doesn't set its own app colors. */
    --accent: var(--studio);
    --accent-ink: var(--studio-ink);
    --g1: #3A3F4B;
    --g2: #1D1D1F;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1 0 auto;
    outline: none;
}

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

a {
    color: inherit;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

p a,
.prose a {
    color: var(--studio-ink);
    font-weight: 500;
}

p a:hover,
.prose a:hover {
    text-decoration-thickness: 2px;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.12;
    text-wrap: balance;
}

h1:focus,
h1:focus-visible {
    outline: none;
}

p {
    margin: 0 0 1em;
    text-wrap: pretty;
}

code {
    font-size: 0.92em;
    padding: 0.1em 0.35em;
    border-radius: 6px;
    background: var(--tint);
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 6px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

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

/* --- Type ---------------------------------------------------------------- */

.eyebrow {
    margin: 0 0 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.display {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.6rem, 6vw, 4.75rem);
    letter-spacing: -0.025em;
    line-height: 1.02;
}

.display em {
    font-style: normal;
    color: var(--studio-ink);
    background: linear-gradient(transparent 68%, rgb(232 85 58 / 0.18) 68% 92%, transparent 92%);
}

.display--sm {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
}

.h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.9rem, 3.6vw, 2.75rem);
    letter-spacing: -0.02em;
}

.h3 {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}

.lead {
    font-size: clamp(1.125rem, 1.8vw, 1.3rem);
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 38em;
}

/* --- Skip link ----------------------------------------------------------- */

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 0.15s ease;
}

.skip-link:focus {
    transform: none;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--ink);
    color: #fff;
}

.btn--primary:hover {
    background: #2B2F39;
}

.btn--ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn--ghost:hover {
    background: var(--surface);
    border-color: var(--ink-2);
}

.btn--accent {
    background: var(--accent-ink);
    color: #fff;
}

.btn--accent:hover {
    background: color-mix(in srgb, var(--accent-ink) 85%, black);
}

.btn__icon {
    flex: none;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--tint);
    color: var(--ink-2);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
}

.pill--accent {
    background: color-mix(in srgb, var(--accent) 14%, white);
    color: var(--accent-ink);
}

/* --- Header -------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(250 248 244 / 0.86);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgb(21 23 28 / 0.07);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}

.brand-mark {
    flex: none;
    display: block;
    border-radius: 23%;
    background: #000;
}

.brand__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: -0.015em;
}

.site-nav ul {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--ink-2);
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
    background: rgb(21 23 28 / 0.05);
    color: var(--ink);
}

.site-nav a[aria-current="page"] {
    background: var(--ink);
    color: #fff;
}

.nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 2px;
    margin-left: -9px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars {
    top: 50%;
    margin-top: -1px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    left: 0;
    margin-left: 0;
}

.nav-toggle__bars::before {
    top: -6px;
}

.nav-toggle__bars::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 719px) {
    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 8px var(--gutter) 20px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 30px -20px rgb(21 23 28 / 0.3);
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
    }

    .site-nav a {
        width: 100%;
        min-height: 48px;
        font-size: 1.125rem;
    }
}

/* --- Sections ------------------------------------------------------------ */

.section {
    padding-block: clamp(56px, 8vw, 104px);
}

.section--tint {
    background: var(--tint);
}

.section--flush-top {
    padding-top: 0;
}

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 40px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.section__aside {
    margin: 0;
    max-width: 26em;
    color: var(--muted);
}

.page-head {
    padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px);
}

.page-head .display {
    margin-bottom: 18px;
}

.page-head--center {
    text-align: center;
    padding-block: clamp(72px, 12vw, 140px);
}

.page-head--center .lead {
    margin-inline: auto;
}

.empty-state {
    padding: 32px;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
    background: var(--surface);
}

.empty-state p {
    margin: 0;
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 96px);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto auto;
    width: min(760px, 90vw);
    aspect-ratio: 1;
    background:
        radial-gradient(closest-side, rgb(34 176 125 / 0.16), transparent 70%) 10% 60% / 70% 70% no-repeat,
        radial-gradient(closest-side, rgb(232 85 58 / 0.14), transparent 70%) 80% 30% / 70% 70% no-repeat;
    pointer-events: none;
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
}

.hero__copy .display {
    margin-bottom: 22px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero__actions--center {
    justify-content: center;
}

.hero__stage {
    position: relative;
    height: clamp(460px, 48vw, 600px);
}

.hero__device {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(190px, 19vw, 250px);
    transition: transform 0.4s cubic-bezier(.2, .8, .2, 1);
}

.hero__device--1 {
    z-index: 3;
    transform: translate(-50%, -50%);
}

.hero__device--2 {
    z-index: 2;
    width: clamp(160px, 16vw, 210px);
    transform: translate(-130%, -45%) rotate(-7deg);
}

.hero__device--3 {
    z-index: 1;
    width: clamp(160px, 16vw, 210px);
    transform: translate(30%, -55%) rotate(7deg);
}

.hero__stage:hover .hero__device--2 {
    transform: translate(-136%, -46%) rotate(-9deg);
}

.hero__stage:hover .hero__device--3 {
    transform: translate(36%, -56%) rotate(9deg);
}

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

    .hero__stage {
        height: 440px;
        margin-top: 8px;
    }

    .hero__device--1 {
        width: 200px;
    }

    .hero__device--2,
    .hero__device--3 {
        width: 168px;
    }
}

@media (max-width: 479px) {
    .hero__stage {
        height: 380px;
    }

    .hero__device--1 {
        width: 172px;
    }

    .hero__device--2,
    .hero__device--3 {
        width: 140px;
    }

    .hero__device--2 {
        transform: translate(-112%, -45%) rotate(-7deg);
    }

    .hero__device--3 {
        transform: translate(12%, -55%) rotate(7deg);
    }
}

/* --- Studio intro -------------------------------------------------------- */

.intro {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 24px 64px;
}

.intro__body > p {
    font-size: 1.15rem;
    color: var(--ink-2);
    max-width: 40em;
}

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

.facts > div {
    padding: 20px 22px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.facts dt {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
}

.facts dd {
    margin: 4px 0 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2.4rem;
    line-height: 1.1;
}

.facts dd.facts__name {
    font-size: 1.4rem;
    padding-top: 0.45rem;
}

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

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

    .facts > div:last-child {
        grid-column: 1 / -1;
    }
}

/* --- App icons ----------------------------------------------------------- */

.app-icon {
    flex: none;
    width: var(--icon-size, 64px);
    height: var(--icon-size, 64px);
    border-radius: 22.5%;
    object-fit: cover;
    background: var(--surface);
    box-shadow:
        0 0 0 1px rgb(21 23 28 / 0.07),
        0 10px 22px -12px color-mix(in srgb, var(--accent) 70%, transparent);
}

.app-icon-picture {
    display: contents;
}

.app-icon--fallback {
    display: inline-grid;
    place-items: center;
    background: linear-gradient(150deg, var(--g1), var(--g2));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: calc(var(--icon-size, 64px) * 0.46);
    line-height: 1;
}

/* --- App grid & cards ---------------------------------------------------- */

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.app-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px 24px 22px;
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, white) 0%, var(--surface) 62%);
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.app-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--g1), var(--g2));
}

.app-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    box-shadow: 0 26px 44px -28px color-mix(in srgb, var(--accent) 75%, black);
}

.app-card:has(.app-card__link:focus-visible) {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.app-card__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.app-card__name {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.app-card__link {
    text-decoration: none;
}

.app-card__link:focus-visible {
    outline: none;
}

.app-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.app-card__meta {
    margin: 2px 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
}

.app-card__tagline {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.075rem;
    line-height: 1.4;
}

.app-card__summary {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.975rem;
}

.app-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.app-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--accent-ink);
}

.app-card__more svg {
    transition: transform 0.2s ease;
}

.app-card:hover .app-card__more svg {
    transform: translateX(3px);
}

/* --- Device frames ------------------------------------------------------- */

.device {
    position: relative;
    margin: 0;
    width: 100%;
}

.device--portrait {
    padding: 9px;
    border-radius: 44px;
    background: linear-gradient(160deg, #2A2E37, #0E1014 60%);
    box-shadow:
        inset 0 0 0 1.5px rgb(255 255 255 / 0.08),
        0 2px 4px rgb(0 0 0 / 0.18),
        0 40px 70px -34px color-mix(in srgb, var(--accent) 70%, black);
}

.device--portrait::before,
.device--portrait::after {
    content: "";
    position: absolute;
    width: 3px;
    border-radius: 2px;
    background: #23262E;
}

.device--portrait::before {
    left: -3px;
    top: 22%;
    height: 9%;
    box-shadow: 0 calc(var(--btn-gap, 1) * 3.2em) 0 #23262E;
}

.device--portrait::after {
    right: -3px;
    top: 28%;
    height: 14%;
}

.device--portrait .device__screen {
    aspect-ratio: 9 / 16;
    border-radius: 35px;
}

.device--landscape {
    padding: 0 10px 10px;
    border-radius: 18px;
    background: linear-gradient(180deg, #2A2E37, #121419);
    box-shadow:
        inset 0 0 0 1px rgb(255 255 255 / 0.08),
        0 40px 70px -34px color-mix(in srgb, var(--accent) 70%, black);
}

.device__chrome {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding-left: 6px;
}

.device__chrome span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #5B6070;
}

.device__chrome span:nth-child(1) {
    background: #FF5F57;
}

.device__chrome span:nth-child(2) {
    background: #FEBC2E;
}

.device__chrome span:nth-child(3) {
    background: #28C840;
}

.device--landscape .device__screen {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
}

.device__screen {
    position: relative;
    overflow: hidden;
    background: #000;
    isolation: isolate;
}

.device__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.device__fallback {
    display: none;
}

.device[data-state="error"] .device__fallback {
    display: block;
    z-index: 1;
}

.device[data-state="error"] video,
.device[data-state="error"] .device__controls {
    display: none;
}

.device__controls {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
}

.device__btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid rgb(255 255 255 / 0.18);
    border-radius: 999px;
    background: rgb(14 16 20 / 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.device__btn:hover {
    background: rgb(14 16 20 / 0.9);
}

.device__btn:focus-visible {
    outline-color: #fff;
    outline-offset: 2px;
}

.device__btn .icon-pause,
.device__btn .icon-sound {
    display: none;
}

.device[data-state="playing"] .icon-play {
    display: none;
}

.device[data-state="playing"] .icon-pause {
    display: block;
}

.device[data-sound="on"] .icon-muted {
    display: none;
}

.device[data-sound="on"] .icon-sound {
    display: block;
}

.device__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(120% 60% at 50% 0%, rgb(255 255 255 / 0.18), transparent 60%),
        linear-gradient(165deg, var(--g1), var(--g2));
}

.device__placeholder-name {
    margin-top: 6px;
    font-size: 1.5rem;
    font-weight: 600;
}

.device__placeholder-note {
    padding: 4px 12px;
    border-radius: 999px;
    background: rgb(0 0 0 / 0.32);
    font-size: 0.8125rem;
    font-weight: 500;
}

@media (max-width: 479px) {
    .device--portrait {
        padding: 7px;
        border-radius: 34px;
    }

    .device--portrait .device__screen {
        border-radius: 28px;
    }

    .device__btn-label {
        display: none;
    }
}

/* --- App detail page ----------------------------------------------------- */

.app-page {
    position: relative;
    padding-bottom: clamp(56px, 8vw, 104px);
}

.app-page__wash {
    position: absolute;
    inset: 0 0 auto;
    height: 560px;
    background:
        radial-gradient(60% 80% at 85% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
        radial-gradient(50% 70% at 0% 0%, color-mix(in srgb, var(--g1) 12%, transparent), transparent 70%);
    pointer-events: none;
}

.app-page > .container {
    position: relative;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 24px 0 0;
    list-style: none;
    font-size: 0.9rem;
    color: var(--muted);
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 4px;
    color: var(--line-strong);
}

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

.breadcrumb a:hover {
    color: var(--ink);
}

.breadcrumb [aria-current] {
    color: var(--ink);
    font-weight: 500;
}

.app-page__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 360px);
    grid-template-areas:
        "intro media"
        "body media";
    align-items: start;
    gap: 0 clamp(40px, 7vw, 96px);
    padding-top: clamp(28px, 4vw, 52px);
}

.app-page__grid:has(.device--landscape) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.app-page__intro {
    grid-area: intro;
}

.app-page__media {
    grid-area: media;
    position: sticky;
    top: calc(var(--header-h) + 28px);
}

.app-page__body {
    grid-area: body;
    padding-top: 40px;
}

.app-page__badge-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.app-icon--lg {
    box-shadow:
        0 0 0 1px rgb(21 23 28 / 0.07),
        0 18px 34px -16px color-mix(in srgb, var(--accent) 80%, transparent);
}

.app-page__meta {
    margin: 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-ink);
}

.app-page__intro .display {
    margin-bottom: 14px;
}

.app-page__cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin-top: 28px;
}

.app-page__body section + section {
    margin-top: 40px;
}

.app-page__body p {
    color: var(--ink-2);
    max-width: 40em;
}

.store-badge {
    display: inline-block;
    border-radius: 10px;
    transition: transform 0.15s ease;
}

.store-badge:hover {
    transform: translateY(-1px);
}

.store-badge img {
    width: auto;
}

.cta-pending {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    min-height: 48px;
    padding: 0 18px;
    border: 1.5px dashed color-mix(in srgb, var(--accent-ink) 45%, var(--line));
    border-radius: 12px;
    background: var(--surface);
    color: var(--accent-ink);
    font-weight: 600;
}

.cta-pending__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    line-height: 1.45;
}

.features svg {
    flex: none;
    margin-top: 1px;
    color: var(--accent-ink);
}

@media (max-width: 899px) {
    .app-page__grid,
    .app-page__grid:has(.device--landscape) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "intro"
            "media"
            "body";
    }

    .app-page__media {
        position: static;
        margin-top: 40px;
    }

    .app-page__media .device--portrait {
        width: min(300px, 78vw);
        margin-inline: auto;
    }
}

/* --- Mini cards ---------------------------------------------------------- */

.mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.mini-card:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    transform: translateY(-2px);
}

.mini-card__name {
    display: block;
    font-weight: 600;
}

.mini-card__tagline {
    display: block;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--muted);
}

.mini-card--flat {
    border-color: transparent;
    background: transparent;
    padding: 10px 12px;
}

.mini-card--flat:hover {
    background: var(--surface);
    border-color: var(--line);
    transform: none;
}

/* --- About --------------------------------------------------------------- */

.prose-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 48px clamp(40px, 7vw, 96px);
    align-items: start;
}

.prose p {
    color: var(--ink-2);
    font-size: 1.1rem;
}

.prose .h3 {
    margin-top: 32px;
}

.prose .h3:first-child {
    margin-top: 0;
}

.shelf {
    padding: 24px 16px 16px;
    border-radius: var(--radius-lg);
    background: var(--tint);
}

.shelf .h3 {
    padding-inline: 12px;
}

.shelf ul {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

/* --- Contact ------------------------------------------------------------- */

.contact {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 32px clamp(32px, 6vw, 80px);
    align-items: start;
}

.contact-card {
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.contact-card__label {
    margin: 0 0 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
}

.contact-card__email {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.5rem, 3.2vw, 2.1rem);
    letter-spacing: -0.015em;
    color: var(--ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-card__email:hover {
    color: var(--studio-ink);
    text-decoration: underline;
}

.field {
    display: grid;
    gap: 8px;
    margin-top: 28px;
}

.field label {
    font-weight: 600;
}

.field select {
    width: 100%;
    min-height: 48px;
    padding: 10px 44px 10px 14px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%23333844' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 18px no-repeat,
        var(--surface);
    color: var(--ink);
    font: inherit;
    appearance: none;
    cursor: pointer;
}

.field select:hover {
    border-color: var(--ink-2);
}

.contact-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.contact-card__status {
    min-height: 1.6em;
    margin: 14px 0 0;
    font-size: 0.9375rem;
    color: var(--muted);
}

.contact-note {
    padding-top: 8px;
}

.contact-note p {
    color: var(--ink-2);
}

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

/* --- Footer -------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
    padding-top: 56px;
    font-size: 0.95rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
}

.site-footer__brand p {
    margin-top: 12px;
    max-width: 22em;
    color: var(--muted);
}

.site-footer__title {
    margin-bottom: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-footer ul {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer nav a {
    display: inline-block;
    padding: 4px 0;
    color: var(--ink-2);
    text-decoration: none;
}

.site-footer nav a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 32px;
    margin-top: 48px;
    padding-block: 22px 28px;
    border-top: 1px solid var(--line);
    font-size: 0.8125rem;
    color: var(--muted);
}

.site-footer__legal p {
    margin: 0;
}

@media (max-width: 719px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

/* --- Blazor error banner ------------------------------------------------- */

#blazor-error-ui {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 12px;
    max-width: 560px;
    margin-inline: auto;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow);
}

#blazor-error-ui[style*="block"] {
    display: flex !important;
}

#blazor-error-ui .reload {
    color: #fff;
    font-weight: 600;
}

#blazor-error-ui .dismiss {
    margin-left: auto;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.12);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
}

/* --- Motion -------------------------------------------------------------- */

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Refined product studio system */
:root { --header-h: 64px; --container: 1120px; --radius-lg: 30px; }
body { font-size: 1rem; letter-spacing: -0.015em; }
.site-header { background: rgb(255 255 255 / .82); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); }
.brand__name { font-size: 1.15rem; letter-spacing: -.045em; font-weight: 650; }
.brand-mark { width: 28px; height: 28px; }
.site-nav a { font-size: .8rem; font-weight: 400; padding-inline: 20px; }
.site-nav a[aria-current="page"] { background: var(--tint); color: var(--ink); }
.display { font-weight: 650; letter-spacing: -.06em; line-height: 1.045; }
.display em { background: none; color: var(--studio); }
.h2 { font-weight: 650; letter-spacing: -.045em; line-height: 1.1; }
.eyebrow { font-size: .75rem; letter-spacing: .14em; font-weight: 600; }
.lead { color: var(--muted); font-weight: 400; }
.btn { min-height: 46px; padding-inline: 23px; font-size: .9rem; font-weight: 500; border-width: 1px; }
.btn--primary { background: var(--studio); }
.btn--primary:hover { background: #0077ed; }
.btn--ghost { border-color: transparent; color: var(--studio-ink); }
.btn--ghost:hover { border-color: transparent; background: #f5f5f7; }
.hero { padding: 76px 0 0; background: linear-gradient(180deg, #fff 45%, #f5f5f7 100%); }
.hero::before { display: none; }
.hero__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
.hero__copy { text-align: center; max-width: 820px; margin-inline: auto; }
.hero__copy .eyebrow { color: var(--studio-ink); margin-bottom: 22px; }
.hero__copy .display { font-size: clamp(3rem, 6.6vw, 5.6rem); margin-bottom: 24px; }
.hero__copy .lead { max-width: 580px; margin: 0 auto; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.5; }
.hero__actions { justify-content: center; margin-top: 28px; }
.hero__stage { height: 540px; width: min(100%, 850px); margin: 40px auto 0; }
.hero__stage::before { content: ""; position: absolute; inset: 15% 0 0; background: radial-gradient(ellipse, #dce9f9 0%, transparent 68%); }
.hero__device--1 { width: 240px; transform: translate(-50%, -43%); }
.hero__device--2 { width: 210px; transform: translate(-159%, -39%) rotate(-9deg); }
.hero__device--3 { width: 210px; transform: translate(59%, -39%) rotate(9deg); }
.hero__stage:hover .hero__device--2 { transform: translate(-163%, -41%) rotate(-10deg); }
.hero__stage:hover .hero__device--3 { transform: translate(63%, -41%) rotate(10deg); }
.device--portrait { background: linear-gradient(145deg, #8b8e93, #242529 35%, #5a5d63); box-shadow: inset 0 0 0 1px #aaa, 0 28px 55px -24px rgb(0 0 0 / .4); }
.section { padding-block: clamp(64px, 8vw, 112px); }
.section--tint { background: var(--tint); }
.intro { gap: 32px 80px; align-items: start; }
.intro .h2 { max-width: 380px; font-size: clamp(2.2rem, 4vw, 3.3rem); }
.intro__body > p { font-size: 1.08rem; line-height: 1.7; color: var(--muted); }
.facts { gap: 24px; border-top: 1px solid var(--line-strong); padding-top: 26px; }
.facts > div { padding: 0; background: transparent; box-shadow: none; }
.facts dt { font-size: .75rem; font-weight: 400; }
.facts dd { font-size: 2.5rem; letter-spacing: -.05em; }
.facts dd.facts__name { font-size: 1.15rem; letter-spacing: -.035em; }
.app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.app-card { padding: 36px; border: 1px solid transparent; background: var(--tint); min-height: 320px; }
.app-card::before { display: none; }
.app-card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 16px 36px rgb(0 0 0 / .07); }
.app-card__head { gap: 18px; margin-bottom: 26px; }
.app-card__name { font-size: 1.5rem; letter-spacing: -.04em; }
.app-card__meta { font-size: .75rem; font-weight: 400; }
.app-card__tagline { font-size: 1.25rem; letter-spacing: -.03em; }
.app-card__summary { font-size: .95rem; line-height: 1.6; max-width: 38em; }
.app-card__more { font-size: .875rem; color: var(--studio-ink); font-weight: 400; }
.pill { background: #e8e8ed; font-weight: 500; font-size: .7rem; }
.section__aside { font-size: .95rem; }
.app-page__wash { opacity: .45; }
.features li { background: var(--tint); border-color: transparent; padding: 20px; }
.contact-card { box-shadow: none; background: var(--tint); border-color: transparent; }
.site-footer { background: var(--tint); font-size: .8rem; border-top: 0; }
.site-footer__title { font-size: .7rem; letter-spacing: .04em; }
.site-footer__legal { font-size: .7rem; }
@media (max-width: 719px) {
    .hero { padding-top: 52px; }
    .hero__copy .display { letter-spacing: -.055em; }
    .hero__stage { height: 410px; margin-top: 32px; }
    .hero__device--1 { width: 185px; }
    .hero__device--2, .hero__device--3 { width: 155px; }
    .hero__device--2 { transform: translate(-143%, -38%) rotate(-9deg); }
    .hero__device--3 { transform: translate(43%, -38%) rotate(9deg); }
    .hero__stage:hover .hero__device--2 { transform: translate(-143%, -38%) rotate(-9deg); }
    .hero__stage:hover .hero__device--3 { transform: translate(43%, -38%) rotate(9deg); }
    .app-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .app-card { padding: 28px; min-height: 300px; }
    .site-nav a { font-size: 1rem; }
    .facts { gap: 20px; }
}
@media (max-width: 379px) {
    .hero__device--1 { width: 165px; }
    .hero__device--2, .hero__device--3 { width: 137px; }
    .hero__stage { height: 370px; }
}

/* Keep the studio statistics balanced as a pair. */
.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Business products lead the studio's product lineup. */
.hero:has(+ .systems-section) { padding-bottom: 68px; background: #fff; }
.systems-section { background: #f5f5f7; }
.system-showcase { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 56px; padding: clamp(28px, 4vw, 56px); background: #fff; border-radius: 32px; overflow: hidden; }
.system-showcase + .system-showcase { margin-top: 32px; }
.system-showcase__identity { display: flex; align-items: center; gap: 14px; font-size: 1.5rem; font-weight: 650; letter-spacing: -.04em; margin-bottom: 30px; }
.system-showcase h3 { font-size: clamp(2.5rem, 4vw, 3.5rem); letter-spacing: -.055em; line-height: 1.05; margin-bottom: 24px; }
.system-showcase h3 span { color: var(--accent-ink, var(--studio)); }
.system-showcase__copy > p { color: var(--muted); line-height: 1.65; }
.system-showcase__features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; list-style: none; padding: 0; margin: 28px 0; font-size: .8rem; color: var(--ink-2); }
.system-showcase__features li { border-top: 1px solid var(--line); padding-top: 12px; }
.system-showcase__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.system-showcase__actions .btn { padding-inline: 18px; }
.system-showcase__copy .system-showcase__note { font-size: .75rem; margin: 16px 0 0; }
.system-showcase__media { min-width: 0; padding-block: 30px; }
.system-showcase__media .device { box-shadow: 0 28px 48px -24px rgb(0 0 0 / .35); }
.footer-mobile-title { margin-top: 24px; }
@media (max-width: 899px) {
    .system-showcase { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .system-showcase__media { padding-block: 20px 0; }
}

/* Mobile app ads use a clean widescreen player without browser chrome. */
.device--landscape:not(:has(.device__chrome)) { padding: 8px; }

.app-screenshots { padding-top: 0; }
.app-screenshots__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; list-style: none; padding: 0; margin: 0; }
.app-screenshots__item { margin: 0; }
.app-screenshots__item a { display: block; border-radius: 16px; overflow: hidden; background: #18191b; box-shadow: 0 12px 32px rgb(0 0 0 / .08); }
.app-screenshots__item img { display: block; width: 100%; height: auto; }
.app-screenshots__item figcaption { margin-top: 14px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
@media (max-width: 699px) {
    .app-screenshots__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ==========================================================================
   Product page (apps with a "Page" block in the catalog, e.g. Reward4Me)
   ========================================================================== */

.product-hero { position: relative; overflow: hidden; padding-bottom: clamp(56px, 8vw, 104px); }
.product-hero > .container { position: relative; }
.product-hero .app-page__wash { height: 100%; opacity: .7; }
.product-hero__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(40px, 6vw, 80px); padding-top: clamp(32px, 5vw, 64px); }
.product-hero__identity { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.product-hero__name { margin: 0; font-size: 1.35rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.2; }
.product-hero__meta { margin: 2px 0 0; font-size: .85rem; font-weight: 500; color: var(--accent-ink); }
.product-hero__title { font-size: clamp(2.6rem, 5.2vw, 4.25rem); margin: 0 0 22px; }
.product-hero__title span { color: var(--accent-ink); }
.product-hero .lead { max-width: 30em; }
.product-hero__note { display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: .875rem; color: var(--muted); }
.product-hero__note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.product-hero__media .device { box-shadow: 0 40px 80px -36px color-mix(in srgb, var(--accent-ink) 55%, transparent); }

.btn--quiet { background: color-mix(in srgb, var(--accent) 10%, white); color: var(--accent-ink); }
.btn--quiet:hover { background: color-mix(in srgb, var(--accent) 16%, white); }

.product-section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.product-section-head .h2 { margin: 0; }
.product-section-head .eyebrow { color: var(--accent-ink); }
.product-section-head__text { margin: 18px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.product-section-head--center { margin-inline: auto; text-align: center; }

/* Steps */
.product-steps { padding-top: clamp(24px, 4vw, 48px); }
.product-steps__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.product-steps__list li { position: relative; padding: 30px 28px 32px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--accent) 7%, white); }
.product-steps__list li + li::before { content: ""; position: absolute; top: 52px; left: -20px; width: 20px; border-top: 1.5px dashed color-mix(in srgb, var(--accent) 40%, transparent); }
.product-steps__num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 50%; background: var(--accent-ink); color: #fff; font-weight: 650; font-size: 1.05rem; }
.product-steps__list h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 650; letter-spacing: -.02em; }
.product-steps__list p { margin: 0; color: var(--ink-2); line-height: 1.6; font-size: .975rem; }

/* Screens */
.product-screens__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.product-screens__grid > li:first-child { grid-column: 1 / -1; }
.product-screens__grid > li:first-child .product-screen { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.product-screens__grid > li:first-child figcaption { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.3; color: var(--ink); }
.product-screens__grid > li.product-screen-wide { grid-column: 1 / -1; }
.product-screen { margin: 0; }
.product-screen__frame { display: block; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgb(21 23 28 / .06), 0 24px 48px -28px rgb(21 23 28 / .35); transition: transform .2s ease, box-shadow .2s ease; }
.product-screen__frame:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgb(21 23 28 / .08), 0 32px 56px -28px rgb(21 23 28 / .42); }
.product-screen__bar { display: flex; gap: 6px; padding: 11px 14px; background: #f2f3f0; border-bottom: 1px solid #e6e8e3; }
.product-screen__bar span { width: 9px; height: 9px; border-radius: 50%; background: #d5d8d2; }
.product-screen img { display: block; width: 100%; height: auto; }
.product-screen figcaption { margin-top: 16px; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }

/* Highlights */
.product-highlights__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.product-highlights__grid li { padding: 32px 32px 36px 0; border-bottom: 1px solid var(--line); }
.product-highlights__grid li:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.product-highlights__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 10%, white); color: var(--accent-ink); }
.product-highlights__grid h3 { margin: 0 0 8px; font-size: 1.125rem; font-weight: 650; letter-spacing: -.02em; }
.product-highlights__grid p { margin: 0; color: var(--ink-2); font-size: .975rem; line-height: 1.6; }

/* Pricing */
.product-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 820px; margin: 0 auto; padding: 0; list-style: none; }
.product-plan { display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.product-plan--featured { box-shadow: 0 0 0 2px var(--accent-ink), 0 28px 56px -32px color-mix(in srgb, var(--accent-ink) 60%, transparent); }
.product-plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.product-plan h3 { margin: 0; font-size: 1.125rem; font-weight: 650; }
.product-plan__badge { padding: 5px 12px; border-radius: 999px; background: var(--accent-ink); color: #fff; font-size: .75rem; font-weight: 600; }
.product-plan__price { margin: 22px 0 10px; color: var(--muted); }
.product-plan__price strong { color: var(--ink); font-size: clamp(2.5rem, 5vw, 3.25rem); font-weight: 650; letter-spacing: -.045em; line-height: 1; }
.product-plan__detail { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.6; }
.product-includes { max-width: 820px; margin: 20px auto 0; padding: 28px 32px; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.product-includes h3 { margin: 0 0 16px; font-size: 1rem; font-weight: 650; }
.product-includes ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.product-includes li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.product-includes .product-icon { flex: none; width: 20px; height: 20px; color: var(--accent-ink); }
.product-pricing__cta { margin-top: 36px; text-align: center; }

/* FAQ */
.product-faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.product-faq__list { border-top: 1px solid var(--line); }
.product-faq details { border-bottom: 1px solid var(--line); }
.product-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 1.075rem; font-weight: 600; letter-spacing: -.01em; }
.product-faq summary::-webkit-details-marker { display: none; }
.product-faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.product-faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -1px); }
.product-faq summary:hover { color: var(--accent-ink); }
.product-faq details p { margin: -6px 0 24px; max-width: 38em; color: var(--ink-2); line-height: 1.65; }
.product-faq .product-section-head a { color: var(--accent-ink); font-weight: 600; }

@media (max-width: 899px) {
    .product-hero__grid, .product-faq__grid { grid-template-columns: minmax(0, 1fr); }
    .product-steps__list, .product-highlights__grid { grid-template-columns: minmax(0, 1fr); }
    .product-steps__list li + li::before { display: none; }
    .product-highlights__grid li, .product-highlights__grid li:not(:nth-child(3n + 1)) { padding: 28px 0; border-left: 0; }
    .product-screens__grid { grid-template-columns: minmax(0, 1fr); }
    .product-screens__grid > li:first-child .product-screen { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .product-screens__grid > li:first-child figcaption { margin-top: 16px; font-size: 1.15rem; }
}
@media (min-width: 900px) and (max-width: 1099px) {
    .product-highlights__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-highlights__grid li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
    .product-highlights__grid li:nth-child(2n) { padding-left: 32px; border-left: 1px solid var(--line); }
}
@media (max-width: 639px) {
    .product-plans, .product-includes ul { grid-template-columns: minmax(0, 1fr); }
    .product-plan, .product-includes { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .product-screen__frame, .product-faq summary::after { transition: none; }
}

/* Video guides (product pages) */
.product-guides { background: #163C29; color: #fff; }
.product-guides .eyebrow { color: #9DD4AC; }
.product-guides .h2 { color: #fff; }
.product-guides .product-section-head__text { color: rgb(255 255 255 / .72); }
.product-guides__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; margin: 0; padding: 0; list-style: none; }
.product-guide { margin: 0; }
.product-guide--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); padding-bottom: 32px; border-bottom: 1px solid rgb(255 255 255 / .12); }
.product-guide__player { overflow: hidden; border-radius: 14px; background: #0c2318; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 28px 50px -30px rgb(0 0 0 / .7); }
.product-guide__player video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #0c2318; }
.product-guide__copy { padding-top: 16px; }
.product-guide--featured .product-guide__copy { padding-top: 0; }
.product-guide__tag { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: #9DD4AC; color: #0f2c1e; font-size: .75rem; font-weight: 650; }
.product-guide h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 650; letter-spacing: -.015em; line-height: 1.3; color: #fff; }
.product-guide--featured h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.03em; line-height: 1.15; margin-bottom: 12px; }
.product-guide p { margin: 0; color: rgb(255 255 255 / .7); font-size: .925rem; line-height: 1.55; }
.product-guide--featured p { font-size: 1.025rem; }
.product-guide__time { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; color: #9DD4AC; font-size: .825rem; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 1099px) { .product-guides__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px) {
    .product-guides__grid { grid-template-columns: minmax(0, 1fr); }
    .product-guide--featured { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
.product-guide__player { position: relative; }
.product-guide__play { display: none; }
.product-guide__player[data-ready]:not([data-started]) .product-guide__play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; width: 100%; padding: clamp(12px, 2vw, 22px); border: 0; background: linear-gradient(to top, rgb(10 30 20 / .22), transparent 40%); cursor: pointer; }
.product-guide__play > span { display: grid; place-items: center; width: 60px; height: 60px; padding-left: 4px; border-radius: 50%; background: #fff; color: #163C29; box-shadow: 0 10px 30px -8px rgb(0 0 0 / .45); transition: transform .15s ease; }
.product-guide:not(.product-guide--featured) .product-guide__play > span { width: 40px; height: 40px; padding-left: 3px; }
.product-guide:not(.product-guide--featured) .product-guide__play svg { width: 18px; height: 18px; }
.product-guide__play:hover > span { transform: scale(1.06); }
.product-guide__play:focus-visible { outline: 3px solid #9DD4AC; outline-offset: -3px; border-radius: 14px; }
@media (prefers-reduced-motion: reduce) { .product-guide__play > span { transition: none; } }
@media (max-width: 719px) { .product-guide--featured .product-guide__play > span { width: 48px; height: 48px; } .product-guide--featured .product-guide__play svg { width: 22px; height: 22px; } }


/* Reward4Me branding, shared by its product page and catalog appearances. */
[data-brand="reward4me"] {
    --ink: #193d36;
    --ink-2: #193d36;
    --muted: #193d36;
    --tint: #eafff6;
    --reward-highlight: #0a9c83;
    --focus: #087f70;
    color: var(--ink);
}
[data-brand="reward4me"].system-showcase,
[data-brand="reward4me"] .product-hero,
[data-brand="reward4me"] .product-steps__list li,
[data-brand="reward4me"] .product-highlights__icon,
[data-brand="reward4me"] .btn--quiet {
    background: var(--tint);
}
[data-brand="reward4me"] .product-hero__title span,
[data-brand="reward4me"].system-showcase h3 span,
[data-brand="reward4me"] .product-highlights__icon {
    color: var(--reward-highlight);
}
[data-brand="reward4me"] .product-hero__note::before {
    background: var(--reward-highlight);
}
[data-brand="reward4me"] .product-guides {
    background: var(--ink);
}
[data-brand="reward4me"] .product-guides .eyebrow,
[data-brand="reward4me"] .product-guide__time {
    color: var(--tint);
}
[data-brand="reward4me"] .product-guide__tag {
    background: var(--tint);
    color: var(--ink);
}
[data-brand="reward4me"] .product-guide__play > span {
    color: var(--accent-ink);
}
[data-brand="reward4me"] .product-guide__play:focus-visible {
    outline-color: var(--tint);
}
[data-brand="reward4me"] :is(h1, h2, h3),
[data-brand="reward4me"].system-showcase h3 {
    overflow-wrap: anywhere;
}
[data-brand="reward4me"] .product-hero__copy,
[data-brand="reward4me"] .system-showcase__copy {
    min-width: 0;
}
@media (max-width: 399px) {
    [data-brand="reward4me"] .product-hero__title,
    [data-brand="reward4me"].system-showcase h3 {
        font-size: clamp(1.9rem, 9.5vw, 2.35rem);
    }
    [data-brand="reward4me"] .btn {
        max-width: 100%;
        line-height: 1.3;
        text-align: center;
    }
}

/* Official App Store artwork includes its own phone frame. */
[data-brand="emergencee"] .product-hero__media .device {
    padding: 0;
    background: #fff;
    border-radius: 18px;
    max-width: 320px;
    margin-inline: auto;
}
[data-brand="emergencee"] .device--portrait::before,
[data-brand="emergencee"] .device--portrait::after,
[data-brand="emergencee"] .product-screen__bar { display: none; }
[data-brand="emergencee"] .device--portrait .device__screen {
    border-radius: 18px;
    aspect-ratio: 1240 / 2688;
}
[data-brand="emergencee"] .product-screens__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
[data-brand="emergencee"] .product-screens__grid > li:first-child { grid-column: auto; }
[data-brand="emergencee"] .product-screens__grid > li:first-child .product-screen { display: block; }
[data-brand="emergencee"] .product-screens__grid > li:first-child figcaption {
    margin-top: 16px;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.5;
    color: var(--ink-2);
}
@media (max-width: 900px) {
    [data-brand="emergencee"] .product-screens__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    [data-brand="emergencee"] .product-screens__grid { grid-template-columns: minmax(0, 1fr); }
}
