/* ==== Easy-read pages: built for readers aged 65 and up (2026-11-12) ====
   Loaded after styles.css (and home.css where a page has it) on the
   homepage, pricing, about, the FAQ, /ai-photo-organizer/,
   /what-year-was-this-photo-taken/ and, since 2026-11-14, the FrontBack
   Scanner landing page (its own blocks are fbx- in css/frontback.css). Parts:

   1. The reading floor: bigger type, darker body ink, bigger targets. Only
      the pages above load it so far; the rest of the site keeps the
      styles.css sizes until each page has had its own pass.
   2. The homepage blocks, all prefixed hp- so they cannot collide with the
      live classes: the hero picture (pile to timeline), the three picture
      steps, "Your photos stay yours", and the price row.

   Rules of the page:
   - One idea per screen, and a picture for every idea.
   - No text under 17px. Body copy is the dark ink, not the grey.
   - Every button is at least 56px tall and says what happens.
   - The four fears are answered beside the first button, then proved lower.
   - Long answers stay in the HTML behind a click (search engines read them).
*/

/* ---------- 1. The reading floor ---------- */

@media (min-width: 900px) {
  html { font-size: 20px; }
}

:root:not([data-theme="dark"]) {
  /* 8.6:1 and 6.6:1 on the page cream (were 5.9:1 and 4.9:1). */
  --text-secondary: #54463A;
  --text-muted: #63564A;
  --hp-green-ink: #356540;
  --hp-print-shadow: 0 1px 2px rgba(61, 43, 31, 0.22), 0 10px 26px rgba(61, 43, 31, 0.18);
  --hp-dash: rgba(61, 43, 31, 0.4);
  --hp-track: rgba(61, 43, 31, 0.16);
}

[data-theme="dark"] {
  --hp-green-ink: #9CCBA2;
  --hp-print-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 26px rgba(0, 0, 0, 0.45);
  --hp-dash: rgba(255, 255, 255, 0.4);
  --hp-track: rgba(255, 255, 255, 0.18);
}

.hp65 .ornament { display: none; }

/* The last two labels under the floor: the line under the logo and the
   footer column heads. */
.hp65 .nav__logo-slogan { font-size: 0.85rem; }
.hp65 .footer__heading { font-size: 0.85rem; }

.hp65 .hp-band { padding: 4.5rem 0; }
.hp65 .hp-band--warm { background-color: var(--bg-warm); }

.hp-wide.container { max-width: 1200px; }

.hp-h2,
.hp65 .hp-band h2 {
  font-size: clamp(2rem, 3.6vw, 2.5rem);
  line-height: 1.15;
  text-align: center;
  margin: 0 0 0.7rem;
  text-wrap: balance;
}

.hp-lead {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  line-height: 1.5;
  text-align: center;
  max-width: 34rem;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* The one big button, wherever it appears. */
.hp65 .btn.hp-btn {
  min-height: 3.6rem;
  padding: 1rem 2.4rem;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 2px 0 rgba(61, 43, 31, 0.25), var(--shadow-warm);
}

/* ---------- 2a. Hero ---------- */

.hp-hero {
  position: relative;
  padding: 1.6rem 0 0;
  background:
    radial-gradient(ellipse 60% 70% at 78% 40%, var(--accent-glow) 0%, transparent 70%),
    var(--bg-primary);
}

.hp-hero__grid.container {
  max-width: 1240px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3.2rem;
  align-items: center;
  padding-bottom: 2rem;
}

.hp-hero__kind {
  font-family: var(--font-ui);
  font-size: clamp(0.85rem, 1.55vw, 1rem);
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.7rem;
}

.hp-hero h1 {
  font-size: clamp(2.2rem, 4.3vw, 2.95rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

.hp-hero__sub {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 1.4rem;
}

.hp-hero__act {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 0.7rem;
}

.hp-hero__nocard {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0;
}

.hp-hero__then { margin: 0; }

.hp-hero .hp-hero__price {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}

/* --- The picture: a pile, then a timeline --- */

.hp-sort {
  margin: 0;
  padding: 0 2.2rem 0 0;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
}

.hp-sort__row { width: 100%; }

.hp-sort__label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.9rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-secondary);
}

.hp-sort__label b {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  background: #A83F33;
  color: #fff;
  font-weight: 700;
}

.hp-sort__label--after b { background: #356540; }

/* A print: white paper border, soft shadow. Used in the hero and the steps. */
.hp-print {
  position: relative;
  display: block;
  list-style: none;
  flex: 1 1 0;
  min-width: 0;
  padding: 0.32rem;
  background: var(--contrast-white);
  border-radius: 3px;
  box-shadow: var(--hp-print-shadow);
}

.hp-print img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1px;
}

.hp-sort__pile,
.hp-sort__line {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.hp-sort__pile {
  padding: 0.5rem 0.4rem 1.5rem;
}

.hp-sort__pile .hp-print { margin: 0 -0.3rem; }
.hp-print--a { transform: rotate(-8deg) translateY(0.3rem); z-index: 1; }
.hp-print--b { transform: rotate(5deg) translateY(-0.25rem); z-index: 2; }
.hp-print--c { transform: rotate(-4deg) translateY(0.5rem); z-index: 3; }
.hp-print--d { transform: rotate(9deg) translateY(0.1rem); z-index: 2; }

.hp-print__q {
  position: absolute;
  left: 50%;
  bottom: -1.1rem;
  width: 2.3rem;
  height: 2.3rem;
  margin-left: -1.15rem;
  border-radius: 50%;
  background: #B94A3E;
  border: 3px solid var(--contrast-white);
  color: #fff;
  font: 800 1.35rem/calc(2.3rem - 6px) var(--font-ui);
  text-align: center;
  box-shadow: 0 2px 6px rgba(61, 43, 31, 0.3);
}

.hp-sort__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin: 0.2rem 0 0.1rem;
  color: var(--text-primary);
}

.hp-sort__ai {
  padding: 0.22rem 0.6rem;
  border-radius: 7px;
  background: var(--text-primary);
  color: var(--bg-secondary);
  font: 800 1rem/1.1 var(--font-ui);
  letter-spacing: 0.04em;
}

.hp-sort__arrow svg { width: 2rem; height: 2.2rem; }

/* The timeline: prints standing on a line, each with its year. */
.hp-sort__line {
  position: relative;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.hp-sort__line .hp-print { z-index: 1; }

.hp-sort__line::after {
  content: '';
  position: absolute;
  left: -0.5rem;
  right: -1.2rem;
  bottom: -0.65rem;
  height: 4px;
  border-radius: 2px;
  background: var(--text-primary);
}

.hp-sort__line::before {
  content: '';
  position: absolute;
  right: -2rem;
  bottom: calc(-0.65rem - 7px);
  border-left: 16px solid var(--text-primary);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.hp-year {
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: 2;
  margin-top: calc(0.65rem - 2px);
  transform: translate(-50%, -50%);
  padding: 0.34rem 0.75rem;
  border-radius: 9px;
  background: var(--text-primary);
  color: var(--bg-secondary);
  font: 700 1.15rem/1 var(--font-ui);
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 0 0 3px var(--bg-primary);
}

/* The hero moves once: the after row settles into place, oldest first.
   (The only other motion is the three slow loops in How It Works, which
   have their own pause button.) */
@media (prefers-reduced-motion: no-preference) {
  .hp-sort__line .hp-print {
    animation: hp-settle 0.7s cubic-bezier(0.2, 0.8, 0.25, 1) both;
    animation-delay: calc(0.5s + var(--i, 0) * 0.3s);
  }
}

@keyframes hp-settle {
  from { opacity: 0; transform: translateY(-1.4rem) rotate(-7deg); }
  to { opacity: 1; transform: none; }
}

/* Short laptop screens (1366 by 768 leaves about 650px): keep the whole
   timeline, years included, on the first screen. */
@media (min-width: 900px) and (max-height: 720px) {
  .hp-hero { padding-top: 1rem; }
  .hp-hero h1 { font-size: 2.6rem; margin-bottom: 0.8rem; }
  .hp-hero__sub { margin-bottom: 1.1rem; }
  .hp-sort { max-width: 29rem; justify-self: center; }
  .hp-sort__label { margin-bottom: 0.6rem; }
  .hp-sort__pile { padding-bottom: 1.2rem; }
  .hp-sort__arrow { flex-direction: row; gap: 0.4rem; margin: 0; }
}

/* --- The four promises, under the hero --- */

.hp-promises {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.hp-promises__list.container {
  max-width: 1240px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 0.8rem 1.1rem;
  margin: 0 auto;
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
}

/* Each promise is an icon with its words beside it. When a column is too
   narrow for one line the words wrap under themselves, never under the
   icon, and no promise drops to a row of its own. */
.hp-promises__list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
  color: var(--text-primary);
}

.hp-promises__list svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--hp-green-ink);
}

/* ---------- 2b. How it works: three picture steps ---------- */

.hp-steps__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 0 1.6rem;
  margin: 2.2rem 0 0;
  padding: 0;
}

.hp-step {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* The three pictures share one row and the three captions the next, so the
   pictures are one height and the numbers line up whatever the words do.
   Without subgrid the cards are plain columns and still read fine. */
@supports (grid-template-rows: subgrid) {
  .hp-step {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
  }
}

.hp-step__pic {
  position: relative;
  flex: 1 0 auto;
  background: var(--bg-accent);
  overflow: hidden;
}

.hp-step__copy {
  position: relative;
  padding: 2.3rem 1.6rem 1.7rem;
}

.hp-step__num {
  position: absolute;
  top: -1.6rem;
  left: 1.45rem;
  z-index: 4;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg-secondary);
  font: 700 1.65rem/3.2rem var(--font-display);
  text-align: center;
  box-shadow: 0 0 0 5px var(--card-bg);
}

.hp65 .hp-step h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 0.45rem;
}

.hp-step p {
  font-family: var(--font-ui);
  font-size: 1.08rem;
  line-height: 1.5;
  margin: 0;
  color: var(--text-secondary);
}

.hp-step__pic .hp-year {
  font-size: 1rem;
  padding: 0.3rem 0.6rem;
  box-shadow: 0 0 0 3px var(--bg-accent);
}

/* Every loop below is written as the finished frame first (what a reader
   sees with scripts off or reduced motion on), then the keyframes, which
   exist only under .is-live and move only under .is-running. */

/* --- Step 1: three prints rise into the tray, the bar fills, done --- */

.hp-up::before {
  content: '';
  display: block;
  padding-top: 100%;
}

.hp-up__status {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 6%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font: 700 1.1rem/1.2 var(--font-ui);
  color: var(--text-primary);
}

.hp-up__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--hp-green-ink);
  color: var(--bg-secondary);
}
.hp-up__icon svg { grid-area: 1 / 1; width: 1.4rem; height: 1.4rem; }
.hp-up__arrow { opacity: 0; }

.hp-up__words { display: grid; }
.hp-up__words > span { grid-area: 1 / 1; }
.hp-up__going { opacity: 0; }

.hp-up__bar {
  position: absolute;
  left: 7%;
  right: 7%;
  top: calc(6% + 3.1rem);
  height: 0.7rem;
  border-radius: 99px;
  background: var(--hp-track);
  overflow: hidden;
}
.hp-up__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--hp-green-ink);
  transform-origin: left center;
}

.hp-up__tray {
  position: absolute;
  left: 7%;
  right: 7%;
  top: calc(6% + 4.6rem);
  bottom: 2.5rem;
  border: 2.5px dashed var(--hp-dash);
  border-radius: 14px;
}

.hp-up__p {
  position: absolute;
  width: 39%;
  transform: rotate(var(--r));
}
.hp-up__p--1 { --r: -7deg; left: 5%; top: 7%; }
.hp-up__p--2 { --r: 5deg; left: 56%; top: 4%; }
.hp-up__p--3 { --r: -2deg; left: 30.5%; top: 40%; z-index: 1; }

.is-live .hp-up__p,
.is-live .hp-up__bar i,
.is-live .hp-up__icon,
.is-live .hp-up__arrow,
.is-live .hp-up__check,
.is-live .hp-up__going,
.is-live .hp-up__done {
  animation-duration: 14s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.25, 0.7, 0.25, 1);
  animation-play-state: paused;
}
.is-live .hp-up__p--1 { animation-name: hp-up-1; }
.is-live .hp-up__p--2 { animation-name: hp-up-2; }
.is-live .hp-up__p--3 { animation-name: hp-up-3; }
.is-live .hp-up__bar i { animation-name: hp-up-bar; }
.is-live .hp-up__icon { animation-name: hp-up-icon; }
.is-live .hp-up__arrow,
.is-live .hp-up__going { animation-name: hp-up-going; }
.is-live .hp-up__check,
.is-live .hp-up__done { animation-name: hp-up-done; }

/* A print waits below the picture, rises into its place, rests, and fades
   with the others before the next round. */
@keyframes hp-up-1 {
  0%, 4% { transform: translateY(340%) rotate(var(--r)); opacity: 1; }
  18%, 90% { transform: translateY(0) rotate(var(--r)); opacity: 1; }
  97%, 100% { transform: translateY(0) rotate(var(--r)); opacity: 0; }
}
@keyframes hp-up-2 {
  0%, 22% { transform: translateY(340%) rotate(var(--r)); opacity: 1; }
  36%, 90% { transform: translateY(0) rotate(var(--r)); opacity: 1; }
  97%, 100% { transform: translateY(0) rotate(var(--r)); opacity: 0; }
}
@keyframes hp-up-3 {
  0%, 40% { transform: translateY(340%) rotate(var(--r)); opacity: 1; }
  54%, 90% { transform: translateY(0) rotate(var(--r)); opacity: 1; }
  97%, 100% { transform: translateY(0) rotate(var(--r)); opacity: 0; }
}
@keyframes hp-up-bar {
  0%, 4% { transform: scaleX(0); background-color: var(--accent); }
  18%, 22% { transform: scaleX(0.34); background-color: var(--accent); }
  36%, 40% { transform: scaleX(0.67); background-color: var(--accent); }
  54% { transform: scaleX(1); background-color: var(--accent); }
  58%, 90% { transform: scaleX(1); background-color: var(--hp-green-ink); opacity: 1; }
  97%, 100% { transform: scaleX(1); background-color: var(--hp-green-ink); opacity: 0; }
}
@keyframes hp-up-icon {
  0%, 54% { background-color: var(--accent); }
  58%, 96% { background-color: var(--hp-green-ink); }
  100% { background-color: var(--accent); }
}
@keyframes hp-up-going {
  0%, 54% { opacity: 1; }
  58%, 96% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes hp-up-done {
  0%, 54% { opacity: 0; }
  58%, 96% { opacity: 1; }
  100% { opacity: 0; }
}

/* --- Step 2: four kinds of clue, one photo each --- */

.hp-see {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

/* All four slides share one cell, so the picture is as tall as its tallest
   slide and nothing below it moves when the slide changes. */
.hp-see__slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
.hp-see__slide.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s ease, visibility 0s;
}

.hp-see__stage {
  position: relative;
  aspect-ratio: 100 / 60;
  margin-bottom: 0.7rem;
}

.hp-see__print {
  --tilt: -2deg;
  position: absolute;
  left: 12%;
  top: 6%;
  width: 76%;
  transform: rotate(var(--tilt));
}
.hp-see__print img { aspect-ratio: 3 / 2; }

/* A square photo, cut to the same height as the wide ones. */
.hp-see__print--sq {
  --tilt: 2deg;
  left: 24.600%;
  width: calc(50.667% + 0.213rem);
}
.hp-see__print--sq img { aspect-ratio: 1; }

.hp-see__img { position: relative; display: block; }

/* What the AI is looking at. */
.hp-see__mark {
  position: absolute;
  left: var(--mx);
  top: var(--my);
  width: var(--mw);
  height: var(--mh);
  border: 3px solid #F2B01E;
  border-radius: 6px;
  box-shadow: 0 0 0 2px rgba(36, 26, 14, 0.75), 0 0 0 2px rgba(36, 26, 14, 0.75) inset;
}
.hp-see__mark--face { border-radius: 12px; }

.is-live .hp-see__mark {
  opacity: 0;
  transform: scale(1.5);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.is-live .hp-see__slide.is-on .hp-see__mark {
  opacity: 1;
  transform: none;
  transition-delay: 0.7s;
}

/* See, then the answer: the date lands a beat after the mark. */
.is-live .hp-see__date { opacity: 0; transition: opacity 0.5s ease; }
.is-live .hp-see__slide.is-on .hp-see__date { opacity: 1; transition-delay: 1.6s; }

/* The marked spot, enlarged. */
.hp-lens {
  position: absolute;
  right: 3%;
  top: 4%;
  z-index: 2;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid #F2B01E;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 3px rgba(36, 26, 14, 0.8), 0 10px 26px rgba(61, 43, 31, 0.4);
}

.hp-step .hp-see__note {
  flex: 1 0 auto;
  display: grid;
  align-content: start;
  gap: 0.3rem;
  margin: 0 5% 2.5rem;
  padding: 0.7rem 0.9rem 0.8rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.hp-see__note .hp-see__kind {
  font: 700 1.1rem/1.2 var(--font-ui);
  color: var(--text-primary);
}

/* The date sits on the photo's bottom edge, level whatever the tilt. */
.hp-step__pic .hp-see__date {
  margin-top: 0;
  transform: translate(-50%, -50%) rotate(calc(var(--tilt) * -1));
  font-size: 1.1rem;
  padding: 0.36rem 0.75rem;
}

.hp-see__note .hp-see__why {
  font: 500 1rem/1.4 var(--font-ui);
  color: var(--text-secondary);
}
.hp-see__why b { color: var(--text-primary); }

/* The dots sit under the note, beside the step number. They appear only
   once the script is running: without it there is one slide. */
.hp-see__dots {
  display: none;
  grid-area: 1 / 1;
  align-self: end;
  justify-self: center;
  z-index: 3;
  margin-bottom: 0.25rem;
  /* Centred in the space to the right of the step number. */
  padding-left: 4rem;
}
.is-ready .hp-see__dots { display: flex; }

.hp-see__dots button {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.hp-see__dots button::before {
  content: '';
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 99px;
  background: var(--text-primary);
  opacity: 0.32;
  transition: width 0.3s ease, opacity 0.3s ease;
}
.hp-see__dots button[aria-pressed="true"]::before {
  width: 1.5rem;
  opacity: 1;
  background: var(--accent);
}
.hp-see__dots button:focus-visible { outline: 3px solid var(--accent); outline-offset: -2px; }

/* --- Step 3: the whole set rolls past, oldest to newest --- */

.hp-roll {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.hp-roll::before {
  content: '';
  grid-area: 1 / 1;
  padding-top: 92%;
}

/* Seven prints, each 52% of the picture wide with 6% between: the strip is
   412% of the picture, so rolling it by 312% (75.728% of itself) brings
   the newest print to rest at the right edge. */
.hp-roll__strip {
  grid-area: 1 / 1;
  justify-self: start;
  position: relative;
  display: flex;
  gap: 1.500%;
  width: 412%;
  padding: 0 6%;
  margin-bottom: 2.6rem;
}
.hp-roll__strip .hp-print { flex: 0 0 13%; z-index: 1; }

.hp-roll__strip::after {
  content: '';
  position: absolute;
  left: 0.700%;
  right: 1.200%;
  bottom: -0.65rem;
  height: 4px;
  border-radius: 2px;
  background: var(--text-primary);
}
.hp-roll__strip::before {
  content: '';
  position: absolute;
  right: 0.500%;
  bottom: calc(-0.65rem - 7px);
  border-left: 16px solid var(--text-primary);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.is-live .hp-roll__strip {
  animation: hp-roll 38s linear infinite;
  animation-play-state: paused;
}

/* Rest on the oldest, roll to the newest, rest, then start over from the
   oldest behind a short fade. The order is never broken by a wrap. */
@keyframes hp-roll {
  0%, 6% { transform: translateX(0); opacity: 1; }
  88%, 95% { transform: translateX(-75.728%); opacity: 1; }
  97.400% { transform: translateX(-75.728%); opacity: 0; }
  97.500% { transform: translateX(0); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.is-live.is-running .hp-up__p,
.is-live.is-running .hp-up__bar i,
.is-live.is-running .hp-up__icon,
.is-live.is-running .hp-up__arrow,
.is-live.is-running .hp-up__check,
.is-live.is-running .hp-up__going,
.is-live.is-running .hp-up__done,
.is-live.is-running .hp-roll__strip {
  animation-play-state: running;
}

/* --- The one button that stops and starts all three --- */

.hp-steps__ctrl {
  min-height: 48px;
  margin: 1.3rem 0 0;
  text-align: center;
}

.hp-anim-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.5rem 1.2rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--text-primary);
  font: 600 1rem/1 var(--font-ui);
  cursor: pointer;
}
.hp-anim-toggle[hidden] { display: none; }
.hp-anim-toggle:hover { border-color: var(--accent); }
.hp-anim-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp-anim-toggle svg { width: 1.2rem; height: 1.2rem; color: var(--accent); }
.hp-anim-toggle__play { display: none; }
.hp-anim-toggle[aria-pressed="true"] .hp-anim-toggle__play { display: block; }
.hp-anim-toggle[aria-pressed="true"] .hp-anim-toggle__pause { display: none; }

.hp65 .hp-def {
  max-width: 44rem;
  margin: 1.8rem auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
  color: var(--text-secondary);
}

.hp65 .works-with { margin-top: 2rem; }
.hp65 .works-with__label { color: var(--text-primary); }
.hp65 .works-with__item { min-height: 56px; padding-right: 1.2rem; }

/* ---------- 2c. Your photos stay yours ---------- */

.hp-safe__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 2.6rem 0 0;
  padding: 0;
}

.hp-safe__item { text-align: center; }

.hp-safe__icon {
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--hp-green-ink);
}
.hp-safe__icon svg { width: 2.1rem; height: 2.1rem; }

.hp65 .hp-safe__item h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0 0 0.4rem;
  text-wrap: balance;
}

.hp-safe__item p {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 17rem;
  color: var(--text-secondary);
}

.hp-founder {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  max-width: 50rem;
  margin: 3rem auto 0;
  padding: 1.6rem 2rem;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.hp-founder__photo {
  flex: none;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--contrast-white);
  box-shadow: var(--shadow-md);
}

.hp-founder blockquote {
  margin: 0 0 0.7rem;
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text-primary);
}

.hp-founder figcaption {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-secondary);
}
.hp-founder figcaption b { color: var(--text-primary); }
.hp-founder figcaption a {
  margin-left: 0.6rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hp-door {
  max-width: 50rem;
  margin: 1.4rem auto 0;
  text-align: center;
}

.hp-door summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 56px;
  padding: 0.4rem 1rem;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  border-radius: var(--radius-md);
}
.hp-door summary::-webkit-details-marker { display: none; }
.hp-door summary svg { width: 1.3rem; height: 1.3rem; transition: transform 0.2s ease; }
.hp-door[open] summary svg { transform: rotate(180deg); }
.hp-door summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.hp-door__body {
  margin-top: 0.4rem;
  padding: 1.3rem 1.6rem;
  text-align: left;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.hp-door .hp-door__body h3 {
  margin: 0 0 0.6rem;
  font: 700 1.1rem/1.3 var(--font-ui);
  color: var(--text-primary);
}
.hp-door .hp-door__body ul + h3 { margin-top: 1.3rem; }
.hp-door__body ul {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}
.hp-door__body .hp-door__cols {
  columns: 2;
  column-gap: 2.5rem;
}
.hp-door__body li {
  font-family: var(--font-ui);
  font-size: 1.02rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  break-inside: avoid;
  color: var(--text-primary);
}
.hp-door__body li::marker { color: var(--hp-green-ink); }
.hp-door__body p { margin: 0; font-family: var(--font-ui); font-size: 1.02rem; }
.hp-door__body a { font-weight: 600; margin-right: 1.5rem; text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- 2d. Reviews: the same cards, readable ---------- */

.hp65 .hp-reviews .reviews-section__intro p {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  color: var(--text-secondary);
}
.hp65 .hp-reviews .review-card {
  --review-line: calc(1.15rem * 1.6);
  padding: 1.8rem;
  border-color: var(--border);
  border-radius: var(--radius-lg);
}
.hp65 .hp-reviews .review-card__quote { font-size: 1.15rem; line-height: 1.6; }
.hp65 .hp-reviews .review-card__stars { font-size: 1.3rem; }
.hp65 .hp-reviews .review-card__meta { font-size: 0.92rem; }

/* ---------- 2e. Price ---------- */

.hp-price__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.4rem 0 0;
  padding: 0;
}

.hp-pack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem;
  height: 100%;
  padding: 1.7rem 0.8rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hp-pack:hover { border-color: var(--accent); box-shadow: var(--shadow-md); color: var(--text-primary); text-decoration: none; }
.hp-pack:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.hp-pack__amount {
  font: 700 2.7rem/1.05 var(--font-display);
  letter-spacing: -0.01em;
}
.hp-pack__photos { font: 700 1.15rem/1.3 var(--font-ui); }
.hp-pack__note { font: 500 0.95rem/1.35 var(--font-ui); color: var(--text-secondary); }

.hp-pack--free { background: var(--green-light); border-color: var(--hp-green-ink); }
.hp-pack--free .hp-pack__amount { color: var(--hp-green-ink); }

.hp-price__inc {
  max-width: 46rem;
  margin: 1.9rem auto 0;
  padding: 0.9rem 1.4rem;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--text-primary);
  background: var(--green-light);
  border-radius: var(--radius-md);
}
.hp-price__inc b { color: var(--hp-green-ink); }

.hp-price__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.2rem;
  margin: 1.3rem 0 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}
.hp-price__facts li { display: inline-flex; align-items: baseline; gap: 0.5rem; }
.hp-price__facts li::before { content: '\2713'; color: var(--hp-green-ink); font-weight: 800; }

.hp-price__more {
  margin: 1.4rem 0 0;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 1.05rem;
}
.hp-price__more a { font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- 2f. The kept sections, brought up to the floor ---------- */

.hp65 .hp-demo .date-estimation__intro { max-width: 64rem; }

.hp-does {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin: 1.9rem 0 0;
  padding: 0;
  text-align: left;
}

.hp-does li {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.8rem;
  align-content: start;
  align-items: center;
  padding: 1.3rem 1.4rem 1.4rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.hp-does__icon {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
}
.hp-does__icon svg { width: 1.9rem; height: 1.9rem; }

.hp65 .hp-does h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hp65 .hp-does p {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.hp65 .hp-demo .hp-does__inc {
  margin: 1.5rem auto 0;
  font: 700 1.2rem/1.4 var(--font-ui);
  color: var(--text-primary);
}

.hp65 .hp-demo .hp-does__watch {
  margin: 2.2rem auto 0;
  font: 500 1.05rem/1.4 var(--font-ui);
  color: var(--text-secondary);
}

.hp65 .hp-questions .home-questions .faq__question {
  min-height: 72px;
  font-size: 1.15rem;
}
.hp65 .hp-questions .home-questions .faq__answer p,
.hp65 .hp-questions .home-questions .faq__answer li { font-size: 1.05rem; }

.hp65 .hp-cta .cta__desc {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  margin-bottom: 1.6rem;
}
.hp65 .hp-cta .hp-cta__then { margin: 1.4rem auto 0; font-family: var(--font-ui); font-size: 1rem; }
.hp-cta__then a { font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Tablet and phone ---------- */

/* Below the width where the four promises fit on one line, give them equal
   columns so they all wrap the same way instead of one at a time. */
@media (max-width: 1239px) {
  .hp-promises__list.container { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .hp-price__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-safe__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-does { grid-template-columns: minmax(0, 1fr); max-width: 36rem; margin-left: auto; margin-right: auto; }
}

@media (max-width: 899px) {
  .hp-hero { padding-top: 1.4rem; }
  .hp-hero__grid.container {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-bottom: 1.8rem;
    text-align: center;
  }
  /* Words, then the picture, then the button. */
  .hp-hero__words { display: contents; }
  .hp-hero__kind { order: 1; margin-bottom: 0.4rem; }
  .hp-hero h1 { order: 2; margin-bottom: 0.7rem; }
  .hp-hero__sub { order: 3; margin: 0 auto 1.2rem; max-width: 34rem; font-size: 1.1rem; }
  .hp-sort { order: 4; padding: 0 1.2rem 0 0; max-width: 36rem; width: 100%; margin: 0 auto 1.4rem; }
  .hp-hero__act { order: 5; align-items: center; margin-bottom: 0.7rem; }
  .hp-hero__then { order: 6; }
  .hp65 .btn.hp-btn { width: 100%; max-width: 26rem; }

  /* The root type is smaller here, so two labels set under 1rem are raised
     to keep every line at 17px or more. */
  .hp-pack__note,
  .hp65 .works-with__item { font-size: 1rem; }

  .hp-steps__list { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; max-width: 30rem; margin-left: auto; margin-right: auto; }
  .hp-step { display: flex; grid-row: auto; }
  .hp-founder { flex-direction: column; text-align: center; padding: 1.6rem 1.3rem; }
  .hp-founder figcaption a { display: block; margin: 0.3rem 0 0; }
  .hp-door__body .hp-door__cols { columns: 1; }
}

@media (max-width: 640px) {
  .hp65 .hp-band { padding: 3.2rem 0; }
  /* Fold budget: the heading, the picture and the button share one screen,
     so the category line (it is the page title too) steps aside. */
  .hp-hero { padding-top: 1rem; }
  .hp-hero__kind { display: none; }
  .hp-hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
  .hp-hero__sub { font-size: 1rem; margin-bottom: 0.8rem; }
  .hp-sort { margin-bottom: 1rem; }
  .hp-sort__label { font-size: 0.95rem; margin-bottom: 0.45rem; }
  .hp-sort__line { gap: 0.45rem; }
  .hp-sort__pile { padding: 0.25rem 0.4rem 1.15rem; }
  .hp-sort__arrow { flex-direction: row; gap: 0.4rem; margin: 0 0 0.15rem; }
  .hp-sort__arrow svg { width: 1.5rem; height: 1.7rem; }
  .hp-print { padding: 0.2rem; }
  .hp-year { font-size: 1rem; padding: 0.3rem 0.5rem; }
  .hp-print__q { width: 2rem; height: 2rem; margin-left: -1rem; bottom: -0.95rem; font-size: 1.15rem; line-height: calc(2rem - 6px); }

  .hp-promises__list.container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    justify-content: stretch;
    gap: 0.8rem 0.9rem;
  }
  .hp-promises__list li { align-items: flex-start; justify-content: flex-start; }
  .hp-promises__list svg { width: 1.35rem; height: 1.35rem; }

  .hp-safe__grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 2rem; }
  .hp-safe__item {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr);
    column-gap: 1rem;
    text-align: left;
  }
  .hp-safe__icon { grid-row: 1 / 3; width: 3.4rem; height: 3.4rem; margin: 0; }
  .hp-safe__icon svg { width: 1.75rem; height: 1.75rem; }
  .hp-safe__item p { margin: 0; max-width: none; }

  /* Price: one row per pack, the amount on the left. */
  .hp-price__list { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
  .hp-pack {
    display: grid;
    grid-template-columns: 6.2rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 1rem;
    row-gap: 0;
    min-height: 0;
    padding: 0.9rem 1.1rem;
    text-align: left;
    align-items: center;
    justify-items: start;
  }
  .hp-pack__amount { grid-row: 1 / 3; font-size: 2.1rem; justify-self: center; }
  .hp-pack__photos { align-self: end; }
  .hp-pack__note { align-self: start; }
  .hp-price__facts { flex-direction: column; align-items: flex-start; max-width: 22rem; margin-left: auto; margin-right: auto; }
}

/* ---------- 3. Other pages on the reading floor ---------- */

/* Pricing: at the bigger type the four packs need the wider column, and
   each button must stay on one line so the row of prices still ends on
   the first screen. The capital-letter label above the heading goes: the
   heading already says it. */
.hp65--page .ph__eyebrow { display: none; }
/* 1.6rem, not 2: with the taller bar on these pages every pack still has to
   end on a 1280 by 720 first screen (tests/pricing.spec.mjs, the prices are
   on the first screen). */
.hp65--page .ph { padding-top: 1.6rem; }
.hp65--page .pp > .container,
.hp65--page .pinc > .container,
.hp65--page .pq > .container { max-width: 1280px; }
.hp65--page .ppack__btn { white-space: nowrap; padding-left: 0.6rem; padding-right: 0.6rem; }
.hp65--page .ppack__btn .btn__arrow,
.hp65--page .ppack--trial .btn__arrow,
.hp65--page .cta .btn__arrow { display: none; }
.hp65--page .ppack__like { text-wrap: balance; }

.hp-promises--page { margin: 0; }
.hp-promises--page .hp-promises__list.container { max-width: 1280px; padding-top: 1.3rem; padding-bottom: 1.3rem; }

/* About: the tools. One row for the service this site sells, then the three
   free apps as one short list (they were four equal cards, two over two). */
.hp-tools .ab-intro { margin-bottom: 2rem; }

.hp-tool-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.7rem;
  padding: 1.7rem 2rem;
  background: var(--card-bg);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hp-tool-main__icon {
  width: 5rem;
  height: 5rem;
  border-radius: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.hp65 .hp-tool-main h3 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
  line-height: 1.2;
}

.hp65 .hp-tool-main p {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.hp65 .hp-tool-main .hp-tool-main__price {
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hp65 .hp-tool-main__btn {
  min-height: 56px;
  padding: 0.8rem 1.5rem;
  font-size: 1.05rem;
  white-space: nowrap;
}

.hp65 .hp-tools__sub {
  margin: 2.4rem 0 0.9rem;
  font: 700 1.15rem/1.3 var(--font-ui);
  color: var(--text-primary);
}

.hp-tools__free {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hp-tools__free li + li { border-top: 1px solid var(--border); }

.hp-free {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1.3rem;
  row-gap: 0.1rem;
  min-height: 84px;
  padding: 1rem 2rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: background-color 0.2s ease;
}
.hp-free:hover { background: var(--bg-warm); color: var(--text-primary); text-decoration: none; }
.hp-free:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

.hp-free__icon { grid-row: 1 / 3; width: 3.2rem; height: 3.2rem; border-radius: 0.7rem; }
.hp-free__name { grid-column: 2; align-self: end; font: 700 1.25rem/1.25 var(--font-display); }
.hp-free__what { grid-column: 2; align-self: start; font: 400 1.05rem/1.45 var(--font-ui); color: var(--text-secondary); }
.hp-free__go {
  grid-column: 3;
  grid-row: 1 / 3;
  font: 600 1rem/1.3 var(--font-ui);
  color: var(--accent);
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hp-tools__all {
  margin: 1.6rem 0 0;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 1.05rem;
}
.hp-tools__all a { font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }

@media (max-width: 860px) {
  .hp-tool-main {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.2rem 1.2rem;
    padding: 1.4rem 1.3rem;
    align-items: start;
  }
  /* Icon and name on one row, the words across the full card under them. */
  .hp-tool-main { align-items: center; }
  .hp-tool-main__icon { width: 3.6rem; height: 3.6rem; }
  .hp-tool-main__words { display: contents; }
  .hp65 .hp-tool-main h3 { margin: 0; }
  .hp65 .hp-tool-main p { grid-column: 1 / -1; }
  .hp65 .hp-tool-main .hp-tool-main__price { margin-top: -0.5rem; }
  .hp-tool-main__btn { grid-column: 1 / -1; width: 100%; }

  .hp-free {
    grid-template-columns: 3.2rem minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: 0.15rem;
    padding: 1.1rem 1.3rem;
    align-items: start;
  }
  .hp-free__icon { grid-row: 1 / 4; }
  .hp-free__go { grid-column: 2; grid-row: 3; margin-top: 0.3rem; }
}

/* Dark theme: the gold button carried near-white words at 2.2:1. Dark ink
   on gold reads at 8:1. */
[data-theme="dark"] .hp65 .btn.hp-btn,
[data-theme="dark"] .hp65 .btn.hp-btn:hover { color: #241A0E; }

/* ---------- 4. The two search pages, on the homepage's pattern ----------
   /ai-photo-organizer/ (body.hp-org) and /what-year-was-this-photo-taken/
   (body.hp-wy). Both reuse the homepage blocks above as they are: the hero
   layout, the three picture steps, "Your Photos Stay Yours", the reviews and
   the price row. Only the pieces below are new, and both pages share them:
   a picture card for a kind of clue (.hp-clue), a two-card comparison
   (.hp-duo), and the door from section 2c made wider. */

.hp65 { --hp-small: max(0.85rem, 17px); }

:root:not([data-theme="dark"]) { --hp-red-ink: #8C2F24; }
[data-theme="dark"] { --hp-red-ink: #F0A79E; }

/* Who wrote the page and when: kept from the live pages, under the button. */
.hp65 .hp-byline {
  margin: 1.2rem 0 0;
  font: 400 var(--hp-small)/1.4 var(--font-ui);
  color: var(--text-secondary);
}
.hp65 .hp-byline a { text-decoration: underline; text-underline-offset: 0.2em; }

/* The organizer's h1 is twice as long as the homepage's. */
.hp-org-hero h1 { font-size: clamp(2rem, 3.5vw, 2.45rem); }

/* The pile on this page carries the wrong year, not a question mark. */
.hp-print__q.hp-print__q--year {
  width: auto;
  height: auto;
  margin-left: 0;
  bottom: -0.95rem;
  transform: translateX(-50%);
  padding: 0.3rem 0.6rem;
  border-radius: 9px;
  font: 700 1.05rem/1 var(--font-ui);
  letter-spacing: 0.02em;
}

/* --- A kind of clue: the picture, then its name --- */

.hp-clue-list {
  list-style: none;
  display: grid;
  gap: 1.6rem;
  margin: 2.4rem 0 0;
  padding: 0;
}
.hp-clue-list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp-clue-list--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.hp-clue-list--5 .hp-clue { grid-column: span 2; }
/* Three cards, then two centred under them: all five the same size. */
.hp-clue-list--5 .hp-clue:nth-child(4) { grid-column: 2 / span 2; }

.hp-clue {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hp-clue__pic {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 14.8rem;
  padding: 1.3rem 1.5rem 2rem;
  background: var(--bg-accent);
}

.hp-clue__print {
  --tilt: -2deg;
  flex: none;
  width: 100%;
  max-width: 17rem;
  transform: rotate(var(--tilt));
}
.hp-clue:nth-child(even) .hp-clue__print { --tilt: 2deg; }
.hp-clue__print img { aspect-ratio: 3 / 2; }
/* A square photo shown from its top edge down. */
.hp-clue__print--top img { object-position: 50% 0; }

.hp-clue__pic .hp-year {
  margin-top: 0;
  transform: translate(-50%, -50%) rotate(calc(var(--tilt) * -1));
  font-size: 1.05rem;
  padding: 0.36rem 0.75rem;
  box-shadow: 0 0 0 3px var(--bg-accent);
}

/* The name beside the outlined face. */
.hp-clue__who {
  position: absolute;
  left: 50%;
  top: 66%;
  transform: translateX(-50%);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(36, 26, 14, 0.86);
  color: #fff;
  font: 700 var(--hp-small)/1.2 var(--font-ui);
  white-space: nowrap;
}

.hp-clue__body {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1.3rem 1.5rem 1.5rem;
}

.hp65 .hp-clue h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.2;
}

.hp-clue__tag {
  justify-self: start;
  margin: 0;
  padding: 0.22rem 0.7rem;
  border-radius: 99px;
  background: var(--accent-light);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font: 700 var(--hp-small)/1.3 var(--font-ui);
}
.hp-clue__tag--top { background: var(--green-light); border-color: transparent; color: var(--hp-green-ink); }

.hp-clue__body > p:not(.hp-clue__tag) {
  margin: 0;
  font: 400 1.05rem/1.5 var(--font-ui);
  color: var(--text-secondary);
}

.hp-clue__names {
  list-style: none;
  display: grid;
  gap: 0.3rem;
  margin: 0.3rem 0 0;
  padding: 0;
  font: 600 1.05rem/1.35 var(--font-ui);
  color: var(--text-primary);
}
.hp-clue__names li { display: grid; grid-template-columns: 0.9rem minmax(0, 1fr); align-items: baseline; }
.hp-clue__names li::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-0.15em);
}

/* A clue that is a name: the folder and the file, and the date each gives. */
.hp-fileclue { display: grid; gap: 0.8rem; width: 100%; }
.hp-fileclue__row {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem 0.6rem;
  padding: 0.7rem 0.8rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--hp-print-shadow);
  font-family: var(--font-ui);
  color: #2B1F14;
}
.hp-fileclue__row svg { width: 1.9rem; height: 1.9rem; color: #8D6608; }
.hp-fileclue__name { font-weight: 600; font-size: var(--hp-small); line-height: 1.25; overflow-wrap: anywhere; }
.hp-fileclue__date {
  grid-column: 2;
  justify-self: start;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: #3D2B1F;
  color: #FFFDF8;
  font: 700 1rem/1 var(--font-ui);
  white-space: nowrap;
}

/* Drawn prints: the shape of the paper, or the look of the film. */
.hp-clue__pic--draw {
  grid-auto-flow: column;
  place-items: end center;
  place-content: center;
  gap: 1.3rem;
  padding-bottom: 1.4rem;
}
.hp-fmt {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  font: 700 var(--hp-small)/1.2 var(--font-ui);
  color: var(--text-primary);
  text-align: center;
}
.hp-fmt__print {
  display: block;
  width: 5.6rem;
  padding: 0.4rem;
  background: #fff;
  box-shadow: var(--hp-print-shadow);
  --sky: #8EC5E8;
  --sun: #FFD23F;
  --hill: #3F8F5A;
  --ground: #D9B36C;
  --figure: #2E3A59;
}
.hp-fmt__print svg { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.hp-fmt__print--deckle,
.hp-fmt__print--bw { --sky: #DADADA; --sun: #F4F4F4; --hill: #777; --ground: #A9A9A9; --figure: #3A3A3A; }
.hp-fmt__print--deckle {
  width: 6.4rem;
  padding: 0;
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 1px 2px rgba(61, 43, 31, 0.3)) drop-shadow(0 8px 14px rgba(61, 43, 31, 0.18));
  transform: rotate(-3deg);
}
.hp-fmt__paper { fill: #fff; }
.hp-fmt__print--round,
.hp-fmt__print--faded { --sky: #EADBC4; --sun: #F5DDA6; --hill: #B78D69; --ground: #DDBB9B; --figure: #7C5040; }
.hp-fmt__print--round { border-radius: 0.8rem; transform: rotate(2deg); }
.hp-fmt__print--round svg { border-radius: 0.45rem; }
.hp-fmt--film .hp-fmt__print { width: 4.3rem; padding: 0.3rem; }

.hp-clue__pic--icons { gap: 1.4rem; }
.hp-scenei {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  font: 700 var(--hp-small)/1.2 var(--font-ui);
  color: var(--text-primary);
}
.hp-scenei svg {
  width: 4.6rem;
  height: 4.6rem;
  padding: 0.85rem;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--hp-print-shadow);
  color: var(--accent);
}

.hp-clues__close {
  max-width: 42rem;
  margin: 2rem auto 0;
  text-align: center;
  font: 500 1.1rem/1.5 var(--font-ui);
  color: var(--text-primary);
}
.hp-clues__close a { font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }

/* The door, wide enough for a row of tiles. */
.hp-door--wide { max-width: 62rem; }
.hp-door__body--tiles ul { margin: 0; padding-left: 0; }
.hp-door__body--tiles .hp-door__lead { margin: 0 0 1.2rem; }
.hp-door .hp-door__body--tiles h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.hp-door__body--tiles .aio-group + .aio-group { margin-top: 1.6rem; }
.hp-door__body--tiles h4 { margin: 0; font: 700 1.15rem/1.3 var(--font-ui); color: var(--text-primary); }
.hp-door__body--tiles .aio-foot { margin-top: 1.2rem; text-align: left; }
.hp-door__body--tiles a { margin-right: 0; }
.hp-door__body--tiles .aio-strip { margin-left: 0; margin-right: 0; }

/* --- Two cards side by side: the other way, and ours --- */

.hp-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  max-width: 62rem;
  margin: 2.4rem auto 0;
}

.hp-duo__side {
  display: flex;
  flex-direction: column;
  padding-bottom: 1.6rem;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hp-duo__side--us { border-color: var(--accent); box-shadow: var(--shadow-md); }

.hp-duo__pic {
  display: grid;
  place-items: center;
  min-height: 12.5rem;
  padding: 1.5rem 1.5rem;
  background: var(--bg-accent);
}
.hp-duo__side--us .hp-duo__pic { background: var(--accent-light); }

.hp65 .hp-duo h3 {
  margin: 1.4rem 1.6rem 0.7rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.hp-duo__chip {
  display: inline-block;
  vertical-align: 0.15em;
  margin-left: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 99px;
  background: var(--green-light);
  color: var(--hp-green-ink);
  font: 700 var(--hp-small)/1.3 var(--font-ui);
}

.hp-duo__rows {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin: 0 1.6rem;
  padding: 0;
  font: 500 1.08rem/1.4 var(--font-ui);
  color: var(--text-primary);
}
.hp-duo__rows--check li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); align-items: baseline; }
.hp-duo__rows--check li::before { content: '\2713'; font-weight: 800; color: var(--text-muted); }
.hp-duo__side--us .hp-duo__rows--check li::before { color: var(--hp-green-ink); }

.hp-duo__tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.2rem 1.6rem 0;
  padding: 0.45rem 0.95rem;
  border-radius: 99px;
  font: 700 1.05rem/1.2 var(--font-ui);
}
.hp-duo__tag svg { flex: none; width: 1.15rem; height: 1.15rem; }
.hp-duo__tag--no { background: var(--red-light); color: var(--hp-red-ink); }
.hp-duo__tag--yes { background: var(--green-light); color: var(--hp-green-ink); }

/* The same four photos inside a photo app: one wrong month, or four years. */
.hp-app {
  width: 100%;
  max-width: 25rem;
  padding: 0.8rem 0.9rem 0.95rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--hp-print-shadow);
}
.hp-app__heads,
.hp-app__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
}
.hp-app__heads { margin-bottom: 0.5rem; }
.hp-app__head {
  justify-self: start;
  padding: 0.25rem 0.5rem;
  border-radius: 7px;
  background: #356540;
  color: #fff;
  font: 700 1rem/1.1 var(--font-ui);
}
.hp-app__head--wrong { grid-column: 1 / -1; background: #A83F33; }
.hp-app__row img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.hp-apps__facts { margin-top: 2rem; }
.hp-apps__facts a { text-decoration: underline; text-underline-offset: 0.2em; }
.hp-apps__foot {
  margin: 1rem 0 0;
  text-align: center;
  font: 500 1.05rem/1.5 var(--font-ui);
}
.hp-apps__foot a { font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }

/* The pitch on the year page: one print with one guess, or the box in order. */
.hp-duo__pic--one,
.hp-duo__pic--line { padding-bottom: 2.3rem; }
.hp-pitch__one { flex: none; width: 8.4rem; transform: rotate(-3deg); }
.hp-duo__pic .hp-year { box-shadow: 0 0 0 3px var(--bg-accent); }
.hp-duo__side--us .hp-duo__pic .hp-year { box-shadow: 0 0 0 3px var(--accent-light); }
.hp-pitch__one .hp-year { margin-top: 0; transform: translate(-50%, -50%) rotate(3deg); font-size: 1.05rem; }
.hp-duo__pic--line { padding-right: 3rem; padding-left: 1.8rem; }
.hp-pitch__line { width: 100%; max-width: 23rem; gap: 0.7rem; margin-bottom: 0; }
.hp-pitch__line .hp-year { font-size: 1rem; padding: 0.3rem 0.55rem; }

.hp-pitch__act {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  margin: 2.2rem 0 0;
}

/* --- Organizer: the kept sections, brought up to the floor --- */

.hp65 .hp-demo2 .xp-head { margin-bottom: 2rem; }
.hp65 .hp-demo2 .dd__verdict { font-size: 1.1rem; }

.hp65 .hp-every .xp-head { max-width: none; margin-bottom: 0; }
.hp65 .hp-every .fp-suite { max-width: none; gap: 1.3rem; margin-top: 2.4rem; }
.hp65 .hp-every .fp-suite__item,
.hp65 .hp-every .fp-suite__item--here {
  gap: 0.5rem;
  padding: 1.6rem 1.2rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.hp65 .hp-every .fp-suite__badge { display: none; }
.hp65 .hp-every .fp-suite__icon {
  width: 3.6rem;
  height: 3.6rem;
  border: 0;
  background: var(--accent-light);
}
.hp65 .hp-every .fp-suite__icon svg { width: 1.9rem; height: 1.9rem; }
.hp65 .hp-every .fp-suite__name {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}
.hp65 .hp-every .fp-suite__line { font: 400 1.05rem/1.45 var(--font-ui); }
.hp-every__inc {
  margin: 1.8rem 0 0;
  text-align: center;
  font: 700 1.2rem/1.4 var(--font-ui);
  color: var(--text-primary);
}
.hp-every__inc a { margin-left: 0.4rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }

/* Questions on both pages: the live list, at the homepage's sizes. */
.hp65 .hp-faq .xp-head,
.hp65 .hp-faq .gk-head { margin-bottom: 1.6rem; }
.hp65 .hp-faq .faq__list { max-width: 52rem; }
.hp65 .hp-faq .faq__question { min-height: 72px; font-size: 1.2rem; }
.hp65 .hp-faq .faq__answer p,
.hp65 .hp-faq .faq__answer li { font-size: 1.05rem; line-height: 1.65; }
.hp65 .hp-faq .gk-aside { max-width: 52rem; margin-left: auto; margin-right: auto; font-size: 1.02rem; }

.hp65 .hp-cta .hp-cta__nocard { margin: 1rem auto 0; }

/* --- The year page: the tool in the hero --- */

.hp-wy-hero { padding-bottom: 1.4rem; }
.hp-wy-hero__grid.container {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 3rem;
  align-items: start;
}

.hp-wy .pyt-tool { max-width: none; margin: 0; }

.hp-wy .pyt-steps {
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  font-size: var(--hp-small);
  font-weight: 600;
}
.hp-wy .pyt-steps > li { padding: 0.4rem 0.3rem 0.5rem; }
.hp-wy .pyt-steps > li > span,
.hp-wy .pyt-steps__link { min-height: 0; align-items: center; }
.hp-wy .pyt-steps__link { min-height: 44px; text-decoration: underline; text-underline-offset: 0.2em; }

.hp-wy .pyt-drop {
  padding: 1.7rem 1.4rem 1.5rem;
  border-width: 3px;
  border-radius: var(--radius-lg);
}
/* The words "Choose a Photo" look like the button they are. */
.hp-wy .pyt-drop__title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.6rem;
  margin: 0 0 0.8rem;
  padding: 0.9rem 2.2rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--contrast-light);
  font: 700 1.25rem/1.2 var(--font-ui);
  box-shadow: 0 2px 0 rgba(61, 43, 31, 0.25), var(--shadow-warm);
}
.hp-wy .pyt-drop__title::before {
  content: '';
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='M6.5 9.5 12 4l5.5 5.5'/%3E%3Cpath d='M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='M6.5 9.5 12 4l5.5 5.5'/%3E%3Cpath d='M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2'/%3E%3C/svg%3E") center / contain no-repeat;
}
[data-theme="dark"] .hp-wy .pyt-drop__title { color: #241A0E; }
.hp-wy .pyt-drop__hint { font: 400 1rem/1.45 var(--font-ui); color: var(--text-secondary); }

.hp-wy .pyt-privacy {
  margin-top: 0.8rem;
  font: 600 var(--hp-small)/1.4 var(--font-ui);
  color: var(--text-primary);
}

/* The answer, and everything else the script puts in the card. */
.hp-wy .pyt-card { padding: 1.6rem 1.5rem; }
.hp-wy .pyt-result__thumb { width: 7rem; height: 7rem; }
.hp-wy .pyt-result__year { font-size: 3.8rem; }
.hp-wy .pyt-result__range { font: 500 1.08rem/1.4 var(--font-ui); color: var(--text-primary); }
.hp-wy .pyt-confidence {
  padding: 0.2rem 0.75rem;
  font: 700 var(--hp-small)/1.3 var(--font-ui);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.hp-wy .pyt-confidence--high { color: var(--hp-green-ink); }
.hp-wy .pyt-confidence--low { color: var(--hp-red-ink); }
.hp-wy .pyt-clues-label {
  font: 700 1.15rem/1.3 var(--font-ui);
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-primary);
}
.hp-wy .pyt-clues { margin-top: 0.7rem; }
.hp-wy .pyt-clues li { font: 400 1.05rem/1.5 var(--font-ui); }
.hp-wy .pyt-more > summary { font: 600 1rem/1.4 var(--font-ui); }
.hp-wy .pyt-note,
.hp-wy .pyt-error { font: 500 1.08rem/1.5 var(--font-ui); }
.hp-wy .pyt-remaining { font: 500 var(--hp-small)/1.4 var(--font-ui); color: var(--text-secondary); }
.hp-wy .pyt-upsell { padding: 1.4rem; }
.hp-wy .pyt-upsell__heading { font-size: 1.4rem; }
.hp-wy .pyt-upsell p { font: 400 1.05rem/1.5 var(--font-ui); color: var(--text-primary); }
.hp-wy .pyt-upsell p.pyt-upsell__fine { font-size: var(--hp-small); font-weight: 600; }
.hp-wy .pyt-upsell .btn {
  min-height: 3.4rem;
  padding: 0.9rem 1.8rem;
  font-size: 1.18rem;
  font-weight: 700;
  border-radius: 14px;
}
[data-theme="dark"] .hp-wy .pyt-upsell .btn { color: #241A0E; }
.hp-wy .pyt-actions .btn { min-height: 56px; font-size: 1.05rem; }

/* Once a photo is in, the example steps aside and the answer takes the row. */
@supports selector(:has(*)) {
  .hp-wy-hero__grid.container:has(#pytTool:not([data-pyt-step="1"])) {
    grid-template-columns: minmax(0, 44rem);
    justify-content: center;
  }
  .hp-wy-hero__grid:has(#pytTool:not([data-pyt-step="1"])) .hp-example { display: none; }
}

/* One worked example beside the picker. */
.hp-example {
  position: relative;
  margin: 3.4rem 0 0;
  padding: 2.3rem 1.7rem 1.6rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.hp-example__label {
  position: absolute;
  top: -0.95rem;
  left: 1.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  background: var(--text-primary);
  color: var(--bg-secondary);
  font: 700 1rem/1.1 var(--font-ui);
}
.hp-example__stage { position: relative; padding: 0.4rem 1.6rem 0 0.2rem; }
.hp-example__print { --tilt: -2deg; transform: rotate(var(--tilt)); }
.hp-example__print img { aspect-ratio: 3 / 2; }
.hp-example .hp-lens { right: 0; top: -9%; width: 31%; }
.hp-example__result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.3rem;
  margin-top: 1.5rem;
}
.hp-example__year {
  margin: 0;
  font: 700 3.6rem/1 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--accent);
}
.hp-example__why {
  margin: 0;
  font: 400 1.05rem/1.45 var(--font-ui);
  color: var(--text-secondary);
}
.hp-example__why b { color: var(--text-primary); }

/* A warm band needs the founder's card one step lighter to stand off it. */
.hp-band--warm .hp-founder { background: var(--card-bg); }

/* --- Search pages: tablet and phone --- */

@media (max-width: 1080px) {
  .hp-clue-list--5 .hp-clue__pic--draw { gap: 0.9rem; }
  .hp-fmt--film .hp-fmt__print { width: 3.7rem; }
}

@media (max-width: 899px) {
  .hp-org .hp-byline { order: 7; margin-top: 1rem; }

  .hp-clue-list--3,
  .hp-clue-list--5 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 30rem;
    margin-left: auto;
    margin-right: auto;
  }
  .hp-clue-list--5 .hp-clue,
  .hp-clue-list--5 .hp-clue:nth-child(4) { grid-column: auto; }

  .hp-duo { grid-template-columns: minmax(0, 1fr); max-width: 32rem; }

  /* The year page: heading, one line, the picker, then the example. */
  .hp-wy-hero__grid.container { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hp-wy .pyt-tool { order: 4; width: 100%; max-width: 34rem; margin: 0 auto; }
  .hp-wy .hp-example { order: 5; width: 100%; max-width: 30rem; margin: 2.6rem auto 0; text-align: left; }
  .hp-wy .hp-byline { order: 6; margin-top: 1.4rem; }
}

@media (max-width: 640px) {
  .hp-print__q.hp-print__q--year { bottom: -0.85rem; padding: 0.25rem 0.4rem; font-size: 1rem; }
  .hp-clue__pic { min-height: 12rem; padding: 1.1rem 1.2rem 1.9rem; }
  .hp-clue__body { padding: 1.1rem 1.2rem 1.3rem; }
  .hp-duo__pic { min-height: 0; padding: 1.2rem 1rem; }
  .hp-duo__pic--one,
  .hp-duo__pic--line { padding-bottom: 2.2rem; }
  .hp-duo__pic--line { padding-right: 2.6rem; padding-left: 1.2rem; }
  .hp65 .hp-duo h3 { margin: 1.2rem 1.2rem 0.6rem; }
  .hp-duo__rows { margin: 0 1.2rem; }
  .hp-duo__tag { margin: 1.1rem 1.2rem 0; }
  .hp-app { padding: 0.6rem 0.6rem 0.7rem; }
  .hp-app__heads, .hp-app__row { gap: 0.35rem; }
  .hp-app__head { padding: 0.22rem 0.32rem; }
  .hp-every .fp-suite { grid-template-columns: minmax(0, 1fr); }

  .hp-wy-hero { padding-top: 0.9rem; }
  .hp-wy .pyt-drop { padding: 1.3rem 1rem 1.2rem; }
  .hp-wy .pyt-drop__title { width: 100%; padding: 0.9rem 1rem; }
  .hp-wy .pyt-upsell .btn { padding: 0.8rem 0.6rem; font-size: 1.08rem; line-height: 1.25; }
  .hp-example { padding: 2.1rem 1.2rem 1.3rem; }
  .hp-example__result { gap: 1rem; }
  .hp-example__year { font-size: 3rem; }
}

/* --- Reading-floor fixes found by a sweep across widths ---
   Four labels fell under 17px between phone and tablet widths, where the
   root type is 17 or 18px. The first three are on the homepage too. */
.hp-hero__kind { font-size: max(17px, clamp(0.85rem, 1.55vw, 1rem)); }
.hp65 .hp-reviews .review-card__meta { font-size: max(0.92rem, 17px); }
.hp65 .gk-more > summary { font-size: max(1rem, 17px); }
/* With the reviews script on these pages a long review is cut short
   and gets a "Read more" link, which was 16px under 900px wide (the homepage
   has the same link). */
.hp65 .hp-reviews .review-card__more { font-size: max(0.95rem, 17px); }
@media (max-width: 640px) {
  .hp-sort__label { font-size: 1rem; }
}

/* Tablet, upright: the organizer's longer heading pushed the button just
   past the first screen, so its picture gives up a little width. */
@media (min-width: 641px) and (max-width: 899px) {
  .hp-org-hero .hp-sort { max-width: 29rem; }
}

/* Short laptop screens: keep the whole picker on the first screen. */
@media (min-width: 900px) and (max-height: 720px) {
  .hp-wy-hero h1 { margin-bottom: 0.6rem; }
  .hp-wy-hero .hp-hero__sub { margin-bottom: 0.9rem; }
  .hp-wy .pyt-steps { margin-bottom: 0.6rem; }
  .hp-wy .pyt-drop { padding-top: 1.1rem; padding-bottom: 1rem; }
  .hp-wy .pyt-drop__title { min-height: 3.2rem; margin-bottom: 0.5rem; }
}

/* Small phones: the organizer's heading is a full sentence, so the picture
   and the button come straight after it and the supporting line follows. */
@media (max-width: 640px) {
  .hp-org-hero h1 { font-size: 1.85rem; }
  .hp-org-hero .hp-hero__sub { order: 6; margin: 0.9rem auto 0.7rem; }
  .hp-org-hero .hp-hero__then { order: 7; }
  .hp-org .hp-byline { order: 8; }
}

/* --- Real prints in the year page's clue cards (2026-11-12) ---
   A real photo sits in the same white paper frame the drawn prints used. */
.hp-fmt__print--photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.hp-fmt__print--tilt { transform: rotate(2deg); }
/* Three real prints across: their top edges line up and the labels hang
   below, whether a label takes one line or two. */
.hp-clue__pic--photos { align-items: start; }
/* Three columns, 1081 and up: a tighter gap than the drawings had, so the row
   keeps clear of the card's edge (at 1081 the drawn row sat 1px from it). */
@media (min-width: 1081px) {
  .hp-clue__pic--photos { gap: 0.8rem; }
}
/* From 1160 the card is wide enough for a larger print, so a real photo reads. */
@media (min-width: 1160px) {
  .hp-fmt--film .hp-fmt__print--photo { width: 4.7rem; }
}
/* Three columns at their narrowest (900 to 1010): the rows were up to 3px
   wider than the card and its edge clipped them, the drawn version included.
   Smaller prints and a smaller gap keep every row inside. */
@media (min-width: 900px) and (max-width: 1010px) {
  .hp-clue-list--5 .hp-clue__pic--draw { gap: 0.5rem; }
  .hp-clue-list--5 .hp-fmt__print { width: 5rem; }
  .hp-clue-list--5 .hp-fmt__print--deckle { width: 5.6rem; }
  .hp-clue-list--5 .hp-fmt--film .hp-fmt__print { width: 3.5rem; }
}
/* One column: the card is wide again. 22vw keeps three prints inside a 320px phone. */
@media (max-width: 899px) {
  .hp-fmt--film .hp-fmt__print--photo { width: min(5.4rem, 22vw); }
}

/* The bar is taller on these pages (the type is bigger), so the year tool's
   answer card, which the page scrolls to, needs more room above it to land
   clear of the bar. */
.hp65 .pyt-card { scroll-margin-top: calc(5rem + 12px); }
