/* obtenirapp.com — 2026 homepage redesign (scoped to homepage: body.home-2026) */

:root {
    --brand: #00a445;
    --brand-dark: #007434;
    --brand-ink: #053b24;
    --brand-soft: #e9f8ef;
    --ink: #0f172a;
    --ink-2: #1e293b;
    --muted: #64748b;
    --line: #e5ebee;
    --bg: #ffffff;
    --bg-alt: #f5f8f6;
    --star: #f5a623;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-md: 0 12px 32px rgba(15, 23, 42, .09);
    --header-h: 66px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --container: 1180px;
}

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

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

body.home-2026 {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

body.home-2026 img { display: block; max-width: 100%; height: auto; }
body.home-2026 a { color: inherit; text-decoration: none; }
body.home-2026 h1,
body.home-2026 h2,
body.home-2026 h3,
body.home-2026 p { margin: 0; }
body.home-2026 button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

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

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header-h);
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid transparent;
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 150px; height: 25px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-2);
    transition: background-color .18s ease, color .18s ease;
}
.main-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
body.home-2026 a.btn-solid { color: #fff; }
.btn-solid { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(0, 164, 69, .25); }
.btn-solid:hover { background: var(--brand-dark); box-shadow: 0 8px 20px rgba(0, 116, 52, .3); }
.btn-ghost { color: var(--ink-2); border: 1px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: #cbd5db; background: #f8faf9; }
.btn-lg { padding: 13px 24px; font-size: 15px; }

.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line);
    align-items: center; justify-content: center;
    flex: none;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Mobile drawer ---------- */
.drawer {
    position: fixed; inset: 0 auto 0 0; z-index: 60;
    width: min(320px, 86vw);
    padding: 22px 22px 30px;
    background: #fff;
    box-shadow: 24px 0 60px rgba(15, 23, 42, .18);
    transform: translateX(-102%);
    transition: transform .26s cubic-bezier(.4, 0, .2, 1);
    display: flex; flex-direction: column; gap: 8px;
    overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-close { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); }
.drawer-close svg { width: 18px; height: 18px; }
.drawer a.drawer-link {
    padding: 12px 14px; border-radius: 12px; font-weight: 600; color: var(--ink-2);
}
.drawer a.drawer-link:hover { background: var(--bg-alt); }
.drawer .drawer-cta { margin-top: 8px; display: grid; gap: 10px; }
.drawer .btn { width: 100%; }

.drawer-overlay {
    position: fixed; inset: 0; z-index: 55;
    background: rgba(15, 23, 42, .45);
    opacity: 0; visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 72px;
    color: #fff;
    background:
        radial-gradient(820px 420px at 82% -10%, rgba(120, 255, 190, .28), transparent 62%),
        radial-gradient(620px 400px at 6% 110%, rgba(0, 255, 153, .18), transparent 60%),
        linear-gradient(135deg, #04331f 0%, #05603a 48%, #00a445 100%);
}
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .5;
    pointer-events: none;
}
.hero-inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    gap: 48px;
    align-items: center;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.eyebrow::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: #5cffb0; box-shadow: 0 0 0 4px rgba(92, 255, 176, .22);
}
.hero h1 {
    margin-top: 20px;
    font-size: clamp(30px, 3.8vw, 48px);
    line-height: 1.08;
    letter-spacing: -.025em;
    font-weight: 800;
}
.hero-lede {
    margin-top: 18px;
    max-width: 540px;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .82);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn-outline {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .08);
}
.hero .btn-outline:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .6); }
body.home-2026 .hero a.btn-solid { background: #fff; color: var(--brand-dark); box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.hero .btn-solid:hover { background: #f2fff8; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 38px; }
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { font-size: 13px; color: rgba(255, 255, 255, .68); }

.hero-featured { display: flex; justify-content: center; }
.featured-card {
    width: 100%;
    max-width: 360px;
    padding: 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .24);
    box-shadow: 0 26px 60px rgba(0, 0, 0, .28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    transition: transform .25s ease, background-color .25s ease;
}
.featured-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .18); }
.featured-card > img {
    width: 88px; height: 88px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .1);
    object-fit: contain;
    margin-bottom: 8px;
}
.featured-badge {
    align-self: flex-start;
    padding: 3px 11px;
    border-radius: 999px;
    background: #5cffb0;
    color: #04331f;
    font-size: 11.5px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .06em;
}
.featured-card h2 { font-size: 21px; line-height: 1.25; font-weight: 700; }
.featured-card .featured-dev { font-size: 13.5px; color: rgba(255, 255, 255, .74); }
.featured-card .featured-meta { font-size: 12.5px; color: rgba(255, 255, 255, .62); }
.featured-card .btn-solid { margin-top: 14px; background: #fff; color: var(--brand-dark); }

/* ---------- Sections ---------- */
.section { padding: 58px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
    margin-bottom: 26px;
}
.section-head h2 {
    font-size: clamp(21px, 2.4vw, 27px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
}
.section-head p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.link-more { font-size: 14px; font-weight: 700; color: var(--brand-dark); white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

.slider-controls { display: flex; gap: 8px; flex: none; }
.slider-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ink-2);
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.slider-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.slider-btn svg { width: 16px; height: 16px; }

/* ---------- App rail ---------- */
.app-rail {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 4px;
    padding: 4px 4px 18px;
    scrollbar-width: thin;
}
.rail-card {
    flex: 0 0 210px;
    scroll-snap-align: start;
    padding: 18px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rail-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d7e2dc; }
.rail-card img {
    width: 62px; height: 62px;
    border-radius: 15px;
    background: var(--bg-alt);
    object-fit: contain;
    margin-bottom: 12px;
}
.rail-title {
    font-size: 15px; font-weight: 700; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.rail-sub {
    margin-top: 3px; font-size: 12.5px; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rail-meta { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.rating { display: inline-flex; align-items: center; gap: 3px; color: var(--star); font-weight: 700; }
.rating::before { content: "\2605"; font-size: 12px; }
.badge-new { color: var(--brand-dark); font-weight: 700; }

/* ---------- App grid & cards ---------- */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.app-card {
    display: flex; align-items: center; gap: 14px;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d7e2dc; }
.app-card img {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--bg-alt);
    object-fit: contain;
    flex: none;
}
.app-card-body { min-width: 0; }
.app-card-title {
    font-size: 14.5px; font-weight: 700; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-card-dev {
    margin-top: 2px; font-size: 12.5px; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-card-meta { margin-top: 7px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.app-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #cbd5db; flex: none; }
.app-card-meta .ver { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- OS explorer ---------- */
.os-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.os-card {
    padding: 24px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.os-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.os-head h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.os-head h3 svg { width: 20px; height: 20px; color: var(--brand); }
.os-head a { font-size: 12.5px; font-weight: 700; color: var(--brand-dark); white-space: nowrap; }
.os-head a:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--bg-alt);
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.chip:hover { background: var(--brand-soft); color: var(--brand-dark); border-color: #c9ecd8; }

/* ---------- Footer ---------- */
.site-footer {
    padding: 54px 0 28px;
    background: #0b1220;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-logo {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 19px; font-weight: 800; color: #fff; letter-spacing: -.02em;
}
.footer-logo span.mark {
    width: 30px; height: 30px; border-radius: 9px;
    background: linear-gradient(135deg, #00c85a, #00843b);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px; font-weight: 900;
}
.footer-brand p { max-width: 320px; line-height: 1.65; color: rgba(255, 255, 255, .58); }
.footer-col h4 { margin: 0 0 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: rgba(255, 255, 255, .68); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    margin-top: 40px; padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 13px; color: rgba(255, 255, 255, .48);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); animation: reveal-in .55s ease forwards; }
@keyframes reveal-in { to { opacity: 1; transform: none; } }
.reveal.d1 { animation-delay: .05s; }
.reveal.d2 { animation-delay: .12s; }
.reveal.d3 { animation-delay: .19s; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; animation: none; }
    .rail-card, .app-card, .featured-card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 32px; }
}

@media (max-width: 860px) {
    :root { --header-h: 60px; }
    .main-nav { display: none; }
    .nav-toggle { display: inline-flex; }
    .header-actions .btn-ghost { display: none; }
    .header-inner { gap: 14px; }
    .brand img { width: 132px; height: 22px; }
    .hero { padding: 44px 0 52px; }
    .hero-inner { grid-template-columns: minmax(0, 1fr); }
    .hero-featured { justify-content: flex-start; }
    .featured-card { max-width: 420px; }
    .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .os-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 44px 0; }
}

@media (max-width: 560px) {
    .container { width: min(var(--container), 100% - 28px); }
    .header-actions .btn { padding: 9px 14px; font-size: 13px; }
    .hero-stats { gap: 24px; }
    .hero-stats strong { font-size: 20px; }
    .app-grid { grid-template-columns: minmax(0, 1fr); }
    .rail-card { flex-basis: 178px; }
    .section-head { align-items: flex-start; }
    .slider-controls { display: none; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .footer-bottom { justify-content: flex-start; }
}
