/* Styles specific to the Cattle Sensor product page (products/tag.html) — tag2-* prefix */

/* ── Page-level overrides ── */
.tag-page {
    --accent: #ff33bb;
    --earth: #c47a3a;
    --dark: #111214;
    --mid: #1e2024;
    --offwhite: #f5f4f1;
}

/* ── HERO ── */
.tag2-hero {
    padding: 7rem 2rem 5rem;
    background-color: var(--dark);
    color: #fff;
}
.tag2-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.tag2-hero-sub {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 2.5rem;
    max-width: 480px;
}
.tag2-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.tag2-hero-image-wrap {
    position: relative;
}
.tag2-hero-photo {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.tag2-hero-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    border-radius: 0 0 6px 6px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.tag2-hero-caption strong {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 860px) {
    .tag2-hero-inner {
        grid-template-columns: 1fr;
    }
    .tag2-hero-photo {
        height: 320px;
    }
    .tag2-hero-sub {
        max-width: none;
    }
}

/* ── PROBLEM SECTION ── */
.tag2-problem {
    padding: 6rem 2rem;
    background-color: var(--mid);
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)),
        url("/images/pen_rider-p-500.jpg");
    background-size: cover;
    background-position: center;
    color: #fff;
}
@media (min-width: 500px) {
    .tag2-problem {
        background-image:
            linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)),
            url("/images/pen_rider-p-800.jpg");
    }
}
@media (min-width: 800px) {
    .tag2-problem {
        background-image:
            linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)),
            url("/images/pen_rider-p-1080.jpg");
    }
}
@media (min-width: 1080px) {
    .tag2-problem {
        background-image:
            linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)),
            url("/images/pen_rider-p-1600.jpg");
    }
}
@media (min-width: 1600px) {
    .tag2-problem {
        background-image:
            linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)),
            url("/images/pen_rider.jpg");
    }
}
.tag2-problem-inner {
    max-width: 900px;
    margin: 0 auto;
}
.tag2-problem-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}
.tag2-problem-text p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}
.tag2-problem-text p:last-child {
    margin-bottom: 0;
}
.tag2-problem-callout {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    padding: 2rem;
    align-self: start;
}
.tag2-problem-callout ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.tag2-problem-callout li {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
}
.tag2-problem-callout li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

@media (max-width: 700px) {
    .tag2-problem-body {
        grid-template-columns: 1fr;
    }
}

/* ── HOW IT WORKS ── */
.tag2-hiw {
    padding: 6rem 2rem;
    background-color: var(--offwhite);
}
.tag2-hiw-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.tag2-hiw-header {
    margin-bottom: 3.5rem;
}
/* ── APP SECTION ── */
.tag2-app {
    padding: 6rem 2rem;
    background-color: var(--dark);
    color: #fff;
}
.tag2-app-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.tag2-app-icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}
.tag2-app-icon {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    display: block;
}
.tag2-app-name {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    line-height: 1;
}
.tag2-app-name span {
    color: var(--accent);
}
.tag2-app-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}
.tag2-app-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.tag2-app-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.tag2-app-feature-icon {
    width: 2rem;
    height: 2rem;
    background: rgba(255, 51, 187, 0.12);
    border: 1px solid rgba(255, 51, 187, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.tag2-app-feature-icon svg {
    stroke: var(--accent);
}
.tag2-app-feature-text strong {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #fff;
    margin-bottom: 0.2rem;
}
.tag2-app-feature-text span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

.tag2-app-text .headline-sm {
    margin-bottom: 0.75rem;
}
.tag2-app-text p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.tag2-app-text a {
    margin-top: 1.5rem;
    display: inline-block;
}

.tag2-app-screenshots {
    max-width: 1200px;
    margin: 4rem auto 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}
.tag2-app-screenshot {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.tag2-app-screenshot img,
.tag2-app-screenshot video {
    width: 220px;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    display: block;
}
.tag2-app-screenshot figcaption {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    letter-spacing: 0.03em;
}

@media (max-width: 800px) {
    .tag2-app-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .tag2-app-screenshots {
        margin-top: 3rem;
    }
    .tag2-app-screenshot img,
    .tag2-app-screenshot video {
        width: 180px;
    }
}

/* ── CAPABILITIES GRID ── */
.tag2-caps {
    padding: 6rem 2rem;
    background-color: var(--offwhite);
}
.tag2-caps-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.tag2-caps-header {
    margin-bottom: 3rem;
}
.tag2-cap-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1.25rem;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tag2-cap-card-icon svg {
    stroke: #111;
}

/* ── TECHNOLOGY BRIDGE ── */
.tag2-tech-bridge {
    padding: 4rem 2rem;
    background-color: #0d0e10;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
}
.tag2-tech-bridge-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}
.tag2-tech-bridge-text {
    max-width: 680px;
}
.tag2-tech-bridge-text .headline-sm {
    margin-bottom: 0.75rem;
}
.tag2-tech-bridge-text p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.75;
    font-size: 0.9375rem;
    margin: 0;
}
.tag2-tech-bridge-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    background: transparent;
    border: 1px solid rgba(255, 51, 187, 0.4);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.4rem;
    border-radius: 4px;
    text-decoration: none;
    transition:
        border-color 0.15s,
        background-color 0.15s;
    flex-shrink: 0;
}
.tag2-tech-bridge-link:hover {
    border-color: var(--accent);
    background-color: rgba(255, 51, 187, 0.07);
}

@media (max-width: 768px) {
    .tag2-tech-bridge-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── STEWARDSHIP ── */
.tag2-stewardship {
    padding: 6rem 2rem;
    background-color: var(--mid);
    color: #fff;
}
.tag2-stewardship-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.tag2-stewardship-text p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}
.tag2-stewardship-text p:last-child {
    margin-bottom: 0;
}
.tag2-stewardship-points {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.tag2-stewardship-point {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.tag2-stewardship-bullet {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 51, 187, 0.12);
    border: 1px solid rgba(255, 51, 187, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 700;
    margin-top: 0.1rem;
}
.tag2-stewardship-point-text strong {
    display: block;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.tag2-stewardship-point-text span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.55;
}

@media (max-width: 768px) {
    .tag2-stewardship-inner {
        grid-template-columns: 1fr;
    }
}

.app-store-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}
.app-store-badges a img {
    height: 40px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.app-store-badges a img.google-play {
    height: 58px;
}
.app-store-badges a:hover img {
    opacity: 1;
}
