/* ============================================================
   page.css — OurProvisions' front-door story.

   Everything specific to THIS page: the hero, the living-list
   device demo, the thesis, the three screenshots, the fleet
   note, the come-aboard section, and the welcome door. Depends
   on chrome.css (loaded first).

   Ported verbatim from the approved mockup. The one value that
   must never be normalized is the household-photo header's
   background-size / background-position (see .op-header).
   ============================================================ */

/* ================= HERO ================= */
.hero{
  position:relative;padding:132px 0 84px;
  background:var(--abyss);
  overflow:hidden;
}
/* IMAGE LAYER. The approved mockup ships the CSS gradient scene below
   (--hero-photo is intentionally unset). To drop a real hero photo in
   later: set --hero-photo:url('assets/img/…') on .hero and delete the
   .hero-img::before placeholder stack. Deferred — see the hero-video /
   future-state-hero notes in the spec. */
.hero-img{
  position:absolute;inset:0;
  background-image:var(--hero-photo, none);
  background-size:cover;background-position:center 60%;
  background-color:#0a3d4a;
}
/* --- placeholder scene (delete when a real photo lands) --- */
.hero-img::before{
  content:'';position:absolute;inset:0;
  background:
    radial-gradient(70% 42% at 72% 8%, rgba(255,232,190,0.5), transparent 62%),
    linear-gradient(180deg,
      #123b52 0%,
      #2b6f7e 26%,
      #63b0ae 44%,
      #8fd0c4 50%,
      #4d9aa2 51%,
      #2d7885 62%,
      #1d5a68 74%,
      #d9c39a 86%,
      #e8d4ae 100%);
}
.hero-img::after{
  content:'';position:absolute;inset:0;
  background:
    linear-gradient(100deg, rgba(2,15,26,0.90) 0%, rgba(2,15,26,0.78) 34%, rgba(2,15,26,0.52) 58%, rgba(2,15,26,0.42) 100%),
    linear-gradient(180deg, rgba(2,15,26,0.55) 0%, transparent 22%, transparent 74%, rgba(2,15,26,0.6) 100%);
}
.hero .wrap{position:relative;z-index:2;}
.hero-grid{
  display:grid;grid-template-columns:1fr 340px;gap:64px;align-items:center;
}
.hero h1{
  font-size:clamp(38px,4vw,54px);letter-spacing:-1.4px;margin:18px 0 20px;
  max-width:12ch;color:var(--cream);
  text-shadow:0 2px 30px rgba(2,15,26,0.5);
}
.hero h1 em{font-style:italic;color:var(--sand);}
.hero .eyebrow{
  color:var(--sand);display:inline-flex;align-items:center;gap:9px;
}
.hero .eyebrow::before{
  content:'';width:5px;height:5px;border-radius:50%;background:var(--teal-lift);
}
.hero-sub{
  font-size:18px;color:rgba(250,244,236,0.82);max-width:42ch;font-weight:300;line-height:1.65;
  text-shadow:0 1px 20px rgba(2,15,26,0.6);
}
.hero-sub b{font-weight:700;color:#fff;}
.hero-actions{margin-top:30px;display:flex;align-items:center;gap:22px;flex-wrap:wrap;}
.hero::after{
  content:'';position:absolute;left:0;right:0;bottom:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(201,169,122,0.55) 30%,rgba(201,169,122,0.55) 70%,transparent);
}

/* ---- SIGNATURE: the living list device ---- */
.device{
  width:300px;flex:0 0 300px;height:600px;position:relative;
  background:linear-gradient(160deg,#2a2a2c,#0b0b0d 42%,#000);
  border-radius:42px;
  padding:10px;
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.6),
    0 8px 24px -6px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.10) inset;
}
.device::before{
  content:'';position:absolute;top:20px;left:50%;transform:translateX(-50%);
  width:70px;height:4px;border-radius:99px;background:rgba(0,0,0,0.55);z-index:3;
}
.phone{
  background:var(--paper);
  border-radius:33px;
  padding:0;
  position:relative;overflow:hidden;
  height:100%;
  display:flex;flex-direction:column;
}
/* --- household photo header (Beat 1 design, black radial scrim) ---
   background-size / background-position are LOAD-BEARING: tuned by eye
   against the full, uncropped Sacandaga photo. `cover` breaks it. Do
   not normalize. The radial+linear scrim below is the shared "scrim
   primitive" (see SPEC / ARCHITECTURE) — same problem as the landing
   hero at a different scale. */
.op-header{
  position:relative;height:150px;flex:0 0 150px;
  background-image:url('../img/sacandaga.jpg');
  background-size:100% auto;background-position:center 42%;
  display:flex;flex-direction:column;isolation:isolate;
  padding-top:26px;
}
.op-header::before{
  content:"";position:absolute;inset:0;z-index:1;
  background:
    /* protect the wordmark + tabs in the centre column only */
    radial-gradient(120% 78% at 50% 52%, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.40) 46%, transparent 78%),
    /* thin caps for the topbar and the tab baseline */
    linear-gradient(to bottom,
      rgba(0,0,0,0.80) 0%,
      rgba(0,0,0,0.30) 22%,
      rgba(0,0,0,0.18) 55%,
      rgba(0,0,0,0.55) 100%);
}
.op-header > *{position:relative;z-index:2;}
.op-topbar{display:flex;align-items:center;justify-content:space-between;padding:0 14px;}
.op-av{
  width:26px;height:26px;border-radius:50%;background:var(--teal);color:#fff;
  font-weight:900;font-size:9px;display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,0.3);font-family:'Lato';
}
.op-house{
  font-weight:900;letter-spacing:.14em;font-size:9.5px;color:var(--cream);
  text-shadow:0 1px 6px rgba(0,0,0,0.9);font-family:'Lato';
}
.op-house .anchor{color:var(--sand);margin:0 5px;}
.op-dots{color:var(--sand);font-size:13px;letter-spacing:1px;text-shadow:0 1px 4px rgba(0,0,0,0.5);}
.op-mark{flex:1;display:flex;align-items:center;justify-content:center;}
.op-mark h2{
  font-family:'Playfair Display',serif;font-style:italic;font-weight:700;font-size:21px;
  color:var(--cream);text-shadow:0 2px 14px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.7);
}
.op-tabs{display:flex;justify-content:space-around;align-items:flex-end;padding:0 8px 9px;}
.op-tab{
  font-weight:900;letter-spacing:.09em;font-size:7.5px;color:var(--sand);
  text-shadow:0 1px 6px rgba(0,0,0,0.9);padding-bottom:4px;text-align:center;font-family:'Lato';
}
.op-tab.active{color:var(--cream);border-bottom:1.5px solid var(--sand);}
.op-tab .ico{display:block;font-size:11px;margin-bottom:2px;}
.op-tab .badge{
  display:block;margin:3px auto 0;background:var(--sand);color:var(--espresso);
  font-size:7.5px;font-weight:900;border-radius:99px;padding:1.5px 6px;width:fit-content;
  text-shadow:none;letter-spacing:0;
}
#list{padding:0 13px 0;flex:1;overflow-y:auto;min-height:0;}
#list::-webkit-scrollbar{width:0;}

/* --- shop bar (from the live app) --- */
.shopbar{padding:12px 13px 8px;flex:none;}
.shopbar-top{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.shop-count{
  font-size:8.5px;font-weight:900;letter-spacing:1.4px;text-transform:uppercase;
  color:var(--ink-soft);font-family:'Lato';
}
.shop-acts{display:flex;align-items:center;gap:6px;}
.cycle-btn{
  width:26px;height:26px;border-radius:7px;background:var(--clay);
  display:grid;place-items:center;gap:2.5px;flex:none;
}
.cycle-btn i{display:block;height:1.5px;background:#fff;border-radius:2px;}
.cycle-btn i:nth-child(1){width:13px;}
.cycle-btn i:nth-child(2){width:13px;}
.cycle-btn i:nth-child(3){width:13px;}
.wrap-btn{
  background:#fff;border:1px solid rgba(201,169,122,0.5);border-radius:9px;
  font-family:'Lato';font-size:10px;font-weight:900;color:var(--espresso);
  padding:6px 12px;flex:none;
}
.shop-hidden{
  font-size:8px;color:var(--ink-dim);font-style:italic;margin-top:7px;font-family:'Lato';
}
.prog{
  height:3px;border-radius:99px;background:var(--sand-soft);margin-top:8px;overflow:hidden;
}
.prog span{
  display:block;height:100%;border-radius:99px;background:var(--clay);
  width:30%;transition:width 1.1s cubic-bezier(.4,0,.2,1);
}
.az{
  font-size:8px;letter-spacing:1.8px;text-transform:uppercase;color:var(--ink-dim);
  font-weight:900;padding:11px 13px 2px;font-family:'Lato';flex:none;
}

.row{
  display:flex;align-items:center;gap:12px;padding:11px 2px;
  border-bottom:1px solid rgba(201,169,122,0.28);
  opacity:0;transform:translateY(6px);
}
.row.in,.cat.in{animation:rowIn .45s cubic-bezier(.2,.7,.3,1) forwards;}
.row:not(.in){opacity:0;transform:translateY(6px);transition:opacity .4s ease,transform .4s ease;}
@keyframes rowIn{to{opacity:1;transform:translateY(0);}}
.box{
  width:17px;height:17px;min-width:17px;border-radius:50%;
  border:1.5px solid var(--sand);background:transparent;
  flex:0 0 17px;position:relative;transition:all .3s ease;
}
.box.done{background:var(--clay);border-color:var(--clay);}
.box.done::after{
  content:'';position:absolute;left:5px;top:2.5px;width:4px;height:8px;
  border:solid #fff;border-width:0 1.5px 1.5px 0;transform:rotate(43deg);
}
.row-body{flex:1;min-width:0;}
.row-name{font-size:14px;font-weight:400;transition:all .3s ease;color:var(--espresso);}
.row.checked .row-name{color:var(--ink-dim);text-decoration:line-through;text-decoration-color:var(--sand);}
.row-by{font-size:8.5px;color:var(--sand);font-weight:700;letter-spacing:0.3px;margin-top:1px;}
.qty{
  font-size:11px;font-weight:400;color:var(--ink-soft);
  flex:none;
}
.cat{
  display:block;font-size:9.5px;letter-spacing:2.4px;text-transform:uppercase;
  color:var(--sand);font-weight:900;padding:14px 6px 4px;
  opacity:0;transform:translateY(6px);
}
.device-wrap{perspective:1400px;display:flex;justify-content:center;}
.device{
  transform:rotateY(-7deg) rotateX(2deg);
  transition:transform .6s cubic-bezier(.2,.7,.3,1);
}
.device-wrap:hover .device{transform:rotateY(-2deg) rotateX(0deg);}
@media (max-width:880px){.device{transform:none;}}
.live{
  position:absolute;right:-14px;bottom:34px;z-index:4;
  background:var(--teal);color:#fff;
  font-size:9.5px;font-weight:900;letter-spacing:1.6px;text-transform:uppercase;
  padding:7px 14px;border-radius:999px;
  display:flex;align-items:center;gap:6px;
  box-shadow:0 8px 24px rgba(13,148,136,0.45);
}
.live .dot{width:5px;height:5px;border-radius:50%;background:#fff;animation:pulse 1.8s infinite;}
@keyframes pulse{0%,100%{opacity:1;}50%{opacity:0.25;}}

@media (max-width:880px){
  .hero{padding:130px 0 70px;}
  .hero-grid{grid-template-columns:1fr;gap:52px;}
  .hero-sub{max-width:none;}
}

/* ================= THESIS (dark) ================= */
.thesis{
  background:
    radial-gradient(80% 90% at 15% 0%, rgba(13,148,136,0.14), transparent 60%),
    radial-gradient(60% 80% at 92% 100%, rgba(201,169,122,0.10), transparent 62%),
    var(--abyss);
  color:var(--cream);padding:110px 0;position:relative;
}
.thesis h2{
  font-size:clamp(30px,3.7vw,44px);letter-spacing:-0.8px;margin:22px 0 26px;max-width:20ch;
}
.thesis h2 em{font-style:italic;color:var(--sand);}
.thesis p{font-size:17.5px;color:rgba(250,244,236,0.66);max-width:56ch;font-weight:300;margin-bottom:18px;}
.thesis p b{color:var(--cream);font-weight:700;}
.pull{
  margin-top:44px;padding-left:26px;border-left:2px solid var(--teal);
  font-family:'Playfair Display',serif;font-style:italic;font-weight:600;
  font-size:clamp(19px,2.1vw,24px);line-height:1.45;color:var(--cream);max-width:38ch;
}

/* ================= WHAT'S READY ================= */
.ready{padding:104px 0;}
.sec-head{margin-bottom:56px;max-width:44ch;}
.sec-head h2{font-size:clamp(28px,3.4vw,40px);letter-spacing:-0.7px;margin:18px 0 16px;}
.sec-head h2 em{font-style:italic;color:var(--clay);}
.sec-head p{font-size:17px;color:var(--ink-soft);font-weight:300;}

.shots{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;}
.shot-slot{
  position:relative;border-radius:28px;
  background:linear-gradient(160deg,#2a2a2c,#0b0b0d 42%,#000);
  padding:8px;
  box-shadow:0 24px 50px -18px rgba(44,26,14,0.45), 0 0 0 1px rgba(255,255,255,0.08) inset;
  transition:transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease;
}
.shot-screen{
  border-radius:21px;
  overflow:hidden;
  position:relative;
  line-height:0;
  background:#000;
  -webkit-mask-image:-webkit-radial-gradient(#fff,#000); /* safari clip fix */
}
.shot-screen img{
  display:block;width:100%;height:auto;
}
.shot-slot:hover{transform:translateY(-6px);box-shadow:0 32px 60px -18px rgba(44,26,14,0.55), 0 0 0 1px rgba(255,255,255,0.08) inset;}
.shot-cap{margin-top:22px;}
.shot-cap h3{font-size:19px;margin-bottom:7px;}
.shot-cap p{font-size:14.5px;color:var(--ink-soft);font-weight:300;line-height:1.55;}
@media (max-width:820px){.shots{grid-template-columns:1fr;gap:48px;}.shot-slot{max-width:300px;margin:0 auto;}}

/* ================= THE FLEET NOTE ================= */
.fleet{
  background:var(--cream-deep);padding:92px 0;
  border-top:1px solid rgba(201,169,122,0.3);
  border-bottom:1px solid rgba(201,169,122,0.3);
}
.fleet h2{font-size:clamp(26px,3.1vw,36px);letter-spacing:-0.6px;margin:18px 0 18px;max-width:22ch;}
.fleet h2 em{font-style:italic;color:var(--teal);}
.fleet p{font-size:17px;color:var(--ink-soft);max-width:54ch;font-weight:300;}

/* ================= COME ABOARD (copy + layout) ================= */
/* The questions themselves use the form primitive in chrome.css. */
.aboard{padding:104px 0 40px;}
.aboard-head{max-width:52ch;margin-bottom:14px;}
.aboard-head h2{font-size:clamp(30px,3.7vw,44px);letter-spacing:-0.8px;margin:18px 0 18px;}
.aboard-head h2 em{font-style:italic;color:var(--teal);}
.aboard-head p{font-size:17.5px;color:var(--ink-soft);font-weight:300;}
.toll{
  margin:26px 0 52px;padding:18px 22px;border-left:2px solid var(--sand);
  background:rgba(201,169,122,0.13);border-radius:0 12px 12px 0;
  font-size:15px;color:var(--ink-soft);max-width:58ch;font-weight:300;
}
.toll b{color:var(--espresso);font-weight:700;}
.aboard-foot{padding-top:8px;padding-bottom:96px;}
.cta-note{margin-top:18px;font-size:13.5px;color:var(--ink-soft);max-width:50ch;font-weight:300;}

/* ================= DONE / THE WELCOME DOOR ================= */
.done{display:none;padding:150px 0 120px;text-align:center;min-height:80vh;}
.done.show{display:block;}
.done h2{font-size:clamp(32px,4.6vw,50px);letter-spacing:-1px;margin:22px 0 22px;}
.done h2 em{font-style:italic;color:var(--teal);}
.done .lead{font-size:18px;color:var(--ink-soft);max-width:46ch;margin:0 auto 40px;font-weight:300;}
.door{
  background:var(--paper);border:1.5px solid var(--sand-soft);border-radius:20px;
  padding:32px 30px;max-width:460px;margin:0 auto;text-align:left;
  box-shadow:0 20px 50px -20px rgba(44,26,14,0.22);
}
.door h3{font-size:19px;margin-bottom:16px;}
.door ol{margin:0 0 22px 18px;padding:0;}
.door li{font-size:14.5px;color:var(--ink-soft);margin-bottom:9px;line-height:1.55;font-weight:300;}
.door li b{color:var(--espresso);font-weight:700;}
.door .btn{width:100%;text-align:center;}
.door-one{margin-top:18px;padding-top:16px;border-top:1px solid var(--sand-soft);
  font-size:14px;color:var(--espresso);line-height:1.55;font-weight:400;}
.door-note{margin-top:12px;font-size:12.5px;color:var(--ink-dim);line-height:1.5;font-weight:300;}
