/* Homepage (Pages/landing). Loaded only on that page, after agdiary.css. */

/* ---- Hero: no second logo, lighter wash so the photo reads ---- */
.landing-hero {
    background:
        linear-gradient(180deg, rgba(6, 60, 54, 0.30) 0%, rgba(6, 60, 54, 0.42) 45%, rgba(6, 60, 54, 0.62) 100%),
        url('/img/hero-bg-opt.jpeg') center 40% / cover no-repeat;
    padding: 6.5rem 1rem 5.5rem;
}
.landing-hero-title {
    font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
    text-wrap: balance;
}
.landing-hero-sub {
    font-size: 1.2rem;
    max-width: 640px;
    opacity: 1;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.landing-hero-price a {
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.landing-hero--split .landing-hero-sub { margin-left: 0; }
@media (max-width: 991.98px) {
    .landing-hero--split .landing-hero-sub { margin-left: auto; }
}
@media (max-width: 768px) {
    .landing-hero { padding: 3.75rem 1rem 3.25rem; }
    .landing-hero-sub { font-size: 1.05rem; }
}

/* ---- Screenshot slots (render nothing until an image exists) ---- */
.product-shot { margin: 0; }
.product-shot img {
    display: block;
    width: 100%;
    height: auto;
}
.product-shot--browser img,
.product-shot--browser .product-shot-slot {
    border-radius: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.35);
}
.landing-hero .product-shot--browser img,
.landing-hero .product-shot--browser .product-shot-slot {
    border-color: rgba(255, 255, 255, 0.25);
}
.product-shot--phone {
    max-width: 260px;
    margin: 0 auto 1.5rem;
}
.product-shot--phone img,
.product-shot--phone .product-shot-slot {
    border-radius: 2rem;
    border: 8px solid #1a1a1a;
    box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.45);
}
.feature-card-shot { margin: -0.5rem -0.5rem 1.25rem; }
.feature-card-shot img,
.feature-card-shot .product-shot-slot { border-radius: 0.6rem; box-shadow: 0 6px 16px -8px rgba(15, 23, 42, 0.35); }

/* Marketing review only (?preview=slots): where each screenshot goes */
.product-shot-slot {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: #7c2d12;
    background: repeating-linear-gradient(45deg, #fff7ed, #fff7ed 10px, #ffedd5 10px, #ffedd5 20px);
    outline: 2px dashed #ea580c;
    outline-offset: -2px;
}
.product-shot-slot strong { font-size: 0.95rem; }

/* ---- Proposal: facts strip in place of the stat band ---- */
.landing-facts {
    background: #fff;
    border-bottom: 1px solid var(--agri-border, #e2e8f0);
    padding: 2.25rem 1rem;
}
.landing-fact {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}
.landing-fact > i {
    flex: 0 0 auto;
    font-size: 1.35rem;
    color: var(--agri-green);
    background: var(--agri-green-pale);
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.landing-fact strong { display: block; color: var(--agri-text); font-size: 0.98rem; }
.landing-fact span { display: block; color: var(--agri-text-muted); font-size: 0.88rem; line-height: 1.45; margin-top: 0.15rem; }

/* ---- Proposal: Jack the Jackaroo ---- */
.landing-jack {
    background: var(--agri-bg);
    padding: 5rem 1rem;
}
.landing-jack h2 { font-weight: 800; letter-spacing: -0.02em; }
.landing-jack-avatar { border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(0, 0, 0, 0.15); }
.landing-jack-kicker {
    font-weight: 700;
    color: var(--agri-green);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}
.landing-jack-asks li {
    display: inline-block;
    margin: 0 0.35rem 0.5rem 0;
    padding: 0.35rem 0.8rem;
    background: #fff;
    border: 1px solid var(--agri-border, #e2e8f0);
    border-radius: 999px;
    font-size: 0.88rem;
}
.landing-jack-chat {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.30);
}
.jack-msg { font-size: 0.92rem; line-height: 1.5; }
.jack-msg p { margin-bottom: 0.5rem; }
.jack-msg--you {
    margin-left: auto;
    max-width: 80%;
    width: fit-content;
    background: var(--agri-green);
    color: #fff;
    padding: 0.6rem 0.95rem;
    border-radius: 1rem 1rem 0.25rem 1rem;
    margin-bottom: 1rem;
}
.jack-msg--jack {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.jack-msg--jack > img { border-radius: 50%; flex: 0 0 auto; }
.jack-msg--jack > div {
    min-width: 0;
    flex: 1 1 auto;
    background: #f1f5f4;
    padding: 0.85rem 1rem;
    border-radius: 0.25rem 1rem 1rem 1rem;
}
.jack-msg .table { font-size: 0.82rem; --bs-table-bg: transparent; }
.jack-msg .table th { font-weight: 600; white-space: nowrap; }
.landing-jack-chat figcaption {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--agri-text-muted);
    text-align: center;
}
@media (max-width: 768px) {
    .landing-jack { padding: 3rem 0.75rem; }
    .landing-jack h2 { font-size: 1.5rem; }
    .landing-jack-chat { padding: 1rem; }
    .jack-msg--jack > img { display: none; }
}

/* ---- Take AgDiary into the paddock ---- */
.landing-app {
    background: #fff;
    padding: 5rem 1rem;
}
.landing-app h2 { font-weight: 800; letter-spacing: -0.02em; }
.landing-app-list li {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}
.landing-app-list i { color: var(--agri-green); flex: 0 0 auto; }
.landing-app-get {
    background: var(--agri-bg);
    border-radius: var(--agri-radius-lg, 1rem);
    padding: 1.75rem;
    text-align: center;
}
.landing-app-get h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.landing-app-get p { font-size: 0.9rem; color: var(--agri-text-muted); margin-bottom: 1.25rem; }
@media (max-width: 768px) {
    .landing-app { padding: 3rem 0.75rem; }
    .landing-app h2 { font-size: 1.5rem; }
}

[data-bs-theme="dark"] .landing-facts,
[data-bs-theme="dark"] .landing-app { background: var(--bs-body-bg); }
[data-bs-theme="dark"] .landing-jack,
[data-bs-theme="dark"] .landing-app-get { background: var(--bs-tertiary-bg); }
[data-bs-theme="dark"] .landing-jack-chat { background: var(--bs-body-bg); }
[data-bs-theme="dark"] .jack-msg--jack > div,
[data-bs-theme="dark"] .landing-jack-asks li { background: var(--bs-tertiary-bg); }

/* Phones: keep the trial buttons on one line */
@media (max-width: 575.98px) {
    .landing-hero .btn-lg,
    .landing-cta .btn-lg {
        font-size: 1.05rem;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

/* Proposal: the run of modules under a whole-property headline */
.landing-hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 720px;
    margin: 1.5rem auto 0;
    padding: 0;
}
.landing-hero-chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .landing-hero-chips { gap: 0.4rem; margin-top: 1.25rem; }
    .landing-hero-chips li { font-size: 0.82rem; padding: 0.3rem 0.65rem; }
}
.jack-list { margin: 0 0 0.5rem; padding-left: 1.1rem; }
.jack-list li { margin-bottom: 0.15rem; }
