/*
 * The landing hero (M11.1, 19 Sep 2026) — direction C, "The Mechanic".
 *
 * The owner lifted the landing page out of the no-redesign rule on 19 Sep 2026
 * (.flow/PROJECT.md § The no-redesign rule) and chose this direction from three
 * shown as images. It replaces `.cc-store-hero`, whose rules stay in the
 * extracted `landing-v2.css` — that file is never edited; this sheet loads
 * after it and owns everything the new hero needs.
 *
 * Two jobs:
 *   1. the hero itself, `.cc-hero3`, at 390 px and at 1440 px;
 *   2. the card scene's height, cut from 460vh to 150vh. At 460vh a visitor
 *      scrolled 4.6 screens past one card and met four viewports with nothing
 *      in them. 150vh leaves 50vh of pinned scroll, and the flip still owns
 *      0.3–0.9 of that progress (app.js `setupCardScene`).
 *
 * Nothing here depends on JavaScript. The hero's text is painted by the server
 * and carries no `data-hero-item` or `data-motion-title`, which are the two
 * attributes app.js reveals from `opacity: 0` — the branded splash used to hide
 * that delay and the splash is gone.
 */

.cc-hero3 {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--cc-store-paper);
  color: var(--cc-store-ink);
  scroll-margin-top: 5.5rem;
}

/* ---------------------------------------------------------------- the copy */

.cc-hero3__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.05rem;
  padding: clamp(1.75rem, 5vw, 3rem) clamp(1.25rem, 5vw, 4rem) clamp(1.75rem, 4vw, 3rem);
}

.cc-hero3__kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  color: var(--cc-store-gold);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cc-hero3__kicker::before {
  width: 2.125rem;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.7;
}

.cc-hero3__title {
  max-width: 14ch;
  margin: 0;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: clamp(2.35rem, 4.2vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.cc-hero3__lead {
  max-width: 40ch;
  margin: 0;
  color: var(--cc-store-muted);
  font-size: clamp(0.95rem, 1.35vw, 1.06rem);
  line-height: 1.62;
}

.cc-hero3__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.cc-hero3__ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.35rem;
  margin: 0.15rem 0 0;
  padding: 0;
  color: var(--cc-store-muted);
  font-size: 0.82rem;
  font-weight: 500;
  list-style: none;
}

.cc-hero3__ticks li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cc-hero3__ticks svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: none;
  fill: none;
  stroke: var(--cc-store-gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

/* --------------------------------------------------------------- the panel */

.cc-hero3__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 24rem;
  overflow: hidden;
  background: linear-gradient(160deg, #0d2137, #07182b 58%, #050f1c);
}

.cc-hero3__panel::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(64% 54% at 40% 34%, rgba(185, 138, 53, 0.26), transparent 68%);
  content: "";
  pointer-events: none;
}

.cc-hero3__stage {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
}

.cc-hero3__card {
  position: absolute;
  z-index: 2;
  display: block;
  filter: drop-shadow(0 2rem 3.5rem rgba(0, 0, 0, 0.6));
  /* app.js `setupHeroDepth` writes --cc-hero-x on a fine pointer; without it,
     and under reduced motion, the fallback keeps the card exactly where it is. */
  translate: var(--cc-hero-x, 0px) 0;
}

.cc-hero3__card img {
  display: block;
  width: 100%;
  height: auto;
}

.cc-hero3__arc {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* --------------------------------------------------------------- the phone */

.cc-hero3__phone {
  position: absolute;
  z-index: 4;
  overflow: hidden;
  border: 0.5rem solid #151d29;
  border-radius: 2.375rem;
  background: var(--cc-store-ink);
  box-shadow: 0 2.5rem 5.5rem rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(234, 215, 170, 0.14);
}

/*
 * The screen is the real profile page — public/assets/images/storefront/
 * profile-phone-v1.png, 780x1688, taken by scripts/capture-landing-phone.mts
 * (M11.3, 19 Sep 2026: "change this into actual profile page"). It is cropped
 * from the top so the name and the tiles are what shows at every frame size.
 */
.cc-hero3__shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}















/* --------------------------------------------------------------- the steps */

.cc-hero3__steps {
  position: relative;
  z-index: 5;
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(234, 215, 170, 0.2);
  background: rgba(5, 15, 28, 0.5);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.cc-hero3__steps li {
  padding: 0.75rem 0.7rem 0.9rem;
}

.cc-hero3__steps i {
  display: block;
  color: var(--cc-store-gold-light);
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cc-hero3__steps b {
  display: block;
  margin-top: 0.35rem;
  color: var(--cc-store-white);
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* ------------------------------------------------------ phone-width layout
 *
 * The whole hero is one screen: the header is 4.8125rem, so the rest of the
 * viewport is the hero and the steps sit on its bottom edge rather than 86 px
 * below the fold, where the first capture put them. `1fr` on the panel means
 * the copy is sized by its words and the panel takes whatever is left.
 */

.cc-hero3 {
  min-height: calc(100svh - 4.8125rem);
  grid-template-rows: auto 1fr;
}

.cc-hero3__copy {
  gap: 0.7rem;
  padding: 1.1rem clamp(1.25rem, 5vw, 2rem) 1.2rem;
}

.cc-hero3__title {
  font-size: clamp(2.2rem, 4.2vw, 3.75rem);
}

.cc-hero3__lead {
  font-size: 0.875rem;
  line-height: 1.5;
}

.cc-hero3__panel {
  min-height: 19.75rem;
}

.cc-hero3__card {
  top: 30%;
  left: -14%;
  width: 58%;
  rotate: -14deg;
}

.cc-hero3__arc {
  display: none;
}

.cc-hero3__phone {
  top: 0.75rem;
  right: 5%;
  width: 10.5rem;
  height: 14.25rem;
}












.cc-hero3__steps li {
  padding: 0.6rem 0.55rem 0.7rem;
}

.cc-hero3__steps i {
  font-size: 0.5rem;
}

.cc-hero3__steps b {
  font-size: 0.66rem;
}

/* ---------------------------------------------------------- desk and above */

/*
 * The split starts at 56rem. Above it there is room for the copy beside the
 * panel; below it the stacked layout reads better than a 350 px column of type
 * next to a cropped card.
 */
@media (min-width: 56rem) {
  .cc-hero3 {
    min-height: min(46rem, calc(100svh - 5.25rem));
    /* One row, two columns — the phone layout's second row is not wanted here. */
    grid-template-columns: 46fr 54fr;
    grid-template-rows: minmax(0, 1fr);
  }

  .cc-hero3__copy {
    gap: 1.35rem;
    padding: clamp(2.5rem, 4vw, 4rem) clamp(2rem, 3.5vw, 3.5rem) clamp(2.5rem, 4vw, 4rem) clamp(2.5rem, 4.5vw, 4rem);
  }

  .cc-hero3__lead {
    font-size: clamp(0.95rem, 1.35vw, 1.06rem);
    line-height: 1.62;
  }

  .cc-hero3__panel {
    min-height: 0;
  }

  .cc-hero3__card {
    top: 44%;
    left: 4%;
    width: 52%;
    rotate: -13deg;
    translate: var(--cc-hero-x, 0px) -50%;
  }

  .cc-hero3__arc {
    display: block;
  }

  .cc-hero3__phone {
    top: 50%;
    right: 11%;
    width: 14.875rem;
    height: 30.375rem;
    translate: 0 -50%;
  }

  .cc-hero3__steps li {
    padding: 1.375rem 1.25rem 1.5rem;
  }

  .cc-hero3__steps i {
    font-size: 0.63rem;
  }

  .cc-hero3__steps b {
    font-size: 0.875rem;
  }
}

/*
 * An entrance that cannot hide the page. It moves and never fades, so a visitor
 * whose browser refuses the animation — or who asked for reduced motion — sees
 * exactly the same words in exactly the same place, which is the rule in
 * .flow/PROJECT.md § Decoration degrades in one direction.
 */
@media (prefers-reduced-motion: no-preference) {
  .cc-hero3__copy > * {
    animation: ccHero3Rise 0.62s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
  }

  .cc-hero3__copy > :nth-child(2) { animation-delay: 0.05s; }
  .cc-hero3__copy > :nth-child(3) { animation-delay: 0.1s; }
  .cc-hero3__copy > :nth-child(4) { animation-delay: 0.15s; }
  .cc-hero3__copy > :nth-child(5) { animation-delay: 0.2s; }

  .cc-hero3__arc circle:nth-of-type(2),
  .cc-hero3__arc circle:nth-of-type(3) {
    animation: ccHero3Tap 2.6s ease-out infinite;
    transform-box: fill-box;
    transform-origin: center;
  }

  .cc-hero3__arc circle:nth-of-type(3) {
    animation-delay: 0.45s;
  }
}

@keyframes ccHero3Rise {
  from { transform: translateY(0.875rem); }
  to { transform: translateY(0); }
}

@keyframes ccHero3Tap {
  0% { opacity: 0.5; scale: 0.72; }
  70%, 100% { opacity: 0; scale: 1.35; }
}

/*
 * The walkthrough's phone shows the same real profile (M11.3). Its screen in
 * landing-v2.css was padded for a drawn card; the picture fills it instead.
 * Step 03 — "turn the moment into action" — used to light the drawn action
 * rows; now it pans the picture down to the profile's tiles and the call bar.
 * Both rules sit after landing-v2.css and win by order; that file is unedited.
 */
.cc-store-demo-phone__screen {
  overflow: hidden;
  padding: 0;
}

.cc-store-demo-phone__shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transition: object-position 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cc-store-demo__stage[data-demo-step="2"] .cc-store-demo-phone__shot {
  object-position: 50% 100%;
}

@media (prefers-reduced-motion: reduce) {
  .cc-store-demo-phone__shot {
    transition: none;
  }
}

/*
 * The card scene, cut from 460vh. The rule it overrides is in landing-v2.css,
 * which is an extracted file and is not edited; this sheet is loaded after it,
 * and the selector has the same specificity, so the later rule wins.
 */
.cc-cardscene {
  height: 150vh;
}

/*
 * The other half of "no empty screens", on a phone.
 *
 * Two textless blocks meet there: the tail of the card scene, after its sticky
 * copy has scrolled away, and the unboxing photograph, which is 1536x2048 and
 * therefore about 700 px tall at 390 px wide. A window spanning the two held no
 * words at all — 422 px of blank scroll in the first measurement. The scene
 * gives back 20vh, and the photograph is shown at two thirds width, whole and
 * uncropped, which is also a better size for it. No markup changes; the
 * unboxing section is byte-identical to the extracted original.
 */
@media (max-width: 55.9375rem) {
  .cc-cardscene {
    height: 130vh;
  }

  .cc-store-unboxing__image {
    max-width: 66%;
    margin-inline: auto;
  }

  /*
   * The second action is a link on a phone, not a second 54 px button. Two
   * stacked buttons cost about 140 px of a 767 px screen and pushed the three
   * steps off it — the one thing this hero exists to show. Declared here, in a
   * query the desk rules can never meet, so nothing has to be reset back.
   */
  .cc-hero3__actions {
    gap: 0.5rem;
    margin-top: 0.15rem;
  }

  .cc-hero3__actions .cc-store-button--quiet {
    min-height: 0;
    padding: 0.3rem 0;
    border: 0;
    background: none;
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  /*
   * The scroll cue is fixed to the bottom of the viewport, and the steps strip
   * is now the bottom of the first screen — the disc landed on top of "The
   * profile opens". It moves up by the strip's height plus a gap.
   *
   * `body` only for weight: landing-scroll-cue-v1.css is loaded after this
   * sheet, so a bare `.cc-landing-cue` here would lose to its own `bottom`. That
   * file is left alone; its rule still owns the safe-area inset, which is added
   * here too so a phone with a home indicator clears both.
   */
  body .cc-landing-cue {
    bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
  }
}
