/* Manody stylesheet, part 10 — Home page.
   Loaded in order by core/templates/core/includes/stylesheets.html. */

/* ==========================================================================
   Home page
   ========================================================================== */

/* Header: light shadow after scrolling (all pages) */
.site-header { transition: box-shadow 0.2s ease, background-color 0.2s ease; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(0, 0, 0, 0.04); }

/* Reveal on scroll (only when JavaScript is enabled) */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero ---------- */
.home-hero {
    position: relative;
    overflow: hidden;
    padding-block: 72px 96px;
}

.hero-glow {
    position: absolute;
    inset: -20% -10% auto;
    height: 640px;
    z-index: -1;
    background:
        radial-gradient(40% 50% at 20% 30%, color-mix(in srgb, var(--brand-1) 22%, transparent), transparent 70%),
        radial-gradient(35% 45% at 75% 20%, color-mix(in srgb, var(--brand-3) 18%, transparent), transparent 70%),
        radial-gradient(30% 40% at 60% 75%, color-mix(in srgb, var(--brand-4) 14%, transparent), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

.home-hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
}

.hero-copy h1 {
    margin: 22px 0 22px;
    font-size: clamp(2.6rem, 5.4vw, 4.4rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.hero-copy .lead { margin-bottom: 32px; font-size: 1.2rem; }

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 5px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    box-shadow: var(--shadow);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.hero-chip:hover { border-color: var(--border-strong); transform: translateY(-1px); }

.hero-chip-tag {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--brand-gradient);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
}

.hero-chip svg,
.hero-proof svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 18px 0 0;
    padding: 0 0 0 4px;
    list-style: none;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
}

.hero-proof li { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof svg { color: #059669; }

/* Stage: three real pages, gently floating */
.hero-stage {
    position: relative;
    height: 580px;
}

.mock-phone {
    position: absolute;
    width: 250px;
    max-width: none;
    padding: 32px 18px 22px;
    transform: none;
    border-radius: 34px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

.mock-phone .profile-links li { min-height: 42px; font-size: 0.82rem; }
.mock-phone .avatar { width: 56px; height: 56px; font-size: 1.3rem; }

.stage-center {
    top: 20px;
    left: 50%;
    z-index: 3;
    width: 270px;
    margin-left: -135px;
    animation: float-a 9s ease-in-out infinite;
}

.stage-left {
    top: 120px;
    left: -6%;
    z-index: 2;
    rotate: -10deg;
    scale: 0.84;
    animation: float-b 10s ease-in-out infinite;
}

.stage-right {
    top: 140px;
    right: -6%;
    z-index: 1;
    rotate: 9deg;
    scale: 0.8;
    animation: float-b 11s ease-in-out infinite reverse;
}

@keyframes float-a {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -12px; }
}

@keyframes float-b {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 10px; }
}

.float-card {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 10px;
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    font-size: 0.82rem;
    line-height: 1.25;
}

.float-card strong { display: block; font-weight: 600; }
.float-card small { color: var(--text-muted); }

.float-lead { top: 60px; right: 4%; animation: float-a 8s ease-in-out infinite 1s; }
.float-theme { bottom: 48px; left: 6%; animation: float-b 9s ease-in-out infinite 0.5s; }

.float-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--brand-gradient);
    color: #ffffff;
}

.float-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.float-swatch {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

/* ---------- Sections ---------- */
.home-section { padding-block: 96px 24px; }

.section-head {
    display: grid;
    justify-items: center;
    gap: 14px;
    max-width: 44rem;
    margin: 0 auto 48px;
    text-align: center;
}

.section-head .eyebrow { margin-bottom: 0; }

.section-head h2 {
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.section-head .lead { margin-inline: auto; }

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
}

.step-num {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 22px;
    border-radius: 12px;
    background: var(--brand-gradient);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-2) 30%, transparent);
}

.step h3 { margin-bottom: 8px; font-size: 1.15rem; letter-spacing: -0.02em; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* Feature grid */
.bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.bento-card {
    display: grid;
    align-content: space-between;
    gap: 24px;
    min-height: 300px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}

.bento-wide {
    grid-column: span 2;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
}

.bento-text { display: grid; gap: 8px; align-content: start; justify-items: start; }
.bento-text h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.bento-text p { color: var(--text-muted); font-size: 0.95rem; }

.bento-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    border-radius: 18px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* Living themes: wave of animated swatches */
.theme-wave {
    gap: 10px;
    min-height: 220px;
    padding: 20px;
}

.theme-wave span {
    flex: 1;
    height: 150px;
    max-width: 48px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    animation: wave 3.6s ease-in-out infinite, theme-drift 16s ease-in-out infinite alternate;
}

.theme-wave span:nth-child(2) { animation-delay: 0.15s, 0s; }
.theme-wave span:nth-child(3) { animation-delay: 0.3s, 0s; }
.theme-wave span:nth-child(4) { animation-delay: 0.45s, 0s; }
.theme-wave span:nth-child(5) { animation-delay: 0.6s, 0s; }
.theme-wave span:nth-child(6) { animation-delay: 0.75s, 0s; }
.theme-wave span:nth-child(7) { animation-delay: 0.9s, 0s; }
.theme-wave span:nth-child(8) { animation-delay: 1.05s, 0s; }

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

/* Block editor */
.mini-editor {
    flex-direction: column;
    gap: 8px;
    padding: 18px 22%;
}

.mini-block {
    position: relative;
    width: 100%;
    height: 16px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.mini-block.is-head { width: 46%; height: 24px; border-radius: 999px; background: var(--border-strong); border: 0; }
.mini-block.is-media { height: 34px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand-1) 35%, var(--surface)), color-mix(in srgb, var(--brand-3) 30%, var(--surface))); }

.mini-block.is-selected {
    height: 22px;
    border: 1.5px solid var(--brand-1);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-1) 18%, transparent);
}

.mini-block.is-selected i {
    position: absolute;
    top: -9px;
    left: 8px;
    width: 40px;
    height: 12px;
    border-radius: 999px;
    background: var(--brand-1);
}

/* Statistics */
.mini-chart {
    align-items: flex-end;
    gap: 8px;
    padding: 20px 22px 0;
}

.mini-chart span {
    flex: 1;
    height: var(--h);
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--brand-2), color-mix(in srgb, var(--brand-1) 70%, var(--surface)));
    opacity: 0.85;
    transform-origin: bottom;
    animation: grow 1.2s var(--ease) both;
}

.mini-chart span:nth-child(2) { animation-delay: 0.08s; }
.mini-chart span:nth-child(3) { animation-delay: 0.16s; }
.mini-chart span:nth-child(4) { animation-delay: 0.24s; }
.mini-chart span:nth-child(5) { animation-delay: 0.32s; }
.mini-chart span:nth-child(6) { animation-delay: 0.4s; }
.mini-chart span:nth-child(7) { animation-delay: 0.48s; }

@keyframes grow { from { transform: scaleY(0.1); } to { transform: none; } }

/* Leads */
.mini-inbox { flex-direction: column; gap: 8px; padding: 18px 16%; }

.mini-mail {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.mini-mail b {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--border-strong);
    font-size: 0.72rem;
}

.mini-mail i { flex: 1; height: 8px; border-radius: 999px; background: var(--border); }
.mini-mail.is-new { border-color: color-mix(in srgb, var(--brand-3) 50%, var(--border)); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand-3) 16%, transparent); }
.mini-mail.is-new b { background: var(--brand-gradient); color: #ffffff; }

/* QR code (real QR code of the home page) */
.mini-qr { padding: 20px; color: var(--text); }
.mini-qr svg { width: 120px; height: 120px; }
.mini-qr path { stroke: currentColor; }

/* A/B tests */
.mini-ab { flex-direction: column; gap: 10px; padding: 20px 12%; }

.mini-ab span {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 500;
}

.mini-ab b { font-size: 0.72rem; color: var(--text-muted); }
.mini-ab .is-winner { border-color: #10b981; box-shadow: 0 0 0 3px color-mix(in srgb, #10b981 18%, transparent); }
.mini-ab .is-winner::after { content: "Gagnant"; margin-left: auto; font-size: 0.7rem; font-weight: 600; color: #059669; }

/* ---------- Theme gallery ---------- */
.theme-strip {
    display: flex;
    gap: 22px;
    padding: 8px max(24px, calc((100vw - var(--container)) / 2 + 24px)) 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.theme-strip::-webkit-scrollbar { display: none; }
.theme-strip:focus-visible { outline-offset: -4px; }

.theme-tile {
    flex: 0 0 200px;
    margin: 0;
    scroll-snap-align: center;
    text-align: center;
}

.theme-tile .mock-phone {
    position: relative;
    width: 200px;
    padding: 26px 14px 18px;
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    transition: transform 0.35s var(--ease);
}

.theme-tile:hover .mock-phone { transform: translateY(-6px); }
.theme-tile .profile-links li { min-height: 36px; font-size: 0.76rem; }
.theme-tile .avatar { width: 46px; height: 46px; font-size: 1.1rem; }

.theme-tile figcaption {
    margin-top: 14px;
    font-size: 0.88rem;
    font-weight: 600;
}

/* ---------- Who it is for ---------- */
.audience {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.audience-card {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s ease;
}

.audience-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }

.audience-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    font-size: 1.1rem;
}

.audience-card h3 { font-size: 1.05rem; letter-spacing: -0.02em; }
.audience-card p { color: var(--text-muted); font-size: 0.9rem; }
.audience-plan { margin-top: 6px; font-size: 0.85rem; font-weight: 600; }
.audience-card:hover .audience-plan { text-decoration: underline; text-underline-offset: 3px; }

.audience-card-agency {
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--brand-gradient) border-box;
    border: 1.5px solid transparent;
}

/* ---------- Trust ---------- */
.trust {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    padding: 48px;
    border-radius: 32px;
    background: #0b0b0f;
    color: #fafafa;
    overflow: hidden;
    position: relative;
}

.trust::before {
    content: "";
    position: absolute;
    inset: auto -20% -60% 30%;
    height: 420px;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-2) 40%, transparent), transparent);
    pointer-events: none;
}

.trust .eyebrow { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #d4d4d8; }
.trust h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.04em; }

.trust-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust-list li { display: grid; gap: 6px; padding-left: 16px; border-left: 2px solid rgba(255, 255, 255, 0.16); }
.trust-list strong { font-size: 1rem; }
.trust-list span { font-size: 0.9rem; color: #a1a1aa; }

/* ---------- Plans overview ---------- */
.plan-teaser {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.plan-mini {
    position: relative;
    display: grid;
    gap: 6px;
    align-content: start;
    padding: 26px 22px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.plan-mini:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-mini-name { font-size: 1.3rem; letter-spacing: -0.02em; }
.plan-mini-price { margin-bottom: 4px; color: var(--text-muted); font-size: 0.9rem; }
.plan-mini-price b { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.04em; color: var(--text); }

.plan-mini.is-popular { border-color: var(--accent); }

.plan-mini.is-recommended {
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--brand-gradient) border-box;
    border: 2px solid transparent;
    box-shadow: 0 18px 50px color-mix(in srgb, var(--brand-2) 18%, transparent);
}

.plan-mini .plan-ribbon { top: -11px; left: 18px; }
.plan-teaser-link { margin-top: 24px; text-align: center; font-weight: 600; }
.plan-teaser-link a { color: var(--text); text-underline-offset: 4px; }

/* ---------- FAQ and final call to action ---------- */
.home-faq { max-width: 780px; padding-bottom: 24px; }

.home-final { padding-block: 72px 24px; }

.final-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 72px 24px;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid var(--border);
    background: var(--surface);
    text-align: center;
    isolation: isolate;
}

.final-card .hero-glow { inset: -40% -10% auto; height: 520px; }
.final-card h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; }
.final-card .claim { width: 100%; margin-top: 12px; }
.final-card .claim-status { padding-left: 0; }

/* ---------- Responsive (home page) ---------- */
@media (max-width: 1024px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento-wide { grid-column: span 2; }
    .audience, .plan-teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust { grid-template-columns: 1fr; padding: 40px 32px; }
}

@media (max-width: 900px) {
    .home-hero { padding-block: 40px 56px; }
    .home-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-copy { display: grid; justify-items: center; }
    .hero-copy .lead, .claim { margin-inline: auto; }
    .claim-status { padding-left: 0; text-align: center; }
    .hero-proof { justify-content: center; }
    .hero-stage { height: 500px; max-width: 520px; width: 100%; margin-inline: auto; }
    .steps { grid-template-columns: 1fr; }
    .home-section { padding-block: 72px 16px; }
}

@media (max-width: 640px) {
    .bento, .audience, .plan-teaser, .trust-list { grid-template-columns: 1fr; }
    .bento-wide { grid-column: auto; grid-template-columns: 1fr; }
    .hero-stage { height: 440px; }
    .mock-phone { width: 210px; }
    .stage-center { width: 230px; margin-left: -115px; }
    .stage-left { left: -28px; }
    .stage-right { right: -28px; }
    .float-lead { right: 0; top: 24px; }
    .float-theme { left: 0; bottom: 24px; }
    .trust { padding: 32px 22px; border-radius: 24px; }
    .final-card { padding: 48px 18px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .stage-center, .stage-left, .stage-right, .float-card, .theme-wave span, .mini-chart span { animation: none; }
}
