/* Showcase sections for the tab pages (Winston, Nov 3: the home page had
   too much on it). Moved here from intro.html as they were:
   Features  - What you get (facts), See it in action, All in one place
   Household - the five household screens
   How it works - Inside WJP (dashboard + phone)
   Real screens, sample data, images in /assets/demo (cached a year). */
.demo-frame{border-radius:18px;overflow:hidden;background:#fff;border:1px solid rgba(10,10,10,0.08);box-shadow:0 30px 80px rgba(20,40,30,0.16)}
.demo-bar{display:flex;align-items:center;gap:7px;padding:10px 14px;background:linear-gradient(180deg,#fbfaf6,#f3f1ea);border-bottom:1px solid rgba(10,10,10,0.07)}
.demo-bar span{width:10px;height:10px;border-radius:50%;background:#dcd8cd}
.demo-bar span:first-child{background:#e8a29a}.demo-bar span:nth-child(2){background:#e9cf8f}.demo-bar span:nth-child(3){background:#9fd0b1}
.demo-bar b{margin-left:10px;font-size:11px;letter-spacing:2px;text-transform:uppercase;color:rgba(10,10,10,.4);font-weight:700}
.hv{position:relative;padding:26px 0 52px 40px}
.hv-glow{position:absolute;inset:-4% -6% 0 8%;z-index:0;border-radius:48px;
  background:radial-gradient(60% 60% at 30% 30%,rgba(31,122,74,.30),transparent 70%),radial-gradient(55% 55% at 80% 80%,rgba(201,154,42,.28),transparent 70%)}
.hv-browser{position:relative;z-index:1}
.hv-browser img{width:100%;height:auto;display:block}
.hv-phone{position:absolute;z-index:2;left:0;bottom:18%;width:23%;border-radius:26px;padding:6px;background:#0f1a14;box-shadow:0 26px 60px rgba(15,26,20,.32)}
.hv-phone img{width:100%;height:auto;display:block;border-radius:20px}
.hv-chip{position:absolute;z-index:3;background:#fff;border:1px solid rgba(31,122,74,.18);border-top:3px solid #c99a2a;border-radius:16px;padding:12px 16px;box-shadow:0 18px 44px rgba(15,40,25,.18);min-width:178px;text-align:left}
.hv-chip small{display:block;font-size:10px;letter-spacing:1.6px;text-transform:uppercase;font-weight:800;color:#8f6a14}
.hv-chip b{display:block;font-size:26px;line-height:1.1;letter-spacing:-.02em;color:#0f3d26;margin-top:2px}
.hv-chip span{display:block;font-size:12px;line-height:1.35;color:rgba(10,10,10,.6);margin-top:2px;max-width:180px}
.hv-chip-a{top:0;right:-12px}
.hv-chip-b{right:7%;bottom:6px;border-top-color:#1f7a4a}
.hv-chip-b b{color:#1f7a4a}
.hv-note{position:absolute;right:2px;bottom:-16px;margin:0;font-size:11px;color:rgba(10,10,10,.4)}
@media (max-width:1100px){
  .hero.hero2{padding:108px 22px 36px;text-align:center}
  .hero2-grid{grid-template-columns:1fr;gap:30px}
  .hero2 .hero-sub{margin:18px auto 0}
  .hero2 .hero-cta,.hero2 .hero-meta,.hero2 .apps-soon{justify-content:center}
  .hero2 .trial-disclosure{margin:14px auto 0}
  .hv{max-width:760px;width:100%;margin:0 auto;padding:16px 0 44px 28px}
}
@media (max-width:820px){
  .hero.hero2{padding:104px 18px 30px}
  .hv{padding:14px 0 40px 18px}
  .hv-chip{min-width:0;padding:8px 11px;border-radius:12px}
  .hv-chip b{font-size:17px}
  .hv-chip span{display:none}
  .hv-chip-a{right:-6px;top:-6px}
  .hv-chip-b{right:4%;bottom:4px}
  .hv-phone{width:29%;border-radius:18px;padding:4px}.hv-phone img{border-radius:14px}
}
/* Inside WJP: the dashboard, with the tree softly blurred behind */
.inside{position:relative;overflow:hidden;padding:76px 28px 70px}
.inside-tree{position:absolute;inset:-6% 0;z-index:0;pointer-events:none;
  background:url(/assets/demo/tree-full-v5.webp) 50% 45%/auto 118% no-repeat;filter:blur(4px) saturate(1.1);opacity:.5}
.inside-grid{position:relative;z-index:1;max-width:1240px;margin:0 auto;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:48px;align-items:center}
.inside .h2{font-size:clamp(30px,3.4vw,48px);line-height:1.06}
.inside .lede{margin-top:16px;font-size:16px}
.inside-list{list-style:none;margin:20px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.inside-list li{padding-left:22px;position:relative;font-size:15px;line-height:1.5;color:rgba(10,10,10,.68)}
.inside-list li::before{content:"";position:absolute;left:0;top:.5em;width:9px;height:9px;border-radius:50%;background:linear-gradient(135deg,#1f7a4a,#c99a2a)}
.inside-list b{color:#0a0a0a}
@media (max-width:1100px){
  .inside{padding:52px 18px}
  .inside-grid{grid-template-columns:1fr;gap:28px;text-align:center}
  .inside-list{text-align:left;max-width:520px;margin:20px auto 0}
  .inside-tree{background-position:50% 30%;background-size:auto 95%;opacity:.3}
}
.facts{padding:12px 24px 36px}
.facts-row{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.fact{padding:20px 22px;border-radius:18px;background:rgba(255,255,255,.66);border:1px solid rgba(31,122,74,.14);box-shadow:0 10px 30px rgba(20,40,30,.06);position:relative;overflow:hidden}
.fact::before{content:"";position:absolute;left:0;top:0;right:0;height:3px;background:linear-gradient(90deg,#1f7a4a,#c99a2a)}
.fact b{display:block;font-size:30px;line-height:1.05;font-weight:800;letter-spacing:-.03em;color:#0f3d26}
.fact span{display:block;margin-top:2px;font-size:11px;letter-spacing:1.8px;text-transform:uppercase;font-weight:800;color:#8f6a14}
.fact p{margin-top:8px;font-size:14px;line-height:1.5;color:var(--ink-dim,rgba(10,10,10,.66))}
@media (max-width:900px){ .facts-row{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:520px){ .facts{padding:6px 16px 26px} .fact{padding:16px} .fact b{font-size:24px} }
/* Tall screens in a frame that scrolls: the top of each page and what is
   below it. Drifts down slowly on its own while on screen (not with
   reduced motion); any touch, wheel or hover hands it to the reader. */
.tf{position:relative;aspect-ratio:16/10;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(31,122,74,.45) transparent;background:#f6f5ef}
.tf::-webkit-scrollbar{width:8px}.tf::-webkit-scrollbar-thumb{background:rgba(31,122,74,.4);border-radius:8px}
.tf img{display:block;width:100%;height:auto}
.tf:focus-visible{outline:3px solid #c99a2a;outline-offset:-3px}
.demo-frame{position:relative}
.tf-hint{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);padding:7px 14px;border-radius:999px;background:rgba(15,61,38,.86);color:#fff;font-size:12px;font-weight:700;letter-spacing:.2px;pointer-events:none;transition:opacity .4s ease;box-shadow:0 8px 20px rgba(15,61,38,.25)}
.tf-hint::after{content:" \2193"}
.demo-frame.tf-used .tf-hint{opacity:0}
.aio-shot .tf{aspect-ratio:16/11}
@media (max-width:820px){ .tf{aspect-ratio:4/5} .aio-shot .tf{aspect-ratio:4/5} .tf-hint{font-size:11px;bottom:10px} }
.demo-show{ padding:72px 24px 64px; }
.demo-lede{ margin:18px auto 0; text-align:center; }
.demo-tabs{
  max-width:var(--max, 1160px); margin:34px auto 0;
  display:flex; gap:8px; justify-content:center; flex-wrap:wrap;
}
.demo-tabs button{
  appearance:none; cursor:pointer;
  padding:10px 18px; border-radius:999px;
  font:600 13.5px/1 var(--sans, Inter, system-ui, sans-serif); letter-spacing:-0.005em;
  color:var(--ink-dim, rgba(10,10,10,.66));
  background:rgba(255,255,255,0.65); border:1px solid rgba(10,10,10,0.10);
  transition:background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.demo-tabs button:hover{ color:var(--ink, #0a0a0a); border-color:rgba(10,10,10,0.22); }
.demo-tabs button[aria-selected="true"]{
  background:var(--accent, #1f7a4a); color:#fff; border-color:var(--accent, #1f7a4a);
  box-shadow:0 6px 18px rgba(31,122,74,0.28);
}
.demo-tabs button:focus-visible{ outline:2px solid var(--gold, #c99a2a); outline-offset:2px; }
.demo-stage{ max-width:1120px; margin:26px auto 0; }
.demo-panel{ margin:0; }
.demo-show.demo-js .demo-panel{ display:none; }
.demo-show.demo-js .demo-panel.is-on{ display:block; animation:demoIn .35s ease; }
.demo-show:not(.demo-js) .demo-panel + .demo-panel{ margin-top:40px; }
@keyframes demoIn{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
.demo-frame{
  border-radius:18px; overflow:hidden; background:#fff;
  border:1px solid rgba(10,10,10,0.08);
  box-shadow:0 30px 80px rgba(20,40,30,0.16), 0 2px 0 rgba(255,255,255,0.8) inset;
}
.demo-bar{
  display:flex; align-items:center; gap:7px; padding:10px 14px;
  background:linear-gradient(180deg,#fbfaf6,#f3f1ea); border-bottom:1px solid rgba(10,10,10,0.07);
}
.demo-bar span{ width:10px; height:10px; border-radius:50%; background:#dcd8cd; }
.demo-bar span:first-child{ background:#e8a29a; } .demo-bar span:nth-child(2){ background:#e9cf8f; } .demo-bar span:nth-child(3){ background:#9fd0b1; }
.demo-bar b{ margin-left:10px; font-size:11px; letter-spacing:2px; text-transform:uppercase; color:var(--ink-faint, rgba(10,10,10,.4)); font-weight:700; }
.demo-frame img{ width:100%; height:auto; display:block; }
.demo-panel figcaption{
  max-width:720px; margin:20px auto 0; text-align:center;
  font-size:15.5px; line-height:1.55; color:var(--ink-dim, rgba(10,10,10,.66));
}
.demo-panel figcaption b{ color:var(--ink, #0a0a0a); font-weight:700; }
.demo-phones{ display:flex; justify-content:center; gap:28px; }
.demo-phone{
  width:min(300px, 44vw); border-radius:36px; padding:10px; background:#0f1a14;
  box-shadow:0 30px 70px rgba(20,40,30,0.25), inset 0 0 0 2px rgba(255,255,255,0.06);
}
.demo-phone img{ width:100%; height:auto; display:block; border-radius:27px; }
.demo-note{ margin:22px auto 0; text-align:center; font-size:12px; color:var(--ink-faint, rgba(10,10,10,.4)); }
@media (max-width:820px){
  .demo-show{ padding:52px 0 44px; }
  .demo-show > .wrap{ padding:0 18px; }
  .demo-tabs{ justify-content:flex-start; flex-wrap:nowrap; overflow-x:auto; padding:0 18px 6px; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
  .demo-tabs::-webkit-scrollbar{ display:none; }
  .demo-tabs button{ flex:0 0 auto; padding:10px 15px; }
  .demo-stage{ padding:0 14px; margin-top:18px; }
  .demo-frame{ border-radius:12px; }
  .demo-bar{ padding:7px 10px; } .demo-bar span{ width:8px; height:8px; }
  .demo-panel figcaption{ font-size:14.5px; padding:0 6px; }
  .demo-phones{ gap:14px; }
  .demo-phone{ border-radius:26px; padding:7px; } .demo-phone img{ border-radius:20px; }
}
.aio{ padding:64px 24px 40px; }
.aio-lede, .hh-lede{ margin:18px auto 0; text-align:center; }
.aio-rows{ max-width:1160px; margin:46px auto 0; display:flex; flex-direction:column; gap:64px; }
.aio-row{ display:grid; grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr); gap:48px; align-items:center; }
.aio-row.flip .aio-txt{ order:2; }
.aio-eb{ display:inline-block; font-size:11px; letter-spacing:2.4px; text-transform:uppercase; font-weight:800; color:var(--gold-deep, #8f6a14);
  background:rgba(201,154,42,.12); border:1px solid rgba(201,154,42,.28); border-radius:999px; padding:5px 12px; }
.aio-txt h3{ margin:14px 0 0; font-family:var(--sans); font-weight:800; font-size:clamp(26px,3vw,38px); line-height:1.08; letter-spacing:-0.03em; color:var(--ink, #0a0a0a); }
.aio-txt h3 em{ font-style:normal; color:var(--accent, #1f7a4a); }
.aio-txt ul{ list-style:none; margin:20px 0 0; padding:0; display:flex; flex-direction:column; gap:12px; }
.aio-txt li{ display:flex; gap:12px; align-items:flex-start; font-size:15.5px; line-height:1.55; color:var(--ink-dim, rgba(10,10,10,.66)); }
.aio-txt li svg{ flex:0 0 22px; width:22px; height:22px; padding:3px; margin-top:1px; border-radius:50%; color:#fff; background:var(--accent, #1f7a4a); }
.aio-shot .demo-frame img{ width:100%; height:auto; display:block; }
.hh-show{ position:relative; padding:76px 24px 64px; margin-top:24px;
  background:linear-gradient(180deg, rgba(31,122,74,.07), rgba(201,154,42,.06)); border-top:1px solid var(--rule, rgba(10,10,10,.08)); border-bottom:1px solid var(--rule, rgba(10,10,10,.08)); }
.hh-hero{ max-width:1120px; margin:36px auto 0; }
.hh-hero img{ width:100%; height:auto; display:block; }
.hh-hero figcaption, .hh-card figcaption{ margin:16px auto 0; max-width:760px; text-align:center; font-size:15px; line-height:1.55; color:var(--ink-dim, rgba(10,10,10,.66)); }
.hh-hero figcaption b, .hh-card figcaption b{ color:var(--ink, #0a0a0a); }
.hh-grid{ max-width:1120px; margin:40px auto 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:34px 28px; }
.hh-card{ margin:0; }
.hh-card img{ width:100%; height:auto; display:block; }
.hh-card figcaption{ font-size:14.5px; text-align:left; margin:14px 4px 0; }
.hh-points{ list-style:none; max-width:1120px; margin:44px auto 0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.hh-points li{ padding:20px 22px; border-radius:16px; background:rgba(255,255,255,.66); border:1px solid rgba(31,122,74,.14); font-size:14.5px; line-height:1.55; color:var(--ink-dim, rgba(10,10,10,.66)); }
.hh-points b{ display:block; color:var(--ink, #0a0a0a); font-size:15.5px; margin-bottom:4px; }
.apps-soon{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:18px; }
.apps-soon > .app-soon{ display:inline-flex; align-items:center; gap:10px; min-height:48px; min-width:214px; padding:7px 18px 7px 13px; border-radius:12px;
  background:linear-gradient(180deg,#14402a,#0c2a1b); color:#fff; border:1px solid rgba(241,213,138,.45);
  box-shadow:0 8px 20px rgba(12,42,27,.22), inset 0 1px 0 rgba(255,255,255,.08); font-family:var(--sans,Inter,system-ui,sans-serif); }
.apps-soon > .app-soon > span{ display:block; text-align:left; font-size:15px; font-weight:700; line-height:1.15; letter-spacing:-.01em; }
.apps-soon svg{ width:22px; height:22px; flex:0 0 22px; color:#f1d58a; }
.apps-soon small{ display:block; font-size:9.5px; letter-spacing:1.6px; text-transform:uppercase; color:#f1d58a; font-weight:800; margin-bottom:2px; }
@media (max-width:900px){
  .aio{ padding:48px 18px 28px; }
  .aio-rows{ gap:44px; margin-top:32px; }
  .aio-row, .aio-row.flip{ grid-template-columns:1fr; gap:20px; }
  .aio-row.flip .aio-txt{ order:0; }
  .aio-txt li{ font-size:15px; }
  .hh-show{ padding:52px 16px 44px; }
  .hh-grid{ grid-template-columns:1fr; gap:28px; }
  .hh-points{ grid-template-columns:1fr; }
}
.who-for{ padding:80px 24px 56px; }
.who-list{
  max-width:720px; margin:36px auto 0;
  display:flex; flex-direction:column; gap:12px;
}
.who-item{
  background:rgba(255,255,255,0.5);
  border:1px solid rgba(31,122,74,0.10);
  border-radius:12px;
  padding:16px 20px;
  font-size:15px; line-height:1.5;
  color:var(--ink, #0b0f1a);
}
.who-item em{ color:var(--accent, #1f7a4a); font-style:normal; font-weight:700; }
@media (max-width:820px){
  .who-for{ padding:56px 18px 32px; }
  .who-item{ font-size:14px; padding:14px 16px; }
}
.cost-of-waiting{ padding:56px 24px 72px; text-align:center; }
@media (max-width:820px){ .cost-of-waiting{ padding:40px 18px 48px; } }

/* Household page: the screens start right under the page heading */
.sub-hero + .hh-show{margin-top:0;padding-top:40px;border-top:0}
/* Computers that can't show WebP (wjp-img-fallback.js). */
html.wjp-no-webp .inside-tree{background-image:url(/assets/demo/tree-full-v5.png)}
