/* ==========================================================================
   Appify Studio — site styles
   ========================================================================== */

:root {
    --bg: #0B0B0F;
    --bg-raised: #111116;
    --surface: #16161C;
    --surface-2: #1C1C23;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #F3EFE8;
    --muted: #9C968E;
    --faint: #88847F;
    --accent: #FF5B1F;
    --accent-hover: #FF7240;
    --accent-soft: rgba(255, 91, 31, 0.14);
    --accent-glow: rgba(255, 91, 31, 0.35);

    --font-display: "Instrument Serif", "Times New Roman", serif;
    --font-sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --container: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --section-y: clamp(96px, 14vw, 180px);
    --radius: 20px;
    --radius-lg: 28px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 76px;
}

/* Base
   ========================================================================== */

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Subtle topographic texture across the whole page */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("../img/texture.webp") center / 640px repeat;
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

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

em {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

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

.section { padding: var(--section-y) 0; position: relative; }
.section + .section { padding-top: calc(var(--section-y) * 0.45); }

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
    z-index: 200;
}
.skip-link:focus { top: 16px; }

/* Type
   ========================================================================== */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 24px;
}
.eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--accent);
}
.hero__eyebrow::before { display: none; }

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 var(--accent-glow);
    animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--accent-glow); }
    70%, 100% { box-shadow: 0 0 0 10px rgba(255, 91, 31, 0); }
}

.section-title {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(38px, 5.6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.035em;
}
.section-title em { font-size: 1.08em; letter-spacing: -0.01em; }

.section-lead {
    font-size: clamp(17px, 1.5vw, 20px);
    color: var(--muted);
    max-width: 520px;
}

.section-head { margin-bottom: clamp(56px, 8vw, 104px); }
.section-head--split {
    display: grid;
    gap: 32px;
    align-items: end;
}
@media (min-width: 900px) {
    .section-head--split { grid-template-columns: 1.2fr 1fr; }
}

/* Buttons
   ========================================================================== */

.btn {
    --mx: 0px;
    --my: 0px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    padding: 0 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
    cursor: pointer;
    transform: translate(var(--mx), var(--my));
    transition: transform 0.35s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease);
}
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--lg { height: 64px; padding: 0 36px; font-size: 18px; }
.btn--block { width: 100%; }

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 40px -12px var(--accent-glow);
}
.btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 16px 50px -10px rgba(255, 91, 31, 0.55);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line-strong);
    color: var(--text);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.28); }

.btn__arrow {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.35s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Header
   ========================================================================== */

.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    transition: background-color 0.4s, border-color 0.4s, transform 0.5s var(--ease);
    border-bottom: 1px solid transparent;
}
.header.is-scrolled {
    background: rgba(11, 11, 15, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--line);
}
.header.is-hidden { transform: translateY(-100%); }

.header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    letter-spacing: -0.02em;
    line-height: 1;
}
/* The mark image has transparent padding around the glass "A" — pull it in. */
.logo__mark {
    width: 44px;
    height: 44px;
    margin: -6px -4px -6px -6px;
    transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.logo:hover .logo__mark {
    transform: translateY(-2px) rotate(-3deg);
    filter: drop-shadow(0 0 10px var(--accent-glow));
}
/* Wordmark: bold "Appify" + light "Studio", with an orange dot on the i — as in the logo. */
.logo__word { display: inline-flex; gap: 0.26em; }
.logo__bold { font-weight: 600; }
.logo__light { font-weight: 300; }
.logo__i { position: relative; }
.logo__i::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.02em;
    width: 0.2em;
    height: 0.2em;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(-50%);
}
.footer .logo { font-size: 24px; }
.footer .logo__mark { width: 56px; height: 56px; }

.nav {
    display: none;
    gap: 4px;
    margin-left: auto;
}
.nav a {
    padding: 8px 14px;
    font-size: 15px;
    color: var(--muted);
    border-radius: 999px;
    transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a.is-active { color: var(--text); }

.header__cta { display: none; }

.header__langs {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-strong);
}
.header__lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    border-radius: 999px;
    transition: color 0.2s, background-color 0.2s;
    text-decoration: none;
    line-height: 1;
}
.header__lang:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}
.header__lang.is-active,
.header__lang[aria-current] {
    color: #0b0b0f;
    background: var(--text);
    font-weight: 600;
}

.menu-toggle {
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
    display: grid;
    place-content: center;
    gap: 6px;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.4s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 959px) {
    .header__inner { gap: 12px; }
    .header__langs { margin-left: auto; }
    .menu-toggle { margin-left: 0; }
}

@media (min-width: 960px) {
    .nav, .header__cta { display: flex; }
    .header__cta { margin-left: 8px; }
    .menu-toggle { display: none; }
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(11, 11, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
    font-size: clamp(36px, 10vw, 56px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.25;
    padding: 4px 0;
    border-bottom: 1px solid var(--line);
}
.mobile-menu__langs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    margin-top: auto;
    margin-bottom: 12px;
}
.mobile-menu__lang {
    font-size: 15px;
    color: var(--muted);
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-strong);
    transition: color 0.2s, background-color 0.2s;
    text-decoration: none;
}
.mobile-menu__lang:hover {
    color: var(--text);
}
.mobile-menu__lang.is-active,
.mobile-menu__lang[aria-current] {
    color: #0b0b0f;
    background: var(--text);
    font-weight: 600;
}
.mobile-menu__mail { color: var(--muted); }
body.menu-open { overflow: hidden; }

/* Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: calc(var(--header-h) + 64px) 0 40px;
    overflow: hidden;
    isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
}
.hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(11, 11, 15, 0.92) 0%, rgba(11, 11, 15, 0.6) 38%, rgba(11, 11, 15, 0) 70%),
        linear-gradient(0deg, var(--bg) 0%, rgba(11, 11, 15, 0) 35%),
        linear-gradient(180deg, rgba(11, 11, 15, 0.6) 0%, rgba(11, 11, 15, 0) 20%);
}
@media (max-width: 720px) {
    .hero__video { object-position: center; }
    .hero__shade {
        background:
            linear-gradient(0deg, var(--bg) 8%, rgba(11, 11, 15, 0.75) 55%, rgba(11, 11, 15, 0.35) 100%);
    }
}

.hero__content { margin-bottom: clamp(40px, 6vh, 80px); }
@media (max-width: 560px) { .hero__eyebrow-extra { display: none; } }

.hero__title {
    font-size: clamp(48px, min(8.4vw, 12.5vh), 124px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.045em;
    max-width: 12ch;
    margin-bottom: clamp(20px, 3.5vh, 32px);
}
.hero__title em { letter-spacing: -0.02em; font-size: 1.06em; }

.hero__lead {
    font-size: clamp(17px, 1.6vw, 21px);
    color: rgba(243, 239, 232, 0.78);
    max-width: 540px;
    margin-bottom: clamp(28px, 4.5vh, 40px);
}

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

.hero__meta {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 16px clamp(24px, 5vw, 72px);
    padding-top: 28px;
    border-top: 1px solid var(--line);
    position: relative;
}
.hero__meta-item { display: flex; flex-direction: column; gap: 2px; }
.hero__meta-item strong {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1;
    color: var(--text);
}
.hero__meta-item span { font-size: 14px; color: var(--muted); }

.hero__scroll {
    position: absolute;
    right: var(--gutter);
    bottom: 0;
    width: 26px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    display: none;
}
.hero__scroll span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 3px;
    height: 8px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--accent);
    animation: scroll-dot 2s var(--ease) infinite;
}
@keyframes scroll-dot {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(14px); }
}
@media (min-width: 900px) { .hero__scroll { display: block; } }
@media (max-width: 560px) {
    .hero__meta { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .hero__meta-item span { font-size: 12px; line-height: 1.35; }
}

/* Hero entrance — words of the title rise in, then the other items fade up */
.js [data-split] .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}
.js [data-split] .word > span {
    display: inline-block;
    transform: translateY(105%);
    transition: transform 1.1s var(--ease);
    transition-delay: calc(var(--i) * 55ms + 150ms);
}
.js .is-loaded [data-split] .word > span { transform: none; }

.js [data-hero-item] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js .is-loaded [data-hero-item] { opacity: 1; transform: none; }
.js .is-loaded .hero__lead { transition-delay: 0.55s; }
.js .is-loaded .hero__actions { transition-delay: 0.7s; }
.js .is-loaded .hero__meta { transition-delay: 0.9s; }

/* Marquee
   ========================================================================== */

.marquee {
    border-block: 1px solid var(--line);
    padding: 26px 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; }
.marquee__list li {
    display: flex;
    align-items: center;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--faint);
    padding: 0 28px;
    transition: color 0.3s;
}
.marquee__list li::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--accent);
    opacity: 0.6;
    margin-left: 56px;
}
.marquee__list li:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Intro statement
   ========================================================================== */

.intro__text {
    font-size: clamp(30px, 4.4vw, 60px);
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: -0.03em;
    max-width: 1080px;
}
.js [data-words] .w { color: rgba(243, 239, 232, 0.16); transition: color 0.4s; }
.js [data-words] .w.is-lit { color: var(--text); }

/* Services
   ========================================================================== */

.service {
    display: grid;
    gap: clamp(28px, 4vw, 72px);
    align-items: center;
    padding: clamp(40px, 6vw, 72px) 0;
    border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }

@media (min-width: 900px) {
    .service { grid-template-columns: 1.15fr 1fr; }
    .service--flip .service__media { order: 2; }
}

.service__media {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    isolation: isolate;
}
.service__media video,
.service__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 1.4s var(--ease);
}
.service:hover .service__media video,
.service:hover .service__media img { transform: scale(1); }
.service__media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(11, 11, 15, 0) 60%, rgba(11, 11, 15, 0.4));
    pointer-events: none;
}

.service__num {
    display: block;
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 16px;
}
.service__title {
    font-size: clamp(32px, 3.6vw, 48px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 16px;
}
.service__lead {
    font-size: clamp(17px, 1.4vw, 19px);
    color: var(--muted);
    margin-bottom: 28px;
    max-width: 440px;
}
.service__list li {
    display: flex;
    gap: 14px;
    align-items: baseline;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-size: 16px;
}
.service__list li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--accent);
    transform: translateY(-2px);
}

/* Work
   ========================================================================== */

.work__stage {
    position: relative;
    max-width: 1440px;
    margin: 0 auto clamp(72px, 10vw, 140px);
    overflow: hidden;
    mask-image: radial-gradient(ellipse 75% 80% at 50% 50%, #000 55%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 50%, #000 55%, transparent 100%);
}
.work__stage img { width: 100%; height: auto; transform: scale(1.06); }
.work__stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, var(--bg) 0%, rgba(11, 11, 15, 0) 18%, rgba(11, 11, 15, 0) 78%, var(--bg) 100%),
        linear-gradient(90deg, var(--bg) 0%, rgba(11, 11, 15, 0) 14%, rgba(11, 11, 15, 0) 86%, var(--bg) 100%);
    pointer-events: none;
}

/* App Store gallery: a swipeable row on phones, five columns on desktop */
.store { margin-bottom: clamp(80px, 11vw, 140px); }
.store__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}
.store__head .eyebrow { white-space: nowrap; }
.store__hint { font-size: 14px; color: var(--faint); white-space: nowrap; }
.store__list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(62vw, 260px);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin: 0 calc(var(--gutter) * -1);
    padding: 8px var(--gutter) 24px;
    scrollbar-width: none;
}
.store__list::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) {
    .store__hint { display: none; }
    .store__list {
        grid-auto-flow: row;
        grid-template-columns: repeat(5, 1fr);
        overflow: visible;
        margin: 0;
        padding: 8px 0 0;
    }
    /* Stagger the middle cards for a less rigid row */
    .store__item:nth-child(even) { margin-top: 48px; }
}
.store__item { scroll-snap-align: start; }
.store__item > img {
    width: 100%;
    height: auto;
    aspect-ratio: 1284 / 2778;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid var(--line-strong);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
    transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease), border-color 0.4s;
}
.store__item:hover > img {
    transform: translateY(-8px);
    border-color: rgba(255, 91, 31, 0.45);
    box-shadow: 0 40px 70px -30px rgba(255, 91, 31, 0.35);
}
.store__name { margin-top: 16px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.store__cat { font-size: 14px; color: var(--muted); }

.spotlight {
    display: grid;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    margin-bottom: clamp(72px, 10vw, 120px);
}
@media (min-width: 900px) { .spotlight { grid-template-columns: 0.9fr 1fr; } }
.spotlight__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    max-width: 520px;
}
.spotlight__media img { width: 100%; height: auto; }
.spotlight__title {
    font-size: clamp(32px, 3.6vw, 48px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 20px;
}
.spotlight__body p:not(.eyebrow) { color: var(--muted); margin-bottom: 28px; max-width: 480px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    color: var(--muted);
}

.apps {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.app {
    position: relative;
    padding: 28px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface), var(--bg-raised));
    border: 1px solid var(--line);
    overflow: hidden;
    transition: border-color 0.4s, transform 0.6s var(--ease);
}
.app::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--px, 50%) var(--py, 0%), var(--accent-soft), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.app:hover { border-color: rgba(255, 91, 31, 0.35); transform: translateY(-4px); }
.app:hover::before { opacity: 1; }

.app__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid rgba(255, 140, 90, 0.5);
    color: var(--accent);
    font-size: 22px;
    font-weight: 500;
    box-shadow: 0 0 30px -6px var(--accent-glow);
    margin-bottom: 24px;
}
.app__cat {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 8px;
}
.app__name {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 10px;
}
.app__desc { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.app .tags li { font-size: 12px; padding: 3px 10px; }

.more-apps {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 16px;
}
@media (min-width: 900px) { .more-apps { grid-template-columns: 220px 1fr; } }
.more-apps__label { font-size: 14px; color: var(--faint); }
.more-apps__list { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.more-apps__list li { color: var(--muted); font-size: 16px; }

/* Studio
   ========================================================================== */

.studio__grid {
    display: grid;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
    margin-bottom: clamp(64px, 9vw, 120px);
}
@media (min-width: 900px) { .studio__grid { grid-template-columns: 1.1fr 1fr; } }
.studio__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 4 / 3;
}
.studio__media img { width: 100%; height: 115%; object-fit: cover; }
.studio__body .section-title { margin-bottom: 28px; font-size: clamp(36px, 4.6vw, 64px); }

.pillars {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
    padding: 40px 0;
    border-bottom: 1px solid var(--line);
}
@media (min-width: 800px) {
    .pillar { padding: 48px 40px 8px; border-bottom: 0; border-left: 1px solid var(--line); }
    .pillar:first-child { padding-left: 0; border-left: 0; }
}
.pillar__num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(64px, 7vw, 96px);
    line-height: 1;
    color: var(--text);
    margin-bottom: 20px;
}
.pillar h3 { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 15px; max-width: 320px; }

/* Process
   ========================================================================== */

.steps {
    display: grid;
    gap: 16px;
    counter-reset: step;
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
    position: relative;
    padding: 28px 28px 32px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface), var(--bg-raised));
    border: 1px solid var(--line);
    transition: border-color 0.4s, transform 0.6s var(--ease);
}
.step:hover { border-color: rgba(255, 91, 31, 0.35); transform: translateY(-4px); }
.step__icon {
    width: 132px;
    height: 132px;
    margin: -8px 0 12px -12px;
    mask-image: radial-gradient(circle at 50% 50%, #000 45%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 45%, transparent 72%);
    transition: transform 0.8s var(--ease);
}
.step:hover .step__icon { transform: translateY(-6px) rotate(-4deg); }
.step__num {
    position: absolute;
    top: 28px;
    right: 28px;
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--faint);
}
.step h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* CTA
   ========================================================================== */

.cta {
    position: relative;
    padding: clamp(120px, 18vw, 240px) 0;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.cta__media { position: absolute; inset: 0; z-index: -1; }
.cta__media video { width: 100%; height: 100%; object-fit: cover; }
.cta__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, var(--bg) 0%, rgba(11, 11, 15, 0.35) 30%, rgba(11, 11, 15, 0.35) 70%, var(--bg) 100%);
}
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__title {
    font-size: clamp(48px, 9vw, 136px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.045em;
    margin-bottom: 28px;
}
.cta__lead { color: rgba(243, 239, 232, 0.78); font-size: clamp(17px, 1.6vw, 21px); max-width: 520px; margin-bottom: 44px; }

/* Contact
   ========================================================================== */

.contact__grid {
    display: grid;
    gap: clamp(48px, 7vw, 112px);
}
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1.15fr; } }
.contact__intro .section-title { font-size: clamp(38px, 4.8vw, 68px); margin-bottom: 24px; }

.contact__facts { margin: 48px 0 0; display: grid; gap: 0; }
.contact__facts div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}
.contact__facts dt { color: var(--faint); font-size: 14px; }
.contact__facts dd { margin: 0; }
.contact__facts a { border-bottom: 1px solid var(--line-strong); transition: border-color 0.2s, color 0.2s; }
.contact__facts a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 480px) { .contact__facts div { grid-template-columns: 1fr; gap: 4px; } }

.form {
    padding: clamp(24px, 4vw, 48px);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface), var(--bg-raised));
    border: 1px solid var(--line);
    display: grid;
    gap: 20px;
}
.form__group { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.form__group legend, .field label {
    display: block;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 10px;
    padding: 0;
}
.optional { color: var(--faint); }
.form__row { display: grid; gap: 20px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    font-size: 16px;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239C968E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 44px;
}
.field select option { background: var(--surface); color: var(--text); }
.field ::placeholder { color: var(--faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 91, 31, 0.04);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.field .is-invalid { border-color: #ff6b6b; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    font-size: 15px;
    color: var(--muted);
    transition: all 0.25s var(--ease);
}
.chip:hover span { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.chip input:checked + span {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--text);
}
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form__error { color: #ff8a8a; font-size: 14px; }
.form__note { color: var(--muted); font-size: 14px; text-align: center; }
.form__note a { color: var(--text); border-bottom: 1px solid var(--line-strong); }

/* Footer
   ========================================================================== */

.footer {
    position: relative;
    padding-top: clamp(72px, 10vw, 120px);
    border-top: 1px solid var(--line);
    overflow: hidden;
}
.footer__top {
    display: grid;
    gap: 40px;
    padding-bottom: 48px;
}
@media (min-width: 800px) { .footer__top { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.footer__brand p { color: var(--muted); margin: 20px 0 16px; max-width: 300px; font-size: 15px; }
.footer__mail { font-size: 18px; border-bottom: 1px solid var(--line-strong); transition: color 0.2s, border-color 0.2s; }
.footer__mail:hover { color: var(--accent); border-color: var(--accent); }
.footer__col h4 {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 18px;
}
.footer__col li + li { margin-top: 10px; }
.footer__col a { color: var(--muted); font-size: 15px; transition: color 0.2s; }
.footer__col a:hover { color: var(--text); }

.legal {
    border-block: 1px solid var(--line);
    padding: 20px 0;
}
.legal summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 15px;
}
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after { content: "+"; font-size: 22px; line-height: 1; transition: transform 0.3s var(--ease); }
.legal[open] summary::after { transform: rotate(45deg); }
.legal summary:hover { color: var(--text); }
.legal__list {
    display: grid;
    gap: 10px 32px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    padding-top: 24px;
}
.legal__list a { color: var(--faint); font-size: 14px; transition: color 0.2s; }
.legal__list a:hover { color: var(--text); }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 24px 0;
    font-size: 14px;
    color: var(--faint);
}
.footer__top-link:hover { color: var(--text); }

.footer__word {
    font-size: clamp(120px, 27vw, 420px);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 0.75;
    text-align: center;
    margin-bottom: -0.06em;
    background: linear-gradient(180deg, rgba(243, 239, 232, 0.08), rgba(243, 239, 232, 0));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    user-select: none;
    pointer-events: none;
}

/* Scroll reveal
   ========================================================================== */

.js .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
    transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

[data-parallax] { will-change: transform; }

/* Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
    .marquee__track { animation: none; }
    [data-parallax] { transform: none !important; }
}

/* App icons
   ========================================================================== */

.app__logo {
    width: 56px;
    height: 56px;
    border-radius: 22.37%;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: transform 0.6s var(--ease);
}
.app:hover .app__logo { transform: translateY(-3px) rotate(-4deg); }

.spotlight__logo {
    width: 72px;
    height: 72px;
    border-radius: 22.37%;
    margin-bottom: 20px;
    box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.store__meta { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.store__meta .store__name { margin-top: 0; }
.store__logo {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 22.37%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.more-apps__list li { display: inline-flex; align-items: center; gap: 10px; }
.more-apps__logo {
    width: 24px;
    height: 24px;
    border-radius: 22.37%;
}

/* ==========================================================================
   Multi-page site: header dropdowns, breadcrumbs, footer legal, 404
   ========================================================================== */

.nav { align-items: center; }
.nav__group { position: relative; }
.nav__group > summary {
    list-style: none;
    cursor: pointer;
    padding: 8px 14px;
    font-size: 15px;
    color: var(--muted);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s, background-color 0.2s;
}
.nav__group > summary::-webkit-details-marker { display: none; }
.nav__group > summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.3s var(--ease);
}
.nav__group[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.nav__group > summary:hover,
.nav__group[open] > summary { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    padding: 8px;
    display: grid;
    border-radius: 18px;
    background: rgba(22, 22, 28, 0.96);
    border: 1px solid var(--line-strong);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.nav .nav__panel a { border-radius: 10px; padding: 10px 14px; }
.nav a[aria-current="page"] { color: var(--text); }

.mobile-menu { overflow-y: auto; }
.mobile-menu__nav--grouped a { font-size: clamp(24px, 7vw, 34px); }
.mobile-menu__label {
    margin-top: 20px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Breadcrumbs */
.crumbs { padding-top: calc(var(--header-h) + 28px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--faint); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "›"; color: var(--faint); }
.crumbs a { color: var(--muted); transition: color 0.2s; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }

/* Footer additions */
.footer__h {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 18px;
}
.footer__legal {
    padding: 20px 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--faint);
    border-bottom: 1px solid var(--line);
}
.footer__legal a { color: var(--muted); }
.footer__legal a:hover { color: var(--text); }
.footer__langs { display: flex; gap: 16px; }
.footer__langs a { color: var(--faint); transition: color 0.2s; }
.footer__langs a:hover, .footer__langs [aria-current] { color: var(--text); }

/* 404 */
.notfound {
    min-height: 80vh;
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}
.notfound__code {
    font-family: var(--font-display);
    font-size: clamp(96px, 18vw, 200px);
    line-height: 0.9;
    color: var(--accent);
}
.notfound__links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 8px 24px;
    max-width: 820px;
}
.notfound__links a { color: var(--muted); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.notfound__links a:hover { color: var(--accent); border-color: var(--accent); }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Arabic pages */
:lang(ar) body, body:lang(ar) { font-family: "IBM Plex Sans Arabic", var(--font-sans); }
[dir="rtl"] .eyebrow::before { order: 2; }
[dir="rtl"] .nav__panel { left: auto; right: 0; }

/* ==========================================================================
   Service pages (src/templates/service.py)
   ========================================================================== */

.svc-hero {
    display: grid;
    gap: 40px;
    align-items: start;
    padding-top: 32px;
    padding-bottom: clamp(56px, 8vw, 96px);
}
@media (min-width: 1000px) { .svc-hero { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 64px; } }
.svc-hero__title {
    font-size: clamp(40px, 5.6vw, 72px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}
.answer {
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.6;
    color: rgba(243, 239, 232, 0.86);
    max-width: 640px;
    padding-left: 20px;
    border-left: 2px solid var(--accent);
    margin-bottom: 32px;
}
.svc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.facts {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface), var(--bg-raised));
    border: 1px solid var(--line);
}
.facts__title { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.facts dl { margin: 0; }
.facts dl > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--faint); font-size: 14px; }
.facts dd { margin: 0; font-size: 15px; }

.svc-body > .block > * { max-width: 1040px; }
.svc-body .plans, .svc-body .psteps { max-width: none; }
/* Long values (and unfilled {{placeholders}}) wrap instead of widening the page. */
.plan__price, .pstep__time, .facts dd, .kv dd, .answer { overflow-wrap: anywhere; }
.pstep__meta { flex-wrap: wrap; }
.block { padding: clamp(48px, 7vw, 80px) 0; border-top: 1px solid var(--line); }
.block__title {
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    max-width: 820px;
}
.block__title--sm { font-size: 22px; }
.block__lead { color: var(--muted); font-size: 18px; max-width: 720px; margin-bottom: 32px; }
.block__note { color: var(--faint); font-size: 14px; margin-top: 20px; }
.block p + p { margin-top: 16px; }
.block > p:not(.block__lead):not(.block__note) { color: var(--muted); max-width: 760px; }

.quotes { display: grid; gap: 12px; }
@media (min-width: 800px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quotes li {
    padding: 20px 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 21px;
    line-height: 1.35;
    color: var(--text);
}

.features { display: grid; gap: 16px; }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-raised)); }
.feature h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

.kv { margin: 0 0 24px; max-width: 820px; }
.kv > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .kv > div, .facts dl > div { grid-template-columns: 1fr; gap: 4px; } }
.kv dt { color: var(--faint); font-size: 14px; }
.kv dd { margin: 0; }

.psteps { display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 760px) { .psteps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .psteps { grid-template-columns: repeat(4, 1fr); } }
.pstep { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.pstep__meta { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 16px; font-size: 13px; }
.pstep__num { font-family: var(--font-display); font-size: 22px; color: var(--accent); line-height: 1; }
.pstep__time { color: var(--muted); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); }
.pstep h3 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.pstep p { color: var(--muted); font-size: 15px; }

.plans { display: grid; gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.plan { position: relative; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.plan--featured { border-color: rgba(255, 91, 31, 0.55); box-shadow: 0 30px 70px -40px var(--accent-glow); }
.plan__badge { position: absolute; top: -12px; left: 24px; font-size: 12px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: #fff; }
.plan__name { font-size: 22px; font-weight: 500; }
.plan__for { color: var(--muted); font-size: 14px; margin: 6px 0 20px; min-height: 2.6em; }
.plan__price { font-family: var(--font-display); font-size: 34px; line-height: 1.1; margin-bottom: 20px; }
.plan__from, .plan__cur { font-family: var(--font-sans); font-size: 13px; color: var(--muted); }
.plan__from { display: block; }
.plan__list li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; display: flex; gap: 10px; }
.plan__list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 2px; background: var(--accent); }

.proof__apps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); margin-bottom: 20px; }
.proof__app { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.proof__app img { width: 48px; height: 48px; border-radius: 22.37%; flex: none; }
.proof__app span { display: flex; flex-direction: column; line-height: 1.3; }
.proof__app small { color: var(--muted); font-size: 13px; }
.link-arrow { color: var(--text); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.link-arrow::after { content: " →"; }

.faq { display: grid; gap: 0; max-width: 860px; }
.qa { padding: 24px 0; border-top: 1px solid var(--line); }
.qa h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 10px; }
.qa p { color: var(--muted); }

.related ul { display: flex; flex-wrap: wrap; gap: 10px; }
.related a { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); font-size: 15px; transition: border-color 0.2s, color 0.2s; }
.related a:hover { border-color: var(--accent); color: var(--accent); }

.cta-panel { display: grid; gap: 40px; }
@media (min-width: 960px) { .cta-panel { grid-template-columns: 1fr 1.15fr; } }
.cta-panel__intro p { color: var(--muted); }
.cta-panel__actions { display: grid; gap: 14px; margin-top: 28px; justify-items: start; }
.cta-panel__phone, .cta-panel__mail { font-size: 15px; }
.cta-phone, .cta-panel__mail a { color: var(--text); border-bottom: 1px solid var(--line-strong); }

.byline { padding: 32px 0 64px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.byline strong { color: var(--muted); font-weight: 500; }

/* WhatsApp buttons */
.btn--wa { background: #1FA855; color: #fff; }
.btn--wa:hover { background: #24BD61; }
.btn--wa-ghost .wa-icon { color: #25D366; }
.wa-icon { width: 20px; height: 20px; fill: currentColor; flex: none; }
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 80;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #1FA855;
    color: #fff;
    box-shadow: 0 14px 40px -10px rgba(31, 168, 85, 0.6);
    transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .wa-icon { width: 28px; height: 28px; }

/* Tables (comparisons, price grids) */
.table-wrap { overflow-x: auto; margin: 8px 0 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); font-weight: 500; background: var(--surface); }
.table tbody th { font-weight: 500; }
.table td { color: var(--muted); }
.table tr:last-child td, .table tr:last-child th { border-bottom: 0; }
.steps-list { counter-reset: s; display: grid; gap: 12px; max-width: 820px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; color: var(--muted); }
.steps-list li::before { content: counter(s); font-family: var(--font-display); font-size: 24px; color: var(--accent); line-height: 1.2; }
.steps-list strong { color: var(--text); font-weight: 500; }

/* Homepage (French) */
.hero__title--long { max-width: 14ch; font-size: clamp(44px, min(7.2vw, 11.5vh), 108px); }
.pillar-groups { display: grid; gap: 40px; }
@media (min-width: 900px) { .pillar-groups { grid-template-columns: 1fr 1fr; gap: 48px 40px; } }
.pillar-group__title { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; font-weight: 500; }
.pillar-cards { display: grid; gap: 10px; }
.pillar-card {
    display: grid;
    gap: 4px;
    padding: 18px 48px 18px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface), var(--bg-raised));
    position: relative;
    transition: border-color 0.3s, transform 0.4s var(--ease);
}
.pillar-card::after { content: "→"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--faint); transition: color 0.3s, transform 0.3s var(--ease); }
.pillar-card:hover { border-color: rgba(255, 91, 31, 0.45); transform: translateY(-2px); }
.pillar-card:hover::after { color: var(--accent); transform: translate(4px, -50%); }
.pillar-card__name { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.pillar-card__desc { font-size: 14px; color: var(--muted); }
.page--home .svc-body > .block > * { max-width: 1040px; }

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.quotes--plain li { font-family: var(--font-sans); font-size: 16px; }
.section-head .section-title + .section-lead { margin-top: 24px; }
.pillar-cards--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

/* About, app pages, articles */
.founder { display: grid; gap: 24px; align-items: start; max-width: 860px; }
@media (min-width: 700px) { .founder { grid-template-columns: 220px 1fr; } }
.photo-placeholder { aspect-ratio: 4 / 5; border-radius: var(--radius); border: 1px dashed var(--line-strong); display: grid; place-items: center; color: var(--faint); font-size: 13px; padding: 12px; text-align: center; overflow-wrap: anywhere; }
.founder__name { font-size: 22px; font-weight: 500; }
.founder__role { color: var(--accent); font-size: 14px; margin-bottom: 12px; }
.founder p:last-child { color: var(--muted); }
.app__links { margin-top: 16px; font-size: 14px; color: var(--faint); }
.app__links a { color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.app__links a:hover { color: var(--text); }
.app__name a:hover { color: var(--accent); }
.app-hero__id { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.app-hero__id .eyebrow { margin: 0; }
.app-hero__icon { width: 56px; height: 56px; border-radius: 22.37%; }
.app-hero .tags { margin-bottom: 28px; }
.app-hero__visual { margin: 0; justify-self: center; max-width: 300px; }
.app-hero__visual img { width: 100%; height: auto; border-radius: 26px; border: 1px solid var(--line-strong); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.svc-hero--single { grid-template-columns: 1fr; }
.svc-hero--single .svc-hero__text { max-width: 860px; }
.article-meta { color: var(--faint); font-size: 14px; margin: -8px 0 24px; }
.article-meta strong { color: var(--muted); font-weight: 500; }
.article-body .block__lead { color: var(--muted); }
.money-box { margin: 8px 0 0; padding: 28px; border-radius: var(--radius-lg); border: 1px solid rgba(255, 91, 31, 0.45); background: linear-gradient(180deg, rgba(255, 91, 31, 0.08), transparent); display: grid; gap: 12px; justify-items: start; }
.money-box__label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.money-box__text { font-size: 18px; max-width: 680px; }
.post-list { display: grid; gap: 16px; }
@media (min-width: 800px) { .post-list { grid-template-columns: 1fr 1fr; } }
.post-card { display: grid; gap: 10px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-raised)); transition: border-color 0.3s; }
.post-card:hover { border-color: rgba(255, 91, 31, 0.45); }
.post-card__meta { font-size: 13px; color: var(--faint); }
.post-card__title { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.post-card__desc { color: var(--muted); font-size: 15px; }
/* Pages without breadcrumbs start below the fixed header */
main > .svc-hero:first-child { padding-top: calc(var(--header-h) + 48px); }
/* The logo is a Latin wordmark: keep it left-to-right on Arabic pages */
.logo { direction: ltr; }
.btn.is-disabled { opacity: 0.6; cursor: default; box-shadow: none; }

/* Accessibility (WCAG AA contrast): dark text on the bright orange keeps the brand
   colour and reaches 6.3:1; WhatsApp green darkened to 4.5:1; links in running
   text are underlined, not distinguished by colour alone. */
.btn--primary, .btn--primary:hover, .plan__badge, .skip-link { color: #0B0B0F; }
.btn--wa { background: #198844; }
.btn--wa:hover { background: #1E9A4E; }
.wa-float { background: #198844; }
.footer__legal a, .faq a, .block p a:not(.btn):not(.link-arrow), .feature p a, .qa p a, .kv a, .answer a, .block__lead a { text-decoration: underline; text-underline-offset: 3px; }

/* Contact form: honeypot hidden from people, success message */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.form { position: relative; }
.form__note.is-success { text-align: left; font-size: 18px; color: var(--text); padding: 24px; border-radius: var(--radius); border: 1px solid rgba(31, 168, 85, 0.5); background: rgba(31, 168, 85, 0.08); }
[dir="rtl"] .form__note.is-success { text-align: right; }
.btn:disabled { opacity: 0.7; cursor: progress; }
.form > [hidden] { display: none !important; }
/* Arabic: the display serif has no Arabic glyphs; accent words keep the colour, use the Arabic font */
[dir="rtl"] em { font-family: inherit; font-style: normal; font-weight: 600; }
[dir="rtl"] .hero__title, [dir="rtl"] .section-title, [dir="rtl"] .svc-hero__title { letter-spacing: 0; line-height: 1.25; }
[dir="rtl"] .quotes li { font-family: inherit; font-size: 18px; }
