:root {
    --bg-color: #f5f5f7;
    --text-color: #1d1d1f;
    --accent-color: #0071e3;
    --accent-hover: #0077ed;
    --card-bg: #ffffff;
    --page-container-max-width: 1280px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000000;
        --text-color: #f5f5f7;
        --accent-color: #2997ff;
        --accent-hover: #0071e3;
        --card-bg: #1c1c1e;
        --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    }
}

body {
    margin: 0;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    box-sizing: border-box;
    transition: background-color 0.4s ease, color 0.4s ease;
}

main {
    text-align: center;
    max-width: 600px;
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.home-main {
    max-width: var(--page-container-max-width);
}

/* Legal Pages Specific Styles */
.legal-container {
    text-align: left;
    max-width: 800px; /* Wider for reading */
}

.legal-header {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-header .logo {
    width: 60px; /* Even smaller for side-alignment */
    margin-bottom: 0;
}

.legal-title-group {
    text-align: left;
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.legal-content .date {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.6;
    margin-bottom: 2rem;
    display: block;
}

.legal-content p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.legal-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 22px; /* Apple-esque icon rounding */
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}

p.subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    margin: 0 0 30px 0;
    font-weight: 400;
}

.actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.cta-section {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1040px;
}

.cta-hero {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-hero-img {
    width: 100%;
    height: auto;
    max-width: 480px;
    display: block;
    border-radius: 18px;
}

.cta-body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-body .home-featured-title {
    margin: 0 0 6px;
}

.cta-body .cta-intro {
    margin: 0 0 28px 0;
}

.cta-body .cta-features {
    align-items: flex-start;
    margin-bottom: 28px;
}

@media (max-width: 720px) {
    .cta-section {
        flex-direction: column;
        gap: 24px;
    }

    .cta-hero,
    .cta-body {
        width: 100%;
    }

    .cta-hero-img {
        max-width: 320px;
    }
}

.cta-title {
    font-size: 1.6rem;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

.cta-intro {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    margin-top: -24px;
    opacity: 0.55;
}

.cta-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    max-width: 420px;
    width: 100%;
}

.cta-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cta-features li::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff7933;
    flex-shrink: 0;
    margin-top: 5px;
}

.cta-features li div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cta-features strong {
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.3;
}

.cta-features span {
    font-size: 0.88rem;
    opacity: 0.6;
    line-height: 1.4;
}

.app-store-badge {
    transition: transform 0.2s ease;
}

.app-store-badge:hover {
    transform: scale(1.05);
}

.app-store-badge img {
    height: 65px;
    width: auto;
    display: block;
}

.app-store-badge.home-store-badge-small img {
    height: 50px;
}

.home-section-intro {
    margin: -8px 0 18px 0;
    font-size: 0.95rem;
    opacity: 0.6;
    text-align: center;
}

.inline-apple-logo {
    width: 0.9em;
    height: 0.9em;
    vertical-align: -0.08em;
    display: inline-block;
}

.btn-chevron {
    width: 0.85em;
    height: 0.85em;
    vertical-align: -0.08em;
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.home-apps-more-btn:hover .btn-chevron {
    transform: translateX(3px);
}

.home-platform-row {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 1040px;
    align-items: stretch;
    margin-top: 20px;
}

.home-platform-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.home-platform-col .home-apps-more-wrap {
    margin-top: auto;
}

.home-apps-section.home-apps-section--secondary {
    max-width: none;
    width: 100%;
}

.home-apps-section.home-apps-section--secondary .apps-grid,
.home-apps-section.home-apps-section--secondary .apps-grid--featured-only {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    row-gap: 12px;
    column-gap: 12px;
}

.home-platforms-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 14px;
}

.home-platform-icon {
    display: block;
    position: relative;
    line-height: 0;
    border-radius: 13px;
    transition: transform 0.2s ease;
}

.home-platform-icon:hover {
    transform: scale(1.07);
}

.home-platform-icon img {
    width: 52px;
    height: 52px;
    display: block;
}

.home-platform-icon--soon img {
    opacity: 0.6;
}

.home-platform-soon {
    position: absolute;
    top: -6px;
    right: -8px;
    padding: 2px 6px;
    border-radius: 6px;
    background: #ff7933;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.6px;
    line-height: 1.1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

@media (max-width: 720px) {
    .home-platform-row {
        flex-direction: column;
        gap: 32px;
    }

    .home-platform-col .home-apps-more-wrap {
        margin-top: 14px;
    }

    .home-platforms-icons {
        gap: 10px;
    }

    .home-platform-icon img {
        width: 48px;
        height: 48px;
    }
}

.home-section-divider {
    width: min(100%, 960px);
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(128, 128, 128, 0.06) 0%,
        rgba(128, 128, 128, 0.34) 18%,
        rgba(128, 128, 128, 0.34) 82%,
        rgba(128, 128, 128, 0.06) 100%
    );
}

footer {
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.6;
}

footer a {
    color: inherit;
    text-decoration: none;
    margin: 0 10px;
    transition: opacity 0.2s ease;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 38px;
}

.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.footer-social {
    display: inline-flex;
    margin: 0;
    padding: 8px;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
    text-decoration: none;
}

.footer-social img {
    width: 22px;
    height: 22px;
    display: block;
}

.subtitle-author-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 3px;
}

.subtitle-author-link:hover {
    text-decoration-color: var(--accent-color);
}

.copyright {
    margin-top: 30px;
    display: block;
    font-size: 0.9rem;
}

.version-label {
    margin-top: 22px;
    display: block;
    font-size: 0.72rem;
    opacity: 0.8;
}

.home-apps-section {
    width: 100%;
    max-width: 1040px;
    text-align: left;
}

.home-featured-title {
    margin: 0 0 12px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.home-apps-grid-shell {
    display: grid;
    gap: 12px;
}

.home-apps-more-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
}

.home-apps-section .apps-section {
    display: grid;
    gap: 10px;
}

.home-apps-section .apps-section-header {
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    padding-bottom: 8px;
}

.home-apps-section .apps-section-title {
    margin: 0;
    font-size: 1.24rem;
    color: var(--text-color);
}

.home-apps-section .apps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 14px;
    column-gap: 12px;
}

.home-apps-section .apps-grid--featured-only {
    row-gap: 12px;
    column-gap: 12px;
}

.home-apps-section .app-grid-card {
    min-height: 70px;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(128, 128, 128, 0.2);
    background: color-mix(in srgb, var(--card-bg) 85%, transparent);
    box-shadow: none;
    color: var(--text-color);
    align-items: center;
    justify-content: flex-start;
}

.home-apps-section .app-grid-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent-color) 40%, rgba(128, 128, 128, 0.2));
    box-shadow: var(--shadow);
}

.home-apps-section .app-grid-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 1px solid rgba(128, 128, 128, 0.2);
    box-shadow: none;
    flex: 0 0 52px;
}

.home-apps-section .app-grid-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    gap: 4px;
    min-width: 0;
}

.home-apps-section h3.app-grid-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--text-color);
}

.home-apps-section .app-grid-subtitle {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.28;
    color: var(--text-color);
    opacity: 0.76;
}

.home-apps-more-btn,
.home-apps-more-btn:visited,
.contact-btn,
.contact-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    margin: 0;
    padding: 10px 20px;
    border-radius: 980px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.home-apps-more-btn,
.home-apps-more-btn:visited {
    border: 1px solid color-mix(in srgb, var(--accent-color) 70%, transparent);
    background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-hover) 75%, #ffffff 25%));
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent-color) 35%, transparent);
}

.home-apps-more-btn:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px color-mix(in srgb, var(--accent-color) 45%, transparent);
}

.contact-btn,
.contact-btn:visited {
    border: 1px solid color-mix(in srgb, #ff8a45 72%, transparent);
    background: linear-gradient(135deg, #ff7933, #ff9c57);
    box-shadow: 0 10px 24px color-mix(in srgb, #ff7933 38%, transparent);
}

.contact-btn:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px color-mix(in srgb, #ff7933 48%, transparent);
}

.contact-white-btn,
.contact-white-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    margin: 0;
    padding: 10px 20px;
    border-radius: 980px;
    color: #000000;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.contact-white-btn:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(255, 255, 255, 0.18);
}

/* App templates */
body.apps-list-surface {
    justify-content: flex-start;
    align-items: stretch;
    min-height: 100vh;
    padding: 28px 20px 72px;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: none;
}

.apps-grid-page {
    text-align: left;
    max-width: var(--page-container-max-width);
    margin: 0 auto;
    padding: clamp(22px, 2.4vw, 32px);
    border-radius: 30px;
    border: 1px solid rgba(128, 128, 128, 0.2);
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
}

.apps-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
    flex-wrap: nowrap;
}

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

.apps-list-logo {
    width: clamp(42px, 7vw, 62px);
    margin: 0;
    flex-shrink: 0;
}

.apps-list-title {
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.7rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text-color);
    min-width: 0;
}

.apps-list-badge {
    flex-shrink: 0;
}

.apps-list-badge img {
    height: clamp(36px, 6vw, 48px);
    width: auto;
    display: block;
}

.apps-grid-shell {
    display: grid;
    gap: 20px;
}

.apps-section {
    display: grid;
    gap: 10px;
}

.apps-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    padding-bottom: 8px;
}

.apps-section-title {
    margin: 0;
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    letter-spacing: -0.01em;
    color: var(--text-color);
}

.apps-section-note {
    margin: 0;
    color: var(--text-color);
    opacity: 0.72;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 18px;
    column-gap: 12px;
    align-items: start;
}

.app-grid-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-color);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 80px;
    padding: 10px 12px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--card-bg) 90%, transparent);
    border: 1px solid rgba(128, 128, 128, 0.2);
    box-shadow: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-grid-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent-color) 42%, rgba(128, 128, 128, 0.2));
    box-shadow: var(--shadow);
}

.app-grid-icon {
    width: 56px;
    height: 56px;
    border-radius: 13px;
    border: 1px solid rgba(128, 128, 128, 0.2);
    box-shadow: none;
    display: block;
    flex: 0 0 56px;
}

.app-grid-text {
    display: grid;
    gap: 6px;
    align-content: center;
    min-width: 0;
    text-align: left;
}

h3.app-grid-title {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

.app-grid-subtitle {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.28;
    color: var(--text-color);
    opacity: 0.72;
    max-width: 32ch;
    overflow-wrap: anywhere;
}

body.app-detail-surface {
    justify-content: flex-start;
    align-items: stretch;
    min-height: 100vh;
    padding: 28px 20px 72px;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: none;
    overflow-x: hidden;
}

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

.app-detail-page {
    max-width: var(--page-container-max-width);
    width: 100%;
    margin: 0 auto;
    padding: clamp(22px, 2.4vw, 32px);
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 30px;
    position: relative;
}

.app-back-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.76rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    margin: 2px 0 18px;
    opacity: 0.72;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-back-link:hover {
    opacity: 1;
    transform: translateX(-3px);
}

.app-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    padding: 10px 0 22px;
    border: none;
    background: transparent;
    box-shadow: none;
}

.app-hero::before {
    content: attr(data-mark);
    position: absolute;
    left: -4px;
    top: -28px;
    font-size: clamp(4.4rem, 13vw, 10.5rem);
    letter-spacing: -0.08em;
    font-weight: 700;
    line-height: 0.84;
    color: color-mix(in srgb, var(--text-color) 12%, transparent);
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    z-index: -2;
}

.app-hero::after {
    content: none;
}

.app-hero-lead {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: start;
}

.app-hero-icon {
    width: 108px;
    height: 108px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 34px -24px rgba(9, 16, 33, 0.94);
}

.app-hero-title {
    margin: 4px 0 0;
    font-size: clamp(1.9rem, 4.8vw, 4rem);
    line-height: 0.94;
    letter-spacing: -0.04em;
    color: var(--text-color);
    max-width: 13ch;
}

.app-hero-tagline {
    margin: 18px 0 0;
    font-size: clamp(0.98rem, 1.2vw, 1.2rem);
    line-height: 1.56;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 52ch;
}

.app-store-btn {
    margin-top: 22px;
    display: inline-block;
    filter: none;
}

.app-store-btn:hover {
    transform: translateY(-1px) scale(1.03);
}

.app-hero-visual {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.app-ios-stage {
    position: relative;
    width: min(100%, 400px);
    aspect-ratio: 1 / 1;
}

.app-ios-device {
    margin: 0;
    position: absolute;
    inset: 8% 23% 4% 9%;
    padding: 12px;
    border-radius: 44px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(158deg, rgba(29, 31, 35, 0.98) 0%, rgba(8, 9, 11, 0.98) 100%);
    box-shadow:
        0 28px 40px -20px rgba(0, 0, 0, 0.88),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 0 24px rgba(255, 255, 255, 0.03);
    transform: rotate(-6deg);
}

.app-ios-notch {
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 43%;
    height: 22px;
    border-radius: 0 0 14px 14px;
    background: rgba(0, 0, 0, 0.72);
    z-index: 2;
}

.app-ios-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: color-mix(in srgb, var(--card-bg) 94%, #000 6%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 14px 16px;
    box-sizing: border-box;
    overflow: hidden;
}

.app-ios-icon {
    width: 78px;
    height: 78px;
    display: block;
    border-radius: 18px;
    border: 1px solid rgba(128, 128, 128, 0.24);
    box-shadow: none;
}

.app-ios-title {
    margin: 0;
    text-align: center;
    font-size: 1rem;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.app-ios-subtitle {
    margin: 0;
    text-align: center;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-color);
    opacity: 0.75;
    font-weight: 700;
}

.app-ios-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 2px;
}

.app-ios-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(128, 128, 128, 0.24);
    background: transparent;
    color: var(--text-color);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.app-ios-float {
    position: absolute;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(128, 128, 128, 0.22);
    background: color-mix(in srgb, var(--card-bg) 92%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.app-ios-float-top {
    top: 4%;
    right: 4%;
    transform: rotate(6deg);
}

.app-ios-float-bottom {
    left: 2%;
    bottom: 6%;
    transform: rotate(-7deg);
}

.app-ios-float-label {
    display: block;
    font-size: 0.61rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-color);
    opacity: 0.72;
    font-weight: 700;
}

.app-ios-float-value {
    display: block;
    margin-top: 4px;
    font-size: 0.83rem;
    color: var(--text-color);
    letter-spacing: 0.01em;
}

.app-ios-icon,
.app-ios-screen,
.app-ios-device,
.app-ios-float {
    box-sizing: border-box;
}

.app-section {
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.app-section-heading {
    margin-bottom: 16px;
    display: grid;
    gap: 4px;
}

.app-section-eyebrow {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 700;
}

.app-section h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.8vw, 2.3rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--text-color);
}

.app-screenshot-rail {
    margin-top: 6px;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
}

.app-screenshot-row + .app-screenshot-row {
    margin-top: 18px;
}

.app-screenshot-row-label {
    margin: 0 0 6px;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-color);
    opacity: 0.72;
    font-weight: 700;
}

.app-screenshot-empty {
    margin-top: 6px;
}

.app-screenshot-rail::-webkit-scrollbar {
    height: 8px;
}

.app-screenshot-rail::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--accent-color) 40%, rgba(128, 128, 128, 0.2));
    border-radius: 999px;
}

.app-screenshot-card {
    margin: 0;
    flex: 0 0 auto;
    scroll-snap-align: start;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(128, 128, 128, 0.2);
    background: color-mix(in srgb, var(--card-bg) 92%, transparent);
    position: relative;
    box-shadow: none;
    transition: transform 0.22s ease;
}

.app-screenshot-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.app-screenshot {
    display: block;
    width: auto;
    height: auto;
    max-height: min(72vh, 460px);
    max-width: min(88vw, 640px);
    object-fit: contain;
    background: transparent;
}

.app-screenshot-row--watch .app-screenshot {
    max-height: min(36vh, 230px);
    max-width: min(44vw, 320px);
}

.app-description {
    margin-top: 4px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.app-description p,
.app-description ul {
    margin: 0;
    color: var(--text-color);
    opacity: 0.84;
    line-height: 1.72;
    font-size: 0.99rem;
    white-space: pre-line;
}

.app-description-list {
    padding-left: 18px;
}

.app-review-grid {
    margin-top: 6px;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
}

.app-review-grid::-webkit-scrollbar {
    height: 8px;
}

.app-review-grid::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--accent-color) 40%, rgba(128, 128, 128, 0.2));
    border-radius: 999px;
}

.app-review {
    flex: 0 0 min(320px, 86vw);
    scroll-snap-align: start;
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 18px;
    padding: 14px;
    background: color-mix(in srgb, var(--card-bg) 90%, transparent);
}

.app-review-rating {
    margin: 0;
    letter-spacing: 1px;
    font-size: 0.92rem;
    color: #ffd777;
}

.app-review-title {
    margin: 8px 0;
    font-size: 1rem;
    letter-spacing: -0.01em;
    color: var(--text-color);
}

.app-review-text {
    margin: 0;
    line-height: 1.6;
    font-size: 0.93rem;
    color: var(--text-color);
    opacity: 0.82;
}

.app-review-author {
    margin: 10px 0 0;
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
}

.app-empty {
    margin: 0;
    color: var(--text-color);
    opacity: 0.72;
}

.app-page-footer {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    text-align: center;
}

.app-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.app-footer-link,
.app-footer-link:visited {
    color: var(--text-color);
    opacity: 0.78;
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.app-footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.app-footer-copy {
    margin: 14px 0 0;
    color: var(--text-color);
    opacity: 0.72;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.app-footer-copy:hover,
.app-footer-copy:focus-visible {
    opacity: 1;
    text-decoration: underline;
}

.app-footer-cta {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.app-store-btn-bottom {
    margin-top: 0;
}

.app-store-btn-bottom img {
    filter: none;
}

@media (max-width: 980px) {
    .app-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 8px;
    }

    .app-hero::before {
        top: -12px;
        font-size: clamp(4.2rem, 17vw, 8rem);
    }

    .app-hero::after {
        right: -24px;
        bottom: -30px;
    }

    .app-hero-visual {
        justify-content: flex-start;
    }

    .app-ios-stage {
        width: min(100%, 350px);
    }
}

@media (max-width: 1180px) {
    .apps-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .home-apps-section .apps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    body.apps-list-surface {
        padding: 20px 12px 46px;
    }

    .apps-grid-page {
        border-radius: 22px;
        padding: 20px 16px;
    }

    .apps-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    body.app-detail-surface {
        padding: 20px 12px 46px;
    }

    .app-hero-lead {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }

    .app-hero-icon {
        margin: 0 auto;
    }

    .app-hero-title {
        margin-left: auto;
        margin-right: auto;
    }

    .app-hero-tagline {
        margin-left: auto;
        margin-right: auto;
    }

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

    .app-hero-visual {
        justify-content: center;
    }

    .app-ios-float-top {
        right: 8%;
    }

    .app-ios-float-bottom {
        left: 8%;
    }
}

@media (max-width: 520px) {
    .home-apps-section .apps-grid {
        grid-template-columns: 1fr;
    }

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

    .app-hero-title {
        font-size: 1.75rem;
    }

    .app-section {
        margin-top: 34px;
        padding-top: 14px;
    }

    .app-screenshot-rail {
        gap: 10px;
    }

    .app-screenshot {
        max-height: min(58vh, 360px);
        max-width: min(90vw, 520px);
    }

    .app-screenshot-row--watch .app-screenshot {
        max-height: min(29vh, 180px);
        max-width: min(45vw, 260px);
    }

    .app-ios-stage {
        width: min(100%, 330px);
    }

    .app-ios-float {
        padding: 8px 10px;
    }

    .app-ios-float-top,
    .app-ios-float-bottom {
        transform: none;
    }

    .app-ios-float-top {
        top: 3%;
        right: 2%;
    }

    .app-ios-float-bottom {
        left: 2%;
        bottom: 4%;
    }

    .app-page-footer {
        margin-top: 42px;
    }

    .app-footer-links {
        gap: 10px 14px;
    }
}
