/* ===== The Jar Bar — Modern Theme (v3.2, full file) ===== */
/* Color tokens */
:root{
  --ink:#1f2937;
  --muted:#6b7280;
  --bg:#fff2e7;
  --card:#ffffff;
  --border:#f6d7c8;

  --brand:#e17c5f;
  --brand-ink:#7a2f22;

  --jar-prayer:#e1b12c;
  --jar-family:#7e4cb1;
  --jar-date:#77c57f;

  --btn:#e17c5f;
  --btn-ink:#fff;
  --btn-hover:#cf6f56;
}

/* Reset-ish */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
html{scroll-behavior:smooth}

/* Base */
body{
  font-family:system-ui,-apple-system,"Segoe UI",Inter,Roboto,Arial,sans-serif;
  background:var(--bg); color:var(--ink); line-height:1.5;
}
.container{max-width:1180px;margin:0 auto;padding:0 16px}
.section{padding:26px 0}
.small{font-size:12px;color:var(--muted)}
.lead{color:var(--muted);font-size:16px;line-height:1.6}
.sub{color:var(--muted);font-size:14px;margin-top:2px}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--btn);color:var(--btn-ink);
  border:1px solid transparent;border-radius:12px;padding:10px 16px;
  font-weight:800;cursor:pointer;text-decoration:none;transition:background .2s,border-color .2s,transform .06s ease;
}
.btn:hover{background:var(--btn-hover)}
.btn:active{transform:translateY(1px)}
.btn.outline{background:#fff;color:var(--brand);border-color:var(--brand)}
.btn[aria-disabled="true"]{opacity:.6;pointer-events:none}

/* Prevent visited color on button-like links */
.btn, .btn:visited,
.nav-cta, .nav-cta:visited,
.cart-pill, .cart-pill:visited { color:#fff; text-decoration:none; }
.btn.outline, .btn.outline:visited { color: var(--brand); }

/* Focus Rings */
a:focus-visible,button:focus-visible,input:focus-visible,.btn:focus-visible,.nav-cta:focus-visible,.cart-pill:focus-visible{
  outline:3px solid color-mix(in srgb, var(--brand) 36%, white);
  outline-offset:2px;border-radius:12px;
}

/* Badges & Pills */
.badge,.pill{
  display:inline-flex;align-items:center;gap:6px;
  background:#fff;border:1px solid var(--border);
  border-radius:999px;padding:6px 10px;font-size:12px;color:var(--muted)
}
.pill.prayer{border-color:color-mix(in srgb,var(--jar-prayer) 50%,white 50%)}
.pill.family{border-color:color-mix(in srgb,var(--jar-family) 50%,white 50%)}
.pill.date{border-color:color-mix(in srgb,var(--jar-date) 50%,white 50%)}

/* Header */
.header{
  position:sticky;top:0;z-index:60;
  background:color-mix(in srgb,var(--bg) 92%,#fff 8%);
  border-bottom:1px solid var(--border);
  backdrop-filter:saturate(1.1) blur(6px);
}
.nav{height:68px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none}
.brand-logo-img{height:50px;width:auto;object-fit:contain}

.desktop-nav{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.desktop-nav a{color:var(--brand-ink);text-decoration:none;font-size:14px;padding:6px 0}
.desktop-nav a:hover{text-decoration:underline}

.mobile-actions{display:none;gap:10px;align-items:center}

/* Shared pill sizing utility (used by Start Here & Cart) */
.pill-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  border-radius:999px;font-weight:700;font-size:14px;line-height:1;
  padding:7px 16px;
}

/* Start Here CTA */
.nav-cta{
  background: var(--brand);
  color:#fff; border:none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 1px 0 rgba(0,0,0,.05);
  transition: background .2s, transform .06s ease, box-shadow .2s;
}
.nav-cta:hover{ background:var(--btn-hover); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 2px 6px rgba(0,0,0,.08); }
.nav-cta:active{ transform: translateY(1px); }
.desktop-nav .nav-cta{ margin-left:8px; }

/* Cart pill */
.cart-pill{
  position:relative;
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 18px 8px 14px;
  background:linear-gradient(135deg, color-mix(in srgb,var(--brand) 90%,#fff 10%), var(--btn-hover));
  color:#fff;
  border:none;
  border-radius:999px;
  font-weight:800;
  box-shadow:0 10px 24px rgba(225,124,95,.28);
  cursor:pointer;
  transition:transform .12s ease, box-shadow .2s, background .2s;
}
.cart-pill:hover{box-shadow:0 12px 30px rgba(225,124,95,.35)}
.cart-pill:active{transform:translateY(1px)}
.cart-pill .pill-icon{font-size:16px;opacity:.9}
.cart-pill .pill-text{letter-spacing:.2px;font-size:14px}
.cart-count{
  position:absolute;
  top:-6px;right:-6px;
  min-width:20px;height:20px;
  display:flex;align-items:center;justify-content:center;
  border-radius:999px;
  background:#fff;
  color:var(--brand);
  font-size:12px;font-weight:800;
  box-shadow:0 4px 10px rgba(0,0,0,.18);
  opacity:0;transform:scale(.7);
  transition:opacity .2s ease, transform .2s ease;
}
.cart-count.is-active{opacity:1;transform:scale(1);}

/* Mobile nav */
.nav-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:10px;border:1px solid var(--border);
  background:#fff;cursor:pointer;font-size:18px;
}
.nav-toggle:active{transform:translateY(1px)}

.nav-overlay{
  position:fixed;inset:0;background:rgba(0,0,0,.35);
  opacity:0;visibility:hidden;transition:opacity .2s;z-index:65;
}
.nav-overlay.show{opacity:1;visibility:visible}

.mobile-nav{
  position:fixed;top:0;right:0;height:100vh;width:min(360px,92vw);
  background:#fff;border-left:1px solid var(--border);
  transform:translateX(100%);transition:transform .25s ease;z-index:999;
  display:flex;flex-direction:column;box-shadow:-18px 0 36px rgba(0,0,0,.18);
  overflow:hidden;
}
.mobile-nav.open{transform:translateX(0)}
.mobile-nav-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px;border-bottom:1px solid var(--border);
  position:sticky;top:0;background:#fff;z-index:1
}
.nav-close{
  background:#fff;border:1px solid var(--border);border-radius:10px;
  padding:4px 10px;font-size:18px;cursor:pointer
}
.mobile-nav-body{display:grid;gap:16px;padding:16px;background:#fff;flex:1;overflow:auto;border-radius:18px;position:relative;min-height:0}
.mobile-nav-links{display:grid;gap:12px}
.mobile-nav-links a{color:var(--brand-ink);text-decoration:none;font-size:16px;padding:6px 0;border-bottom:1px solid rgba(0,0,0,.05)}
.mobile-nav-links a:last-child{border-bottom:none}
.mobile-nav-links a:hover{text-decoration:underline}
.mobile-nav-body .nav-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:14px;
  padding:10px 14px;
  border-radius:12px;  /* normal button, not a circle */
  margin-top:10px;
  width:auto;
  min-width:0;
  align-self:flex-start; /* keep it left-aligned under Contact */
}
@media(max-width:640px){
  .mobile-nav{width:100%;border-left:none;box-shadow:none}
  .mobile-nav-body{border-radius:0}
}

/* Hero */
.hero{padding:40px 0}
.grid-hero{display:grid;grid-template-columns:1.1fr .9fr;gap:20px;align-items:center}
@media(max-width:960px){.grid-hero{grid-template-columns:1fr}}
.grid-hero>div.card{overflow:hidden}
.hero h2{font-size:36px;margin:8px 0 10px;color:var(--brand-ink)}
.grid-hero > .card img{width:100%;height:100%;object-fit:cover;border-radius:20px}
.hero-compact .grid-hero{grid-template-columns:minmax(0,1fr) auto}
.hero-compact .grid-hero > .card{max-width:280px;justify-self:center}
.hero-compact .grid-hero > .card img{aspect-ratio:1/1;width:100%;height:auto;max-height:280px;border-radius:24px;object-fit:cover}
@media(max-width:640px){
  .grid-hero{grid-template-columns:1fr}
  .grid-hero > .card{order:-1;margin-bottom:16px}
  .grid-hero > .card img{max-height:360px}
  .hero-compact .grid-hero{grid-template-columns:1fr}
  .hero-compact .grid-hero > .card{max-width:200px}
  .hero-compact .grid-hero > .card img{max-height:none}
}

/* Grid & Cards */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:16px}
@media(max-width:960px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.grid{grid-template-columns:1fr}}

.card{
  background:var(--card);border:1px solid var(--border);border-radius:16px;
  padding:14px;box-shadow:0 4px 14px rgba(0,0,0,.04);
  display:flex;flex-direction:column;gap:10px;transition:transform .12s ease, box-shadow .2s ease;
}
.card:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(0,0,0,.06)}
.imgwrap{border-radius:12px;overflow:hidden;border:1px solid var(--border);background:#fff}
.imgwrap .square{aspect-ratio:1/1;width:100%;object-fit:cover;display:block}
.card h4{margin:0 0 4px}
.card .meta{display:flex;align-items:center;gap:8px}

/* Qty */
.qty{display:flex;align-items:center;gap:8px;margin-top:6px}
.qty button{
  background:#fff;border:1px solid var(--border);border-radius:10px;padding:6px 10px;cursor:pointer;
  transition:background .15s,border-color .15s,transform .06s ease;
}
.qty button:hover{border-color:color-mix(in srgb,var(--brand) 40%, var(--border))}
.qty button:active{transform:translateY(1px)}
.qty .add{background:var(--brand);color:#fff;border:none}
.qty .add:hover{background:var(--btn-hover)}

/* Drawer Cart */
.drawer-overlay{
  position:fixed;inset:0;background:rgba(0,0,0,.35);
  opacity:0;visibility:hidden;transition:opacity .2s;z-index:70
}
.drawer-overlay.show{opacity:1;visibility:visible}
.drawer{
  position:fixed;top:0;right:0;height:100%;
  width:min(420px,92vw);
  background:linear-gradient(180deg,#fff, color-mix(in srgb,var(--bg) 85%,#fff 15%));
  border-left:1px solid var(--border);
  box-shadow:-30px 0 60px rgba(31,41,55,.15);
  transform:translateX(100%);
  transition:transform .28s ease;
  z-index:80;
  display:flex;flex-direction:column;
}
.drawer.open{transform:translateX(0)}
.drawer-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 20px;
  border-bottom:1px solid var(--border);
}
.drawer-close{
  background:#fff;border:1px solid var(--border);border-radius:12px;padding:6px 12px;font-size:18px;cursor:pointer;
  transition:transform .12s ease;
}
.drawer-close:active{transform:translateY(1px)}
.drawer-body{
  padding:18px;
  flex:1;
  overflow:auto;
  display:grid;
  gap:14px;
}
.drawer-body #cartItems{
  display:grid;
  gap:12px;
}
.drawer-body #cartItems:empty{display:block}
.drawer-body .muted{margin:0}
.cart-promo{
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  background:#fffefc;
}
.drawer-footer{
  padding:18px 20px;
  display:grid;gap:12px;
  background:#fff;
  border-top:1px solid var(--border);
  box-shadow:0 -8px 20px rgba(0,0,0,.05);
}
.drawer-footer .btn{flex:1}
.drawer-actions{display:flex;gap:10px;flex-wrap:wrap}
.drawer-row{display:flex;align-items:center;justify-content:space-between}
.drawer-line{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px dashed #f2e3db}
.drawer-line:last-child{border-bottom:0}
.drawer-title{font-weight:600}
.drawer-qty{display:flex;align-items:center;gap:8px}
.qty-btn{background:#fff;border:1px solid var(--border);border-radius:10px;padding:6px 10px;cursor:pointer;transition:background .15s,border-color .15s}
.cart-item{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px 16px;
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-areas:
    "meta total"
    "qty total"
    "remove remove";
  gap:10px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
}
.cart-item-meta{grid-area:meta;display:flex;flex-direction:column;gap:4px}
.cart-item-qty{grid-area:qty;display:inline-flex;align-items:center;gap:6px}
.cart-item-total{grid-area:total;text-align:right;font-weight:800;font-size:16px;color:var(--brand-ink)}
.cart-item-remove{grid-area:remove;justify-self:flex-end;background:none;border:none;color:var(--muted);font-size:13px;text-decoration:underline;cursor:pointer;padding:0}
.cart-item-remove:hover{color:var(--brand)}
.cart-item-qty button{
  width:32px;height:32px;border-radius:10px;
  border:1px solid var(--border);background:#fff;font-size:18px;font-weight:700;cursor:pointer;
  transition:background .15s,border-color .15s,transform .06s;
}
.cart-item-qty button:hover{border-color:color-mix(in srgb,var(--brand) 40%, var(--border))}
.cart-item-qty button:active{transform:translateY(1px)}
.cart-item-qty-value{min-width:24px;text-align:center;font-weight:700;font-size:15px}
.cart-empty{
  padding:30px;
  text-align:center;
  border:1px dashed var(--border);
  border-radius:16px;
  background:#fff;
}
.cart-upsell{
  border:1px dashed var(--border);
  border-radius:16px;
  background:#fff;
}
.drawer-body .cart-upsell{margin-top:8px}
.chip--owned{
  background:color-mix(in srgb,var(--brand) 10%, #fff 90%);
  border-color:color-mix(in srgb,var(--brand) 35%, var(--border));
  color:var(--muted);
  cursor:default;
}
.qty-btn.add{background:var(--brand);color:#fff;border:none}
.qty-btn:hover{border-color:color-mix(in srgb,var(--brand) 40%, var(--border))}

/* Features / Callouts / Forms */
.feature{background:#fff;border:1px solid var(--border);border-radius:16px;padding:16px;display:grid;gap:10px}
.list{margin:0;padding-left:18px;color:var(--ink)}
.callout{background:#fff;border:1px dashed var(--border);border-radius:14px;padding:12px}

.form-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}
input[type="email"],input[type="text"]{
  flex:1;min-width:220px;padding:10px 12px;border:1px solid var(--border);
  border-radius:10px;font-size:14px;background:#fff;color:var(--ink);transition:border-color .15s, box-shadow .15s
}
input::placeholder{color:#9aa3af}
input:focus{border-color:color-mix(in srgb,var(--brand) 40%, var(--border)); box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 20%, transparent)}

/* Footer */
.footer{margin-top:24px;border-top:1px solid var(--border);background:#fff}
.footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.footer a{color:var(--brand-ink);text-decoration:none;font-size:14px}
.footer a:hover{text-decoration:underline}

/* Utilities & Animations */
.note{font-size:12px;color:var(--muted)}
.hidden{display:none !important}
.visually-hidden{position:absolute !important;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;overflow:hidden;white-space:nowrap;border:0;padding:0;margin:-1px}
.fade-up{opacity:0;transform:translateY(14px);transition:opacity .5s ease, transform .5s ease}
.fade-up.show{opacity:1;transform:none}
.delay-1{transition-delay:.06s}
.delay-2{transition-delay:.12s}
.delay-3{transition-delay:.18s}
.delay-4{transition-delay:.24s}

/* Responsive header */
@media (max-width:880px){
  .desktop-nav{display:none}
  .mobile-actions{display:flex}
  .nav{height:64px}
  .brand-logo-img{height:44px}
}

/* Extra small tweaks */
@media (max-width:640px){
  .btn{padding:10px 14px}
  .card{padding:12px}
  .hero h2{font-size:28px}
}
/* ============================================================
   FINAL: One pill component used by Start Here + Cart
   ============================================================ */
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;                          /* space between icon and text */
  height:40px;                      /* identical height */
  padding:0 22px;                   /* generous left/right padding */
  border-radius:9999px;
  font-weight:700;
  font-size:14px;
  line-height:1;                    /* no extra vertical whitespace */
  border:none;
  cursor:pointer;
  text-decoration:none;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
  transition:background .2s, box-shadow .2s, transform .06s ease;
  white-space:nowrap;               /* keep CTA text on one line */
}
.pill *{ line-height:1 }            /* keep children from stretching height */

/* Brand look shared by both */
.pill--brand{
  background:var(--brand);
  color:#fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 1px 0 rgba(0,0,0,.05);
}
.pill--brand:hover{
  background:var(--btn-hover);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 2px 6px rgba(0,0,0,.08);
}
.pill--brand:active{ transform:translateY(1px) }

/* Never show visited/underline on button-like links */
.pill:link, .pill:visited{ color:#fff; text-decoration:none }

/* Icon/text micro-tuning */
.pill-icon{ display:inline-block; transform:translateY(1px) } /* centers emoji baseline */
.pill-text{ letter-spacing:.2px }                               /* fixes “scrunched” feel */

/* Keep a touch of space between Start Here and Cart */
.desktop-nav .pill--cta{ margin-left:10px }
.pill--cta{ min-width:172px; justify-content:center; } /* ensure long copy fits comfortably */

/* Mobile version */
.mobile-nav-body .pill{
  display:block;
  width:100%;
  text-align:center;
  height:auto;
  padding:12px 22px;
  border-radius:12px;
}
/* ============================================================
   Cart progress + upsell
   ============================================================ */
.cart-progress{
  border:1px solid var(--border);
  background:#fff;
  border-radius:14px;
  padding:12px;
  margin-bottom:10px;
}
.progress-head{
  display:flex;align-items:center;justify-content:space-between;margin-bottom:8px
}
.progress{
  display:grid;gap:8px
}
.progress-track{
  height:8px;border-radius:999px;background:#f4e8e2;overflow:hidden;border:1px solid #f0d8cd
}
.progress-fill{
  height:100%;width:0%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 88%, #fff 12%), var(--brand));
  border-right:1px solid rgba(0,0,0,.06);
  transition: width .35s ease;
}
.progress-dots{display:flex;gap:6px;justify-content:flex-end}
.progress-dots .dot{
  width:8px;height:8px;border-radius:50%;
  background:#e8d3ca;border:1px solid #e0c3b6
}
.progress-dots .dot.on{
  background:var(--brand);
  border-color: color-mix(in srgb, var(--brand) 80%, #fff 20%);
}

.cart-upsell{
  border:1px dashed var(--border);
  background:#fff;
  border-radius:14px;
  padding:12px;
  margin-bottom:12px;
}
.upsell{display:grid;gap:8px}
.upsell.done{border:1px solid var(--border);border-radius:12px;padding:10px}
.upsell-title{font-weight:700;color:var(--brand-ink)}
.upsell-sub{font-size:14px}
.upsell-chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  background:#fff;
  border:1px solid var(--border);
  border-radius:999px;
  padding:6px 10px;
  font-weight:700;font-size:13px;
  cursor:pointer;
  transition:border-color .15s, transform .06s ease, background .2s;
}
.chip:hover{border-color: color-mix(in srgb, var(--brand) 40%, var(--border))}
.chip:active{transform:translateY(1px)}
.upsell-actions{display:flex;gap:10px;flex-wrap:wrap}
/* ================= Thin progress at top of cart ================= */
.progress-thin{
  padding:10px 16px 0;
}
.progress-thin-track{
  height:3px;                      /* really thin */
  border-radius:999px;
  background:#f3e6e0;
  border:1px solid #f0d8cd;
  overflow:hidden;
}
.progress-thin-fill{
  height:100%; width:0%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 88%, #fff 12%), var(--brand));
  transition: width .35s ease;
}
.progress-thin-dots{
  display:flex; gap:6px; justify-content:flex-end; margin-top:6px;
}
.progress-thin-dots .dot{
  width:6px; height:6px; border-radius:50%;
  background:#e8d3ca; border:1px solid #e0c3b6;
}
.progress-thin-dots .dot.on{
  background:var(--brand);
  border-color: color-mix(in srgb, var(--brand) 80%, #fff 20%);
}

/* ================= Upsell block ================= */
.cart-upsell{
  border:1px dashed var(--border);
  background:#fff;
  border-radius:14px;
  padding:12px;
  margin-top:12px;
}
.upsell{display:grid;gap:8px}
.upsell.done{border:1px solid var(--border);border-radius:12px;padding:10px}
.upsell-title{font-weight:700;color:var(--brand-ink)}
.upsell-sub{font-size:14px;color:var(--muted)}
.unlock-note{
  font-size:13px; font-weight:700;
  color: var(--brand-ink);
  background: #fff;
  border:1px solid var(--border);
  border-radius:10px; padding:6px 10px;
  display:inline-block;
}
.upsell-chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  background:#fff;
  border:1px solid var(--border);
  border-radius:999px;
  padding:6px 10px;
  font-weight:700;font-size:13px;
  cursor:pointer;
  transition:border-color .15s, transform .06s ease, background .2s;
}
.chip:hover{border-color: color-mix(in srgb, var(--brand) 40%, var(--border))}
.chip:active{transform:translateY(1px)}
.upsell-actions{display:flex;gap:10px;flex-wrap:wrap}

/* ================= Savings badge in footer ================= */
.badge-savings{
  display:inline-flex;align-items:center;gap:6px;
  background:#fff; color:#176f3d;
  border:1px solid #cfe9d9;
  border-radius:999px;
  padding:4px 10px;
  font-weight:800; font-size:12px;
}
/* ===================== Responsive Footer ===================== */
.footer{margin-top:24px;border-top:1px solid var(--border);background:#fff}
.footer-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:20px;
  padding:22px 0;
}
.footer-col{min-width:0}
.footer-title{margin:0 0 8px;font-size:14px;text-transform:uppercase;letter-spacing:.06em;color:var(--brand-ink)}
.footer-links{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.footer-links a{color:var(--brand-ink);text-decoration:none}
.footer-links a:hover{text-decoration:underline}
.footer-brand{display:inline-flex;align-items:center;margin-bottom:8px}
.social{display:flex;gap:12px;list-style:none;margin:10px 0 0;padding:0}
.social a{font-weight:700;color:var(--brand-ink);text-decoration:none}
.social a:hover{text-decoration:underline}

/* Email capture in footer */
.footer-form{display:grid;grid-template-columns:1fr auto;gap:8px}
.footer-form input[type="text"],
.footer-form input[type="email"]{
  width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:10px;font-size:14px
}
.footer-form .btn{padding:10px 16px}
.fineprint{margin:6px 0 0;font-size:11px;color:var(--muted);grid-column:1 / -1}

/* Bottom bar */
.footer-bottom{border-top:1px solid var(--border);background:#fff}
.footer-bottom-row{
  display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0
}
.footer-legal{list-style:none;margin:0;padding:0;display:flex;gap:14px}
.footer-legal a{color:var(--brand-ink);text-decoration:none}
.footer-legal a:hover{text-decoration:underline}

/* ---------- Responsiveness ---------- */
@media (max-width: 960px){
  .footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 640px){
  .footer-grid{grid-template-columns:1fr}
  .footer-form{grid-template-columns:1fr;gap:10px}
  .footer-bottom-row{flex-direction:column;align-items:flex-start}
}
/* --- Footer form overflow fix --- */
.footer-form{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr)); /* two equal columns, no overflow */
  gap: 8px;
  align-items:center;
}

.footer-form input[type="text"],
.footer-form input[type="email"]{
  width:100%;
  box-sizing:border-box;          /* prevents spilling past the grid */
  min-width:0;                    /* allow shrinking inside grid */
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  font-size:14px;
}

/* Make the button sit on a new row full width (even on desktop) */
.footer-form .btn{
  grid-column: 1 / -1;
  width:100%;
}

/* Tablet: still two columns, but keep button full width */
@media (max-width: 960px){
  .footer-form{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

/* Phone: stack everything in a single column */
@media (max-width: 640px){
  .footer-form{
    grid-template-columns: 1fr;
  }
  .footer-form .btn{
    grid-column:auto;
    width:100%;
  }
}
.footer, .footer-bottom { overflow-x:hidden; }
/* ===== Slide-over (gentle, responsive) ===== */
.slide-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.35);
  backdrop-filter:saturate(80%) blur(2px);
  z-index: 9998;
}
.slide{
  position:fixed; right:0; bottom:0; left:auto;
  width:min(420px, 92vw);
  z-index:9999;
}
.slide[hidden], .slide-backdrop[hidden]{ display:none; }

.slide-card{
  background:#fff; border:1px solid var(--border);
  border-top-left-radius:16px; border-top-right-radius:16px;
  padding:16px; box-shadow:0 -10px 30px rgba(0,0,0,.14);
  transform: translateY(16px); opacity:0;
  animation: slideIn .28s ease-out forwards;
}

@keyframes slideIn{ to{ transform:translateY(0); opacity:1; } }

@media (min-width: 900px){
  .slide{ right:16px; bottom:16px; left:auto; }
  .slide-card{ border-radius:16px; }
}

.slide-close{
  position:absolute; right:10px; top:8px;
  border:none; background:transparent; font-size:22px; cursor:pointer;
  line-height:1; color:#7a6b65;
}
.slide-head{ margin-right:24px; }
.slide-eyebrow{
  font-size:12px; font-weight:800; letter-spacing:.06em;
  text-transform:uppercase; color:var(--brand-ink, #6b4a3d); opacity:.8; margin-bottom:4px;
}

.slide-form{
  display:grid; grid-template-columns:1fr; gap:10px; margin-top:10px;
}
.slide-form input{
  padding:10px 12px; border:1px solid var(--border); border-radius:10px; font-size:14px;
  width:100%; box-sizing:border-box; min-width:0;
}
.slide-form .btn{ padding:10px 16px; width:100%; }
.fineprint{ margin:6px 0 0; font-size:11px; color:var(--muted); }

@media (min-width: 560px){
  .slide-form{ grid-template-columns:1fr auto; align-items:center; }
  .slide-form .btn{ width:auto; }
}
/* ===== Brand palette (Jar Bar) ===== */
:root{
  --brand: #e17c5f;      /* logo coral */
  --bg:    #fff2e7;      /* creamy */
  --ink:   #3b2a24;      /* deep brown ink */
  --muted: #7a6b65;
  --border:#ecd8cf;

  --prayer: #e1b12c;     /* Prayer Jar */
  --family: #7e4cb1;     /* Family Night Jar */
  --date:   #77c57f;     /* Date Night Jar */

  --btn-hover: #cc6c54;
  --brand-ink: #5e4036;
}

/* ===== Slide-over (branded) ===== */
.slide-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.35);
  backdrop-filter:saturate(80%) blur(2px);
  z-index: 9998;
}
.slide{ position:fixed; right:0; bottom:0; width:min(420px,92vw); z-index:9999; }
.slide[hidden], .slide-backdrop[hidden]{ display:none; }

.slide-card{
  background:#fff;
  border:1px solid var(--border);
  border-top-left-radius:16px; border-top-right-radius:16px;
  padding:16px;
  box-shadow:0 -10px 30px rgba(0,0,0,.14);
  transform: translateY(16px); opacity:0;
  animation: slideIn .28s ease-out forwards;
}
.slide-card--brand{
  /* subtle coral wash with creamy header fade */
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(225,124,95,0.10) 0%, rgba(225,124,95,0.00) 60%),
    #fff;
  border-color: var(--border);
}
@keyframes slideIn{ to{ transform:translateY(0); opacity:1; } }

@media (min-width: 900px){
  .slide{ right:16px; bottom:16px; }
  .slide-card{ border-radius:16px; }
}

.slide-close{
  position:absolute; right:10px; top:8px;
  border:none; background:transparent; font-size:22px; cursor:pointer;
  line-height:1; color:#7a6b65;
}
.slide-head{ margin-right:24px; }
.slide-eyebrow{
  font-size:12px; font-weight:800; letter-spacing:.06em;
  text-transform:uppercase; color:var(--brand-ink); opacity:.8; margin-bottom:4px;
}

.slide-form{
  display:grid; grid-template-columns:1fr; gap:10px; margin-top:10px;
}
.slide-form input{
  padding:10px 12px; border:1px solid var(--border); border-radius:10px; font-size:14px;
  width:100%; box-sizing:border-box; min-width:0;
}
.btn--brand{
  background: var(--brand);
  color:#fff; border:none; font-weight:700; padding:10px 16px;
  border-radius:10px; cursor:pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 1px 0 rgba(0,0,0,.05);
  transition: background .2s, transform .06s ease, box-shadow .2s;
}
.btn--brand:hover{ background: var(--btn-hover); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 2px 6px rgba(0,0,0,.08); }
.btn--brand:active{ transform: translateY(1px); }
.fineprint{ margin:6px 0 0; font-size:11px; color:var(--muted); }

/* Slide form: becomes 2 columns on wider phones/tablets */
@media (min-width: 560px){
  .slide-form{ grid-template-columns:1fr auto; align-items:center; }
  .slide-form .btn--brand{ width:auto; }
}

/* ===== Responsive Footer (with overflow-safe form) ===== */
.footer{margin-top:24px;border-top:1px solid var(--border);background:#fff}
.footer-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; padding:22px 0; }
.footer-col{min-width:0}
.footer-title{margin:0 0 8px;font-size:14px;text-transform:uppercase;letter-spacing:.06em;color:var(--brand-ink)}
.footer-links{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.footer-links a{color:var(--brand-ink);text-decoration:none}
.footer-links a:hover{text-decoration:underline}
.footer-brand{display:inline-flex;align-items:center;margin-bottom:8px}
.social{display:flex;gap:12px;list-style:none;margin:10px 0 0;padding:0}
.social a{font-weight:700;color:var(--brand-ink);text-decoration:none}
.social a:hover{text-decoration:underline}
.footer-bottom{border-top:1px solid var(--border);background:#fff}
.footer-bottom-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0}
.footer-legal{list-style:none;margin:0;padding:0;display:flex;gap:14px}
.footer-legal a{color:var(--brand-ink);text-decoration:none}
.footer-legal a:hover{text-decoration:underline}

/* Footer form overflow safety (even though we link now) */
.footer-form{
  display:grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap:8px; align-items:center;
}
.footer-form input{ width:100%; box-sizing:border-box; min-width:0; padding:10px 12px; border:1px solid var(--border); border-radius:10px; font-size:14px }
.footer-form .btn{ grid-column:1 / -1; width:100%; }

/* Responsive stacks */
@media (max-width: 960px){ .footer-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 640px){
  .footer-grid{grid-template-columns:1fr}
  .footer-form{grid-template-columns:1fr}
  .footer-bottom-row{flex-direction:column;align-items:flex-start}
}
/* --- Slide-over mobile reliability / iOS safe-area and stacking --- */
.slide-backdrop{
  position:fixed; inset:0;
  z-index: 99998;              /* lift above everything */
  touch-action: none;
}
.slide{
  position: fixed;
  right: 0; left: auto;
  bottom: 0;
  width: min(420px, 92vw);
  z-index: 99999;              /* above backdrop */
  will-change: transform;      /* help mobile GPU */
  transform: translateZ(0);    /* iOS fixed-position quirk */
}
.slide-card{
  max-height: calc(100vh - 24px);   /* keep card within screen */
  overflow:auto;                     /* scroll content if needed */
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
}

/* Respect iPhone safe area so the button isn’t covered by the home bar */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .slide-card{
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* Make tap targets comfy on small phones */
@media (max-width: 420px){
  .slide-form input{ font-size:16px; }   /* prevents zoom on iOS */
  .slide-close{ font-size:24px; }
}
