:root {
    color-scheme: dark;
    --bg: #090b10;
    --page-bg: radial-gradient(circle at 10% 0%, #152033 0%, var(--bg) 55%);
    --surface: #121722;
    --surface-soft: #171d2a;
    --surface-border: #263042;
    --text-primary: #f2f6ff;
    --text-secondary: #b7c3d9;
    --accent: #4f83ff;
    --accent-strong: #356fff;
    --header-bg: rgba(9, 11, 16, 0.72);
    --header-border: rgba(255, 255, 255, 0.06);
    /* Exact screen window from transparent Bazel PNG: 1206x2622 inside 1350x2760. */
    --bazel-screen-top: 2.5%;
    --bazel-screen-left: 5.333333%;
    --bazel-screen-right: 5.333333%;
    --bazel-screen-bottom: 2.5%;
    --bazel-screen-radius: 10.8%;
    --radius-xl: 24px;
    --radius-md: 14px;
    --container: 1120px;
    --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #edf2fb;
    --page-bg: radial-gradient(circle at 8% 0%, #d9e5ff 0%, #edf2fb 56%);
    --surface: #ffffff;
    --surface-soft: #f7faff;
    --surface-border: #d3ddf1;
    --text-primary: #0e1a2b;
    --text-secondary: #435773;
    --accent: #2f62d6;
    --accent-strong: #1f4ebd;
    --header-bg: rgba(245, 248, 255, 0.88);
    --header-border: rgba(25, 52, 98, 0.12);
    --shadow: 0 18px 34px rgba(16, 34, 64, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--page-bg);
    color: var(--text-primary);
    scroll-behavior: smooth;
}

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

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
}

.nav-shell {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    min-width: 0;
    max-width: 100%;
}

.brand-mark {
    --brand-icon-size: clamp(28px, 3.2vw, 36px);
    width: var(--brand-icon-size);
    height: var(--brand-icon-size);
    flex: 0 0 var(--brand-icon-size);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.brand-name {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-nav {
    display: inline-flex;
    gap: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.26rem;
    cursor: pointer;
}

.nav-toggle-bar {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text-primary);
    transition: transform 180ms ease, opacity 180ms ease;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

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

.main-nav a:hover {
    color: var(--text-primary);
}

.main-nav a {
    transition: color 220ms ease;
}

.main-nav a.active {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 0.28rem;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    border: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    padding: 0.42rem 0.72rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.theme-toggle-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.theme-toggle-label {
    font-size: 0.82rem;
}

.hero-section {
    padding: 5rem 0 4rem;
}

.hero-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
}

.eyebrow {
    margin: 0;
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8fa4c7;
    font-weight: 600;
}

h1,
h2,
h3 {
    margin: 0;
}

h1 {
    margin-top: 0.8rem;
    font-size: clamp(2rem, 5vw, 3.45rem);
    line-height: 1.08;
}

.hero-description {
    margin-top: 1.1rem;
    color: var(--text-secondary);
    font-size: 1.06rem;
    max-width: 58ch;
}

.hero-points {
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.hero-points li {
    color: #d3ddf0;
    position: relative;
    padding-left: 1.45rem;
}

.hero-points li::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    left: 0;
    top: 0.42rem;
}

.hero-actions {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.app-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.58rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.app-store-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.06);
}

.app-store-badge svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: #e8f0ff;
}
/* App Store badge image sizing */
.app-store-badge img {
    /* Badge height follows Apple's minimum onscreen size (40px). Overridable via --badge-height. */
    height: var(--badge-height, 40px);
    width: auto;
    display: block;
}
/* Apple badge spacing & clear space rules
   - Default onscreen badge height: 40px
   - Minimum clear space: 1/4 of badge height
   - For very limited layout use .app-store-badge.small to apply 1/10 clear space
*/
.app-store-badge {
    --badge-height: 40px; /* default badge height (onscreen minimum) */
    --badge-clear-space: calc(var(--badge-height) / 4);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    /* reserve clear space horizontally without shifting vertical layout */
    margin-inline: var(--badge-clear-space);
    min-height: var(--badge-height);
}
.app-store-badge.small {
    --badge-height: 40px; /* keep badge legible; adjust if you intentionally use smaller sizes */
    --badge-clear-space: calc(var(--badge-height) / 10);
}

/* Plain variant: keep only the official App Store badge art as the clickable UI. */
.app-store-badge.app-store-badge-plain {
    margin-inline: 0;
    min-height: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    gap: 0;
    line-height: 0;
}

.app-store-badge.app-store-badge-plain:hover {
    border: none;
    background: transparent;
}

.badge-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}

.badge-label {
    font-size: 0.84rem;
    color: #e8f0ff;
    font-weight: 600;
}

.badge-status {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.72rem 1.2rem;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    min-height: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    box-shadow: 0 10px 24px rgba(53, 111, 255, 0.28);
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.hero-preview {
    display: flex;
    justify-content: center;
}

.phone-shell {
    width: min(100%, 320px);
    background: transparent;
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 15vw;
    border-color: var(--bg);
    position: relative;
}

.device-mockup {
    position: absolute;
    inset: 0.6rem; /* leave shell padding visible */
    width: calc(100% - 1.2rem);
    height: calc(100% - 1.2rem);
    object-fit: cover;
    border-radius: 28px;
    z-index: 1;
    opacity: 0.98;
    pointer-events: none;
}
.phone-slider { z-index: 2; }
.phone-video-shell { z-index: 2; }

/* Hide optional decorative mockup on small screens, but keep Bazel frame visible when active. */
@media (max-width: 959px) {
    .phone-shell:not(.has-bazel) .device-mockup { display: none; }
}

/* When using Bazel mockup as the device frame, remove old shell border/padding
   and position the screenshot slider to sit inside the mockup screen area. */
.phone-shell.has-bazel {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    border-radius: 0;
    line-height: 0;
    /* Keep a real layout box so absolute children (frame + slider) stay visible. */
    aspect-ratio: 1350 / 2760;
    isolation: isolate;
}

.phone-shell.has-bazel .device-mockup {
    inset: 0; /* let the mockup fill the shell */
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: contain;
    opacity: 1;
    z-index: 3;
}

.phone-shell.has-bazel .phone-slider {
    position: absolute;
    /* screen area inside mockup — controlled by Bazel inset CSS variables */
    top: var(--bazel-screen-top, 9%);
    left: var(--bazel-screen-left, 8%);
    right: var(--bazel-screen-right, 8%);
    bottom: var(--bazel-screen-bottom, 11%);
    border-radius: var(--bazel-screen-radius, 10.8%);
    overflow: hidden;
    clip-path: inset(0 round var(--bazel-screen-radius, 10.8%));
    z-index: 2;
    background: #05070c;
}

.phone-shell.has-bazel .phone-video-shell {
    position: absolute;
    top: var(--bazel-screen-top, 2.5%);
    left: var(--bazel-screen-left, 5.333333%);
    right: var(--bazel-screen-right, 5.333333%);
    bottom: var(--bazel-screen-bottom, 2.5%);
    border-radius: var(--bazel-screen-radius, 10.8%);
    overflow: hidden;
    clip-path: inset(0 round var(--bazel-screen-radius, 10.8%));
    z-index: 2;
    background: transparent;
}

/* Support direct video child markup in hero without an extra wrapper div. */
.phone-shell.has-bazel > .phone-video {
    position: absolute;
    top: var(--bazel-screen-top, 2.5%);
    left: var(--bazel-screen-left, 5.333333%);
    width: calc(100% - var(--bazel-screen-left, 5.333333%) - var(--bazel-screen-right, 5.333333%));
    height: calc(100% - var(--bazel-screen-top, 2.5%) - var(--bazel-screen-bottom, 2.5%));
    overflow: hidden;
    clip-path: inset(0 round var(--bazel-screen-radius, 10.8%));
    z-index: 2;
    background: transparent;
}

.phone-shell.has-bazel .phone-slide,
.phone-shell.has-bazel .phone-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.phone-shell.has-bazel .phone-video-shell .phone-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.phone-shell.has-bazel .phone-video {
    /* Crop-fill Bazel screen to avoid black side bars from contain mode. */
    object-fit: cover;
    object-position: center;
    background: transparent;
    margin: 0;
    max-width: none;
}

.phone-shell img,
.screenshot-card img {
    width: 100%;
    height: auto;
    border-radius: 28px;
    display: block;
}

.phone-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 750 / 1334;
    border-radius: 28px;
    overflow: hidden;
    background: #0d121c;
}

.phone-video-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 750 / 1334;
    border-radius: 28px;
    overflow: hidden;
}

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

.phone-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.0);
    transition: opacity 700ms ease, transform 700ms ease;
    will-change: opacity, transform;
}

.phone-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.placeholder-shot {
    min-height: 460px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    padding: 1rem;
}

.section {
    padding: 3.5rem 0;
}

.section-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.section-heading {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
}

.section-heading h2 {
    font-size: clamp(1.4rem, 2.8vw, 2.15rem);
}

.section-heading.split {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 1rem;
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.trust-pill {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: #dbe6f8;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.84rem;
    font-weight: 500;
}

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

.engagement-card {
    border: 1px solid var(--surface-border);
    background: linear-gradient(160deg, var(--surface), var(--surface-soft));
    border-radius: var(--radius-xl);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    padding: 1.1rem 1rem;
}

.engagement-card h3 {
    font-size: 1.05rem;
}

.value-list {
    margin: 0.7rem 0 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.45rem;
    color: #d6e1f4;
}

.workflow-card {
    margin-top: 1rem;
}

.workflow-list {
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.45rem;
    color: #d6e1f4;
}

.risk-columns {
    margin-top: 0.8rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.risk-title {
    margin: 0;
    color: #8fa4c7;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.risk-columns ul {
    margin: 0.55rem 0 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.45rem;
    color: #d6e1f4;
}

.batch-card {
    align-self: start;
}

.batch-label {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.batch-progress {
    margin-top: 0.85rem;
    font-size: 0.82rem;
    height: 0.62rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.batch-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #72d7ff);
    animation: batchFill 2.2s ease forwards;
}

.feature-grid,
.format-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card,
.format-card,
.cta-card,
.privacy-shell {
    border: 1px solid var(--surface-border);
    background: linear-gradient(160deg, var(--surface), var(--surface-soft));
    border-radius: var(--radius-xl);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    transition: transform 260ms ease, border-color 260ms ease;
}

.feature-card:hover,
.format-card:hover,
.cta-card:hover,
.privacy-shell:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.24);
}

.feature-card,
.format-card {
    padding: 1.1rem 1rem;
}

.feature-card h3,
.format-card h3 {
    font-size: 1.05rem;
}

.feature-icon {
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    margin-right: 0.6rem;
    color: var(--accent);
    vertical-align: middle;
}

.feature-card p,
.format-card p {
    margin: 0.55rem 0 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.format-list {
    margin: 0.7rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.format-chip {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
    font-size: 0.82rem;
    color: #dbe6f8;
    letter-spacing: 0.01em;
}

.gallery-controls {
    display: inline-flex;
    gap: 0.55rem;
}

.gallery-btn {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    background: transparent;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.gallery-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.06);
}

.privacy-shell {
    padding: 1.35rem;
}

.policy-shell {
    padding: 1.55rem;
}

.policy-updated {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.policy-content {
    display: grid;
    gap: 1.1rem;
}

.policy-section {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.policy-section h3 {
    font-size: 1.03rem;
}

.policy-section p {
    margin: 0.6rem 0 0;
    line-height: 1.58;
    color: var(--text-secondary);
}

.privacy-list {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.privacy-list li {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.8rem 0.9rem;
    color: #d6e1f4;
    background: rgba(255, 255, 255, 0.02);
}

.cta-card {
    padding: 1.8rem;
}

.cta-card p {
    color: var(--text-secondary);
    margin-top: 0.7rem;
}

.why-description {
    margin-top: 0.25rem;
}

.why-list {
    margin-top: 0;
}

.contact-card {
    padding: 1.6rem;
}

.contact-icons {
    margin-top: 1rem;
    display: inline-flex;
    gap: 0.7rem;
}

.icon-btn {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.icon-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: #dbe6f8;
}

.icon-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.06);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Focus styles for accessibility */
:focus {
    outline: 3px solid rgba(79,131,255,0.24);
    outline-offset: 2px;
}

/* Better visible focus for keyboard users */
.btn:focus, .icon-btn:focus, .gallery-btn:focus, a:focus {
    box-shadow: 0 0 0 3px rgba(79,131,255,0.14);
}

/* Removed phone floating animation */

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

.contact-grid {
    margin-top: 1rem;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.85rem 0.9rem;
    background: rgba(255, 255, 255, 0.02);
}

.contact-item h3 {
    font-size: 0.92rem;
    color: #8fa4c7;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-item p {
    margin: 0.55rem 0 0;
    color: #dbe6f8;
    overflow-wrap: anywhere;
}

.contact-item a:hover,
.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Form inputs */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    color: var(--text-primary);
}

label {
    display: block;
    font-size: 0.86rem;
    color: #9fb3d4;
    margin-bottom: 0.32rem;
}

.contact-grid,
.contact-item {
    display: none;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem 0;
    margin-top: 1rem;
}

html[data-theme="light"] .hero-points li,
html[data-theme="light"] .value-list,
html[data-theme="light"] .workflow-list,
html[data-theme="light"] .contact-item p,
html[data-theme="light"] .format-chip,
html[data-theme="light"] .trust-pill,
html[data-theme="light"] .privacy-list li,
html[data-theme="light"] .icon-btn svg,
html[data-theme="light"] .badge-label {
    color: #1b2a43;
}

html[data-theme="light"] .trust-pill,
html[data-theme="light"] .format-chip,
html[data-theme="light"] .privacy-list li,
html[data-theme="light"] .contact-item,
html[data-theme="light"] .policy-section {
    border-color: rgba(24, 56, 106, 0.16);
    background: rgba(255, 255, 255, 0.75);
}

html[data-theme="light"] .btn-secondary,
html[data-theme="light"] .icon-btn,
html[data-theme="light"] .gallery-btn,
html[data-theme="light"] .app-store-badge,
html[data-theme="light"] .theme-toggle {
    border-color: rgba(27, 58, 110, 0.2);
    background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .app-store-badge.app-store-badge-plain {
    border: none;
    background: transparent;
}

html[data-theme="light"] .phone-shell {
    background: transparent;
}

html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="email"],
html[data-theme="light"] textarea {
    border-color: rgba(25, 52, 98, 0.2);
    color: #1a2941;
}

.footer-shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
}

.footer-links {
    display: inline-flex;
    gap: 1rem;
}

@media (max-width: 900px) {
    .hero-grid,
    .feature-grid,
    .format-grid,
    .section-heading.split,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .section-heading.split {
        align-items: start;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.7rem;
    }

    .hero-actions .btn {
        width: min(100%, 320px);
        justify-content: center;
        align-self: center;
    }

    .hero-actions .app-store-badge {
        align-self: center;
    }

    /* Use compact, frameless App Store badge across stacked/mobile hero layouts. */
    .hero-actions .app-store-badge {
        margin-inline: 0;
        margin-top: 0.15rem;
        min-height: 0;
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        gap: 0;
        line-height: 0;
    }

    html[data-theme="light"] .hero-actions .app-store-badge {
        border: none;
        background: transparent;
    }

    .hero-actions .badge-text {
        display: none;
    }
}

@keyframes batchFill {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 1.25rem, var(--container));
    }

    .nav-shell {
        position: relative;
        min-height: auto;
        padding: 0.7rem 0;
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 0.55rem;
    }

    .theme-toggle {
        justify-self: end;
    }

    .nav-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 0.45rem);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0.4rem;
        border: 1px solid var(--surface-border);
        background: var(--surface);
        border-radius: 12px;
        padding: 0.5rem;
        box-shadow: var(--shadow);
        z-index: 40;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        white-space: normal;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.03);
        border-radius: 10px;
        padding: 0.72rem 0.8rem;
        font-size: 0.95rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .main-nav a.active {
        text-decoration: none;
        border-color: rgba(255, 255, 255, 0.35);
        background: rgba(79, 131, 255, 0.18);
    }

    .hero-grid {
        gap: 1.35rem;
    }

    .hero-section {
        padding: 2.4rem 0 2.5rem;
    }

    h1 {
        margin-top: 0.55rem;
        font-size: clamp(1.7rem, 8vw, 2.2rem);
        line-height: 1.15;
    }

    .hero-description {
        font-size: 0.98rem;
    }

    .hero-points {
        margin-top: 1rem;
        gap: 0.5rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.7rem;
    }

    .hero-actions .btn {
        width: min(100%, 320px);
        justify-content: center;
        align-self: center;
    }

    .hero-actions .app-store-badge {
        width: auto;
        justify-content: center;
        align-self: center;
    }

    .hero-actions .btn-primary {
        min-height: 46px;
        font-weight: 700;
        font-size: 1rem;
        padding: 0.8rem 1.05rem;
        border-radius: 16px;
    }

    .hero-actions .btn-secondary {
        min-height: 44px;
        font-size: 1rem;
        padding: 0.78rem 1rem;
        border-radius: 16px;
    }

    .hero-actions .app-store-badge {
        margin-inline: 0;
        min-height: 44px;
        max-width: 100%;
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .hero-actions .badge-text {
        display: none;
    }

    .phone-shell {
        width: min(100%, 290px);
    }

    .section {
        padding: 2.2rem 0;
    }

    .section-heading {
        margin-bottom: 1rem;
    }

    .engagement-card,
    .feature-card,
    .format-card,
    .contact-card,
    .privacy-shell {
        padding: 0.95rem 0.9rem;
    }

    .trust-strip {
        gap: 0.4rem;
    }

    .trust-pill,
    .format-chip {
        font-size: 0.78rem;
    }

    .footer-shell {
        align-items: flex-start;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 0.55rem 0.9rem;
    }
}

@media (max-width: 420px) {
    .brand-name {
        font-size: 0.9rem;
        max-width: 56vw;
    }

    .brand-mark {
        --brand-icon-size: clamp(26px, 8vw, 32px);
    }

    .hero-actions {
        gap: 0.6rem;
    }

    .main-nav a {
        font-size: 0.9rem;
        padding: 0.66rem 0.72rem;
    }

    .hero-actions .btn-primary {
        min-height: 46px;
        width: fit-content;
    }

    .hero-actions .btn-secondary {
        min-height: 42px;
        width: fit-content;
    }

    .hero-actions .app-store-badge {
        width: fit-content;
        padding: 0.2rem 0 0;
    }

}

@media (max-width: 900px) {
    .engagement-grid,
    .risk-columns {
        grid-template-columns: 1fr;
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}