/* =========================================================
   CATTLE MANAGER WEBSITE
   Colors, font and card style match the Cattle Manager app.
   ========================================================= */

:root {
    --ink:        #0f172a;   /* headings, body text (app --n900) */
    --muted:      #64748b;   /* secondary text (app --n500) */
    --line:       #e2e8f0;   /* borders (app --n200) */
    --bg:         #f4f7f5;
    --bg-alt:     #eaf0ec;
    --white:      #ffffff;

    --green:      #15803d;   /* app primary buttons (--p700) */
    --green-dark: #166534;
    --green-soft: #dcfce7;
    --teal:       #1f3a35;   /* app sidebar */
    --teal-deep:  #172d29;
    --logo-green: #1d4228;
    --gold:       #d4b030;   /* CM logo */

    --radius:     16px;
    --radius-sm:  10px;
    --shadow:     0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-lg:  0 24px 48px rgba(15, 23, 42, .18), 0 8px 16px rgba(15, 23, 42, .08);
    --max:        1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { scroll-margin-top: 80px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1.25rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: .95rem; border: 1.5px solid transparent;
    transition: background .15s, border-color .15s, transform .15s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--white); }
.btn-ghost:hover { border-color: #cbd5e1; }
.btn-light { background: var(--white); color: var(--green-dark); }
.btn-outline-light { color: var(--white); border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { border-color: var(--white); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
.main-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.main-nav a { font-size: .93rem; font-weight: 500; color: #334155; }
.main-nav a:hover, .main-nav a.active { color: var(--green); }
.header-actions { display: flex; gap: .6rem; align-items: center; }
.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: var(--white);
    background:
        linear-gradient(180deg, rgba(23, 45, 41, .78) 0%, rgba(23, 45, 41, .92) 70%, var(--teal-deep) 100%),
        url("images/pasture-sunset.jpg") center 30% / cover no-repeat;
    padding: 84px 0 0;
}
.hero-text { max-width: 760px; margin: 0 auto; text-align: center; }
.eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1rem;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero-sub { font-size: 1.15rem; color: rgba(255, 255, 255, .82); max-width: 640px; margin: 0 auto 1.8rem; }
.hero-buttons { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 1rem; font-size: .88rem; color: rgba(255, 255, 255, .7); }
.hero-note span + span::before { content: "·"; margin: 0 .55rem; }
.hero-shot { margin: 56px auto -2px; max-width: 1060px; }

/* Browser-window frame around screenshots */
.frame {
    border-radius: 14px 14px 0 0; overflow: hidden; background: var(--white);
    box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .2);
}
.frame-bar { display: flex; gap: 6px; padding: 10px 14px; background: #eef2f6; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.frame.rounded { border-radius: 14px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: .8rem; }
.kicker { color: var(--green); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: .6rem; }

/* Problem strip */
.strip { background: var(--teal-deep); color: rgba(255, 255, 255, .85); padding: 26px 0; }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.2rem; font-weight: 600; font-size: .95rem; }
.strip-inner span::before { content: "✓"; color: var(--gold); margin-right: .45rem; }

/* Feature rows: text + screenshot */
.feature-row { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.feature-row + .feature-row { margin-top: 96px; }
.feature-row.flip { grid-template-columns: 7fr 5fr; }
.feature-row.flip .feature-copy { order: 2; }
.feature-copy h2 { margin-bottom: 1rem; }
.feature-copy > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.3rem; }
.checks { list-style: none; display: grid; gap: .65rem; }
.checks li { position: relative; padding-left: 1.9rem; }
.checks li::before {
    content: ""; position: absolute; left: 0; top: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
    background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.feature-shot .frame { border-radius: 14px; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow);
}
.card .icon {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: var(--green-soft); color: var(--green); margin-bottom: 1rem;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* How each tab works */
.flow-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.flow {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.flow-head { display: flex; align-items: center; gap: 14px; margin-bottom: 1rem; }
.flow-head .icon {
    width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center;
    background: var(--green-soft); color: var(--green);
}
.flow-head .icon svg { width: 24px; height: 24px; }
.flow-head .kicker { margin-bottom: .15rem; font-size: .75rem; }
.flow-head h3 { font-size: 1.3rem; }
.flow-lead { color: var(--muted); margin-bottom: 1.2rem; }
.flow-steps { list-style: none; counter-reset: flow; display: grid; gap: .9rem; margin-bottom: 1.4rem; }
.flow-steps li { counter-increment: flow; position: relative; padding-left: 2.6rem; font-size: .97rem; }
.flow-steps li::before {
    content: counter(flow); position: absolute; left: 0; top: -.05rem; width: 1.8rem; height: 1.8rem;
    border-radius: 50%; background: var(--logo-green); color: var(--gold); font-weight: 800; font-size: .85rem;
    display: grid; place-items: center;
}
.flow-extras { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { text-align: center; padding: 10px 20px; }
.step-num {
    width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 1rem;
    background: var(--logo-green); color: var(--gold); font-weight: 900; font-size: 1.3rem;
    display: grid; place-items: center;
}
.step p { color: var(--muted); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.price-card {
    background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
    padding: 28px 24px; display: flex; flex-direction: column; gap: .55rem; position: relative;
}
.price-card.featured { border-color: var(--green); box-shadow: 0 12px 32px rgba(21, 128, 61, .14); }
.price-card .badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--green); color: var(--white); font-size: .72rem; font-weight: 700;
    padding: .25rem .75rem; border-radius: 999px; letter-spacing: .04em;
}
.price-name { font-weight: 700; color: #334155; }
.price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card .checks { margin: .6rem 0 1.4rem; font-size: .93rem; }
.price-card .btn { margin-top: auto; }
.price-foot { text-align: center; color: var(--muted); margin-top: 28px; font-size: .95rem; }
.price-foot a { color: var(--green); font-weight: 600; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
    background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px;
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: .7rem; }

/* CTA band */
.cta {
    color: var(--white); text-align: center; padding: 110px 0;
    background:
        linear-gradient(rgba(23, 45, 41, .78), rgba(23, 45, 41, .86)),
        url("images/gate.jpg") center 40% / cover no-repeat;
}
.cta p { color: rgba(255, 255, 255, .82); font-size: 1.1rem; margin: .9rem auto 1.8rem; max-width: 560px; }

/* Page header (inner pages) */
.page-head { background: var(--teal); color: var(--white); padding: 64px 0 56px; text-align: center; }
.page-head p { color: rgba(255, 255, 255, .78); margin-top: .7rem; font-size: 1.08rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; }
.contact-info .card + .card { margin-top: 16px; }
.form { display: grid; gap: 14px; }
[hidden] { display: none !important; }
.form label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; color: #334155; }
.form input, .form select, .form textarea {
    font: inherit; padding: .7rem .85rem; border: 1px solid #cbd5e1; border-radius: var(--radius-sm); background: var(--white);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--green-soft); border-color: var(--green); }
.placeholder-note {
    background: #fef9c3; border: 1px dashed #ca8a04; color: #854d0e; border-radius: 8px;
    padding: .6rem .8rem; font-size: .85rem; margin-bottom: 16px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: rgba(255, 255, 255, .72); padding: 48px 0 28px; font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-brand .logo { color: var(--white); margin-bottom: .5rem; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 28px; padding-top: 20px; font-size: .82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 32px; }
    .feature-row.flip .feature-copy { order: 0; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .flow-grid { grid-template-columns: 1fr; }
    .price-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .nav-toggle-label {
        display: block; margin-left: auto; font-size: 1.6rem; cursor: pointer; padding: .2rem .5rem; color: var(--ink);
    }
    .main-nav, .header-actions { display: none; }
    .nav-toggle:checked ~ .main-nav,
    .nav-toggle:checked ~ .header-actions {
        display: flex; flex-direction: column; position: absolute; left: 0; right: 0; background: var(--white);
        padding: 14px 20px; gap: .9rem; border-bottom: 1px solid var(--line);
    }
    .nav-toggle:checked ~ .main-nav { top: 68px; }
    .nav-toggle:checked ~ .header-actions { top: calc(68px + 210px); align-items: stretch; box-shadow: 0 12px 20px rgba(15, 23, 42, .08); }
    .section { padding: 68px 0; }
    .hero { padding-top: 56px; }
    .grid, .steps, .price-grid { grid-template-columns: 1fr; }
    .strip-inner { justify-content: flex-start; }
}

/* Privacy policy and terms pages */
.legal { max-width: 780px; margin: 0 auto; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.legal p, .legal li { color: var(--ink); line-height: 1.65; margin-bottom: .8rem; }
.legal ul { padding-left: 1.3rem; margin-bottom: .8rem; }
.legal .legal-updated { color: var(--muted); font-size: .92rem; }
.legal a { color: var(--green); text-decoration: underline; }
.footer-company { margin-top: 6px; font-size: .78rem; opacity: .8; }
