:root{
  /* Skindle theme: deep green + beige + off-white + light gray surfaces */
  --bg0:#F7F3EA;      /* off-white */
  --bg1:#EFF1F0;      /* light gray */
  --surface:#FFFFFF;  /* white */
  --surface2:#F6F7F6; /* soft gray */
  --text:#0A1A14;     /* deep green-black */
  --muted:rgba(10,26,20,.72);
  --muted2:rgba(10,26,20,.56);
  --stroke:rgba(10,26,20,.10);
  --primary:#2F6B4F;
  --primary2:#CBBF9A;
  --danger:#FF4D6D;
  --ok:#2EE59D;
  --shadow: 0 18px 60px rgba(10,26,20,.14);
  --radius:18px;
  --radius2:28px;
  --max:1100px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
[hidden]{display:none !important}
html,body{
  height:100%;
  overflow-x:hidden !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  position:relative !important;
}
html{
  scroll-behavior:smooth;
  max-width:100%;
  -webkit-text-size-adjust:100%;
}
body{
  font-family:var(--sans);
  color:var(--text);
  max-width:100%;
  min-height:100dvh;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(47,107,79,.14), transparent 55%),
              radial-gradient(1000px 600px at 85% 25%, rgba(203,191,154,.16), transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
}

/* Constrain main layout shells (QR / camera pages) to the screen width */
.qrbox,
.main-container,
.container,
header,
.topbar,
.camera{
  max-width:100vw !important;
  width:100% !important;
  box-sizing:border-box !important;
  min-width:0 !important;
}

/* Prevent media / embeds from forcing horizontal scroll on small screens */
img, video, canvas, svg{
  max-width:100%;
  height:auto;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.98}

@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto !important}
  *, *::before, *::after{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important}
}

.bg{
  position:fixed; inset:0;
  background:
    radial-gradient(800px 400px at 35% 15%, rgba(47,107,79,.11), transparent 60%),
    radial-gradient(900px 500px at 70% 30%, rgba(203,191,154,.12), transparent 62%);
  pointer-events:none;
  filter:saturate(1.05);
  animation: bgDrift 14s ease-in-out infinite alternate;
  overflow:hidden;
  max-width:100vw;
}
@keyframes bgDrift{
  0%{ transform: translate3d(0,0,0) scale(1) }
  100%{ transform: translate3d(0,-10px,0) scale(1.015) }
}

.container{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:24px;
  overflow-x:hidden;
}

.topnav__user{
  font-weight:800;
  font-size:14px;
  color:var(--text);
  padding:8px 10px;
  max-width:140px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.topbar{
  position:sticky; top:0; z-index:20;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 24px;
  background: linear-gradient(180deg, rgba(247,243,234,.86), rgba(247,243,234,.55));
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(10,26,20,.08);
  animation: barIn .55s ease both;
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}
@keyframes barIn{
  from{ opacity:0; transform: translateY(-8px) }
  to{ opacity:1; transform: translateY(0) }
}
.brand{display:flex; align-items:center; gap:10px}
.brand__mark{
  width:34px;
  height:34px;
  max-width:34px;
  border-radius:10px;
  display:block;
  object-fit:cover;
  flex-shrink:0;
  box-shadow: 0 10px 35px rgba(47,107,79,.22);
}
.brand__name{font-weight:800; letter-spacing:.3px; text-transform:lowercase}
.topnav{display:flex; align-items:center; gap:10px}
.topnav__link{
  padding:10px 12px; border-radius:12px;
  color:var(--muted);
  position:relative;
}
.topnav__link::after{
  content:"";
  position:absolute;
  left:12px; right:12px; bottom:7px;
  height:1px;
  background: linear-gradient(90deg, rgba(203,191,154,.0), rgba(203,191,154,.55), rgba(203,191,154,.0));
  transform: scaleX(0);
  transform-origin:center;
  transition: transform .25s ease;
  opacity:.9;
}
.topnav__link:hover{
  background:rgba(10,26,20,.04);
  color:var(--text);
}
.topnav__link:hover::after{transform:scaleX(1)}

.hero{
  display:grid;
  grid-template-columns: 1.25fr .95fr;
  gap:28px;
  padding:34px 0 10px;
  max-width:100%;
}
.hero > *{min-width:0}
@media (max-width: 900px){
  .hero{grid-template-columns:1fr; gap:18px}
}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px;
  background: rgba(247,243,234,.06);
  border: 1px solid rgba(247,243,234,.10);
  color:var(--muted);
  font-size:13px;
}
h1{font-size:44px; line-height:1.05; margin:16px 0 12px}
@media (max-width: 520px){ h1{font-size:36px} }
.lede{font-size:16px; color:var(--muted); line-height:1.6; max-width:60ch}
.hero__cta{display:flex; gap:12px; margin:18px 0 10px; flex-wrap:wrap}
.fineprint{color:var(--muted2); font-size:13px}

.card{
  background: var(--surface);
  border: 1px solid rgba(10,26,20,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
  max-width:100%;
  min-width:0;
  overflow-x:hidden;
}
.card--glass{
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(246,247,246,.72));
  border:1px solid rgba(10,26,20,.10);
  backdrop-filter: blur(10px);
}
.card__head{margin-bottom:10px}
.card__title{margin:0; font-size:16px}
.card__subtitle{margin:6px 0 0; color:var(--muted2); font-size:13px}
.card__actions{display:flex; flex-direction:column; gap:10px; margin-top:14px}

.featurelist{margin:14px 0 0; padding:0 0 0 18px; color:var(--muted); line-height:1.55}
.featurelist li{margin:8px 0}

.grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
  margin-top:20px;
  max-width:100%;
}
.grid > *{min-width:0}
@media (max-width: 900px){ .grid{grid-template-columns:1fr} }
.grid .card{box-shadow:none; background:rgba(17,23,43,.55)}
.grid h3{margin:0 0 8px; font-size:16px}
.grid p{margin:0; color:var(--muted); line-height:1.6}

.footer{padding:28px 0 10px; color:var(--muted2); font-size:13px}

.routineTimeline{
  border-radius:18px;
  border:1px solid rgba(10,26,20,.10);
  background: rgba(255,255,255,.72);
  padding:12px;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
}
.locked-day{
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}
.timeline{
  display:flex;
  align-items:flex-end;
  gap:2px;
  min-width: 920px;
}
.tseg{
  position:relative;
  width: 22px;
  height: 16px;
  border-radius:999px;
  border:1px solid rgba(10,26,20,.12);
  background: rgba(10,26,20,.03);
  overflow:hidden;
}
.tseg__fill{
  position:absolute;
  left:0; top:0; bottom:0;
  width:0%;
  background: linear-gradient(90deg, rgba(47,107,79,.95), rgba(203,191,154,.85));
  transition: width .35s ease;
}
.tseg.is-week-start{
  margin-left:6px;
}
.tseg.is-today{
  box-shadow: 0 0 0 3px rgba(203,191,154,.14);
}
.tmarkrow{
  display:flex;
  gap:2px;
  min-width: 920px;
  margin-top:8px;
  color: var(--muted2);
  font-size:11px;
}
.tmark{
  width:22px;
  text-align:center;
}
.tlegend{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.tlegend .tag{white-space:nowrap}
.donepill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(10,26,20,.12);
  background: rgba(10,26,20,.03);
  color: var(--muted);
  font-size:12px;
}
.donepill.is-on{
  background: rgba(47,107,79,.10);
  border-color: rgba(47,107,79,.22);
  color: var(--text);
}

.reveal{
  opacity:0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
  will-change: transform, opacity;
}
.reveal.is-in{
  opacity:1;
  transform: translateY(0);
}
.reveal.reveal--pop{
  transform: translateY(12px) scale(.99);
}
.reveal.reveal--pop.is-in{
  transform: translateY(0) scale(1);
}

/* page fade-in */
body{
  opacity:0;
}
body.is-ready{
  opacity:1;
  transition: opacity .35s ease;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid rgba(10,26,20,.12);
  background: rgba(255,255,255,.72);
  color:var(--text);
  font-weight:700;
  letter-spacing:.2px;
  cursor:pointer;
  user-select:none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, filter .18s ease;
}
.btn:hover{
  background:rgba(255,255,255,.92);
  transform: translateY(-1px);
}
.btn:active{transform: translateY(0)}
.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(203,191,154,.16), 0 0 0 1px rgba(10,26,20,.10) inset;
}
.btn--full{width:100%; max-width:100%}
.btn--primary{
  border:1px solid rgba(47,107,79,.45);
  background: linear-gradient(135deg, rgba(47,107,79,.95), rgba(203,191,154,.70));
}
.btn--primary:hover{filter:brightness(1.03)}
.btn--ghost{background:transparent}
.btn--subtle{background:rgba(10,26,20,.03)}
.btn:disabled{opacity:.55; cursor:not-allowed}

.page{
  width:100%;
  max-width: min(920px, 100%);
  margin: 0 auto;
  padding: 18px 0 24px;
  overflow-x:hidden;
}
.page__head{display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap}
.page__title{margin:0; font-size:28px}
.page__desc{margin:6px 0 0; color:var(--muted); line-height:1.6; max-width:100%}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  margin-top:16px;
  max-width:100%;
}
/* min-width:0 stops canvas/intrinsic content from forcing grid overflow */
.split > *{
  min-width:0 !important;
  max-width:100%;
}
@media (max-width: 900px){ .split{grid-template-columns:1fr} }

.field{display:flex; flex-direction:column; gap:8px; margin:12px 0}
label{font-size:13px; color:var(--muted)}
input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(10,26,20,.12);
  background: rgba(255,255,255,.86);
  color: var(--text);
  outline:none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(203,191,154,.45);
  box-shadow: 0 0 0 3px rgba(203,191,154,.12);
}
.row{display:flex; gap:10px; flex-wrap:wrap; max-width:100%}
.row > *{flex:1 1 auto; min-width:0}

.notice{
  border:1px solid rgba(10,26,20,.10);
  border-radius:16px;
  background: rgba(10,26,20,.03);
  padding:12px;
  color:var(--muted);
  line-height:1.6;
}
.notice strong{color:var(--text)}

.steps{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.step{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(234,240,255,.10);
  color:var(--muted2);
  font-size:12px;
}
.step--on{color:var(--text); border-color:rgba(53,210,255,.30); background:rgba(53,210,255,.08)}

.progress{height:10px; border-radius:999px; background:rgba(234,240,255,.06); overflow:hidden; border:1px solid rgba(234,240,255,.08)}
.progress > div{height:100%; width:0%; background: linear-gradient(90deg, rgba(124,92,255,.95), rgba(53,210,255,.80))}

.kpis{display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; margin-top:14px; max-width:100%}
.kpis > *{min-width:0}
@media (max-width: 900px){ .kpis{grid-template-columns:1fr} }
.kpi{padding:14px; border-radius:16px; border:1px solid rgba(234,240,255,.10); background: rgba(7,10,18,.22)}
.kpi__label{color:var(--muted2); font-size:12px}
.kpi__value{font-size:22px; margin-top:6px; font-weight:900}
.kpi__bar{margin-top:10px; height:8px; border-radius:999px; background:rgba(234,240,255,.06); overflow:hidden; border:1px solid rgba(234,240,255,.08)}
.kpi__bar > div{height:100%; width:0%}
.bar--oil{background: linear-gradient(90deg, rgba(255,77,109,.85), rgba(124,92,255,.75))}
.bar--dry{background: linear-gradient(90deg, rgba(53,210,255,.85), rgba(124,92,255,.70))}
.bar--texture{background: linear-gradient(90deg, rgba(46,229,157,.85), rgba(53,210,255,.70))}

/* updated bars for green/beige theme */
.progress > div{background: linear-gradient(90deg, rgba(47,107,79,.95), rgba(203,191,154,.85))}
.bar--oil{background: linear-gradient(90deg, rgba(203,191,154,.85), rgba(47,107,79,.75))}
.bar--dry{background: linear-gradient(90deg, rgba(47,107,79,.85), rgba(203,191,154,.70))}
.bar--texture{background: linear-gradient(90deg, rgba(46,229,157,.75), rgba(47,107,79,.70))}

.qrbox{
  display:grid;
  place-items:center;
  width:100%;
  max-width:100%;
  min-width:0 !important;
  padding:18px;
  border-radius:18px;
  border:1px dashed rgba(234,240,255,.22);
  background: rgba(7,10,18,.18);
  min-height:200px;
  overflow:hidden;
  box-sizing:border-box;
}
/* Display size via CSS — survives qrcode.toCanvas inline px injection (JS also strips those). */
.qrbox canvas,
.qrbox__canvas,
#qrCanvas{
  display:block;
  box-sizing:border-box;
  width:100% !important;
  max-width:min(220px, 100%) !important;
  min-width:0 !important;
  height:auto !important;
  max-height:none !important;
}
.qr-link{
  white-space:normal;
  text-align:center;
  max-width:100%;
}
.qr-link__label{display:block}
.qr-link__url{
  margin:8px 0 0;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-all;
  line-height:1.4;
}

.camera{
  display:grid;
  gap:12px;
  max-width:100%;
}
.camera__video,
.camera__preview{
  display:block;
  width:100%;
  max-width:100%;
  border-radius:18px;
  border:1px solid rgba(234,240,255,.10);
  background: rgba(7,10,18,.25);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.camera__video:not(.camera__video--live){
  /* empty video shows a “disabled camera” icon in some browsers — hint explains next step */
  min-height:200px;
}
.camera__video--live + .camera__hint{
  display:none;
}
.camera__hint{
  margin:0;
  line-height:1.5;
}
.chiprow{display:flex; gap:10px; flex-wrap:wrap}
.chip{
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(234,240,255,.10);
  background: rgba(234,240,255,.05);
  color:var(--muted);
}

.muted{color:var(--muted)}
.small{font-size:13px}
.mono{font-family:var(--mono); overflow-wrap:anywhere; word-break:break-word}
.center{text-align:center}
.spacer{height:12px}
.notice{max-width:100%; overflow-wrap:anywhere}

.modal{
  position:fixed; inset:0;
  background:rgba(0,0,0,.62);
  display:none;
  align-items:center; justify-content:center;
  padding:16px;
  z-index:50;
}
.modal[aria-hidden="false"],
.modal.is-open{display:flex}
.modal__panel{
  width:min(720px, 100%);
  border-radius:22px;
  border:1px solid rgba(234,240,255,.12);
  background: rgba(17,23,43,.92);
  box-shadow: var(--shadow);
  padding:16px;
}
.modal__head{display:flex; align-items:flex-start; justify-content:space-between; gap:14px}
.modal__title{margin:0; font-size:16px}
.modal__body{color:var(--muted); line-height:1.65; margin-top:10px}
.modal__actions{display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; margin-top:12px}

.success-overlay{
  position:fixed; inset:0;
  display:grid;
  place-items:center;
  padding:16px;
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(6px);
  z-index:60;
}
.success-card{
  width:min(520px, 100%);
  border-radius:22px;
  border:1px solid rgba(10,26,20,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(246,247,246,.78));
  box-shadow: var(--shadow);
  padding:18px;
  text-align:center;
}
.alarm-reminder-card{
  text-align:left;
}
.alarm-reminder-card__body{
  line-height:1.75;
  margin:0 0 16px;
}
.alarm-reminder-card__body strong{color:var(--text)}
.routine-alarm-note{
  margin-bottom:12px;
  font-size:14px;
}
.checkmark{
  width:68px; height:68px;
  border-radius:20px;
  display:grid; place-items:center;
  margin: 6px auto 12px;
  background: linear-gradient(135deg, rgba(47,107,79,.95), rgba(203,191,154,.78));
  color:#fff;
  box-shadow: 0 14px 40px rgba(47,107,79,.22);
  transform: scale(.88);
  opacity:0;
  animation: popIn .5s cubic-bezier(.2,.9,.2,1) both;
}
.checkmark--inline{
  width:56px; height:56px;
  border-radius:16px;
  animation:none;
  opacity:1;
  transform:scale(1);
}
.checkmark--inline path{animation:none; stroke-dashoffset:0}
.pricing-paid{text-align:center; padding:4px 0 2px}
.checkmark svg{display:block}
.checkmark path{
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: draw .55s ease .18s forwards;
}
@keyframes popIn{
  from{ transform: scale(.86); opacity:0 }
  to{ transform: scale(1); opacity:1 }
}
@keyframes draw{
  to{ stroke-dashoffset: 0 }
}

.section{
  margin-top:18px;
}
.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.section__title{
  margin:0;
  font-size:18px;
}
.section__desc{
  margin:6px 0 0;
  color:var(--muted);
  line-height:1.7;
}

.tiles{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
  max-width:100%;
}
.tiles > *{min-width:0}
@media (max-width: 900px){ .tiles{grid-template-columns:1fr} }

.tile{
  border-radius: var(--radius);
  border: 1px solid rgba(10,26,20,.10);
  background: var(--surface2);
  padding:16px;
  box-shadow:none;
  max-width:100%;
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.tile:hover{
  transform: translateY(-3px);
  background: #fff;
  border-color: rgba(10,26,20,.16);
}
.tile h3{margin:0 0 8px; font-size:16px}
.tile p{margin:0; color:var(--muted); line-height:1.7}
.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(247,243,234,.12);
  background: rgba(247,243,234,.05);
  color:var(--muted2);
  font-size:12px;
}

.floaty{
  animation: floaty 4.2s ease-in-out infinite;
}
@keyframes floaty{
  0%,100%{ transform: translateY(0) }
  50%{ transform: translateY(-6px) }
}

/* subtle shine on primary button */
.btn--primary{
  position:relative;
  overflow:hidden;
}
.btn--primary::after{
  content:"";
  position:absolute;
  inset:-40% -60%;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.28) 48%, transparent 62%);
  transform: translateX(-30%);
  opacity:0;
  transition: opacity .2s ease;
  pointer-events:none;
}
.btn--primary:hover::after{
  opacity:1;
  animation: shine 1.05s ease both;
}
@keyframes shine{
  from{ transform: translateX(-35%) }
  to{ transform: translateX(35%) }
}

.accordion{display:grid; gap:10px; margin-top:12px}
.acc{
  border-radius:16px;
  border:1px solid rgba(10,26,20,.10);
  background: rgba(255,255,255,.78);
  overflow:hidden;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.acc:hover{
  border-color: rgba(10,26,20,.14);
  background: rgba(255,255,255,.92);
}
.acc__btn{
  width:100%;
  text-align:left;
  background:transparent;
  border:0;
  color:var(--text);
  padding:14px 14px;
  font-weight:800;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.acc__btn span{color:var(--muted2); font-weight:900}
.acc[aria-expanded="true"] .acc__btn span{transform: rotate(45deg)}
.acc__btn span{transition: transform .18s ease}
.acc__panel{
  padding:0 14px 14px;
  color:var(--muted);
  line-height:1.75;
  display:none;
}
.acc[aria-expanded="true"] .acc__panel{display:block}

.footergrid{
  margin-top:22px;
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap:14px;
  padding-top:16px;
  border-top:1px solid rgba(10,26,20,.10);
}
@media (max-width: 900px){ .footergrid{grid-template-columns:1fr 1fr} }
@media (max-width: 520px){ .footergrid{grid-template-columns:1fr} }
.footercol h4{margin:0 0 10px; font-size:13px; letter-spacing:.2px; text-transform:uppercase; color:var(--muted2)}
.footercol a{
  display:block;
  padding:8px 10px;
  margin-left:-10px;
  border-radius:12px;
  color:var(--muted);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.footercol a:hover{
  background: rgba(10,26,20,.04);
  color: var(--text);
  transform: translateY(-1px);
}

/* carousel (scrollable reviews) */
.carousel{
  border-radius: var(--radius2);
  border:1px solid rgba(10,26,20,.10);
  background: rgba(255,255,255,.72);
  padding:14px;
  overflow:hidden;
}
.carousel__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.carousel__controls{display:flex; gap:10px; align-items:center}
.iconbtn{
  width:40px; height:40px;
  border-radius:14px;
  border:1px solid rgba(10,26,20,.12);
  background: rgba(255,255,255,.78);
  color: var(--text);
  cursor:pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.iconbtn:hover{transform: translateY(-1px); background: rgba(247,243,234,.08)}
.iconbtn:hover{background: rgba(255,255,255,.92)}
.iconbtn:active{transform: translateY(0)}
.carousel__track{
  display:flex;
  gap:12px;
  overflow:auto;
  padding:6px 4px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar{height:10px}
.carousel__track::-webkit-scrollbar-thumb{background: rgba(247,243,234,.12); border-radius:999px}
.review{
  flex: 0 0 min(420px, 86vw);
  scroll-snap-align: start;
  border-radius: var(--radius);
  border:1px solid rgba(10,26,20,.10);
  background: var(--surface2);
  padding:16px;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.review:hover{transform: translateY(-3px); border-color: rgba(10,26,20,.16); background: #fff}
.review__top{display:flex; gap:12px; align-items:center}
.avatar{
  width:44px; height:44px;
  border-radius:16px;
  border:1px solid rgba(10,26,20,.10);
  background: rgba(10,26,20,.03);
  overflow:hidden;
  flex:0 0 auto;
}
.avatar img{width:100%; height:100%; object-fit:cover; display:block}
.review__name{font-weight:900}
.review__meta{font-size:12px; color:var(--muted2); margin-top:2px}
.stars{font-size:12px; letter-spacing:1px; color: rgba(203,191,154,.92); margin-left:auto}
.review__body{margin-top:12px; color:var(--muted); line-height:1.8}

/* Scan + results loading */
.camera{position:relative}
.scan-loading{
  position:absolute; inset:0; z-index:5;
  display:flex; align-items:center; justify-content:center;
  border-radius:inherit;
  background:rgba(247,243,234,.82);
  backdrop-filter:blur(6px);
}
.scan-loading[hidden]{display:none !important}
.scan-loading__panel{text-align:center; padding:24px; max-width:280px}
.scan-loading__spinner{
  width:42px; height:42px; margin:0 auto 14px;
  border-radius:50%;
  border:3px solid rgba(47,107,79,.18);
  border-top-color:var(--primary);
  animation: spin .85s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.scan-loading__title{margin:0; font-weight:900; font-size:18px}
.scan-loading__desc{margin:8px 0 0; color:var(--muted); font-size:13px; line-height:1.6}

.results-dashboard{position:relative}
.results-dashboard--loading .results-dashboard__content{opacity:.35; pointer-events:none}
.results-loading{
  display:flex; align-items:center; justify-content:center;
  gap:12px; padding:28px 16px;
  color:var(--muted);
  font-size:14px;
}
.results-loading[hidden]{display:none !important}
.results-loading__spinner{
  width:22px; height:22px; flex:0 0 auto;
  border-radius:50%;
  border:2px solid rgba(47,107,79,.18);
  border-top-color:var(--primary);
  animation: spin .85s linear infinite;
}
.results-head{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:12px; flex-wrap:wrap; margin-bottom:12px;
}
.results-head__badge{
  font-size:11px; font-weight:800; letter-spacing:.04em; text-transform:uppercase;
  padding:6px 10px; border-radius:999px;
  background:rgba(47,107,79,.10); color:var(--primary);
  border:1px solid rgba(47,107,79,.16);
}
#resultsMeta{margin:0; font-size:13px; color:var(--muted2)}

.kpi-group{margin-top:18px}
.kpi-group__title{margin:0 0 10px; font-size:14px; font-weight:900; letter-spacing:.02em}
.kpi-group__grid{margin-top:0}
.routine-step{margin:0 0 12px; padding:12px; border-radius:14px; border:1px solid rgba(234,240,255,.10); background:rgba(7,10,18,.18)}
.routine-step__category{font-weight:900; font-size:14px}
.routine-step__instructions{margin:6px 0 0; color:var(--muted); font-size:13px; line-height:1.6}
.routine-step__examples{margin:8px 0 0; font-size:12px; color:var(--muted2)}
.routine-layering{font-size:13px; color:var(--muted); line-height:1.65; margin:0 0 12px}

/* ── Mobile layout + Paystack checkout ── */
@media (max-width: 768px){
  .container{padding:16px}

  .topbar{
    flex-wrap:wrap;
    gap:10px;
    padding:12px 14px;
    max-width:100%;
  }

  .page{padding:12px 0 20px}
  .page__title{font-size:24px}
  .page__desc{font-size:15px}

  .card{padding:14px}
  .split{gap:12px}

  .qrbox{padding:14px; min-height:180px}
  .qrbox canvas,
  .qrbox__canvas,
  #qrCanvas{
    max-width:min(200px, 100%) !important;
  }

  .camera .row{
    flex-direction:column;
  }
  .camera .row > .btn{
    width:100%;
    flex:1 1 auto;
  }

  .hero__cta{
    flex-direction:column;
  }
  .hero__cta .btn{
    width:100%;
  }

  .footer{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }
  .footer .row{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }

  .fineprint{font-size:12px; line-height:1.6}
  .notice div[style*="font-size:34px"]{
    font-size:28px !important;
  }

  .modal__panel{
    width:min(720px, 100%);
    max-width:100%;
  }
  .modal__actions{
    flex-direction:column;
    align-items:stretch;
  }
  .modal__actions .btn{width:100%}

  .tile[style*="display:flex"],
  .tile.tile--row{
    flex-wrap:wrap;
  }
  .tile .btn{
    flex:1 1 auto;
    max-width:100%;
  }
}

/* Tablet only — compact horizontal nav (not hamburger) */
@media (min-width: 641px) and (max-width: 768px){
  .topnav{
    width:100%;
    display:flex;
    align-items:center;
    gap:6px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding-bottom:2px;
  }
  .topnav::-webkit-scrollbar{display:none}
  .topnav__link{
    padding:8px 10px;
    font-size:13px;
    white-space:nowrap;
    flex:0 0 auto;
  }
  .topnav .btn{
    padding:8px 12px;
    font-size:13px;
    white-space:nowrap;
    flex:0 0 auto;
  }
}

/* Mobile only — hamburger + slide-out drawer */
.nav-drawer-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  margin-left:auto;
  padding:0;
  border-radius:14px;
  border:1px solid rgba(10,26,20,.12);
  background:rgba(255,255,255,.82);
  color:var(--text);
  cursor:pointer;
  flex:0 0 auto;
}
.nav-drawer-toggle svg{display:block}
.nav-drawer-toggle:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(203,191,154,.16);
}

.nav-drawer-overlay{
  position:fixed;
  inset:0;
  background:rgba(10,26,20,.42);
  backdrop-filter:blur(2px);
  opacity:0;
  visibility:hidden;
  transition:opacity .24s ease, visibility .24s ease;
  z-index:90;
}
.nav-drawer-overlay.is-open{
  opacity:1;
  visibility:visible;
}

.nav-drawer{
  position:fixed;
  top:0;
  right:0;
  width:min(320px, 88vw);
  height:100dvh;
  padding:18px 16px 24px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,247,246,.96));
  border-left:1px solid rgba(10,26,20,.10);
  box-shadow:-18px 0 50px rgba(10,26,20,.14);
  transform:translateX(100%);
  transition:transform .28s ease;
  z-index:100;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}
.nav-drawer.is-open{transform:translateX(0)}

.nav-drawer__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
  padding-bottom:12px;
  border-bottom:1px solid rgba(10,26,20,.08);
}
.nav-drawer__title{
  margin:0;
  font-size:16px;
  font-weight:900;
}
.nav-drawer__close{
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  border:1px solid rgba(10,26,20,.12);
  background:rgba(255,255,255,.82);
  color:var(--text);
  cursor:pointer;
}

.topnav--drawer{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:6px;
  width:100%;
}
.topnav--drawer .topnav__link,
.topnav--drawer .btn{
  width:100%;
  justify-content:flex-start;
  padding:12px 14px;
  font-size:15px;
  white-space:normal;
}
.topnav--drawer .topnav__user{
  max-width:none;
}
.topnav--drawer [data-nav-signout]{
  width:100%;
  margin-top:6px;
}

body.nav-drawer-open{overflow:hidden}

.install-app-btn{
  flex:0 0 auto;
}
.topnav--drawer .install-app-btn{
  width:100%;
  margin-top:4px;
}

@media (max-width: 640px){
  .topbar{
    flex-wrap:nowrap;
    align-items:center;
    gap:12px;
  }
  .topbar > .topnav{display:none !important}
  .nav-drawer-toggle{display:inline-flex}
}

/* Paystack inline popup — keep iframe within the viewport on small screens */
iframe[src*="paystack.com"],
iframe[src*="checkout.paystack"],
iframe[name="paystack-checkout"],
#paystack-checkout-background,
.paystack-checkout-background,
div[id*="paystack"] iframe{
  max-width:100vw !important;
  max-height:100dvh !important;
}

#paystack-checkout-background,
.paystack-checkout-background,
div[id*="paystack-checkout"]{
  position:fixed !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  max-width:100vw !important;
  max-height:100dvh !important;
  padding:0 !important;
  margin:0 !important;
  box-sizing:border-box !important;
  z-index:9999 !important;
}

@media (max-width: 768px){
  iframe[src*="paystack.com"],
  iframe[src*="checkout.paystack"],
  iframe[name="paystack-checkout"]{
    width:100% !important;
    height:100% !important;
    min-height:100dvh !important;
    left:0 !important;
    right:0 !important;
    top:0 !important;
    bottom:0 !important;
    border:0 !important;
    border-radius:0 !important;
  }
}
