/* ==========================================================================
   Presence pass.

   1. The hero panel tilts toward the pointer. Small angles, quickly damped,
      so it reads as depth rather than a toy.
   2. The wordmark carries light: cream at the top of the letters, warm at the
      foot, so the biggest thing on the page is not flat white.
   3. A stat strip between the hero and the features, where four numbers do
      the arguing that paragraphs were doing.
   4. A hairline of peach across the top that tracks how far down you are.
   ========================================================================== */

/* ---------- 1. the tilt ---------- */
.hero-art{perspective:1100px}
.fx-stage{
  transition:transform .5s cubic-bezier(.2,.7,.3,1);
  transform:rotate(-1.2deg);
  transform-style:preserve-3d;
  will-change:transform;
}
.hero-art.tilting .fx-stage{transition:transform .12s ease-out}
@media (hover:hover) and (pointer:fine){
  .hero-art{touch-action:none}
}

/* ---------- 2. the wordmark ---------- */
.product-card h1{
  /* the biggest thing on the page should not be flat white */
  filter:drop-shadow(0 10px 30px rgba(255,150,90,.18));
  background:linear-gradient(176deg,#FFFFFF 12%,#FFEFDC 48%,#FFC08A 82%,#FF9C5C 100%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}
@media (prefers-reduced-motion:no-preference){
  .product-card h1{animation:wordfall 9s ease-in-out infinite}
}
@keyframes wordfall{
  0%,100% {filter:brightness(1)}
  50%     {filter:brightness(1.07)}
}

/* ---------- 3. the stat strip ---------- */
.stat-strip{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg, rgba(247,146,87,.05), transparent 70%);
}
html[data-theme="moonlit"] .stat-strip{
  background:linear-gradient(180deg, rgba(247,146,87,.09), transparent 72%);
  border-color:rgba(252,249,243,.10);
}
.stat-inner{
  display:grid;grid-template-columns:repeat(4,1fr);
  padding:26px 0;
}
.stat{
  display:flex;flex-direction:column;gap:5px;
  padding:0 22px;
  border-left:1px solid var(--line);
}
html[data-theme="moonlit"] .stat{border-color:rgba(252,249,243,.10)}
.stat:first-child{border-left:0;padding-left:0}
.stat b{
  font-size:clamp(24px,2.6vw,32px);font-weight:700;letter-spacing:-.035em;
  color:var(--text);line-height:1;
}
.stat span{
  font-size:10.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--accent-text);
}
.stat em{
  font-style:normal;font-size:12px;color:var(--muted);line-height:1.45;
}
@media (max-width:760px){
  .stat-inner{grid-template-columns:1fr 1fr;gap:20px 0}
  .stat:nth-child(3){border-left:0;padding-left:0}
}

/* ---------- 4. scroll progress ---------- */
.progress{
  position:fixed;top:0;left:0;height:2px;width:0%;
  background:linear-gradient(90deg,var(--peach),#FFD2AA);
  z-index:200;pointer-events:none;
  box-shadow:0 0 12px rgba(247,146,87,.55);
  transition:width .08s linear;
}

@media (prefers-reduced-motion:reduce){
  .product-card h1{animation:none}
  .fx-stage{transition:none}
}

/* ---------- the theme switch, as a transition ---------- */
html.theming,
html.theming body,
html.theming body *{
  transition:background-color .38s ease, color .38s ease,
             border-color .38s ease, box-shadow .38s ease !important;
}

/* the settling hero */
.card-halo{will-change:transform,opacity}
/* a bigger headline needs a bigger product beside it */
.fx-stage{max-width:clamp(300px,32vw,412px)}


/* ---------- scale ----------
   The headings were sized like body copy. A product page needs one loud
   voice, and it should be the heading, not the decorations. */
h2{
  font-size:clamp(32px,4.6vw,52px);
  line-height:1.06;
  letter-spacing:-.038em;
}
.product-card h1{font-size:clamp(58px,7.2vw,98px)}
.sec-lede{font-size:16px;line-height:1.6;max-width:56ch;margin-left:auto;margin-right:auto}

/* ---------- the buy button earns the click ---------- */
.btn-solid{
  position:relative;overflow:hidden;isolation:isolate;
  transition:transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s;
}
.btn-solid::after{
  content:"";position:absolute;inset:-60% -10%;z-index:-1;
  background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.62) 50%,transparent 60%);
  transform:translateX(-130%);
  transition:transform .75s cubic-bezier(.3,.6,.2,1);
}
.btn-solid:hover{transform:translateY(-2px);box-shadow:0 18px 34px -12px rgba(247,146,87,.85)}
.btn-solid:hover::after{transform:translateX(130%)}

@media (prefers-reduced-motion:reduce){
  .btn-solid::after{display:none}
}
