:root {
    color-scheme: light;
    --bg: #ffffff;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #bae6fd;
    --brand: #0ea5e9;
    --brand-dark: #0369a1;
    --shadow: 0 20px 55px rgba(56, 189, 248, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: clip;
    background: #ffffff;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

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

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0 10px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    filter: drop-shadow(0 10px 18px rgba(56, 189, 248, 0.25));
}

.brand-name {
    font-size: 1.22rem;
    font-weight: 850;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 750;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .is-active {
    background: var(--surface);
    color: var(--brand-dark);
    outline: none;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.07);
}

main {
    flex: 1;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding-bottom: 58px;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 28px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.88rem;
}

.site-footer__copy {
    margin: 0;
}

.site-footer__links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-footer__links a {
    color: var(--brand-dark);
    font-weight: 700;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
    outline: none;
}

.company-hero {
    position: relative;
    width: 100%;
    height: clamp(240px, 34vw, 400px);
    overflow: hidden;
    background: #eaf6ff;
}

.company-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.company-hero__overlay {
    position: absolute;
    inset: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 20px;
}

.company-hero__overlay h1 {
    max-width: 640px;
    margin: 0 0 12px;
    color: var(--brand-dark);
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    line-height: 1.15;
}

.company-hero__tagline {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    line-height: 1.6;
}

.apps-section {
    padding-top: 36px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--brand);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 6.4rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.35rem;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.app-card {
    display: flex;
    min-width: 0;
    min-height: 320px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.07);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.app-card--compact {
    min-height: 0;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.1);
}

.app-card--compact .app-media {
    aspect-ratio: 1 / 1;
    padding: 18px;
    background: #fff7ed;
}

.app-card--compact .app-media img {
    object-fit: contain;
    object-position: center;
}

.app-card--compact .status {
    top: 8px;
    right: 8px;
    max-width: 72px;
    padding: 4px 8px;
    font-size: 0.62rem;
}

.app-card--compact .app-content {
    padding: 12px;
}

.app-card--compact .app-content h3 {
    font-size: 0.92rem;
}

.app-card--compact .app-content p {
    margin-top: 6px;
    font-size: 0.78rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-card:hover,
.app-card:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
    box-shadow: var(--shadow);
    outline: none;
    transform: translateY(-4px);
}

.app-card--blue {
    --accent: #38bdf8;
}

.app-media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: color-mix(in srgb, var(--accent) 12%, #f8fafc);
}

.app-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status {
    position: absolute;
    top: 12px;
    right: 12px;
    max-width: 96px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #334155;
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
}

.app-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 18px;
}

.app-content h3 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 1.08rem;
    line-height: 1.3;
}

.app-content p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.app-cta {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 850;
}

.app-detail {
    max-width: 960px;
    padding-top: 36px;
}

.app-detail--blue {
    --accent: #0ea5e9;
}

.app-detail__back {
    display: inline-flex;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.app-detail__back:hover,
.app-detail__back:focus-visible {
    color: var(--brand-dark);
    outline: none;
}

.app-detail__hero {
    display: grid;
    grid-template-columns: minmax(280px, 340px) 1fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 28px;
}

.app-detail__title-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.app-detail__title-content {
    flex: 1;
    min-width: 0;
}

.app-detail__title-row .eyebrow,
.app-detail__platform {
    margin: 0 0 6px;
    color: #0f172a;
}

.app-detail__title-content h1 {
    margin: 0;
    color: var(--brand-dark);
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    line-height: 1.2;
}

.app-detail__icon {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.15);
}

.screenshot-slider {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 1fr auto;
    gap: 8px 6px;
    align-items: center;
}

.screenshot-slider__viewport {
    overflow: hidden;
    grid-column: 2;
    grid-row: 1;
}

.screenshot-slider__track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.screenshot-slider__track::-webkit-scrollbar {
    display: none;
}

.screenshot-slider__slide {
    flex: 0 0 100%;
    margin: 0;
    scroll-snap-align: center;
}

.screenshot-slider__phone {
    padding: 8px;
    border: 2px solid #cbd5e1;
    border-radius: 28px;
    background: #0f172a;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.screenshot-slider__phone img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.screenshot-slider__slide figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.screenshot-slider__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--brand-dark);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.screenshot-slider__btn:hover,
.screenshot-slider__btn:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    outline: none;
}

.screenshot-slider__btn--prev {
    grid-column: 1;
    grid-row: 1;
}

.screenshot-slider__btn--next {
    grid-column: 3;
    grid-row: 1;
}

.screenshot-slider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 4px;
}

.screenshot-slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
}

.screenshot-slider__dot.is-active {
    width: 22px;
    background: var(--accent);
}

.app-detail__intro h1 {
    margin: 0 0 8px;
    color: var(--brand-dark);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    line-height: 1.2;
}

.app-detail__status {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
}

.app-detail__intro {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.app-detail__description {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.app-detail__store-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.app-detail__stores {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.app-detail__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding-top: 0;
    border-top: none;
}

.app-detail__legal a {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.app-detail__legal a:hover,
.app-detail__legal a:focus-visible {
    color: var(--brand-dark);
    outline: none;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 800;
}

.store-btn--ios {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 35%, transparent);
}

.store-btn--android {
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--brand-dark);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.store-btn:hover,
.store-btn:focus-visible {
    filter: brightness(1.03);
    outline: none;
}

.app-detail__features {
    margin: 0 0 8px;
}

.app-detail__features h2 {
    margin: 0 0 10px;
    color: var(--brand-dark);
    font-size: 0.95rem;
    font-weight: 850;
}

.app-detail__features ul {
    margin: 0 0 16px;
    padding-left: 18px;
}

.app-detail__features li {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.app-detail__features li:last-child {
    margin-bottom: 0;
}

.content-page--legal .app-detail__back {
    display: inline-flex;
    margin-bottom: 18px;
}

.content-page {
    max-width: 760px;
    padding-top: 48px;
}

.content-page h1 {
    margin: 0 0 16px;
    color: var(--brand-dark);
    font-size: clamp(1.45rem, 4vw, 1.85rem);
    line-height: 1.2;
}

.content-page .lead {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.content-block {
    margin-bottom: 28px;
}

.content-block h2 {
    margin: 0 0 10px;
    color: var(--brand-dark);
    font-size: 1.15rem;
}

.content-block p,
.content-block li {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.content-block a,
.content-page a {
    color: var(--brand-dark);
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-list {
    margin: 0;
    padding-left: 20px;
}

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

.contact-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.contact-card h2 {
    margin: 0 0 8px;
    color: var(--brand-dark);
    font-size: 1rem;
}

.contact-card p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.contact-card a {
    color: var(--brand-dark);
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.content-page--legal .content-block h2 {
    font-size: 1.05rem;
}

.simple-page {
    max-width: 720px;
    padding-top: 56px;
}

.simple-page h1 {
    margin: 0 0 18px;
    color: var(--brand-dark);
    font-size: 1.45rem;
    line-height: 1.25;
}

.simple-page p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.simple-page a {
    color: var(--brand-dark);
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1080px) {
    .app-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .app-detail__hero {
        grid-template-columns: 1fr;
    }

    .screenshot-slider {
        width: 100%;
        max-width: min(100%, 360px);
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .site-header,
    main,
    .site-footer {
        width: min(100% - 32px, 1180px);
    }

    .site-header {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        padding: 18px 0 8px;
    }

    .site-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .site-nav a {
        justify-content: center;
        min-height: 44px;
        padding: 0 10px;
        font-size: 0.84rem;
    }

    .company-hero {
        height: clamp(210px, 48vw, 320px);
    }

    .company-hero__overlay {
        width: min(100% - 32px, 1180px);
        padding: 0 16px;
    }

    .company-hero__overlay h1 {
        font-size: clamp(1.35rem, 5.5vw, 2rem);
    }

    .apps-section {
        padding-top: 28px;
    }

    .app-detail {
        padding-top: 24px;
    }

    .app-detail__hero {
        gap: 22px;
    }

    .screenshot-slider {
        max-width: 100%;
    }

    .screenshot-slider__btn {
        width: 44px;
        height: 44px;
    }

    .screenshot-slider__dot {
        width: 10px;
        height: 10px;
    }

    .screenshot-slider__dot.is-active {
        width: 24px;
    }

    .app-detail__store-section {
        margin-top: 28px;
        padding-top: 28px;
    }

    .app-detail__stores {
        flex-direction: column;
    }

    .store-btn {
        width: 100%;
        min-height: 48px;
    }

    .app-detail__legal a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        font-size: 0.78rem;
    }
}

@media (max-width: 620px) {
    .site-header,
    main,
    .site-footer {
        width: min(100% - 24px, 1180px);
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .company-hero__overlay {
        width: min(100% - 24px, 1180px);
        padding: 0 12px;
    }

    .company-hero__tagline {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    h1 {
        font-size: clamp(2rem, 12vw, 3.5rem);
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 14px;
    }

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

    .app-card--compact .app-content {
        padding: 10px;
    }

    .app-card--compact .app-content h3 {
        font-size: 0.86rem;
    }

    .app-card--compact .app-content p {
        font-size: 0.74rem;
    }

    .app-card--compact .app-media {
        padding: 14px;
    }

    .content-page,
    .simple-page {
        padding-top: 32px;
    }

    .content-page h1,
    .simple-page h1 {
        font-size: clamp(1.3rem, 6vw, 1.65rem);
    }

    .content-block p,
    .content-block li,
    .simple-page p {
        font-size: 0.95rem;
    }

    .app-detail__back {
        min-height: 44px;
        align-items: center;
    }

    .app-detail__title-row {
        gap: 12px;
    }

    .app-detail__icon {
        width: 56px;
        height: 56px;
        border-radius: 12px;
    }

    .app-detail__description,
    .app-detail__features li {
        font-size: 0.92rem;
    }
}

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

    .app-card--compact {
        max-width: 320px;
        margin: 0 auto;
        width: 100%;
    }

    .site-nav a {
        font-size: 0.78rem;
        padding: 0 6px;
    }
}

.app-legal-root,
body.app-legal-page {
    margin: 0;
    padding-left: 16px;
    padding-right: 16px;
    background: #ffffff;
}

body.app-legal-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: clip;
}

.app-legal-page main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.app-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 24px;
    padding-bottom: 24px;
}

.app-legal__card {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    box-sizing: border-box;
}

.app-legal__body {
    text-align: left;
}

.app-legal__header h1 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: clamp(1.6rem, 4vw, 2rem);
    line-height: 1.2;
}

.app-legal__app-name {
    margin: 0 0 6px;
    color: #0ea5e9;
    font-size: 1rem;
    font-weight: 800;
}

.app-legal__updated {
    margin: 0 0 28px;
    color: #64748b;
    font-size: 0.88rem;
}

.app-legal__body h2 {
    margin: 24px 0 8px;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.app-legal__body p {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.65;
}

.app-legal__body a {
    color: #0369a1;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.app-legal__contact {
    margin-top: 28px !important;
    text-align: center;
}

@media (max-width: 768px) {
    .app-legal__header h1 {
        font-size: clamp(1.35rem, 6vw, 1.75rem);
    }

    .app-legal__body h2 {
        font-size: 0.95rem;
    }

    .app-legal__body p {
        font-size: 0.9rem;
    }
}
