/* ═══════════════════════════════════════════════════════════════════════════
   Package pages (/fairy-tale/, /novella/, /epic/) — loaded AFTER style.css and
   built from its tokens. One screen on a laptop: photo + what's in it on the
   left, the options and the button on the right. Generated markup lives in
   scripts/build-product-pages.py.
   ═══════════════════════════════════════════════════════════════════════════ */
.pp-body{overflow-x:hidden}
.pp-main{position:relative;z-index:1;padding-top:var(--barh);min-height:100svh;display:flex;align-items:center}
.pp-main .decor{z-index:0}
/* The options card is the busier column, so it gets the wider track — at equal widths its
   labels wrap and the card outgrows a 768px-tall laptop. minmax(0,…) keeps a long <select>
   option from forcing a track wider than the viewport on phones. */
.pp{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr);gap:14px clamp(22px,3vw,44px);
  align-items:start;width:min(100% - (var(--gut)*2),var(--maxw));margin:clamp(8px,1.4vh,22px) auto clamp(10px,1.4vh,22px)}

/* left — the package */
.pp-shot{display:block;aspect-ratio:2/1;max-height:min(30vh,300px);width:100%;overflow:hidden;border-radius:18px;
  background:var(--paper-3);box-shadow:var(--sh-2)}
.pp-shot img{width:100%;height:100%;object-fit:cover}
.pp-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:clamp(10px,1.4vh,18px)}
.pp .kicker{margin-bottom:6px}
.pp h1{font-size:clamp(30px,3.1vw,44px)}
.pp .scard-tag{margin-top:6px}
.pp .price{margin:0;font-size:clamp(38px,3.8vw,52px);white-space:nowrap}
.pp h2.count{margin-top:8px;font-family:var(--sans);font-weight:400;font-size:15px;letter-spacing:0;line-height:1.66;text-wrap:pretty;color:var(--ink-2)}
.pp-foot .also a{margin-left:6px}
.pp-visual .ticks{margin:10px 0 0}
.pp-visual .ticks li{padding:7px 0 7px 27px;font-size:14.5px}
.pp-visual .ticks li::before{top:14px}
.pp-varieties{margin-top:10px;font-size:13px;line-height:1.55;color:var(--ink-3);text-wrap:pretty}
.pp-varieties b{color:var(--ink-2);font-weight:600}

/* right — the options */
.pp-opts{background:var(--card);border:1px solid var(--line);border-radius:20px;
  padding:clamp(16px,2vw,24px);box-shadow:var(--sh-2)}
.pp-opts h2{font-size:clamp(20px,1.9vw,24px)}
.pp-opts .sub{margin-top:5px;font-size:13px;line-height:1.5;color:var(--ink-3)}
.pp-adds{margin:12px 0 0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr}
/* two add-ons sit side by side on a laptop (one add-on takes the full width) */
@media (min-width:981px){.pp-adds{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));column-gap:20px}}
.pp-adds li{padding:0}
.pp-adds .opt{min-height:44px;padding:7px 0;align-items:flex-start}
.pp-adds .opt input[type="checkbox"]{margin-top:3px}
.pp-adds .opt span{display:block;font-size:14.5px;line-height:1.35}
.pp-adds .opt small{display:block;font-size:12px;line-height:1.4;color:var(--ink-3);margin-top:2px}
.pp-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;margin-top:10px}
.pp .field{gap:5px}
.pp .field label{font-size:12.5px;line-height:1.3}
.pp .field{min-width:0}
.pp .field select{width:100%;min-width:0;max-width:100%;padding:9px 12px;min-height:44px;font-size:16px;border-radius:9px;line-height:1.3}
.req{color:var(--pumpkin-text)}
.pp-policy{margin-top:10px;font-size:12.5px;line-height:1.5;color:var(--ink-3);text-wrap:pretty}
.pp-total{display:flex;justify-content:space-between;align-items:baseline;margin-top:10px;padding-top:10px;
  border-top:1px solid var(--line);font-size:14px;color:var(--ink-2)}
.pp-total b{font-family:var(--serif);font-size:24px;color:var(--ink);font-variant-numeric:tabular-nums}
.pp-opts .btn-lg{margin-top:10px;min-height:52px;padding:12px 24px}
.pp-secure{margin-top:8px;font-size:12px;line-height:1.45;color:var(--ink-3);text-align:center}
.pp-status{display:none;margin-top:10px;padding:10px 12px;border-radius:10px;font-size:14px;line-height:1.5}
.pp-status.show{display:block;background:#FBEDE6;color:#8A2B05;border:1px solid #F0D3C4}
.pp-status.show.ok{background:#EAF3ED;color:#255C40;border-color:#CADFD2}
.pp-status a{color:inherit}

/* the slim footer row spans the grid */
.pp-foot{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;
  font-size:13px;color:var(--ink-3);min-height:40px}
.pp-foot a{color:var(--ink-2)}
.pp-back{display:inline-flex;align-items:center;gap:8px;min-height:40px;font-weight:500;text-decoration:none}
.pp-back:hover{color:var(--ink)}

@media (max-width:980px){
  .pp-main{align-items:flex-start}
  .pp{grid-template-columns:1fr}
  .pp-shot{max-height:none}
}
@media (max-width:560px){
  .pp-fields{grid-template-columns:1fr}
  .pp-head{flex-direction:column;align-items:flex-start;gap:6px}
  .pp-foot{justify-content:center;text-align:center}
}
/* 720p laptops: the Fairy Tale page (one extra add-on row) ran 12px over. Shorter photo,
   tighter card — nothing removed. */
@media (min-width:981px) and (max-height:740px){
  .pp-shot{max-height:min(25vh,300px)}
  .pp-opts{padding:14px 18px 16px}
  .pp-visual .ticks li{padding:6px 0 6px 27px}
  .pp-visual .ticks li::before{top:13px}
  .pp-varieties{font-size:12.5px;line-height:1.5}
}
@media (prefers-reduced-motion:reduce){.pp-main .decor{display:none}}

/* ── /thank-you.html — the page Stripe returns to. Same chrome as the package pages. ── */
.thanks-main{align-items:flex-start}
.thanks{text-align:center;padding:clamp(28px,6vh,64px) 0 clamp(24px,4vh,40px);display:grid;grid-template-columns:1fr}
.thanks .seal{width:72px;height:72px;margin:0 auto 18px;border-radius:50%;display:grid;place-items:center;
  background:#E6F0EA;color:var(--pine);border:1px solid #CADFD2}
.thanks .seal svg{width:34px;height:34px}
.thanks .kicker{margin-bottom:10px}
.thanks h1{font-size:clamp(30px,4.4vw,50px);margin:0 auto 14px;max-width:18ch}
.thanks-lead{margin:0 auto;max-width:52ch;font-size:clamp(16px,1.6vw,18px);color:var(--ink-2)}
.refbox{display:inline-block;justify-self:center;margin:22px auto 0;background:var(--card);border:1px solid var(--line);
  border-radius:14px;padding:14px 26px;box-shadow:var(--sh-1)}
.refbox .k{display:block;font-size:11.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3)}
.refbox .v{display:block;margin-top:4px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:21px;font-weight:600;color:var(--pumpkin-text)}
.thanks .form-status{max-width:640px;margin:18px auto 0}
.thanks .next{max-width:640px;margin:22px auto 30px;text-align:left;display:grid;gap:12px}
.thanks .next li{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px 20px;box-shadow:var(--sh-1)}
.thanks .next li strong{display:block;font-family:var(--serif);font-weight:700;font-size:17px;margin-bottom:4px;color:var(--ink)}
.thanks .next li span{color:var(--ink-2);font-size:15px;line-height:1.6}
.thanks-help{margin-top:20px;font-size:14.5px;color:var(--ink-3);max-width:52ch;margin-inline:auto}
.thanks-foot{margin-top:clamp(30px,6vh,60px);justify-content:space-between}
@media (max-width:560px){.thanks-foot{justify-content:center;text-align:center}}

/* ── reviews of a package (the Epic has two) ──────────────────────────────── */
.pp-rating{display:inline-block;margin-left:10px;font-size:13px;font-weight:600;color:var(--gold);text-decoration:none;white-space:nowrap}
.pp-rating:hover{color:var(--pumpkin-text);text-decoration:underline}
.pp-reviews{margin-top:8px;font-size:13.5px;color:var(--ink-2)}
.pp-reviews summary{cursor:pointer;font-weight:600;color:var(--pumpkin-text);list-style:none;display:flex;align-items:center;gap:8px;min-height:28px}
.pp-reviews summary::-webkit-details-marker{display:none}
.pp-reviews summary::before{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .2s;flex:none}
.pp-reviews[open] summary::before{transform:rotate(45deg)}
.pp-reviews summary .hint{font-weight:400;color:var(--ink-3)}
.pp-reviews blockquote{margin:10px 0 0;padding:12px 16px;border-left:3px solid #C98A16;background:var(--paper-2);border-radius:0 10px 10px 0;line-height:1.6}
.pp-reviews blockquote p{margin:0}
.pp-reviews blockquote b{color:var(--ink);font-weight:600}
.pp-reviews cite{display:block;margin-top:6px;font-style:normal;font-size:12.5px;color:var(--ink-3)}
/* the extra (collapsed) line is paid for by a slightly shorter photo, so the page stays one screen */
.pp-has-reviews .pp-shot{max-height:min(27vh,300px)}
@media (min-width:981px) and (max-height:740px){.pp-has-reviews .pp-shot{max-height:min(22vh,300px)}}
