/* drinkcupora.com site v1: additions on top of the compiled v2 stylesheet (assets/cupora-v2.css, never edited).
   Unlayered rules here beat the Tailwind @layer rules, so no !important is needed for overrides. */

html{scroll-padding-top:6rem}

/* Visible keyboard focus */
:focus-visible{outline:2px solid var(--color-terracotta);outline-offset:3px;border-radius:2px}
.site-footer :focus-visible,.hero :focus-visible,.mode-card :focus-visible{outline-color:var(--color-gold)}

/* "MG" unit labels: never below 12px (v2 rendered 9.6-10px) */
.mg{font-size:max(12px,.34em)}
.mg-lg{font-size:max(12px,.15em)}

/* Links inside body copy */
.prose-link{text-decoration:underline;text-decoration-color:var(--color-gold);text-decoration-thickness:1px;text-underline-offset:4px;transition:color .2s}
.prose-link:hover{color:var(--color-terracotta)}
.prose-link-light{color:var(--color-cream)}
.prose-link-light:hover{color:var(--color-gold)}

/* Buy / primary buttons. Clay (#a85030) on cream text = 4.8:1 (v2's terracotta button was 3.6:1). */
.btn-buy{display:inline-block;border-radius:.25rem;background:var(--color-clay);color:var(--color-cream);padding:1rem 2.5rem;font-family:var(--font-sans);font-size:var(--text-support);text-transform:uppercase;letter-spacing:.12em;text-align:center;transition:background-color .25s,color .25s}
.btn-buy:hover{background:#8d4126}
.btn-buy.btn-light{background:var(--color-cream);color:var(--color-forest)}
.btn-buy.btn-light:hover{background:var(--color-gold);color:var(--color-forest)}

/* Nav: the extra link only when there is room */
@media (max-width:1099.98px){.nav-mode{display:none}}

/* ---------- Hero ---------- */
.hero-scrim{background:linear-gradient(to top,rgba(20,24,16,.78),rgba(20,24,16,.35) 55%,transparent)}
.hero-img{object-position:64% center}
.hero .micro.text-gold{color:#dcc48c;text-shadow:0 1px 14px rgba(20,24,16,.55)}  /* gold lifted a touch so it holds 4.5:1 over the photo */
:root{--hero-img-h:clamp(300px,104vw,62svh)}

/* Desktop: the real box sits bottom-left of the photo, so the copy moves right and never covers it */
@media (min-width:1280px){
  .hero-copy-inner{margin-left:auto;max-width:min(48rem,100%)}
  .hero-img{object-position:46% center}
  /* keep the box (left) bright; darken only where the copy sits */
  .cine-vignette{opacity:.5}
  /* soft dark pool behind the copy so white, sage and gold text hold 4.5:1 over the hands and brewer */
  .hero-copy-inner{position:relative}
  .hero-copy-inner::before{content:"";position:absolute;z-index:-1;pointer-events:none;inset:-7rem -8rem -5rem -9rem;background:radial-gradient(ellipse 50% 50% at 50% 50%,rgba(14,18,10,.78) 0,rgba(14,18,10,.72) 42%,rgba(14,18,10,.36) 74%,transparent 100%)}
  .cine-grade,.hero-scrim{-webkit-mask-image:linear-gradient(to right,transparent 0,transparent 28%,#000 40%);mask-image:linear-gradient(to right,transparent 0,transparent 28%,#000 40%)}
}

/* Phones and tablets: photo on top (box + brewer in frame), copy underneath, photo fades into forest */
@media (max-width:1279.98px){
  .hero{justify-content:flex-start;min-height:0}
  .hero-img{bottom:auto;height:var(--hero-img-h);object-position:22% center}
  .cine-vignette{bottom:auto;height:var(--hero-img-h)}
  .cine-grade{display:none}
  .hero-scrim{background:linear-gradient(to bottom,transparent 0,transparent calc(var(--hero-img-h) - 8.5rem),rgba(35,48,31,.9) calc(var(--hero-img-h) - 4rem),var(--color-forest) calc(var(--hero-img-h) - 2.25rem))}
  .hero-copy{padding-top:calc(var(--hero-img-h) - 3.5rem);padding-bottom:3.5rem}
  .hero-copy .display{margin-top:1.25rem}
  .hero-copy .cine-fade.mt-10{margin-top:1.5rem;gap:1.5rem}
  .hero-copy .cine-fade.mt-12{margin-top:2rem}
}
@media (max-width:1279.98px) and (min-width:640px){
  :root{--hero-img-h:clamp(380px,62vw,64svh)}
  .hero-img{object-position:30% center}
}
@media (max-width:480px){
  .hero-copy{padding-left:1.5rem;padding-right:1.5rem}
  .hero-copy .display{font-size:clamp(2.6rem,12.2vw,3.2rem)}
  .hero-copy .cine-fade.mt-12{flex-wrap:wrap;gap:.35rem 1rem}
  .hero-copy .cine-fade.mt-12 > span{display:none}
  .hero-copy .micro{font-size:.9375rem}
}

/* ---------- Compare table: fits 375px without sideways scroll ---------- */
@media (max-width:639.98px){
  .compare-table{min-width:0;table-layout:fixed;width:100%}
  .compare-table th,.compare-table td{padding:.8rem .5rem .8rem 0;font-size:.875rem;line-height:1.3;overflow-wrap:break-word}
  .compare-table thead th{font-size:.6875rem;letter-spacing:.03em;padding:.5rem .4rem .7rem 0;line-height:1.25;vertical-align:bottom;overflow-wrap:normal}
  .compare-table thead th:first-child{width:31%}
  .compare-table tbody th{font-size:.875rem}
}

/* ---------- Pods image frame (the render is already framed: no zoom) ---------- */
.box-frame{aspect-ratio:1/1;width:100%;max-width:36rem;margin-inline:auto}

/* ---------- Lab results card ---------- */
.lab-card{background:var(--color-oat);border-radius:20px;padding:var(--space-block) clamp(1.5rem,4vw,3.5rem);max-width:52rem}
.lab-table{width:100%;margin-top:1.25rem;border-collapse:collapse;font-family:var(--font-sans)}
.lab-table th,.lab-table td{padding:.95rem 0;border-bottom:1px solid var(--color-parchment);font-size:1rem;font-weight:400;line-height:1.4;vertical-align:baseline}
.lab-table th{text-align:left;color:var(--color-olive);padding-right:1rem}
.lab-table td{text-align:right;color:var(--color-olive);font-weight:500;white-space:nowrap}
.lab-fine{margin-top:1.1rem;font-family:var(--font-sans);font-size:.875rem;line-height:1.6;color:var(--color-muted)}

/* ---------- FAQ ---------- */
.faq-q{cursor:pointer;background:none}
.faq-q[aria-expanded="true"] .faq-plus{rotate:45deg}

/* ---------- Footer ---------- */
.site-footer a{color:rgba(245,241,232,.88);text-decoration:underline;text-decoration-color:rgba(245,241,232,.3);text-underline-offset:4px;transition:color .2s,text-decoration-color .2s}
.site-footer a:hover{color:#fff;text-decoration-color:var(--color-gold)}
.footer-cols{display:grid;grid-template-columns:1fr;gap:2.25rem;margin-top:3rem}
@media (min-width:640px){.footer-cols{grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem}}
.footer-h{font-family:var(--font-sans);font-size:.8125rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--color-gold);margin-bottom:.9rem;line-height:1.3}
.footer-cols li{margin-top:.65rem;font-family:var(--font-sans);font-size:1rem;line-height:1.4;overflow-wrap:anywhere}
.footer-fine{color:rgba(245,241,232,.8)}
.site-footer address{font-family:var(--font-sans);font-size:var(--text-fine);font-style:normal}
.site-footer > div > img{margin-left:-.9rem}

/* ---------- Text pages (privacy, terms, returns, 404) ---------- */
.page-main{max-width:680px;margin:0 auto;padding:clamp(3rem,7vw,5.5rem) 1.5rem clamp(4rem,9vw,7rem)}
.page-main h1{font-family:var(--font-display);font-size:var(--t-1);font-weight:300;letter-spacing:-.03em;line-height:1.02}
.page-main .updated{margin-top:.9rem;font-family:var(--font-sans);font-size:.9375rem;color:var(--color-muted)}
.page-main h2{font-family:var(--font-display);font-size:var(--t-3);font-weight:400;line-height:1.15;margin-top:2.75rem;color:var(--color-olive)}
.page-main p,.page-main li{font-family:var(--font-sans);font-size:1.0625rem;line-height:1.75;color:var(--color-olive)}
.page-main p{margin-top:1rem}
.page-main ol{margin-top:1rem;padding-left:1.5rem;list-style:decimal}
.page-main ol li{margin-top:.6rem;padding-left:.25rem}
.page-main a{text-decoration:underline;text-decoration-color:var(--color-gold);text-underline-offset:4px;transition:color .2s}
.page-main a:hover{color:var(--color-terracotta)}
.page-main .btn-row{display:flex;flex-wrap:wrap;gap:1rem;margin-top:2.25rem}
.page-main .btn-row a{text-decoration:none;color:var(--color-cream)}
.page-main .btn-row a.btn-light{background:transparent;color:var(--color-forest);box-shadow:inset 0 0 0 1.5px var(--color-forest)}
.page-main .btn-row a.btn-light:hover{background:var(--color-forest);color:var(--color-cream)}
.page-404 h1{font-size:var(--text-section)}

/* Pod diagram (desktop): a wider figure so the callouts sit fully outside the photo, with room to breathe. */
@media (min-width: 1024px) {
  .pod-figure { max-width: 72rem; }
  .pod-figure img { max-width: 440px; }
  .pod-callouts > li.left-0 { left: auto; right: calc(50% + 220px + 1.5rem); width: min(17rem, calc(50% - 220px - 2rem)); }
  .pod-callouts > li.right-0 { right: auto; left: calc(50% + 220px + 1.5rem); width: min(17rem, calc(50% - 220px - 2rem)); }
}
@media (min-width: 1280px) {
  .pod-figure img { max-width: 512px; }
  .pod-callouts > li.left-0 { right: calc(50% + 256px + 1.75rem); width: min(17rem, calc(50% - 256px - 2.25rem)); }
  .pod-callouts > li.right-0 { left: calc(50% + 256px + 1.75rem); width: min(17rem, calc(50% - 256px - 2.25rem)); }
}

/* "What's your Cupora mode?" band: the owner's photo of the printed inner lid. */
.mode-photo-wrap { flex: none; width: 100%; max-width: 26rem; }
.mode-photo-wrap picture, .mode-photo { display: block; }
.mode-photo { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.55); }
@media (min-width: 1024px) { .mode-photo-wrap { width: 20rem; } }
