/* e-Ranch Pro — sales landing page for the system itself */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --color-primary: #6b4226;
    --color-primary-dark: #4a2c17;
    --color-accent: #c98a3e;
    --color-bg: #f5f2ec;
    --color-text: #2b2b2b;
    --color-text-muted: #7d766a;
    --color-border: #e7e1d6;
    --shadow-md: 0 10px 30px rgba(40, 25, 10, .12);
    --shadow-lg: 0 24px 60px rgba(40, 25, 10, .18);
    --radius: 12px;
    --radius-lg: 18px;
}

body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

/* ---------- Header ---------- */

.plans-header {
    background: var(--color-primary-dark);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.plans-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .9rem 1.5rem;
    gap: 1rem;
}
.plans-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.plans-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-size: 1.3rem; font-weight: 800; }
.plans-brand img { height: 52px; width: 52px; border-radius: 10px; object-fit: cover; }
.plans-header nav { display: flex; align-items: center; gap: 1.75rem; }
.plans-header nav a { color: rgba(255,255,255,.8); font-weight: 600; font-size: .92rem; }
.plans-header nav a:hover { color: #fff; text-decoration: none; }
.plans-header .nav-cta {
    background: var(--color-accent);
    color: #2b2b2b !important;
    padding: .55rem 1.2rem;
    border-radius: 999px;
    font-weight: 700 !important;
}

/* ---------- Hero ---------- */

.plans-hero {
    background:
        radial-gradient(circle at 85% 10%, rgba(201,138,62,.35) 0%, transparent 45%),
        linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    padding: 4.5rem 1.5rem 6rem;
    overflow: hidden;
}
.plans-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3rem;
    align-items: center;
}
.plans-hero .tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.15);
    padding: .35rem 1rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 1.25rem;
}
.plans-hero h1 { font-size: 2.9rem; line-height: 1.15; margin: 0 0 1.1rem; font-weight: 800; }
.plans-hero h1 .accent { color: var(--color-accent); }
.plans-hero p.lead { font-size: 1.15rem; max-width: 520px; margin: 0 0 2rem; opacity: .92; line-height: 1.6; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--color-accent);
    color: #2b2b2b;
    font-weight: 700;
    padding: .9rem 1.8rem;
    border-radius: 10px;
    font-size: 1.02rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}
.cta-btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cta-btn::after {
    content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent);
    transform: skewX(-20deg);
}
.cta-btn:hover::after { animation: btn-shine .8s ease; }
@keyframes btn-shine { from { left: -75%; } to { left: 130%; } }
.btn-ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.55); transform: scale(0); animation: btn-ripple-anim .6s ease-out; pointer-events: none; }
@keyframes btn-ripple-anim { to { transform: scale(2.4); opacity: 0; } }
.cta-btn-ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.cta-btn-ghost:hover { background: rgba(255,255,255,.2); }

/* Reveal-on-scroll (see effects.js) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Plan signup modal -- hidden by default, shown only via the .open class
   (avoids relying on the HTML "hidden" attribute, whose default UA style
   can be overridden by less-specific rules in some browsers). */
.plan-modal {
    display: none;
    position: fixed; inset: 0; background: rgba(20, 12, 6, .65);
    z-index: 1000; align-items: center; justify-content: center; padding: 1.5rem;
}
.plan-modal.open { display: flex; }
.plan-modal-box { background: #fff; border-radius: var(--radius-lg); width: min(440px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: plan-modal-in .25s ease; }
@keyframes plan-modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.plan-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--color-border); font-weight: 700; color: var(--color-primary-dark); }
.plan-modal-head button { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--color-text-muted); }
.plan-modal-reassurance { margin: 1.1rem 1.4rem 0; padding: .8rem 1rem; background: #e6f4ea; color: #2e7d32; border-radius: var(--radius); font-size: .9rem; font-weight: 600; }
.plan-modal-box form { padding: 1.4rem; display: flex; flex-direction: column; gap: .35rem; }
.plan-modal-box label { font-weight: 600; margin-top: .6rem; font-size: .88rem; color: var(--color-text); }
.plan-modal-box input[type="text"], .plan-modal-box input[type="email"], .plan-modal-box input[type="tel"] {
    padding: .6rem .7rem; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: .95rem; width: 100%; font-family: inherit;
}
.plan-modal-box .checkbox-inline { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; font-weight: 500; }

.hero-trust { display: flex; gap: 1.75rem; flex-wrap: wrap; font-size: .85rem; opacity: .8; }
.hero-trust span { display: flex; align-items: center; gap: .4rem; }

/* Browser-chrome dashboard mockup */
.hero-mockup {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    color: var(--color-text);
    transform: rotate(-1deg);
}
.mockup-bar { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; background: #edeae3; }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: #d8d2c5; }
.mockup-url { margin-left: .75rem; background: #fff; border-radius: 6px; padding: .25rem .75rem; font-size: .75rem; color: var(--color-text-muted); }
.mockup-body { padding: 1.25rem; }
.mockup-badge-live { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; color: #2e7d32; background: #e6f4ea; padding: .15rem .6rem; border-radius: 999px; margin-bottom: .9rem; }
.mockup-badge-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #2e7d32; }
.mockup-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: 1rem; }
.mockup-stat { background: var(--color-bg); border-radius: 8px; padding: .6rem .5rem; text-align: center; }
.mockup-stat .num { font-size: 1.15rem; font-weight: 800; color: var(--color-primary-dark); display: block; }
.mockup-stat .label { font-size: .68rem; color: var(--color-text-muted); }
.mockup-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.mockup-table th { text-align: left; color: var(--color-text-muted); font-weight: 600; padding: .35rem .5rem; border-bottom: 1px solid var(--color-border); }
.mockup-table td { padding: .45rem .5rem; border-bottom: 1px solid var(--color-border); }
.mockup-notif {
    margin-top: 1rem;
    background: #fdf3e0;
    border: 1px solid #f0dfb8;
    border-radius: 8px;
    padding: .6rem .75rem;
    font-size: .78rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* ---------- Sections ---------- */

.section { max-width: 1200px; margin: 0 auto; padding: 5rem 1.5rem; }
.section-eyebrow { display: block; text-align: center; color: var(--color-accent); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6rem; }
.section h2 { text-align: center; margin: 0 auto 1rem; color: var(--color-primary-dark); font-size: 2rem; font-weight: 800; max-width: 700px; }
.section-lead { text-align: center; max-width: 640px; margin: 0 auto 3rem; color: var(--color-text-muted); font-size: 1.05rem; line-height: 1.6; }

/* Pain / problem cards */
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.pain-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: 0 1px 3px rgba(30,20,10,.05);
    transition: box-shadow .15s ease, transform .15s ease;
}
.pain-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pain-card .before { color: #a33; font-size: .88rem; margin: 0 0 .75rem; padding-bottom: .75rem; border-bottom: 1px dashed var(--color-border); }
.pain-card .after { color: #2e7d32; font-weight: 600; margin: 0; font-size: .92rem; }

/* Feature cards with icon */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem; }
.feature-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(30,20,10,.05);
    border: 1px solid var(--color-border);
    transition: box-shadow .15s ease, transform .15s ease;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.1rem;
}
.feature-icon svg { width: 24px; height: 24px; color: #fff; }
.feature-card h3 { margin: 0 0 .5rem; color: var(--color-primary-dark); font-size: 1.1rem; }
.feature-card p { margin: 0 0 .9rem; color: var(--color-text-muted); font-size: .92rem; line-height: 1.55; }
.feature-card ul { list-style: none; margin: 0; padding: 0; font-size: .87rem; }
.feature-card ul li { padding: .3rem 0; padding-left: 1.3rem; position: relative; color: var(--color-text); }
.feature-card ul li::before { content: "✓"; position: absolute; left: 0; color: #2e7d32; font-weight: 700; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; counter-reset: step; }
.step { text-align: center; }
.step .num { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--color-accent), var(--color-primary)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto .9rem; box-shadow: var(--shadow-md); }
.step h3 { color: var(--color-primary-dark); margin: 0 0 .4rem; }
.step p { color: var(--color-text-muted); font-size: .92rem; }

/* Comparison table */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: 0 1px 3px rgba(30,20,10,.05); border: 1px solid var(--color-border); }
.compare-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
.compare-table th, .compare-table td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--color-border); font-size: .9rem; }
.compare-table thead th { background: var(--color-bg); font-weight: 700; color: var(--color-primary-dark); }
.compare-table th:not(:first-child), .compare-table td:not(:first-child) { text-align: center; }
.compare-table td.yes { color: #2e7d32; font-weight: 700; }
.compare-table td.no { color: #b5aca0; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .col-highlight { background: #fbf3e7; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem; align-items: stretch; }
.price-card { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2rem 1.75rem; display: flex; flex-direction: column; background: #fff; box-shadow: 0 1px 3px rgba(30,20,10,.05); }
.price-card.featured { border-color: var(--color-accent); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.price-card h3 { margin: 0; color: var(--color-primary-dark); font-size: 1.2rem; }
.price-card .price { font-size: 2.3rem; font-weight: 800; margin: .75rem 0; }
.price-card .price small { font-size: .9rem; font-weight: 500; color: var(--color-text-muted); }
.price-card ul { list-style: none; padding: 0; margin: 1rem 0; flex: 1; text-align: left; }
.price-card ul li { padding: .45rem 0; border-bottom: 1px dashed var(--color-border); font-size: .92rem; }
.price-card ul li::before { content: "✓ "; color: #2e7d32; font-weight: 700; }
.price-badge { align-self: center; background: var(--color-accent); color: #2b2b2b; font-size: .74rem; font-weight: 700; padding: .25rem .8rem; border-radius: 999px; margin-bottom: .9rem; letter-spacing: .03em; }

.setup-note { text-align: center; max-width: 650px; margin: 2.5rem auto 0; color: var(--color-text-muted); font-size: .9rem; }

/* FAQ accordion */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0;
    margin-bottom: .75rem;
    overflow: hidden;
}
.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    padding: 1.1rem 1.4rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-primary-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--color-accent); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 1.4rem 1.1rem; margin: 0; color: var(--color-text-muted); line-height: 1.6; }

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    text-align: center;
    padding: 5rem 1.5rem;
}
.final-cta h2 { color: #fff; }
.final-cta p { max-width: 560px; margin: 0 auto 2rem; opacity: .9; }

@media (max-width: 900px) {
    .plans-hero-inner { grid-template-columns: 1fr; }
    .plans-hero { padding: 3rem 1.25rem 4rem; text-align: center; }
    .plans-hero p.lead { margin-left: auto; margin-right: auto; }
    .hero-ctas, .hero-trust { justify-content: center; }
    .plans-header nav a:not(.nav-cta) { display: none; }
    .mockup-stats { grid-template-columns: repeat(2, 1fr); }
}
