/* =========================================================
   Bug Barracks: light "greenhouse morning" theme
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --paper: #F3F8EC;        /* pale leaf-tinted page */
    --paper-2: #E4EFD5;      /* deeper leaf wash for bands */
    --white: #FFFFFF;
    --ink: #10301F;          /* deep green-black text */
    --ink-soft: #3F5A48;
    --ink-muted: #647A6B;
    --lime: #A8E63A;         /* brand light green */
    --forest: #006838;       /* brand deep green */
    --forest-dark: #0A3D24;
    --sun: #FFE14D;          /* station yellow */
    --soil: #8A5A2B;
    --soil-wash: #F4E6D3;
    --line: #CFE0BF;
    --font: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    --marker: 'Permanent Marker', 'Comic Sans MS', cursive;
    --radius-lg: 28px;
    --radius-md: 16px;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--font); background: var(--paper); color: var(--ink); line-height: 1.65; font-size: 17px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--forest); }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.05; letter-spacing: -0.025em; font-weight: 900; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 58ch; }
.marker { font-family: var(--marker); font-weight: 400; letter-spacing: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.band { padding: 110px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { margin-top: 18px; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--forest); color: var(--white); text-align: center; font-size: 14px; font-weight: 600; padding: 9px 16px; }
.announce strong { color: var(--sun); }

/* ---------- Navigation ---------- */
nav { position: sticky; top: 0; z-index: 1000; background: rgba(243, 248, 236, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 12px 24px; }
.nav-container { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 42px; width: auto; }
.nav-wordmark { font-weight: 900; font-size: 19px; letter-spacing: 0.06em; color: var(--forest); }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--forest); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.nav-cta { background: var(--ink); color: var(--white); text-decoration: none; font-weight: 800; font-size: 15px; padding: 10px 22px; border-radius: 999px; transition: background .2s; }
.nav-cta:hover { background: var(--forest); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 800; font-size: 17px; padding: 17px 32px; border-radius: 999px; transition: transform .15s, box-shadow .15s, background .2s, color .2s; }
.btn-lime { background: var(--lime); color: var(--ink); box-shadow: 0 6px 0 var(--forest); }
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--forest); }
.btn-lime:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--forest); }
.btn-ghost { color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 0 #C9A800; }
.btn-sun:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #C9A800; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 120px; position: relative; overflow: hidden;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 225, 77, 0.6) 0, rgba(255, 225, 77, 0) 32%),
        radial-gradient(circle at 6% 92%, rgba(168, 230, 58, 0.35) 0, rgba(168, 230, 58, 0) 40%),
        var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 6.6vw, 5.5rem); letter-spacing: -0.045em; line-height: 0.92; }
.hero h1 .line { display: block; }
.hero h1 .line-2 { position: relative; display: inline-block; color: var(--forest); white-space: nowrap; }
.scribble { position: absolute; left: -2%; bottom: -0.24em; width: 104%; height: 0.32em; overflow: visible; }
.scribble path { fill: none; stroke: var(--lime); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 0.9s 1s ease-out forwards; }
.hero .lead { margin: 36px 0 38px; font-size: 19px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note { margin-top: 26px; font-size: 15px; color: var(--ink-muted); font-weight: 600; }
.hero-note b { color: var(--ink); }

/* Hanging station visual */
.hang { position: relative; padding-top: 74px; max-width: 400px; margin: 0 118px 0 auto; width: 100%; }
.rail { position: absolute; top: 0; left: -60px; right: -60px; height: 16px; border-radius: 10px; background: linear-gradient(#C9D4CC, #8FA196); box-shadow: 0 6px 14px rgba(16, 48, 31, 0.2); }
.swing { transform-origin: 50% -60px; animation: swing 2.4s cubic-bezier(.3,.7,.3,1) both; }
.hook { position: absolute; left: 50%; top: -66px; width: 46px; height: 76px; transform: translateX(-50%); z-index: 2; }
.house-frame { position: relative; background: var(--sun); padding: 12px; clip-path: polygon(50% 0, 100% 26%, 100% 100%, 0 100%, 0 26%); filter: drop-shadow(0 22px 30px rgba(16,48,31,0.25)); }
.house-frame img { clip-path: polygon(50% 0, 100% 26%, 100% 100%, 0 100%, 0 26%); aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 50%; width: 100%; height: auto; }
.tags { position: absolute; inset: 0; pointer-events: none; }
.tag { position: absolute; font-family: var(--marker); font-size: 19px; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.tag .hl { background: var(--sun); padding: 1px 8px; border-radius: 4px; }
.tag svg { position: absolute; width: 58px; height: 40px; overflow: visible; }
.tag svg path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tag-1 { left: -128px; top: 66%; transform: rotate(-5deg); }
.tag-1 svg { right: -60px; top: 6px; }
.tag-2 { right: -128px; top: 30%; transform: rotate(4deg); }
.tag-2 svg { left: -60px; top: 16px; }
.tag-3 { right: -128px; bottom: 6%; transform: rotate(-3deg); }
.tag-3 svg { left: -60px; top: -14px; }

/* ---------- Pest band ---------- */
.pest-band { background: var(--ink); color: var(--white); padding: 26px 0; }
.pest-band .wrap { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; justify-content: center; }
.pest-band .label { font-family: var(--marker); font-size: 22px; color: var(--lime); margin-right: 6px; }
.pest { font-weight: 800; font-size: 17px; padding: 7px 18px; border: 2px solid rgba(255,255,255,0.25); border-radius: 999px; }

/* ---------- How it works ---------- */
.how { background: var(--white); border-radius: var(--radius-lg); margin: 0 16px; }
.how-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.how-photo { position: relative; }
.how-photo img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: auto; }
.how-photo .note { position: absolute; right: -16px; bottom: 30px; background: var(--sun); padding: 10px 16px; border-radius: 10px; font-family: var(--marker); font-size: 18px; transform: rotate(-4deg); box-shadow: 0 8px 20px rgba(16,48,31,0.15); }
.steps { list-style: none; display: grid; gap: 34px; }
.steps li { display: grid; grid-template-columns: 76px 1fr; gap: 22px; align-items: start; }
.step-num { width: 76px; height: 76px; border-radius: 50%; background: var(--lime); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 34px; color: var(--ink); }
.steps li:nth-child(2) .step-num { background: var(--sun); }
.steps li:nth-child(3) .step-num { background: var(--forest); color: var(--white); }
.steps h3 { font-size: 26px; margin: 10px 0 8px; }
.steps p { color: var(--ink-soft); }
.guide-callout { margin-top: 40px; border: 2px dashed var(--forest); border-radius: var(--radius-md); padding: 22px 26px; background: var(--paper); }
.guide-callout h3 { font-size: 20px; margin-bottom: 6px; letter-spacing: -0.01em; }
.guide-callout p { color: var(--ink-soft); font-size: 16px; }

/* ---------- Recruits (insects) ---------- */
.recruit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.recruit { background: var(--white); border-radius: 22px; position: relative; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); overflow: hidden; display: flex; flex-direction: column; }
.recruit.canopy { --unit: var(--forest); --unit-wash: #E3F5C9; }
.recruit.soil { --unit: var(--soil); --unit-wash: var(--soil-wash); }
.recruit-photo { position: relative; aspect-ratio: 4 / 3; background: #E9EEE6; border-bottom: 2px solid var(--ink); }
.recruit-photo img { width: 100%; height: 100%; object-fit: cover; }
.recruit-photo .unit { position: absolute; left: 14px; top: 14px; }
.unit { display: inline-block; font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 999px; background: var(--unit-wash); color: var(--unit); box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.recruit-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.recruit h3 { font-size: 23px; letter-spacing: -0.02em; }
.sci { font-style: italic; color: var(--ink-muted); font-size: 14px; margin: 4px 0 12px; }
.recruit p { font-size: 15px; color: var(--ink-soft); }
.hunts { margin-top: auto; padding-top: 14px; border-top: 2px dotted var(--line); font-size: 14px; }
.recruit p + .hunts { margin-top: 16px; }
.hunts b { color: var(--unit); }
.fine { margin-top: 30px; font-size: 14px; color: var(--ink-muted); max-width: 70ch; }

/* ---------- Product ---------- */
.product { background: var(--paper-2); }
.product-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.product-photo { position: relative; max-width: 460px; }
.product-photo img { border-radius: var(--radius-lg); width: 100%; height: auto; transform: rotate(-1.5deg); box-shadow: 0 24px 50px rgba(16,48,31,0.2); }
.product-photo .note { position: absolute; left: -18px; top: 30px; background: var(--white); padding: 8px 14px; border-radius: 10px; font-family: var(--marker); font-size: 18px; transform: rotate(-6deg); box-shadow: 0 8px 20px rgba(16,48,31,0.15); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 32px 0 36px; }
.spec { background: var(--white); border-radius: var(--radius-md); padding: 18px 20px; }
.spec dt { font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.spec dd { font-weight: 800; font-size: 17px; line-height: 1.3; margin-top: 4px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 34px; align-items: start; padding-top: 12px; }
.polaroid { background: var(--white); padding: 12px 12px 14px; border-radius: 6px; box-shadow: 0 18px 36px rgba(16,48,31,0.16); position: relative; }
.polaroid:nth-child(6n+1) { transform: rotate(-2.4deg); }
.polaroid:nth-child(6n+2) { transform: rotate(1.6deg) translateY(18px); }
.polaroid:nth-child(6n+3) { transform: rotate(-1deg); }
.polaroid:nth-child(6n+4) { transform: rotate(1.4deg); }
.polaroid:nth-child(6n+5) { transform: rotate(-1.8deg) translateY(18px); }
.polaroid:nth-child(6n+6) { transform: rotate(2deg); }
.polaroid::before { content: ''; position: absolute; top: -13px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgba(168, 230, 58, 0.75); }
.polaroid:nth-child(even)::before { background: rgba(255, 225, 77, 0.85); transform: translateX(-50%) rotate(4deg); }
.polaroid img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { font-family: var(--marker); font-size: 19px; text-align: center; margin-top: 10px; }
.gallery .fine { text-align: center; margin: 60px auto 0; }

/* ---------- Pricing ---------- */
.pricing { background: var(--white); border-radius: var(--radius-lg); margin: 0 16px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pricing-card { border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px 30px; display: flex; flex-direction: column; position: relative; background: var(--paper); }
.pricing-card.featured { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateY(-14px); }
.pricing-card.featured .per, .pricing-card.featured .who, .pricing-card.featured li { color: #CFE3D5; }
.sticker { position: absolute; top: -20px; right: 22px; background: var(--sun); color: var(--ink); font-family: var(--marker); font-size: 18px; padding: 8px 16px; border-radius: 10px; transform: rotate(5deg); box-shadow: 0 6px 14px rgba(0,0,0,0.18); }
.pricing-card h3 { font-size: 28px; }
.who { color: var(--ink-soft); font-size: 15px; margin-top: 4px; }
.price { font-size: 54px; font-weight: 900; letter-spacing: -0.04em; margin: 22px 0 2px; line-height: 1; }
.per { color: var(--ink-muted); font-weight: 700; font-size: 15px; }
.pricing-card ul { list-style: none; margin: 24px 0 30px; display: grid; gap: 10px; }
.pricing-card li { font-size: 15px; color: var(--ink-soft); padding-left: 28px; position: relative; }
.pricing-card li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2310301F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.pricing-cta { margin-top: auto; display: block; text-align: center; text-decoration: none; font-weight: 800; font-size: 17px; padding: 16px; border-radius: 999px; background: var(--ink); color: var(--white); transition: background .2s, transform .15s; }
.pricing-cta:hover { background: var(--forest); transform: translateY(-2px); }
.pricing-card.featured .pricing-cta { background: var(--lime); color: var(--ink); }
.pricing-card.featured .pricing-cta:hover { background: var(--sun); }
.pricing .fine { text-align: center; margin: 40px auto 0; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-side .lead { margin-top: 18px; }
.faq-side .marker { display: inline-block; margin-top: 24px; font-size: 21px; color: var(--forest); transform: rotate(-2deg); }
.faq-list details { border-bottom: 2px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 22px 52px 22px 0; font-weight: 800; font-size: 19px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--lime); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; transition: transform .2s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Final CTA ---------- */
.final { background: var(--forest); color: var(--white); text-align: center; position: relative; overflow: hidden; border-radius: var(--radius-lg); margin: 0 16px 16px; }
.final::before, .final::after { content: ''; position: absolute; border-radius: 50%; }
.final::before { width: 420px; height: 420px; background: rgba(168, 230, 58, 0.22); top: -180px; left: -120px; }
.final::after { width: 300px; height: 300px; background: rgba(255, 225, 77, 0.2); bottom: -140px; right: -60px; }
.final .wrap { position: relative; z-index: 1; }
.final h2 { font-family: var(--marker); font-weight: 400; font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: 0; line-height: 1.05; color: var(--sun); transform: rotate(-2deg); }
.final p { margin: 22px auto 36px; max-width: 52ch; color: #DDEFE2; font-size: 18px; }
.final-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.final .btn-ghost { color: var(--white); border-color: var(--white); }
.final .btn-ghost:hover { background: var(--white); color: var(--forest); }

/* ---------- Footer ---------- */
footer { background: var(--forest-dark); color: #BFD6C6; padding: 64px 24px 32px; font-size: 15px; }
.footer-content { max-width: 1180px; margin: 0 auto 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { height: 96px; width: auto; margin-bottom: 14px; }
.footer-section h4 { color: var(--white); font-size: 16px; margin-bottom: 14px; }
.footer-section ul { list-style: none; }
.footer-section a { color: #BFD6C6; text-decoration: none; display: block; margin-bottom: 8px; }
.footer-section a:hover { color: var(--lime); }
.footer-tagline { font-family: var(--marker); color: var(--lime); font-size: 20px; }
.footer-bottom { max-width: 1180px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; font-size: 14px; }
.credits { margin-top: 10px; font-size: 12px; color: #8FAE9A; }
.credits a { color: #8FAE9A; }

/* ---------- Policy pages ---------- */
.policy { max-width: 760px; margin: 0 auto; padding: 64px 24px 100px; }
.policy h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: -0.035em; margin-bottom: 8px; }
.policy .updated { color: var(--ink-muted); font-size: 14px; margin-bottom: 40px; }
.policy h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -0.02em; color: var(--forest); }
.policy p, .policy li { color: var(--ink-soft); margin-bottom: 12px; }
.policy ul, .policy ol { padding-left: 24px; margin-bottom: 16px; }
.policy table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; background: var(--white); border-radius: var(--radius-md); overflow: hidden; }
.policy th, .policy td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.policy th { background: var(--paper-2); }
.back-link { display: inline-block; margin-bottom: 28px; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ---------- Motion: one moment, on load ---------- */
@keyframes swing { 0% { transform: rotate(9deg); } 35% { transform: rotate(-6deg); } 60% { transform: rotate(3deg); } 80% { transform: rotate(-1.2deg); } 100% { transform: rotate(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
    .swing { animation: none; }
    .scribble path { animation: none; stroke-dashoffset: 0; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1150px) {
    .recruit-grid { grid-template-columns: repeat(2, 1fr); }
    .hang { margin-right: 96px; max-width: 360px; }
    .tag-1 { left: -110px; }
}
@media (max-width: 900px) {
    body { font-size: 16px; }
    .band { padding: 72px 0; }
    .nav-links { display: none; }
    nav { padding: 10px 16px; }
    .wrap { padding: 0 18px; }
    .hero { padding: 36px 0 72px; }
    .hero-grid, .how-grid, .product-grid, .faq-grid { grid-template-columns: 1fr; gap: 44px; }
    .hang { margin: 10px auto 0; max-width: 330px; }
    .hang { margin-right: auto; }
    .rail { left: -30px; right: -30px; }
    .tags { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 22px; }
    .tag { position: static; transform: none; font-size: 17px; white-space: normal; }
    .tag svg { display: none; }
    .how, .pricing, .final { margin-left: 8px; margin-right: 8px; border-radius: 22px; }
    .how-photo { max-width: 420px; }
    .how-photo .note { right: 8px; }
    .product-photo { margin: 0 auto; }
    .product-photo .note { left: 4px; }
    .pricing-grid, .gallery-grid { grid-template-columns: 1fr; }
    .pricing-grid { gap: 36px; }
    .pricing-card.featured { transform: none; }
    .gallery-grid { max-width: 440px; margin: 0 auto; }
    .polaroid:nth-child(n) { transform: rotate(-1deg); }
    .polaroid:nth-child(even) { transform: rotate(1.2deg); }
    .specs { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .recruit-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .hero-ctas .btn { flex: 1 1 100%; }
    .steps li { grid-template-columns: 58px 1fr; gap: 16px; }
    .step-num { width: 58px; height: 58px; font-size: 26px; }
    .steps h3 { margin-top: 4px; font-size: 22px; }
}
.outer { padding: 40px 0; }
