/* ============================================================
   TalkDarija — Landing Page
   Brand: Moroccan green + Darija red + saffron accent
   ============================================================ */

:root {
    --green: #1E8E5A;
    --green-dark: #156B43;
    --green-soft: #E7F5EE;
    --red: #E23744;
    --red-dark: #C42230;
    --red-soft: #FCEBEC;
    --saffron: #F5A623;
    --ink: #0F172A;
    --body: #475467;
    --muted: #98A2B3;
    --line: #EAECF0;
    --bg: #FFFFFF;
    --bg-soft: #F8FAF9;
    --bg-mint: #F1F8F4;

    --radius: 16px;
    --radius-lg: 26px;
    --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10);
    --shadow-md: 0 12px 30px -12px rgba(16,24,40,.18);
    --shadow-lg: 0 30px 60px -20px rgba(16,24,40,.28);
    --container: 1140px;
    --header-h: 112px;
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--body);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
em { font-style: normal; color: var(--green); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; }
.section { padding: 96px 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.section__lead { margin-top: 16px; font-size: 1.075rem; color: var(--body); }
.kicker {
    display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .08em;
    text-transform: uppercase; color: var(--green);
    background: var(--green-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 700; font-size: .9rem; padding: 10px 20px; border-radius: 999px;
    cursor: pointer; border: 2px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(226,55,68,.6); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand__logo { height: 88px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav__link { font-weight: 600; font-size: .96rem; color: var(--ink); transition: color .15s ease; }
.nav__link:hover { color: var(--green); }
.nav__cta { color: #fff; }
.nav__cta:hover { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 96px; overflow: hidden; }
.hero__bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 50% at 85% 0%, rgba(30,142,90,.10), transparent 70%),
        radial-gradient(50% 50% at 8% 18%, rgba(226,55,68,.08), transparent 70%),
        var(--bg);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .88rem;
    color: var(--ink); background: #fff; padding: 8px 18px 8px 14px; border-radius: 999px;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.eyebrow::before {
    content: ""; width: 9px; height: 9px; border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--saffron));
    box-shadow: 0 0 0 4px var(--green-soft);
}
.hero__title { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.grad { background: linear-gradient(100deg, var(--green), var(--saffron) 55%, var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin: 22px 0 30px; font-size: 1.12rem; max-width: 540px; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; }
.hero__trust li { font-weight: 600; font-size: .92rem; color: var(--ink); }

/* ---------- Store badges ---------- */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badges--center { justify-content: center; }
.store-badge {
    display: inline-flex; align-items: center; gap: 11px;
    background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 14px;
    transition: transform .18s ease, box-shadow .18s ease; box-shadow: var(--shadow-sm);
}
.store-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.store-badge__glyph { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge__text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge__text small { font-size: .68rem; opacity: .85; font-weight: 500; }
.store-badge__text strong { font-size: 1.06rem; font-weight: 700; }
.store-badge--light { background: #fff; color: var(--ink); }

/* ---------- Phone mockup ---------- */
.hero__visual { position: relative; display: flex; justify-content: center; }
.phone {
    position: relative; width: 290px; background: #0b0b0f; border-radius: 44px;
    padding: 11px; box-shadow: var(--shadow-lg); border: 1px solid #1d1d24; z-index: 2;
}
.phone__notch { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 130px; height: 26px; background: #0b0b0f; border-radius: 0 0 16px 16px; z-index: 3; }
.phone__shot { width: 100%; border-radius: 34px; display: block; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; z-index: 1; }
.hero__blob--green { width: 220px; height: 220px; background: radial-gradient(circle, rgba(30,142,90,.45), transparent 65%); top: -30px; right: 0; }
.hero__blob--red { width: 200px; height: 200px; background: radial-gradient(circle, rgba(226,55,68,.4), transparent 65%); bottom: -20px; left: -10px; }

/* ---------- Languages strip ---------- */
.langs { background: var(--bg-mint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0; }
.langs__label { text-align: center; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 18px; }
.langs__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.lang-chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: .95rem; color: var(--ink); box-shadow: var(--shadow-sm); }
.lang-chip--darija { background: var(--green); color: #fff; border-color: var(--green); }
.langs__arrow { color: var(--saffron); font-size: 1.5rem; font-weight: 800; }

/* ---------- Grid / cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--features { grid-template-columns: repeat(3, 1fr); }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 32px 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon { width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.6rem; border-radius: 16px; margin-bottom: 20px; background: var(--green-soft); }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { font-size: .98rem; }
.i-voice { background: var(--green-soft); } .i-dict { background: var(--red-soft); }
.i-langs { background: #FEF3DD; } .i-script { background: var(--green-soft); }
.i-privacy { background: var(--red-soft); } .i-learn { background: #FEF3DD; }

/* ---------- How it works ---------- */
.how { background: var(--bg-soft); }
.how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 28px; position: relative; }
.step__num {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
    background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff;
    font-weight: 800; font-size: 1.2rem; margin-bottom: 18px;
}
.step:nth-child(2) .step__num { background: linear-gradient(135deg, var(--saffron), #E08600); }
.step:nth-child(3) .step__num { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }

/* ---------- Voice translation ---------- */
.voice { padding: 40px 0 88px; }
.voice__card {
    display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: center;
    background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff;
    border-radius: 32px; padding: 56px; position: relative; overflow: hidden;
}
.voice__card::after {
    content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
    background: rgba(245,166,35,.20); top: -120px; right: -80px; filter: blur(8px);
}
.voice__media { position: relative; display: grid; place-items: center; min-height: 200px; }
.voice__mic {
    font-size: 3.4rem; width: 130px; height: 130px; display: grid; place-items: center;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%; backdrop-filter: blur(4px); z-index: 1;
    box-shadow: 0 0 0 16px rgba(255,255,255,.06), 0 0 0 36px rgba(255,255,255,.04);
}
.voice__wave { position: absolute; bottom: 18px; display: flex; align-items: flex-end; gap: 6px; height: 40px; }
.voice__wave i {
    width: 6px; border-radius: 6px; background: rgba(255,255,255,.85);
    animation: vbar 1.1s ease-in-out infinite;
}
.voice__wave i:nth-child(1){height:40%;animation-delay:0s}
.voice__wave i:nth-child(2){height:75%;animation-delay:.12s}
.voice__wave i:nth-child(3){height:100%;animation-delay:.24s}
.voice__wave i:nth-child(4){height:60%;animation-delay:.36s}
.voice__wave i:nth-child(5){height:90%;animation-delay:.48s}
.voice__wave i:nth-child(6){height:50%;animation-delay:.6s}
.voice__wave i:nth-child(7){height:70%;animation-delay:.72s}
@keyframes vbar { 0%,100%{ transform: scaleY(.4) } 50%{ transform: scaleY(1) } }
.kicker--light { background: rgba(255,255,255,.18); color: #fff; }
.voice__title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.voice__text { color: rgba(255,255,255,.92); margin-top: 14px; font-size: 1.08rem; max-width: 560px; }

/* ---------- Screenshots ---------- */
.shots__row { display: flex; gap: 22px; overflow-x: auto; padding: 10px 4px 24px; scroll-snap-type: x mandatory; }
.shot { flex: 0 0 auto; width: 220px; scroll-snap-align: center; text-align: center; }
.shot img { border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow-md); transition: transform .25s ease; }
.shot:hover img { transform: translateY(-6px); }
.shot figcaption { margin-top: 14px; font-weight: 600; color: var(--ink); font-size: .95rem; }

/* ---------- Pricing ---------- */
.grid--pricing { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px 32px; }
.plan--featured { border-color: var(--green); box-shadow: var(--shadow-md); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; letter-spacing: .03em; }
.plan__name { font-size: 1.3rem; }
.plan__price { margin: 14px 0 4px; }
.plan__amount { font-size: 2.6rem; font-weight: 800; color: var(--ink); }
.plan__per { color: var(--muted); font-weight: 600; }
.plan__alt { color: var(--green); font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.plan__list { list-style: none; margin: 22px 0 28px; display: grid; gap: 12px; }
.plan__list li { position: relative; padding-left: 28px; font-size: .98rem; }
.plan__list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.plan__cta { width: 100%; }

/* ---------- FAQ ---------- */
.accordion { display: grid; gap: 14px; }
.acc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; transition: border-color .2s, box-shadow .2s; }
.acc[open] { border-color: var(--green); box-shadow: var(--shadow-sm); }
.acc summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--ink); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.02rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.5rem; color: var(--green); font-weight: 700; transition: transform .2s; flex-shrink: 0; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc p { padding: 0 0 20px; color: var(--body); }

/* ---------- Final CTA ---------- */
.cta { padding: 96px 0; background: linear-gradient(135deg, #76D6AA, var(--green-dark)); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(245,166,35,.22); top: -120px; right: -80px; filter: blur(10px); }
.cta::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(226,55,68,.22); bottom: -120px; left: -60px; filter: blur(10px); }
.cta__inner { position: relative; text-align: center; }
.cta__icon { width: 78px; height: auto; margin: 0 auto 22px; border-radius: 20px; box-shadow: var(--shadow-md); }
.cta__title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.cta__sub { color: rgba(255,255,255,.9); margin: 14px auto 30px; max-width: 520px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cbd5e1; padding: 56px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__logo { height: 88px; width: auto; background: #fff; padding: 10px 16px; border-radius: 16px; }
.footer__tag { margin-top: 16px; max-width: 320px; font-size: .95rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 16px 28px; align-content: flex-start; }
.footer__links a { font-weight: 600; font-size: .95rem; transition: color .15s; }
.footer__links a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: .88rem; color: var(--muted); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .grid--features, .how__grid { grid-template-columns: repeat(2, 1fr); }
    .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
    .hero__sub { margin-left: auto; margin-right: auto; }
    .store-badges, .hero__trust { justify-content: center; }
    .hero__visual { order: -1; }
}
@media (max-width: 720px) {
    :root { --header-h: 76px; }
    .brand__logo { height: 56px; }
    .footer__logo { height: 64px; }
    .nav {
        position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 4px;
        background: #fff; padding: 18px 24px 28px; border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform .3s ease; align-items: stretch;
    }
    .nav.open { transform: translateY(0); }
    .nav__link { padding: 12px 4px; border-bottom: 1px solid var(--line); }
    .nav__cta { margin-top: 10px; }
    .nav-toggle { display: flex; }
    .section { padding: 72px 0; }
    .grid--features, .how__grid, .grid--pricing { grid-template-columns: 1fr; }
    .grid--pricing { max-width: 400px; margin: 0 auto; }
    .voice__card { grid-template-columns: 1fr; gap: 28px; padding: 40px 28px; text-align: center; }
    .voice__text { margin-left: auto; margin-right: auto; }
    .footer__bottom { flex-direction: column; }
}
@media (max-width: 420px) {
    body { font-size: 16px; }
    .store-badge { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .voice__wave i { animation: none; }
    html { scroll-behavior: auto; }
}
