/* Public site page styles (landing, shop, product, resources, free, legal).
   Owned by the public-site build; shared tokens/components live in agapaya.css. */

/* --- landing page ------------------------------------------------------------
   A brand-story arc: problem → guide → the kit as real paper → plan → stakes →
   CTA. Bands reach the viewport edges with a box-shadow + clip-path rather than
   width:100vw, so a visible scrollbar can never add horizontal overflow (the
   bleed-out class of bug this repo has been bitten by before). The paper cards
   quote real kit pages; the fridge card on the hero is the one loud element. */
.hand-note { font-family: var(--hand); color: var(--coral); font-size: 24px; line-height: 1.1; font-weight: 500; margin: 0 0 6px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 40px 0 56px; }
.home-hero h1 { font-size: clamp(36px, 3.9vw, 50px); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; margin: 6px 0 18px; max-width: 16ch; }
.home-hero .lede { font-size: 19px; line-height: 30px; max-width: 42ch; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-facts { display: grid; gap: 12px; max-width: 460px; }
.hero-facts li { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.home-hero-media { position: relative; padding: 0 24px 40px 0; }
.hero-blob { position: absolute; right: -36px; top: -44px; width: 260px; height: 260px; border-radius: 50%; background: var(--peach); z-index: 0; }
/* height:auto is load-bearing: the img carries width/height attributes, and
   without it the height="900" hint wins over aspect-ratio. */
.hero-photo { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 62% 38%; border-radius: 28px 28px 28px 8px; box-shadow: var(--shadow-lg); }

.paper { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px 16px; box-shadow: 0 14px 34px rgba(31,42,68,.12), 0 1px 2px rgba(31,42,68,.06); }
.paper-tape { position: absolute; left: 50%; top: -11px; width: 76px; height: 22px; transform: translateX(-50%) rotate(-3deg); background: rgba(245,185,78,.55); border-radius: 2px; }
.paper-title { font-size: 19px; line-height: 24px; font-weight: 700; margin: 0 0 10px; letter-spacing: -.01em; color: var(--ink); }
.paper-kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.paper-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.paper-kicker .dot-coral { background: var(--coral); }
.paper-kicker .dot-sun { background: var(--sun); }
.paper-note { font-size: 13px; line-height: 18px; color: var(--muted); margin: 12px 0 0; font-style: italic; }
.paper-foot { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--muted); margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--border); }
.paper-foot .icon { color: var(--teal); }
.fridge-card { position: absolute; z-index: 2; left: -36px; bottom: -8px; width: 250px; transform: rotate(-3.5deg); padding-top: 22px; }
.fridge-card .hand-note { font-size: 20px; margin-bottom: 2px; }
.reset-list { margin: 0; padding: 0 0 0 26px; font-size: 17px; line-height: 26px; font-weight: 600; color: var(--ink); }
.reset-list li::marker { color: var(--coral); font-weight: 700; }

.home-problem { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 24px 0 40px; }
.home-problem h2 { font-size: 30px; line-height: 38px; margin-bottom: 20px; }
.problem-list li { position: relative; padding: 10px 0 10px 30px; font-size: 21px; line-height: 31px; color: var(--ink-2); }
.problem-list li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 11px; height: 11px; border-radius: 50% 50% 50% 0; background: var(--coral); transform: rotate(-45deg); }
.problem-close { font-size: 26px; line-height: 34px; font-weight: 600; color: var(--ink); max-width: 22ch; margin: 0; }

.band { position: relative; padding: 64px 0; margin: 32px 0; background: var(--band-bg); box-shadow: 0 0 0 100vmax var(--band-bg); clip-path: inset(0 -100vmax); }
.band-white { --band-bg: var(--surface); }
.band-sage { --band-bg: var(--sage); }

.home-guide { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.home-guide h2 { font-size: 34px; line-height: 40px; letter-spacing: -.015em; margin-bottom: 14px; }
.guide-story .lede { max-width: 48ch; }
.guide-story .decor-sprig { width: 84px; height: auto; display: block; margin: 20px 0 6px; }
.guide-story .handwritten { color: var(--teal); font-size: 26px; margin: 0; }
.trust-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--border-2); }
.trust-list li:first-child { border-top: 0; padding-top: 4px; }
.trust-list h3 { font-size: 17px; line-height: 24px; margin: 4px 0 4px; }
.trust-list p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 23px; }

.kit-head { max-width: 62ch; margin-bottom: 32px; }
.kit-head h2 { font-size: 34px; line-height: 40px; letter-spacing: -.015em; }
.kit-head .lede { margin: 0; }
.kit-body { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: start; }
.kit-product .product-cover { display: block; width: 100%; max-width: 300px; height: auto; border-radius: 14px; box-shadow: var(--shadow-lg); background: #fff; margin-bottom: 18px; }
.kit-product h3 { font-size: 24px; line-height: 30px; margin-bottom: 8px; }
.kit-product h3 a { color: inherit; text-decoration: none; }
.kit-product h3 a:hover { color: var(--teal); }
.kit-product p { color: var(--ink-2); }
.kit-product .product-price-lg { margin: 4px 0 14px; }
.kit-product .featured-note { font-size: 14px; line-height: 21px; margin: 14px 0 0; }
.home-kit.is-coming-soon .product-cover { opacity: .92; }
.buy-buttons { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.kit-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; padding-top: 8px; }
.kit-card-a { transform: rotate(-1.5deg); }
.kit-card-b { transform: translateY(18px) rotate(.5deg); }
.kit-card-c { transform: rotate(1.5deg); }
.reset-steps { margin: 0; padding-left: 22px; font-size: 15px; line-height: 23px; color: var(--ink-2); }
.reset-steps li + li { margin-top: 8px; }
.reset-steps li::marker { color: var(--teal); font-weight: 700; }
.phrase-list { display: flex; flex-wrap: wrap; gap: 8px; }
.phrase-list li { background: var(--peach); color: var(--ink); font-weight: 600; font-size: 15px; line-height: 20px; padding: 7px 12px; border-radius: 999px; }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick-grid li { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border: 1.5px solid var(--border); border-radius: 12px; font-weight: 600; font-size: 15px; line-height: 20px; background: var(--surface-2); }
.pick-grid li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--sun); flex-shrink: 0; }

.home-plan { padding: 40px 0 24px; }
.plan-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.plan-steps li { padding: 0 8px; }
.plan-steps .icon-circle { margin-bottom: 14px; }
.plan-steps h3 { font-size: 18px; line-height: 26px; margin-bottom: 6px; display: flex; align-items: baseline; gap: 10px; }
.step-no { font-family: var(--hand); color: var(--coral); font-size: 28px; line-height: 1; font-weight: 600; }
.plan-steps p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 23px; }

.ledger { display: grid; grid-template-columns: 1fr 1fr; max-width: 880px; margin: 0 auto; }
.ledger-col { padding: 8px 32px; }
.ledger-col + .ledger-col { border-left: 1px solid var(--border); }
.ledger h3 { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.ledger-with h3 { color: var(--teal); }
.ledger li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 26px; padding: 8px 0; color: var(--ink-2); }
.ledger li .icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; color: #C9C0AE; }
.ledger-with li { color: var(--ink); }
.ledger-with li .icon { color: var(--teal); }
.promise { text-align: center; font-size: 22px; line-height: 32px; font-weight: 600; max-width: 34ch; margin: 36px auto 0; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.story { text-align: center; padding: 24px 0 8px; }
.story h2 { font-size: 30px; line-height: 38px; }
.story .lede { max-width: 70ch; margin: 0 auto 20px; }
.story .decor-sprig { width: 96px; height: auto; display: block; margin: 0 auto; }
.story .handwritten { color: var(--teal); font-size: 24px; margin-top: 8px; }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; padding: 24px 0 48px; }
.pillars .feature-card h3 { font-size: 17px; }
.testimonial { position: relative; background: var(--sage); border-radius: 20px; padding: 40px 88px; text-align: center; margin-bottom: 32px; }
.testimonial .kicker { color: var(--ink-2); }
.testimonial .slide { margin: 0; }
.testimonial blockquote { margin: 0; font-size: 26px; line-height: 34px; font-weight: 600; max-width: 30ch; margin: 0 auto 8px; }
.testimonial figcaption { margin-top: 8px; }
.testimonial cite { font-style: normal; color: var(--muted); font-size: 14px; }
.testimonial .btn-icon { position: absolute; top: 50%; transform: translateY(-50%); }
.testimonial .btn-icon.prev { left: 28px; } .testimonial .btn-icon.next { right: 28px; }
.testimonial-track { overflow: hidden; }
.testimonial-track > .slide { display: none; }
.testimonial-track > .slide.is-active { display: block; }
.testimonial-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.testimonial-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #B9CFC4; cursor: pointer; padding: 0; }
.testimonial-dots button.is-active { background: var(--teal); }

.resources-teaser .tile { align-items: center; }
.tile-body { min-width: 0; }
.tile-body h3 { font-size: 16px; margin: 0 0 2px; }
.tile-body p { margin: 0; font-size: 14px; color: var(--muted); }
.cta-banner .decor-sprig { width: 72px; height: auto; flex-shrink: 0; }
.cta-banner .icon-circle { flex-shrink: 0; }
.cta-banner h3 { font-size: 20px; line-height: 28px; }
.cta-banner-home { margin-top: 8px; }

.page-intro { max-width: 68ch; margin-bottom: 28px; }
.page-intro h1 { font-size: 36px; line-height: 44px; }
.page-intro .lede { margin: 0; }
.page-intro-center { text-align: center; margin-left: auto; margin-right: auto; }
.section-block { margin-top: 36px; }
.section-block h2 { margin-bottom: 14px; }

.shop-search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.shop-search .search-box { flex: 1; min-width: 240px; max-width: 480px; }
.shop-result-count { margin: -8px 0 16px; }
.empty-panel { text-align: center; padding: 40px 24px; max-width: 560px; margin: 0 auto; }
.empty-panel .icon-circle { margin: 0 auto 12px; }
.empty-panel h2 { margin-bottom: 6px; }
.empty-panel p { margin-bottom: 16px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.product-card { text-decoration: none; color: inherit; overflow: hidden; display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--teal); }
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: contain; padding: 18px; display: block; background: var(--sage); }
.product-card-placeholder { aspect-ratio: 4/3; background: var(--sage); display: flex; align-items: center; justify-content: center; color: var(--teal); }
.product-card-placeholder .icon { width: 40px; height: 40px; }
.product-card .product-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { margin-bottom: 4px; }
.product-card p { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.product-card .card-link { margin-top: auto; }
/* Price surfaced from products.price_usd (App\Support\PriceDisplay). -lg is the
   product page + the home featured block; the plain one sits in the shop grid
   card between the blurb and the bottom-aligned card-link. */
.product-price { font-size: 15px; color: var(--ink); margin: 0 0 10px; }
.product-price strong { font-weight: 700; }
.product-price-lg { font-size: 24px; line-height: 32px; color: var(--ink); margin: 0 0 14px; }
.product-price-lg strong { font-weight: 700; }
.product-price-lg .muted { display: block; font-size: 13px; line-height: 18px; font-weight: 400; margin-top: 2px; }

.product-cover-large { width: 100%; max-width: 420px; height: auto; border-radius: 16px; margin-bottom: 20px; display: block; box-shadow: var(--shadow-lg); }
.product-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 32px; align-items: start; }
.product-main h1 { font-size: 36px; line-height: 44px; }
.product-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.buy-box { position: sticky; top: 88px; }
.buy-box h2 { font-size: 20px; margin-bottom: 4px; }
.buy-box .check-list { margin: 8px 0 16px; font-size: 15px; }
.buy-box .buy-buttons { flex-direction: column; align-items: stretch; }
.buy-box .buy-buttons .inline-form { display: block; }
.buy-box .buy-buttons .btn { width: 100%; }
.buy-box .free-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.product-description { font-size: 17px; line-height: 28px; }
.product-description h2 { margin-top: 24px; }
.sticky-cta { display: none; }

.article-page { max-width: 760px; }
.article-head { margin-bottom: 20px; }
.article-body { font-size: 17px; line-height: 29px; max-width: 70ch; }
.article-body h2 { margin-top: 32px; }
.article-body img { border-radius: 12px; }
.article-body p, .article-body li { color: var(--ink-2); }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body .btn { text-decoration: none; }

.resource-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.resource-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; text-decoration: none; color: inherit; }
.resource-card-link:hover { border-color: var(--teal); }
.resource-card-body { min-width: 0; }
.resource-card-body h3 { font-size: 17px; margin-bottom: 4px; }
.resource-card-body p { color: var(--muted); font-size: 14px; margin: 0 0 10px; }

.free-magnet { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 32px; align-items: start; }
.free-magnet-copy .check-list { margin: 16px 0; font-size: 16px; }
.lead-form { max-width: 420px; }
.lead-form-card h2 { margin-bottom: 12px; }
.lead-form-card .lead-form { max-width: none; }
.lead-form-card .field-hint { margin-top: 12px; }
.free-thank-you { max-width: 620px; margin: 0 auto; text-align: center; padding: 40px 0; }
.free-thank-you .icon-circle { margin: 0 auto 16px; }
.free-thank-you .lede { margin-bottom: 20px; }
.free-thank-you > .btn { margin-bottom: 12px; }
.thank-you-next { text-align: left; margin-top: 28px; }
.thank-you-next h2 { font-size: 18px; }
.thank-you-next li + li { margin-top: 8px; }
.thank-you-next a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; }
.thank-you-next a:hover { text-decoration: underline; }

.pricing-grid { max-width: 760px; margin: 0 auto; }
.plan-card h2 { margin-bottom: 2px; }
.plan-price { font-size: 22px; font-weight: 700; margin: 0 0 12px; color: var(--teal); }

.about-banner { margin-top: 8px; }
.about-grid .card .icon-circle { margin-bottom: 12px; }
.about-grid .card h2 { font-size: 20px; }
.about-grid .card p { color: var(--ink-2); margin: 0; }

.section { padding: 32px 0; }
.section-head { text-align: center; margin-bottom: 24px; }
.section-head h2 { font-size: 30px; line-height: 38px; }
.legal-page { max-width: 760px; }
.not-found { text-align: center; padding: 64px 0; }
.not-found .display { margin-bottom: 8px; }
.not-found .lede { max-width: 52ch; margin: 0 auto 24px; }
.not-found-actions { justify-content: center; margin-bottom: 16px; }

.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px 20px; }
.cookie-banner-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 1120px; margin: 0 auto; }
.cookie-banner-text { flex: 1; min-width: 240px; font-size: 14px; color: var(--ink-2); margin: 0; }
.cookie-banner-actions { display: flex; gap: 8px; }
.cookie-banner-btn { font: inherit; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 10px; border: 1.5px solid var(--ink-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.cookie-banner-btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }

@media (max-width: 960px) {
  .home-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 20px; }
  .home-hero h1 { max-width: none; }
  .home-hero-media { padding: 0 0 56px; margin: 0 8px; }
  /* Keep the blob inside the container's 16px gutter — at -36px it set the
     page width to 402px on a 390px viewport. */
  .hero-blob { right: -8px; top: -24px; width: 200px; height: 200px; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .fridge-card { left: 12px; bottom: 0; width: 240px; }
  .home-guide, .kit-body, .home-problem { grid-template-columns: 1fr; gap: 32px; }
  .problem-close { margin-top: 8px; }
  .kit-cards { grid-template-columns: 1fr; gap: 24px; max-width: 420px; }
  .kit-card-a, .kit-card-b, .kit-card-c { transform: none; }
  .plan-steps { grid-template-columns: 1fr; gap: 24px; }
  .band { padding: 48px 0; }
  .pillars { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-layout, .free-magnet { grid-template-columns: 1fr; }
  .buy-box { position: static; }
  .testimonial { padding: 32px 56px; }
  .testimonial blockquote { font-size: 22px; line-height: 30px; }
}
@media (max-width: 640px) {
  .home-hero h1 { font-size: 34px; line-height: 40px; }
  .home-hero .lede { font-size: 17px; line-height: 27px; }
  .hero-photo { border-radius: 20px 20px 20px 6px; }
  .fridge-card { width: 210px; left: 8px; padding: 22px 14px 12px; }
  .reset-list { font-size: 15px; line-height: 23px; }
  .home-guide h2, .kit-head h2 { font-size: 27px; line-height: 33px; }
  .kit-product .product-cover { max-width: 220px; }
  .problem-list li { font-size: 18px; line-height: 27px; }
  .problem-close { font-size: 21px; line-height: 29px; }
  .ledger { grid-template-columns: 1fr; }
  .ledger-col { padding: 8px 0; }
  .ledger-col + .ledger-col { border-left: 0; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 20px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  .pillars, .product-grid, .resource-list { grid-template-columns: 1fr; }
  .page-intro h1, .product-main h1 { font-size: 30px; line-height: 36px; }
  .story h2, .section-head h2 { font-size: 26px; line-height: 32px; }
  .testimonial { padding: 28px 20px 24px; }
  .testimonial .btn-icon { display: none; }
  .cta-banner .decor-sprig { display: none; }
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 10px; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(31,42,68,.08); }
  .sticky-cta form { flex: 1; } .sticky-cta .btn { width: 100%; }
  body:has(.sticky-cta) .site-footer { padding-bottom: 80px; }
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
}
