/* =========================================================
   Codebug EduServe — Design System v3
   Palette: deep navy primary · warm accent (from logo) · cool neutrals
   Type: fluid scale via clamp()
   ========================================================= */

:root {
    /* ---- Color palette ---- */
    --navy-950: #0A1628;
    --navy-900: #0F1F3D;
    --navy-800: #16294F;
    --navy-700: #1E3A6E;
    --navy-600: #274B8C;
    --navy-100: #E6EDF8;
    --navy-50:  #F2F6FC;

    --accent-700: #B8460B;
    --accent-600: #D9560F;
    --accent-500: #EA6B1F;
    --accent-400: #F58A3C;
    --accent-100: #FDE9DC;
    --accent-50:  #FFF5EE;

    --gray-900: #0F172A;
    --gray-800: #1E293B;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748B;
    --gray-400: #94A3B8;
    --gray-300: #CBD5E1;
    --gray-200: #E2E8F0;
    --gray-100: #F1F5F9;
    --gray-50:  #F8FAFC;

    --gold: #F5B301;
    --white: #FFFFFF;

    /* ---- Semantic tokens ---- */
    --bg: #F6F8FB;
    --surface: var(--white);
    --surface-2: var(--gray-50);
    --border: var(--gray-200);
    --border-strong: var(--gray-300);
    --text: var(--gray-900);
    --text-2: var(--gray-600);
    --text-3: var(--gray-500);
    --primary: var(--navy-900);
    --primary-hover: var(--navy-800);
    --accent: var(--accent-500);
    --accent-hover: var(--accent-600);
    --on-dark: rgba(255, 255, 255, 0.92);
    --on-dark-2: rgba(255, 255, 255, 0.66);
    --on-dark-3: rgba(255, 255, 255, 0.42);

    /* ---- Fluid type scale ---- */
    --fs-xs:   clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
    --fs-sm:   clamp(0.82rem, 0.80rem + 0.12vw, 0.88rem);
    --fs-base: clamp(0.95rem, 0.92rem + 0.18vw, 1.05rem);
    --fs-md:   clamp(1.05rem, 1.00rem + 0.25vw, 1.18rem);
    --fs-lg:   clamp(1.15rem, 1.05rem + 0.45vw, 1.40rem);
    --fs-xl:   clamp(1.35rem, 1.18rem + 0.80vw, 1.80rem);
    --fs-2xl:  clamp(1.75rem, 1.40rem + 1.60vw, 2.60rem);
    --fs-3xl:  clamp(2.20rem, 1.60rem + 2.80vw, 3.60rem);
    --fs-display: clamp(2.50rem, 1.70rem + 3.80vw, 4.40rem);

    --lh-tight: 1.12;
    --lh-snug: 1.35;
    --lh-body: 1.65;

    --ls-label: 0.06em;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    --font-display: 'Poppins', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', 'Poppins', system-ui, sans-serif;

    /* ---- Spacing ---- */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-10: 80px;
    --space-12: 96px;
    --space-16: 128px;
    --space-section: clamp(44px, calc(4rem + 2.5vw - 20px), 76px);
    --gutter: clamp(20px, 3vw, 32px);

    /* ---- Shape & elevation ---- */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 999px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 12px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 2px 4px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 8px 16px rgba(15, 23, 42, 0.06), 0 32px 64px rgba(15, 23, 42, 0.14);
    --shadow-accent: 0 8px 24px rgba(234, 107, 31, 0.28);
    --focus: 0 0 0 4px rgba(39, 75, 140, 0.18);

    /* ---- Card component (single definition used by every card) ---- */
    --card-bg: var(--surface);
    --card-border: 1px solid rgba(15, 23, 42, 0.08);
    --card-radius: 18px;
    --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -8px rgba(15, 23, 42, 0.10);
    --card-shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.06), 0 16px 32px -12px rgba(15, 23, 42, 0.16);
    --card-padding: clamp(20px, 2.2vw, 28px);

    /* ---- Icon size scale ---- */
    --icon-inline: 16px;
    --icon-btn: 20px;
    --icon-card: 24px;
    --icon-header: 28px;

    --container: 1180px;
    --header-h: 74px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   Base
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    color: var(--text-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
    letter-spacing: -0.015em;
}

h1 { font-size: var(--fs-3xl); font-weight: var(--fw-bold); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-2xl); font-weight: var(--fw-bold); line-height: var(--lh-tight); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { font-size: inherit; }

strong { font-weight: 600; color: var(--text); }

::selection {
    background: var(--navy-100);
    color: var(--navy-900);
}

:focus-visible {
    outline: none;
}

.btn:active,
.btn-playstore:active,
.btn-store:active,
.cat-nav a:active,
.nav-links a:active {
    transform: scale(0.98);
    transition-duration: 0.08s;
}

/* Quiet inline link (card "View details") */
.link-quiet {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 40px;
    padding: 0 6px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--navy-700);
    border-radius: var(--r-sm);
    transition: color 0.2s, gap 0.2s;
}

.link-quiet:hover {
    color: var(--navy-900);
    gap: 8px;
}

/* Shared card component */
.card,
.about-card,
.app-card,
.contact-item,
.review-card,
.social-card {
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s;
}

.card:hover,
.about-card:hover,
.app-card:hover,
.contact-item:hover,
.review-card:hover,
.social-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
    border-color: rgba(15, 23, 42, 0.12);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---- Icons: one 24px grid, crisp at every size ---- */
svg {
    flex-shrink: 0;
    shape-rendering: geometricPrecision;
}

.i {
    width: var(--icon-inline);
    height: var(--icon-inline);
    vertical-align: -0.2em;
    display: inline-block;
}

.i-star {
    color: var(--gold);
}

/* =========================================================
   Header
   ========================================================= */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

header.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-xs);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    height: 42px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-name {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
    color: var(--navy-900);
}

.logo-name em {
    font-style: normal;
    font-weight: var(--fw-semibold);
    color: var(--accent-600);
}

.logo-tag {
    font-size: 0.62rem;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-top: 3px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-links a {
    display: inline-block;
    padding: 9px 14px;
    border-radius: var(--r-full);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--gray-700);
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: var(--navy-900);
    background: var(--navy-50);
}

.nav-links .nav-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    padding: 9px 18px;
    background: var(--surface);
    color: var(--navy-900);
    font-weight: var(--fw-semibold);
    border: 1px solid var(--border-strong);
}

.nav-links .nav-cta a svg,
.nav-links .nav-cta a img {
    width: var(--icon-inline);
    height: var(--icon-inline);
    flex: 0 0 auto;
}

.nav-links .nav-cta a:hover {
    background: var(--navy-50);
    border-color: var(--navy-600);
    color: var(--navy-900);
}

.nav-links a.is-active {
    color: var(--navy-900);
    background: var(--navy-50);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--surface);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--gray-800);
    transition: transform 0.25s, opacity 0.25s;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: var(--r-full);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn svg {
    width: var(--icon-btn);
    height: var(--icon-btn);
}

.btn-sm {
    padding: 10px 16px;
    font-size: var(--fs-xs);
}

/* Solid primary (navy) */
.btn-primary,
.btn-brand {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-brand:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
}

/* Accent */
.btn-accent {
    background: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
    background: var(--accent-hover);
}

/* Ghost / outline */
.btn-ghost,
.btn-outline {
    background: var(--surface);
    color: var(--navy-900);
    border-color: var(--border-strong);
}

.btn-ghost:hover,
.btn-outline:hover {
    border-color: var(--navy-600);
    color: var(--navy-700);
    background: var(--navy-50);
}

.btn-playstore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--r-full);
    background: var(--gray-900);
    color: var(--white);
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1;
    transition: background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.btn-playstore.btn-sm {
    padding: 10px 16px;
    font-size: var(--fs-xs);
}

.btn-playstore svg {
    width: 16px;
    height: 16px;
}

.btn-playstore:hover {
    background: var(--navy-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Store badges */
.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store-buttons-stack {
    flex-direction: column;
}

.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 14px;
    border-radius: var(--r-md);
    background: var(--gray-900);
    color: var(--white);
    line-height: 1.05;
    font-size: var(--fs-md);
    font-weight: 600;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
}

.btn-store:hover {
    transform: translateY(-2px);
    background: var(--navy-800);
    box-shadow: var(--shadow-md);
}

.btn-store svg {
    width: var(--icon-btn);
    height: var(--icon-btn);
    flex: 0 0 var(--icon-btn);
}

.btn-store-ghost {
    background: var(--surface);
    color: var(--navy-900);
    border-color: var(--border-strong);
    box-shadow: none;
}

.btn-store-ghost svg {
    color: var(--gold);
}

.btn-store-ghost:hover {
    background: var(--navy-50);
    border-color: var(--navy-600);
}

.btn-store small {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.72;
    margin-bottom: 3px;
}

/* =========================================================
   Section scaffolding
   ========================================================= */
section {
    padding: var(--space-section) 0;
}

.section-head {
    text-align: center;
    max-width: 960px;
    margin: 0 auto var(--space-7);
}

.section-head-left {
    text-align: left;
    margin-left: 0;
    margin-bottom: var(--space-6);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: var(--r-full);
    background: var(--navy-50);
    border: 1px solid var(--navy-100);
    color: var(--navy-700);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-label);
    line-height: var(--lh-tight);
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: var(--fs-2xl);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--fs-md);
    color: var(--text-2);
    line-height: 1.7;
}

.sub-title {
    font-size: var(--fs-lg);
    margin: var(--space-6) 0 var(--space-4);
}

/* Dark-band sections */
.band-dark .section-label {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--on-dark);
}

.band-dark .section-title {
    color: var(--white);
}

.band-dark .section-subtitle {
    color: var(--on-dark-2);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    color: var(--text);
    padding: clamp(36px, calc(6vw - 20px), 76px) 0 0;
    border-bottom: 1px solid var(--border);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(720px 480px at 85% 0%, rgba(39, 75, 140, 0.10), transparent 60%),
        radial-gradient(560px 420px at 0% 100%, rgba(234, 107, 31, 0.10), transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 31, 61, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 31, 61, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(32px, 4vw, 64px);
    align-items: center;
    padding-bottom: clamp(56px, 6vw, 96px);
}

.hero-copy {
    align-self: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 12px;
    border-radius: var(--r-full);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-5);
}

.eyebrow svg {
    width: 18px;
    height: 18px;
    color: var(--navy-700);
}

.hero h1 {
    font-size: var(--fs-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.04;
    color: var(--navy-900);
    margin-bottom: var(--space-5);
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero p {
    font-size: var(--fs-md);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: var(--space-6);
    color: var(--text-2);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: var(--space-7);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 0;
    border-top: 1px solid var(--border);
    padding-top: var(--space-5);
}

.hero-stat {
    padding-right: 24px;
    margin-right: 24px;
    border-right: 1px solid var(--border);
}

.hero-stat:last-child {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
}

.hero-stat strong {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--navy-900);
}

.hero-stat span {
    font-size: var(--fs-xs);
    color: var(--text-3);
}

/* Phone mockup */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

/* Three fanned phones: A back-left, B front-centre, C back-right.
   Everything is derived from --pw (phone width) so the fan scales as one. */
.hero-visual {
    --pw: 190px;
    --ph: calc(var(--pw) * 2.045);
    --step: calc(var(--pw) * 0.66);   /* horizontal offset between phones */
    --drop: 44px;                     /* outer phones sit this much lower */
    --fan-w: calc(var(--pw) + var(--step) * 2);
}

.phones {
    position: relative;
    width: var(--fan-w);
    height: calc(var(--ph) + var(--drop) + 8px);
    flex: 0 0 auto;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(39, 75, 140, 0.16), rgba(39, 75, 140, 0) 70%);
    filter: blur(10px);
    pointer-events: none;
}

.phone {
    position: absolute;
    top: 0;
    width: var(--pw);
    height: var(--ph);
    background: var(--navy-950);
    border-radius: 34px;
    padding: 10px;
    box-shadow:
        0 40px 80px rgba(15, 23, 42, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    transition: transform 0.6s var(--ease);
}

.phone-a {
    left: 0;
    top: var(--drop);
    z-index: 1;
    transform: rotate(-7deg);
    transform-origin: bottom right;
}

.phone-b {
    left: var(--step);
    z-index: 3;
    box-shadow:
        0 48px 90px rgba(15, 23, 42, 0.34),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.phone-c {
    left: calc(var(--step) * 2);
    top: var(--drop);
    z-index: 2;
    transform: rotate(7deg);
    transform-origin: bottom left;
}

.hero-visual:hover .phone-a {
    transform: rotate(-5deg) translateY(-6px);
}

.hero-visual:hover .phone-b {
    transform: translateY(-8px);
}

.hero-visual:hover .phone-c {
    transform: rotate(5deg) translateY(-6px);
}

.phone-notch {
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 76px;
    height: 20px;
    background: var(--navy-950);
    border-radius: 0 0 14px 14px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 27px;
    overflow: hidden;
}

.phone-screen-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}

.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    animation: float 7s ease-in-out infinite;
    z-index: 3;
}

.float-badge strong {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.15;
}

.float-badge span {
    display: block;
    font-size: var(--fs-xs);
    color: var(--text-3);
}

.float-badge img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 8px;
}

.float-star {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-star svg {
    width: 18px;
    height: 18px;
}

/* Badges anchor beside the phone fan, never over a live screen
   (fan is --fan-w wide and centred, so 50% - fan-w/2 is its left edge) */
.float-badge-1 { top: 6px; left: calc(50% - var(--fan-w) / 2 - 30px); }
.float-badge-2 { bottom: 4px; right: calc(50% - var(--fan-w) / 2 - 10px); animation-delay: -3.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* App icon strip */
.hero-apps {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    background: var(--gray-50);
    padding: 22px 0;
}

.hero-apps .container {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.hero-apps-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-3);
    white-space: nowrap;
}

.hero-apps-label svg {
    width: 14px;
    height: 14px;
    color: var(--navy-700);
}

.hero-apps-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-apps-icons a {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow-xs);
    transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.hero-apps-icons a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.hero-apps-icons img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   About
   ========================================================= */
.about-content {
    background: var(--surface);
    padding: clamp(28px, 4vw, 56px);
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.about-intro {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(24px, 3vw, 40px);
    align-items: center;
}

.about-lead {
    font-size: var(--fs-md);
    line-height: 1.75;
    color: var(--text-2);
}

.about-lead strong {
    color: var(--navy-900);
}

.about-collage {
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.about-mission {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    margin-top: var(--space-6);
    padding: clamp(20px, 3vw, 32px);
    border-radius: var(--r-lg);
    background: var(--navy-50);
    border: 1px solid var(--navy-100);
}

.about-mission-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.about-mission-icon svg {
    width: var(--icon-card);
    height: var(--icon-card);
}

.about-mission h3 {
    font-size: var(--fs-lg);
    color: var(--navy-900);
    margin-bottom: 8px;
}

.about-mission p {
    font-size: var(--fs-base);
    color: var(--gray-700);
}

.about-mission strong {
    color: var(--navy-900);
}

.about-why {
    font-size: var(--fs-xl);
    margin-top: var(--space-7);
    margin-bottom: var(--space-2);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: var(--space-5);
}

.about-card {
    padding: var(--card-padding);
    display: flex;
    flex-direction: column;
}

.about-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: var(--navy-50);
    border: 1px solid var(--navy-100);
    color: var(--navy-700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.about-icon svg {
    width: var(--icon-card);
    height: var(--icon-card);
}

.about-card h3 {
    font-size: var(--fs-md);
    margin-bottom: 8px;
}

.about-card p {
    font-size: var(--fs-sm);
    color: var(--text-2);
}

/* =========================================================
   Recognition (navy band)
   ========================================================= */
.recognition {
    position: relative;
    overflow: hidden;
    background: var(--navy-900);
    color: var(--on-dark-2);
}

.recognition .stat-card {
    border-radius: var(--card-radius);
}

.recognition::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(760px 480px at 8% 0%, rgba(39, 75, 140, 0.55), transparent 60%),
        radial-gradient(600px 440px at 100% 100%, rgba(234, 107, 31, 0.18), transparent 60%);
    pointer-events: none;
}

.recognition .container {
    position: relative;
}

.recognition .section-label {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--on-dark);
}

.recognition .section-title {
    color: var(--white);
}

.recognition .section-subtitle {
    color: var(--on-dark-2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 32px);
    border-radius: var(--r-lg);
    transition: background 0.3s, border-color 0.3s, transform 0.35s var(--ease);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: var(--space-3);
    color: var(--accent-400);
}

.stat-card h3 {
    font-size: var(--fs-md);
    color: var(--white);
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--on-dark-2);
    font-size: var(--fs-sm);
}

.stat-card p strong {
    color: var(--white);
}

/* =========================================================
   Apps catalogue
   ========================================================= */
.cat-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    max-width: 820px;
    margin: calc(var(--space-5) * -1) auto var(--space-7);
}

.cat-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    padding: 9px 14px;
    border-radius: var(--r-full);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--gray-700);
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.cat-nav a.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.cat-nav a.is-active svg {
    color: var(--white);
}

.cat-nav a svg {
    width: var(--icon-inline);
    height: var(--icon-inline);
    color: var(--navy-700);
}

.cat-nav a:hover {
    border-color: var(--navy-600);
    color: var(--navy-900);
    background: var(--navy-50);
    transform: translateY(-1px);
}

.apps-group {
    scroll-margin-top: 100px;
}

.apps-group + .apps-group {
    margin-top: var(--space-6);
}

.apps-group-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
}

.apps-group-glyph {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    box-shadow: var(--shadow-sm);
}

.apps-group-glyph svg {
    width: var(--icon-header);
    height: var(--icon-header);
}

.apps-group-title {
    font-size: var(--fs-lg);
    letter-spacing: -0.01em;
}

.apps-group-sub {
    font-size: var(--fs-sm);
    color: var(--text-3);
}

.apps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.apps-grid > .app-card:only-child {
    max-width: 560px;
}

.app-card {
    position: relative;
    padding: var(--card-padding);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
}

.app-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.app-card .app-actions {
    position: relative;
    z-index: 2;
}

.app-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.app-icon-img {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    padding: 4px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow-xs);
}

/* Badge taxonomy: colour = meaning
   curriculum (navy) · language (neutral) · recognition (orange — reserved) */
.app-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-label);
    line-height: var(--lh-tight);
    text-transform: uppercase;
    border-radius: var(--r-full);
    margin-bottom: 10px;
}

.app-badge-curriculum {
    color: var(--navy-700);
    background: var(--navy-50);
    border: 1px solid var(--navy-100);
}

.app-badge-language {
    color: var(--gray-700);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
}

.app-badge-recognition {
    color: var(--accent-700);
    background: var(--accent-50);
    border: 1px solid var(--accent-100);
}

.app-title {
    font-size: var(--fs-md);
    letter-spacing: -0.01em;
}

.app-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-top: 8px;
    font-size: var(--fs-xs);
    color: var(--text-3);
}

.app-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--text);
}

.app-rating svg {
    width: 13px;
    height: 13px;
    color: var(--gold);
}

.app-lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 9px;
    border-radius: var(--r-full);
    background: var(--gray-100);
    border: 1px solid var(--border);
    font-weight: 500;
    color: var(--gray-700);
}

.app-desc {
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
    color: var(--text-2);
    min-height: calc(var(--fs-sm) * var(--lh-body) * 2);
}

.app-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.center-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: var(--space-7);
}

/* =========================================================
   Learn & Connect
   ========================================================= */
.learn {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.learn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.social-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.social-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: clamp(18px, 2vw, 24px);
    flex: 1;
}

.social-body .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Video preview */
.video-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--navy-950);
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease), opacity 0.3s;
}

.video-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0) 40%, rgba(10, 22, 40, 0.85) 100%);
}

.social-card:hover .video-thumb img {
    transform: scale(1.05);
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #E62117;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 1;
    transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}

.video-play svg {
    width: 24px;
    height: 24px;
}

.social-card:hover .video-play {
    transform: scale(1.08);
    background: #E62117;
    color: var(--white);
}

/* Facebook card: blue mark in a white circle instead of the YouTube red */
.video-play-fb {
    color: #1877F2;
}

.social-card:hover .video-play-fb {
    background: #1877F2;
}

.video-caption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 1;
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--on-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Channel identity */
.channel-id {
    display: flex;
    align-items: center;
    gap: 12px;
}

.channel-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex: 0 0 48px;
    border: 1px solid var(--border);
    object-fit: cover;
}

.channel-id strong {
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-md);
    color: var(--text);
    line-height: 1.2;
}

.channel-handle {
    display: block;
    font-size: var(--fs-xs);
    color: var(--text-3);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-card-text {
    font-size: var(--fs-sm);
    color: var(--text-2);
}

/* Facebook card */
.fb-cover {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: clamp(18px, 2vw, 24px);
    background: linear-gradient(135deg, var(--navy-900), #1B4DA6 70%, #1877F2);
    color: var(--white);
    aspect-ratio: 16 / 9;
    max-height: 200px;
}

.fb-cover strong {
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    color: var(--white);
    line-height: 1.2;
}

.fb-cover span:not(.social-mark) {
    font-size: var(--fs-sm);
    color: var(--on-dark-2);
}

.social-mark {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    color: var(--white);
}

.social-mark svg {
    width: 24px;
    height: 24px;
}

.social-mark-fb {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.fb-plugin {
    width: 100%;
    max-width: 300px;
    min-height: 154px;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
}

.fb-plugin iframe {
    display: block;
    width: 100%;
}

.btn-yt {
    background: #E62117;
    color: var(--white);
}

.btn-yt:hover {
    background: #C0190F;
}

.btn-fb {
    background: #1877F2;
    color: var(--white);
}

.btn-fb:hover {
    background: #145DBF;
}

/* =========================================================
   Contact
   ========================================================= */
.contact-note {
    margin-top: 10px;
    font-weight: var(--fw-regular);
    color: var(--text-2);
}

.contact-muted {
    font-size: var(--fs-sm);
    color: var(--text-3);
}

.contact-container {
    max-width: 1060px;
    margin: 0 auto;
}

/* Three equal-height cards; content column stretches, action pins to the bottom */
.contact-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.contact-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    min-height: 0;
    padding: clamp(24px, 2.4vw, 32px);
    overflow: hidden;
}

/* Thin brand line that reveals on hover */
.contact-item::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--navy-700), var(--accent));
    opacity: 0;
    transition: opacity 0.25s var(--ease);
}

.contact-item:hover::after {
    opacity: 1;
}

.contact-icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--navy-50), var(--navy-100));
    border: 1px solid var(--navy-100);
    color: var(--navy-700);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.contact-item:hover .contact-icon {
    background: var(--navy-700);
    border-color: var(--navy-700);
    color: var(--white);
}

.contact-icon svg {
    width: var(--icon-card);
    height: var(--icon-card);
}

.contact-body {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.contact-item h4 {
    font-size: var(--fs-md);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.contact-item p {
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    color: var(--text);
    font-weight: var(--fw-medium);
    overflow-wrap: anywhere;
}

.contact-item p + p {
    margin-top: 4px;
}

.contact-item p.contact-muted {
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: var(--text-3);
}

.contact-item a:hover {
    color: var(--navy-700);
}

.contact-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--navy-700);
    transition: color 0.2s;
}

.contact-action svg {
    width: var(--icon-inline);
    height: var(--icon-inline);
    transition: transform 0.25s var(--ease);
}

.contact-item .contact-action:hover {
    color: var(--accent-600);
}

.contact-action:hover svg {
    transform: translateX(3px);
}

/* Tablet: single column, card content flows horizontally */
@media (max-width: 900px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-item {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        column-gap: 20px;
        padding: clamp(20px, 3vw, 28px);
    }

    .contact-icon {
        margin-bottom: 0;
    }

    .contact-body {
        flex: 1 1 0;
        width: auto;
    }

    .contact-action {
        width: auto;
        margin: 0;
        padding: 0;
        border: 0;
        white-space: nowrap;
    }
}

/* Mobile: action drops below the content */
@media (max-width: 600px) {
    .contact-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .contact-action {
        flex-basis: 100%;
        margin-top: 16px;
        padding-top: 14px;
        border-top: 1px solid var(--border);
    }
}

/* =========================================================
   Footer
   ========================================================= */
footer {
    background: var(--navy-900);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--white);
    padding: clamp(28px, calc(5vw - 20px), 52px) 0 12px;
    font-size: var(--fs-sm);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: var(--space-5);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    height: 46px;
    width: auto;
}

.footer-brand strong {
    display: block;
    font-family: var(--font-display);
    color: var(--white);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.footer-brand strong em {
    font-style: normal;
    font-weight: var(--fw-semibold);
    color: var(--accent-400);
}

.footer-brand span {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--white);
    font-weight: var(--fw-semibold);
    margin-top: 3px;
}

.footer-about p {
    margin-top: 18px;
    font-size: var(--fs-sm);
    line-height: 1.7;
    color: var(--white);
    max-width: 380px;
}

.footer-col h4 {
    color: var(--white);
    font-size: var(--fs-xs);
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer-col a {
    font-size: var(--fs-sm);
    color: var(--white);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent-400);
}

.footer-col a svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    color: var(--white);
    transition: color 0.2s;
}

.footer-col a:hover svg {
    color: var(--accent-400);
}

.footer-connect li a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background 0.25s, color 0.25s, transform 0.25s var(--ease), border-color 0.25s;
}

.social-links a:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--navy-900);
    transform: translateY(-3px);
}

.social-links svg {
    width: 17px;
    height: 17px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 24px;
    color: var(--white);
    font-size: var(--fs-xs);
    line-height: 1.6;
}

.footer-bottom p {
    margin: 0;
}

/* =========================================================
   App detail pages
   ========================================================= */

/* ---- Overview (hero + about) ---- */
.app-overview {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    color: var(--text);
    padding: 8px 0 clamp(24px, calc(5vw - 20px), 44px);
    border-bottom: 1px solid var(--border);
}

.app-overview::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(640px 400px at 100% 0%, rgba(39, 75, 140, 0.08), transparent 60%),
        radial-gradient(480px 360px at 0% 100%, rgba(234, 107, 31, 0.06), transparent 60%);
    pointer-events: none;
}

.app-overview .container {
    position: relative;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    gap: 8px;
    font-size: var(--fs-sm);
    color: var(--text-3);
    margin-bottom: var(--space-6);
}

.breadcrumb svg {
    width: 14px;
    height: 14px;
    color: var(--gray-400);
}

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

.breadcrumb em {
    font-style: normal;
    color: var(--text);
    font-weight: 500;
}

.app-hero-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: start;
}

.overview-hero {
    padding-bottom: clamp(32px, 4vw, 48px);
    margin-bottom: clamp(32px, 4vw, 48px);
    border-bottom: 1px solid var(--border);
}

.overview-audience h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.overview-audience h3 svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: var(--navy-700);
}

.overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}

.overview-h {
    font-size: var(--fs-xl);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.overview-text {
    font-size: var(--fs-base);
    line-height: 1.75;
    color: var(--text-2);
    max-width: 720px;
    margin-bottom: var(--space-6);
}

.overview-main .check-grid {
    margin-bottom: 0;
}

.overview-side {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    display: grid;
    gap: 20px;
}

.side-card {
    padding: var(--card-padding);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
}

.side-card h3 {
    font-size: var(--fs-base);
    margin-bottom: 18px;
}

/* "Good to know" sidebar — notes lifted from the store description */
.know-list {
    list-style: none;
    display: grid;
    gap: 18px;
}

.know-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.know-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--navy-700);
}

.know-icon svg {
    width: 18px;
    height: 18px;
}

.know-list strong {
    display: block;
    font-size: var(--fs-sm);
    color: var(--text);
    margin-bottom: 3px;
}

.know-list p {
    font-size: var(--fs-sm);
    line-height: 1.6;
    color: var(--text-2);
}

.know-list a {
    color: var(--navy-700);
    font-weight: var(--fw-semibold);
}

.know-list a:hover {
    color: var(--accent-600);
}

.dev-list {
    list-style: none;
    display: grid;
    gap: 4px;
    font-size: var(--fs-sm);
    line-height: 1.6;
    color: var(--text-2);
}

.dev-list li {
    position: relative;
    padding-left: 14px;
}

.dev-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.app-hero-icon {
    width: clamp(96px, 10vw, 120px);
    height: auto;
    aspect-ratio: 1;
    padding: 8px;
    border-radius: 26px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.app-hero-body {
    min-width: 0;
}

.app-overview .app-badge {
    margin-bottom: 14px;
}

.app-overview h1 {
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
    font-weight: var(--fw-bold);
    letter-spacing: -0.03em;
    color: var(--navy-900);
    margin-bottom: 10px;
}

.app-hero-summary {
    font-size: var(--fs-md);
    color: var(--text-2);
    max-width: 640px;
    margin-bottom: 28px;
}

/* Official store badges (Google Play PNG / App Store SVG) — equal 40px height */
.store-badge {
    display: inline-flex;
    line-height: 0;
    border-radius: 6px;
    transition: transform 0.25s var(--ease), opacity 0.25s;
}

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

.app-hero-cta .store-badge img {
    height: 48px;
}

.store-badge:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.app-hero-cta,
.app-cta-buttons {
    gap: 12px;
    align-items: center;
}

/* ---- Carousel (shared by screenshots and reviews) ---- */
.carousel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.carousel-head .section-head {
    margin-bottom: 0;
    min-width: 0;
}

.carousel-head .section-subtitle {
    margin-top: 8px;
    font-size: var(--fs-base);
}

.carousel-head .link-quiet {
    white-space: nowrap;
}

.carousel-nav {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
    padding-bottom: 6px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--navy-900);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), opacity 0.2s;
}

.carousel-btn svg {
    width: var(--icon-btn);
    height: var(--icon-btn);
}

.carousel-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
}

.carousel-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.carousel {
    --per-view: 3;
    --gap: 16px;
    --bleed: 10px;                    /* room for card shadows inside the clipped viewport */
    position: relative;
}

.carousel-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: var(--bleed);
    margin: calc(var(--bleed) * -1);
    scroll-padding-inline-start: var(--bleed);
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.carousel-viewport:focus-visible {
    outline: none;
    border-radius: var(--card-radius);
}

.carousel-track {
    display: flex;
    align-items: stretch;
    gap: var(--gap);
}

.carousel-track > * {
    flex: 0 0 calc((100% - var(--gap) * (var(--per-view) - 1)) / var(--per-view));
    min-width: 0;
    scroll-snap-align: start;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: var(--space-5);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: var(--r-full);
    border: 0;
    background: var(--gray-300);
    cursor: pointer;
    transition: width 0.25s var(--ease), background 0.25s;
}

.carousel-dot.is-active {
    width: 24px;
    background: var(--primary);
}

.carousel.is-static .carousel-dots,
.carousel-nav[hidden] {
    display: none;
}

/* Fewer slides than the viewport holds: centre them instead of leaving a gap */
.carousel.is-static .carousel-track {
    justify-content: start;
}

/* ---- Screenshots ---- */
.app-shots {
    padding: var(--space-section) 0 var(--space-3);
    overflow: hidden;                 /* nothing in here can widen the page */
}

.carousel-shots {
    --per-view: 5;
}

.shot {
    margin: 0;
    aspect-ratio: 9 / 16;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: var(--navy-950);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}

.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.audience-list {
    list-style: none;
    display: grid;
    gap: 9px;
}

.audience-list li {
    position: relative;
    padding-left: 18px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--text);
    line-height: 1.5;
}

.audience-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.about-h {
    font-size: var(--fs-lg);
    letter-spacing: -0.01em;
    margin: 0 0 16px;
}

.check-grid + .topics-head {
    margin-top: var(--space-7);
}

.check-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 28px;
    margin-bottom: var(--space-7);
}

.check-list li {
    position: relative;
    padding-left: 30px;
    font-size: var(--fs-base);
    line-height: 1.55;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    background: var(--navy-700);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.5 14.5-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.5 14.5-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.topics-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.topics-count {
    font-size: var(--fs-sm);
    color: var(--text-3);
    white-space: nowrap;
}

.topic-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-list li {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    line-height: 1.5;
    color: var(--gray-700);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 6px 14px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.topic-list li[hidden] {
    display: none;
}

.topic-list [lang="hi"] {
    font-size: 0.95em;
    font-weight: var(--fw-regular);
    color: var(--text-3);
}

.topic-list li:hover {
    border-color: var(--navy-600);
    color: var(--navy-900);
    background: var(--navy-50);
}

.topics-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 8px 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--navy-700);
    transition: color 0.2s;
}

.topics-toggle:hover {
    color: var(--accent-600);
}

.topics-toggle svg {
    width: var(--icon-inline);
    height: var(--icon-inline);
    transition: transform 0.25s var(--ease);
}

.topics-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* ---- Reviews ---- */
.app-reviews {
    padding-top: 28px;
    background: var(--surface);
    overflow: hidden;
}

.carousel-reviews {
    --per-view: 3;
    --gap: 20px;
}

.stars {
    display: inline-flex;
    gap: 2px;
}

.stars span {
    color: var(--gray-200);
}

.stars span.on {
    color: var(--gold);
}

.stars-sm svg {
    width: 14px;
    height: 14px;
}

.review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--card-padding);
}

.review-quote {
    position: absolute;
    top: 18px;
    right: 20px;
    color: var(--navy-100);
}

.review-quote svg {
    width: 24px;
    height: 24px;
}

.review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-right: 28px;
}

.review-head > div:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.review-head strong {
    display: block;
    font-size: var(--fs-sm);
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-head span {
    font-size: var(--fs-xs);
    color: var(--text-3);
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: var(--fw-semibold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
}

.review-avatar-0 { background: var(--navy-900); }
.review-avatar-1 { background: #1E4E8C; }
.review-avatar-2 { background: #0F766E; }
.review-avatar-3 { background: #6D28D9; }
.review-avatar-4 { background: #B45309; }

.review-card p {
    flex: 1;
    font-size: var(--fs-sm);
    line-height: 1.7;
    color: var(--gray-700);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
    overflow: hidden;
}

.app-related {
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.app-related {
    padding: 28px 0 44px;
}

.app-related .section-head {
    margin-bottom: var(--space-6);
}

.app-related .apps-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Tighter card: no reserved lines, no button row height */
.app-related .app-card {
    gap: 12px;
    padding: 22px 24px;
}

.app-related .app-desc {
    min-height: 0;
}

.app-related .app-actions .link-quiet {
    min-height: 0;
    padding: 0;
}

.app-related .center-cta {
    margin-top: var(--space-6);
}

.app-related .apps-grid > .app-card:only-child {
    width: 100%;
    max-width: 560px;
    justify-self: center;
}

/* Closing download band */
/* .app-cta {
    padding-top: 0;
    background: var(--surface);
} */

.app-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 3vw, 40px);
    padding: clamp(28px, 4vw, 44px);
    border-radius: var(--r-xl);
    background: var(--navy-900);
    color: var(--on-dark-2);
    background-image:
        radial-gradient(520px 260px at 100% 0%, rgba(234, 107, 31, 0.22), transparent 60%),
        radial-gradient(420px 260px at 0% 100%, rgba(39, 75, 140, 0.45), transparent 60%);
}

.app-cta-box h2 {
    font-size: var(--fs-xl);
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.app-cta-box p {
    font-size: var(--fs-base);
}

.app-cta-buttons {
    flex: 0 0 auto;
}


/* ---- App page responsive ---- */
@media (max-width: 1024px) {
    .carousel-shots { --per-view: 4; }
    .carousel-reviews { --per-view: 2; }

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

    .overview-side {
        position: static;
    }

    .know-list {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 18px 28px;
    }
}

@media (max-width: 900px) {

    .app-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

}

@media (max-width: 768px) {
    .carousel-shots { --per-view: 3; --gap: 12px; }

    .carousel-head {
        align-items: center;
    }

    .carousel-head .section-subtitle {
        font-size: var(--fs-sm);
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 640px) {
    .carousel-shots { --per-view: 2; }
    .carousel-reviews { --per-view: 1; }

    .app-hero-main {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .app-hero-icon {
        width: 88px;
        border-radius: 20px;
    }


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


}

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 0.8fr;
    }

    .hero-visual {
        --pw: 164px;
        --drop: 36px;
    }

    .hero-visual::before {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-stats {
        justify-content: center;
    }

    .hero-stats {
        border-top: 0;
        padding-top: 0;
    }

    .hero-visual {
        order: -1;
        min-height: 0;
        margin-bottom: 12px;
    }

    .phones {
        width: auto;
        height: auto;
        display: flex;
        justify-content: center;
        gap: 14px;
    }

    .phone,
    .phone-a,
    .phone-b,
    .phone-c {
        position: static;
        width: 150px;
        height: 307px;
        padding: 8px;
        border-radius: 30px;
        transform: none;
        box-shadow:
            0 24px 48px rgba(15, 23, 42, 0.22),
            0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    }

    .phone-screen {
        border-radius: 23px;
    }

    .phone-notch {
        top: 8px;
        width: 60px;
        height: 16px;
        border-radius: 0 0 10px 10px;
    }

    .hero-visual:hover .phone-a,
    .hero-visual:hover .phone-b,
    .hero-visual:hover .phone-c {
        transform: none;
    }

    .hero-visual {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-visual::after {
        content: "";
        flex-basis: 100%;
        height: 0;
        order: 1;
    }

    .phones {
        order: 0;
    }

    .float-badge {
        position: static;
        order: 2;
        animation: none;
    }

    .about-intro {
        grid-template-columns: 1fr;
    }

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

    .about-collage {
        max-width: 420px;
        justify-self: center;
    }

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px var(--gutter) 20px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 12px 14px;
        border-radius: var(--r-sm);
        font-size: var(--fs-base);
    }

    .nav-links .nav-cta a {
        margin: 6px 0 0;
        text-align: center;
    }

    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .about-mission {
        flex-direction: column;
    }

    .hero-apps .container {
        gap: 14px;
    }
}

@media (hover: none) {
    .btn-sm,
    .btn-playstore.btn-sm,
    .link-quiet {
        min-height: 44px;
    }
}

@media (max-width: 600px) {
    .apps-grid {
    grid-template-columns: 1fr;
}
    .learn-grid {
        grid-template-columns: 1fr;
    }

    /* Category pills: one scrollable row instead of a tall stack */
    .cat-nav {
        display: flex;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 4px var(--gutter) 10px;
        margin-left: calc(var(--gutter) * -1);
        margin-right: calc(var(--gutter) * -1);
        max-width: none;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .cat-nav::-webkit-scrollbar {
        display: none;
    }

    .cat-nav a {
        flex: 0 0 auto;
    }

    .logo-mark { height: 36px; }
    .logo-name { font-size: var(--fs-md); }
    .logo-tag { display: none; }

    .hero-stat {
        padding-right: 16px;
        margin-right: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .fb-plugin {
        max-width: 100%;
    }

    .float-badge {
        padding: 8px 10px 8px 8px;
    }

    .float-badge span {
        display: none;
    }
}

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

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

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

/* Home hero on a phone-width screen (after the 900px rules so it wins) */
@media (max-width: 640px) {
    .hero {
        padding-top: 20px;
        overflow-x: clip;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding-bottom: 40px;
    }

    /* visual block: phones, then the two badges in one row.
       min-width: 0 stops the phones' intrinsic width from widening the page */
    .hero-visual {
        min-width: 0;
        gap: 14px 8px;
        margin-bottom: 22px;
    }

    .hero-visual::before {
        width: 260px;
        height: 260px;
    }

    /* three phones sized from the available width so they never crop */
    .phones {
        width: 100%;
        min-width: 0;
        gap: 8px;
    }

    .phone,
    .phone-a,
    .phone-b,
    .phone-c {
        flex: 0 1 104px;
        width: 104px;
        min-width: 0;
        max-width: calc((100% - 16px) / 3);
        height: auto;
        aspect-ratio: 104 / 213;
        padding: 6px;
        border-radius: 22px;
        box-shadow:
            0 16px 32px rgba(15, 23, 42, 0.18),
            0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    }

    .phone-screen {
        border-radius: 17px;
    }

    .phone-notch {
        top: 6px;
        width: 42px;
        height: 12px;
        border-radius: 0 0 8px 8px;
    }

    /* compact badges, side by side under the phones */
    .float-badge {
        gap: 8px;
        padding: 6px 12px 6px 7px;
        border-radius: var(--r-sm);
        box-shadow: var(--shadow-sm);
    }

    .float-badge strong {
        font-size: var(--fs-xs);
    }

    .float-badge span {
        display: block;
        font-size: 0.68rem;
    }

    .float-badge img,
    .float-star {
        width: 28px;
        height: 28px;
        border-radius: 7px;
    }

    .float-star svg {
        width: 15px;
        height: 15px;
    }

    /* copy: pull the eyebrow up to the heading, keep the heading on-screen */
    .eyebrow {
        margin-bottom: 14px;
        padding: 6px 12px 6px 10px;
        font-size: var(--fs-xs);
    }

    .hero h1 {
        font-size: clamp(2rem, 1.35rem + 3.6vw, 2.6rem);
        line-height: 1.08;
        margin-bottom: 14px;
        overflow-wrap: anywhere;
    }

    .hero p {
        font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
        margin-bottom: 20px;
    }

    .hero-actions {
        margin-bottom: 24px;
    }

    .hero-stats {
        gap: 12px 0;
    }
}

@media (max-width: 380px) {
    .float-badge span {
        display: none;
    }

    .float-badge {
        gap: 6px;
        padding: 5px 9px 5px 5px;
    }

    .float-badge img,
    .float-star {
        width: 24px;
        height: 24px;
        border-radius: 6px;
    }

    .float-star svg {
        width: 13px;
        height: 13px;
    }
}

/* =========================================================
   App page sections on small screens
   (kept after the earlier breakpoints so these rules win)
   ========================================================= */
@media (max-width: 640px) {
    /* nothing inside a page may widen it */
    html,
    body {
        overflow-x: clip;
    }

    .app-overview,
    .app-shots,
    .app-reviews,
    .app-cta,
    .app-related {
        padding-top: var(--space-section);
        padding-bottom: var(--space-section);
    }

    /* Carousel headers: title takes the full row, arrows drop to their own
       row underneath so the heading never gets squeezed into 3 lines */
    .carousel-head {
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 16px;
        margin-bottom: 16px;
    }

    .carousel-head .section-head {
        flex: 1 1 100%;
        max-width: none;
    }

    .carousel-head .section-title {
        font-size: clamp(1.55rem, 1.2rem + 2.2vw, 1.9rem);
        margin-bottom: 4px;
    }

    .carousel-head .section-subtitle {
        margin-top: 2px;
        font-size: var(--fs-sm);
    }

    .carousel-nav {
        margin-left: auto;
        padding-bottom: 0;
        gap: 10px;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
    }

    /* Screenshots: two phones per view, tight gap, no oversized radius */
    .app-shots {
        padding-bottom: 8px;
    }

    .carousel-shots {
        --per-view: 2;
        --gap: 10px;
        --bleed: 6px;
    }

    .shot {
        border-radius: 14px;
    }

    /* Reviews: one card per view */
    .app-reviews {
        padding-top: 20px;
    }

    .carousel-reviews {
        --gap: 12px;
        --bleed: 6px;
    }

    .review-card {
        padding: 18px;
    }

    .review-head {
        margin-bottom: 12px;
    }

    .review-card p {
        -webkit-line-clamp: 9;
    }

    /* Dots: bigger, with an invisible 32px tap target */
    .carousel-dots {
        gap: 10px;
        margin-top: 16px;
    }

    .carousel-dot {
        position: relative;
        width: 10px;
        height: 10px;
    }

    .carousel-dot.is-active {
        width: 26px;
    }

    .carousel-dot::after {
        content: "";
        position: absolute;
        inset: -11px -8px;
    }

    /* Download band */
    .app-cta-box {
        padding: 24px 20px;
        gap: 18px;
        border-radius: var(--r-lg);
    }

    .app-cta-box h2 {
        font-size: var(--fs-lg);
    }

    .app-cta-box p {
        font-size: var(--fs-sm);
    }

    .app-cta-buttons {
        width: 100%;
    }

    /* Related app */
    .app-related .section-head {
        margin-bottom: var(--space-5);
    }

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

    .app-related .center-cta {
        margin-top: var(--space-5);
    }
}

@media (max-width: 400px) {
    .carousel-shots {
        --gap: 8px;
    }

    .review-card {
        padding: 16px;
    }

    .review-avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .app-cta-box {
        padding: 22px 18px;
    }
}

/* App cards (home catalogue + "You may also like") on small screens:
   badge on its own line, smaller icon beside the title, tighter card */
@media (max-width: 600px) {
    .apps-grid {
        gap: 14px;
    }

    .app-card,
    .app-related .app-card {
        padding: 18px;
        gap: 14px;
    }

    .app-top {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 0;
        align-items: center;
    }

    .app-top > div {
        display: contents;
    }

    .app-top .app-badge {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: start;
        margin-bottom: 12px;
        padding: 3px 9px;
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .app-top .app-icon-img {
        grid-column: 1;
        grid-row: 2 / span 2;
        align-self: start;
        flex-basis: 56px;
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .app-top .app-title {
        grid-column: 2;
        grid-row: 2;
        font-size: var(--fs-base);
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .app-top .app-meta {
        grid-column: 2;
        grid-row: 3;
        margin-top: 6px;
        gap: 4px 10px;
    }

    .app-desc {
        min-height: 0;
    }

    .app-card .app-actions .link-quiet {
        min-height: 40px;
        padding-left: 0;
        padding-right: 0;
    }

    .apps-group-head {
        gap: 12px;
        margin-bottom: var(--space-4);
    }

    .apps-group-title {
        font-size: var(--fs-md);
    }
}