/* Wildhearth's pages on the companions site. On top of the site's own
   app.css (its colours, type and .btn/.notice/.badge); every class here is
   wh- so nothing leaks into the rest of the site. */

/* The hero: the dawn shot across the page, the owner's logo over it. */
.wh-hero { position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, 90vh, 920px); display: flex; align-items: flex-end;
  background: var(--ink); }
.wh-hero__img, .wh-hero__img img { position: absolute; inset: 0; width: 100%;
  height: 100%; }
.wh-hero__img img { object-fit: cover; object-position: 60% 50%; }
.wh-hero::after { content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(8,9,11,.5) 0%, rgba(8,9,11,.2) 36%,
      rgba(8,9,11,0) 56%),
    linear-gradient(180deg, rgba(8,9,11,.25) 0%, rgba(8,9,11,0) 14%,
      rgba(8,9,11,0) 50%, rgba(8,9,11,.72) 86%, var(--ink) 100%); }
.wh-hero__inner { position: relative; z-index: 1; width: 100%;
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 20px clamp(36px, 7vh, 80px); }
.wh-hero__text { max-width: 600px; }
.wh-logo { margin: 0; line-height: 0; }
.wh-logo img { display: block; width: clamp(260px, 46vw, 600px); height: auto;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.7)); }
.wh-tagline { max-width: 44ch; margin-top: 16px; line-height: 1.5;
  font-size: clamp(1.05rem, 2.1vw, 1.26rem);
  text-shadow: 0 1px 14px rgba(0,0,0,.8); }
.wh-hero .wh-small { font-size: .9rem; color: #c3c9d4; margin-top: 14px;
  text-shadow: 0 1px 10px rgba(0,0,0,.85); }
.wh-hero .wh-small a { color: var(--gold-soft); }
.wh-btn-glass { background: rgba(12,14,18,.55);
  border-color: rgba(240,196,121,.45); backdrop-filter: blur(6px); }
.wh-btn-glass:hover { background: rgba(23,27,35,.82);
  border-color: var(--gold-soft); }

.wh-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.wh-lede { max-width: 64ch; color: var(--muted); font-size: 1.02rem; }
.wh-lede + .wh-lede { margin-top: 10px; }

/* Four short points under the hero. */
.wh-pillars { list-style: none; margin: 0; padding: clamp(22px, 4vw, 34px) 0 0;
  display: grid; gap: var(--gap); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wh-pillars li { padding: 16px 18px; border: 1px solid var(--line);
  border-top: 2px solid var(--gold-line); border-radius: var(--r-sm);
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.wh-pillars b { display: block; margin-bottom: 4px; font-family: var(--font-d);
  font-size: 1.02rem; color: var(--gold-soft); }
.wh-pillars span { color: var(--muted); font-size: .9rem; }

/* Section titles: a small gold line (the place in the shot), then the
   title, and a question to the player at the end. */
.wh-welcome h2, .wh-feature h2, .wh-cinema h2 { font-family: var(--font-d);
  font-size: clamp(1.7rem, 4.2vw, 2.6rem); line-height: 1.1;
  letter-spacing: .01em; margin: 8px 0 14px; }

.wh-welcome { max-width: 720px; margin: 0 auto; text-align: center;
  padding: clamp(46px, 8vw, 92px) 0 clamp(18px, 3vw, 34px); }
.wh-welcome p { color: var(--muted); font-size: 1.06rem; }
.wh-welcome p + p { margin-top: 10px; }

/* A band: a big screenshot beside the words, sides taking turns. */
.wh-feature { display: grid; align-items: center;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(22px, 4vw, 56px); padding: clamp(30px, 5vw, 58px) 0; }
.wh-feature--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.wh-feature--flip .wh-feature__img { order: 2; }
.wh-feature__img img { display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); }
.wh-feature__text p { color: var(--muted); font-size: 1.02rem; max-width: 52ch; }
.wh-feature__text p + p { margin-top: 10px; }

/* A cinema band: the shot across the whole page, a card over its foot. */
.wh-cinema { position: relative; margin: clamp(24px, 5vw, 60px) 0; }
.wh-cinema__img { position: relative; display: block; }
.wh-cinema__img img { display: block; width: 100%;
  height: clamp(300px, 52vw, 82vh); object-fit: cover; object-position: 50% 55%;
  background: var(--panel-2); }
.wh-cinema__img::after { content: ""; position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(8,9,11,.4) 4%,
    rgba(8,9,11,0) 10%, rgba(8,9,11,0) 66%, rgba(8,9,11,.82) 93%,
    var(--ink) 100%); }
.wh-cinema__card { position: relative; z-index: 1; max-width: 580px;
  margin-top: clamp(-190px, -14vw, -60px); padding: clamp(20px, 3vw, 32px);
  background: rgba(18,21,27,.9); border: 1px solid var(--line-2);
  border-top: 2px solid var(--gold-line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(8px); }
.wh-cinema--right .wh-cinema__card { margin-left: auto; }
.wh-cinema__card p { color: var(--muted); font-size: 1.02rem; }
.wh-cinema__card p + p { margin-top: 10px; }

p.wh-kicker { margin: 0; font-family: var(--font-d); text-transform: uppercase;
  letter-spacing: .16em; font-size: .76rem; color: var(--gold); }
p.wh-ask { margin-top: 16px; font-size: 1.06rem; font-style: italic;
  color: var(--gold-soft); }

/* The gallery: one large shot and four smaller, each a link to the big
   picture. */
.wh-gallery { display: grid; gap: var(--gap);
  grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wh-gallery__item { position: relative; display: block; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel-2); color: var(--text); }
.wh-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.wh-gallery__item picture { display: block; height: 100%; }
.wh-gallery__item img { display: block; width: 100%; height: 100%;
  aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s var(--ease); }
.wh-gallery__item:first-child img { aspect-ratio: auto; }
.wh-gallery__item:hover img { transform: scale(1.03); }
.wh-gallery__item:hover { color: var(--gold-soft); }
.wh-gallery__item span { position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px 10px; font-size: .88rem; line-height: 1.3;
  background: linear-gradient(180deg, rgba(8,9,11,0), rgba(8,9,11,.88));
  text-shadow: 0 1px 6px rgba(0,0,0,.8); }

.wh-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.wh-steps li { counter-increment: s; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.wh-steps li::before { content: counter(s, decimal-leading-zero);
  font-family: var(--font-d); color: var(--gold); display: block;
  margin-bottom: 6px; }
.wh-steps b { display: block; margin-bottom: 4px; }
.wh-steps span { color: var(--muted); font-size: .93rem; }

.wh-sup { background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--gold-line); border-radius: var(--r);
  padding: clamp(18px, 4vw, 34px); }
.wh-sup__head { display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px 18px; }
.wh-sup__head h2 { font-size: 1.3rem; }
.wh-sup__head .badge { margin-left: auto; }
.wh-emblem { display: block; width: 76px; height: auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); }
.wh-price { font-family: var(--font-d); font-size: clamp(2rem, 6vw, 3rem);
  color: var(--gold-soft); line-height: 1.1; }
.wh-price span { font-size: 1rem; color: var(--muted); margin-left: 6px; }
.wh-perks { list-style: none; padding: 0; margin: 18px 0; display: grid;
  gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.wh-perks li { padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--ink-2); }
.wh-perks b { display: block; margin-bottom: 3px; }
.wh-perks span { color: var(--muted); font-size: .9rem; }
.wh-perks--tight li { padding: 9px 12px; }
.wh-free { color: var(--muted); font-size: .95rem; max-width: 70ch; }

.wh-faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.wh-faq details:last-child { border-bottom: 1px solid var(--line); }
.wh-faq summary { cursor: pointer; font-weight: 600; }
.wh-faq p { color: var(--muted); margin-top: 8px; max-width: 70ch; }

.wh-terms { color: var(--muted); font-size: .88rem; max-width: 72ch; }
.wh-terms p + p { margin-top: 6px; }

.wh-narrow { max-width: 760px; }
.wh-status { display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: space-between; }
.wh-status h2 { font-size: 1.2rem; }
.wh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.wh-actions form { margin: 0; }
.wh-head-img { width: 100%; height: clamp(140px, 26vw, 240px); object-fit: cover;
  display: block; border-bottom: 1px solid var(--line); }

@media (max-width: 860px) {
  .wh-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wh-feature, .wh-feature--flip { grid-template-columns: minmax(0, 1fr); }
  .wh-feature--flip .wh-feature__img { order: 0; }
}
@media (max-width: 700px) {
  /* The phone hero: the picture on top, fading into the words below. */
  .wh-hero { display: block; min-height: 0; }
  .wh-hero::after { display: none; }
  .wh-hero__img { position: relative; display: block; }
  .wh-hero__img img { position: relative; height: auto; aspect-ratio: 4 / 3.4;
    object-position: 64% 50%; }
  .wh-hero__img::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8,9,11,0) 50%,
      rgba(8,9,11,.7) 82%, var(--ink) 100%); }
  .wh-hero__inner { margin-top: -78px; padding-bottom: 28px; }
  .wh-logo img { width: min(100%, 330px); }
  .wh-emblem { width: 52px; }
  .wh-sup__head { gap: 10px 12px; }
  .wh-cinema__img img { height: auto; aspect-ratio: 16 / 10; }
  .wh-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wh-gallery__item:first-child { grid-row: auto; }
  .wh-gallery__item:first-child img { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .wh-cta .btn, .wh-actions .btn { flex: 1 1 100%; text-align: center; }
  .wh-actions form { flex: 1 1 100%; }
  .wh-actions form .btn { width: 100%; }
}
