/*
 * Utilifarm home page (App/Views/Home/index.html): its own sections — hero,
 * stats, feature cards, pricing cards, testimonials, final call to action.
 * Moved out of the page's inline <style> (UI/UX plan, Phase 1, 2026-10-29).
 * The palette, fonts, header, footer and buttons are in css/public.css.
 */

/* ───────────── Hero ───────────── */
.hero {
    background:
        radial-gradient(ellipse 80% 60% at 80% 20%, rgba(232,176,75,0.12), transparent 60%),
        radial-gradient(ellipse 60% 50% at 10% 80%, rgba(46,204,113,0.10), transparent 60%),
        linear-gradient(160deg, var(--primary-deeper) 0%, var(--primary-dark) 60%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
    padding: 11rem 0 7rem;
    color: white;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
    background-size: 28px 28px;
    opacity: 0.5;
    pointer-events: none;
}
.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: clamp(2.6rem, 5.2vw, 4.6rem);
    margin: 1.2rem 0 1.5rem;
    color: white;
}
.hero h1 .underline {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}
.hero h1 .underline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.05em;
    height: 0.22em;
    background: var(--warm);
    opacity: 0.55;
    z-index: -1;
    border-radius: 3px;
}
.hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.78);
    max-width: 540px;
    margin-bottom: 2.4rem;
    font-weight: 300;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 2.8rem;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem 2rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
}
.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.trust-row i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* Hero visual */
.hero-visual {
    position: relative;
    width: 100%;             /* a grid item with margin-left:auto and only absolute children shrinks to 0 wide: the photo never showed (2026-10-29) */
    aspect-ratio: 4 / 3;     /* the dashboard screenshot's shape, 1200 x 900 (Phase 2, 2026-10-29; a 4:5 photo before) */
    max-width: 560px;
    margin-left: auto;
}
.hero-img-frame {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5);
    transform: rotate(-2deg);
}
.hero-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* No dark wash over the picture any more: it is a screenshot, to be read (2026-10-29). */
/* decorative warm card behind */
.hero-visual::before {
    content: "";
    position: absolute;
    inset: -14px -14px auto auto;
    width: 60%;
    height: 70%;
    background: linear-gradient(135deg, var(--warm), var(--warm-dark));
    border-radius: 24px;
    transform: rotate(4deg);
    z-index: -1;
    opacity: 0.9;
}
/* Stat chip overlay */
.stat-chip {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 1rem 1.3rem;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--ink);
}
.stat-chip.tl {
    top: 8%;
    left: -28px;
    animation: floaty 6s ease-in-out infinite;
}
.stat-chip.br {
    bottom: 10%;
    right: -32px;
    animation: floaty 7s ease-in-out infinite reverse;
}
.stat-chip .num {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.stat-chip .lbl {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}
.stat-chip .icon-dot {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.stat-chip.br .icon-dot {
    background: linear-gradient(135deg, var(--warm), var(--warm-dark));
    color: var(--primary-deeper);
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ───────────── Sections ───────────── */
.section {
    padding: 7rem 0;
    position: relative;
}
.container-wide {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
}
.section-head {
    max-width: 720px;
    margin-bottom: 4rem;
}
.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.section-head h2 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin: 1rem 0 1rem;
    color: var(--ink);
}
.section-head h2.on-dark { color: white; }
.section-head p {
    font-size: 1.1rem;
    color: var(--muted);
    font-weight: 400;
}
.section-head p.on-dark { color: rgba(255,255,255,0.7); }

/* ───────────── Stats strip ───────────── */
.stats-strip {
    background: white;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 3rem 0;
}
.stats-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.stat-block {
    text-align: left;
    position: relative;
    padding-left: 1.2rem;
}
.stat-block::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 3px;
    background: var(--warm);
    border-radius: 3px;
}
.stat-block .num {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    display: block;
}
.stat-block .lbl {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ───────────── Features ───────────── */
.features-section {
    background: var(--cream);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.2rem 1.9rem;
    border: 1px solid var(--line);
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1), box-shadow 0.35s, border-color 0.35s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 50px -22px rgba(15,63,63,0.18);
    border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card .ficon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(46,204,113,0.12), rgba(27,94,94,0.12));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.3rem;
}
.feature-card .ficon i { font-size: 1.7rem; }
.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.45rem;
    color: var(--ink);
    margin-bottom: 0.65rem;
    line-height: 1.2;
}
.feature-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
}
.feature-card ul {
    list-style: none;
    padding: 0;
    border-top: 1px dashed var(--line);
    padding-top: 1rem;
}
.feature-card ul li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
    padding: 0.32rem 0;
}
.feature-card ul li::before {
    content: "→";
    color: var(--warm-dark);
    font-weight: 700;
}

/* A card's screenshot (Shared/feature-shot.html; only when site.php names one, 2026-10-29) */
.feature-shot {
    margin: -0.6rem -0.5rem 1.4rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--cream);
}
.feature-shot img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 750;
    object-fit: cover;
    object-position: top left;
}
.feature-card p a { color: var(--primary); font-weight: 600; }

/* feature card variations for visual rhythm */
.feature-card:nth-child(2) .ficon {
    background: linear-gradient(135deg, rgba(232,176,75,0.18), rgba(198,138,31,0.12));
    color: var(--warm-dark);
}
.feature-card:nth-child(4) .ficon {
    background: linear-gradient(135deg, rgba(232,176,75,0.18), rgba(198,138,31,0.12));
    color: var(--warm-dark);
}
.feature-card:nth-child(6) .ficon {
    background: linear-gradient(135deg, rgba(232,176,75,0.18), rgba(198,138,31,0.12));
    color: var(--warm-dark);
}

/* ───────────── Pricing ───────────── */
.pricing-section {
    background: linear-gradient(180deg, var(--cream) 0%, white 100%);
}
.guarantee {
    margin-top: 4rem;
    text-align: center;
    padding: 1.6rem 2rem;
    background: white;
    border-radius: 16px;
    border: 1px dashed var(--line);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    margin-right: auto;
}
.guarantee-wrap { text-align: center; }
.guarantee i {
    font-size: 2rem;
    color: var(--accent-dark);
}
.guarantee-text {
    text-align: left;
}
.guarantee-text strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--ink);
    display: block;
    margin-bottom: 0.15rem;
}
.guarantee-text span {
    font-size: 0.88rem;
    color: var(--muted);
}

/* ───────────── Testimonials ───────────── */
.testimonials-section {
    background:
        radial-gradient(ellipse at top right, rgba(232,176,75,0.06), transparent 60%),
        var(--cream-warm);
    position: relative;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
}
.testimonial-card {
    background: white;
    border-radius: 18px;
    padding: 2.2rem 2rem;
    position: relative;
    border: 1px solid var(--line);
    transition: transform 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-card::before {
    content: "“";
    position: absolute;
    top: -10px;
    left: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--warm);
    line-height: 1;
    font-weight: 800;
}
.testimonial-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--ink-soft);
    margin-bottom: 1.6rem;
    font-style: italic;
    font-weight: 700;
    padding-top: 0.6rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--line);
}
.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}
.author-name {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--ink);
}
.author-role {
    font-size: 0.82rem;
    color: var(--muted);
}
.star-row {
    color: var(--warm);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
}

/* ───────────── Final CTA ───────────── */
.final-cta {
    background: linear-gradient(135deg, var(--primary-deeper), var(--primary-dark));
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}
.final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
    background-size: 28px 28px;
    opacity: 0.5;
}
.final-cta .container-wide {
    position: relative;
    z-index: 2;
    max-width: 760px;
}
.final-cta h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.15;
}
.final-cta h2 em {
    font-style: italic;
    color: var(--warm);
}
.final-cta p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 2.4rem;
}
.final-cta .cta-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}
.final-cta-note {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ───────────── Modals ───────────── */
.modal {
    border-radius: 20px;
    max-width: 480px;
    padding: 1rem 0.5rem;
}
.modal .modal-content h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
}
.modal .modal-content p { color: var(--muted); font-size: 0.92rem; }
.input-field input:focus {
    border-bottom: 2px solid var(--accent) !important;
    box-shadow: 0 1px 0 0 var(--accent) !important;
}
.input-field label.active { color: var(--primary) !important; }
.video-container {
    margin-top: 1rem;
    border-radius: 14px;
    overflow: hidden;
}
.modal .btn-modal {
    background: var(--primary) !important;
    color: white;
    border-radius: 999px;
    padding: 0 1.5rem;
    font-weight: 600;
}
.modal .btn-modal:hover { background: var(--primary-dark) !important; }

/* ───────────── Responsive ───────────── */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; gap: 3rem; }
    .hero-visual { margin: 0 auto; max-width: 520px; }
    .hero { padding: 9rem 0 5rem; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .section { padding: 5rem 0; }
}
@media (max-width: 600px) {
    .container-wide { padding: 0 1.2rem; }
    .hero { padding: 8rem 0 4rem; }
    .hero-container { padding: 0 1.2rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .stat-chip.tl { left: -10px; padding: 0.7rem 0.9rem; }
    .stat-chip.br { right: -12px; padding: 0.7rem 0.9rem; }
    .stat-chip .num { font-size: 1.3rem; }
    .stat-chip .lbl { font-size: 0.65rem; }
    .stat-chip .icon-dot { width: 32px; height: 32px; }
    .trust-row { gap: 0.8rem 1.2rem; font-size: 0.82rem; }
    .stats-grid { padding: 0 1.2rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn-primary, .hero-cta .btn-ghost { justify-content: center; width: 100%; }
}

/* fade in on scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ───────────── Trust (UI/UX plan, Phase 3, 2026-10-30) ───────────── */
/* What customers say: drawn only from site.testimonials in App/Config/site.php. */
.voices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
}
.voice {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.8rem;
}
.voice blockquote { margin: 0 0 1rem; border: 0; padding: 0; font-size: 1.02rem; color: var(--ink-soft); }
.voice figcaption { font-size: 0.9rem; color: var(--muted); }
.voice figcaption strong { display: block; color: var(--ink); font-weight: 600; }

/* Frequently asked questions: <details>, no script. */
.faq-section { background: #fff; padding-top: 2rem; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 0;
    min-height: 44px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; flex: none; font-size: 1.5rem; line-height: 1; color: var(--primary); }
.faq-list details[open] summary::after { content: '\2212'; }
.faq-list summary:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; }
.faq-list details p { margin: 0 0 1.2rem; color: var(--ink-soft); }
