/* Plainspoken Home, homepage (2026-11-16 "free first"; shared parts live in /css/base.css, loaded first).
   PAGE part (prefix hm-): cold visitors land here, so the free guide leads.
   1. hero = the free Know Your House guide (cover on its page 2, one yellow button to its page)
   2. the three paid guides as three white cards   3. the set on the counter band   4. free how-tos (generated block)
   5. one short reminder link to the free guide   6. who makes these, two lines. No checkout on this page. */

/* ============================== PAGE (hm-) ============================== */
:root { --acc: #1d4f7a; --acc-bg: #e6edf3; --page: #f4f3ef; }

/* 1. hero: the free guide. Phone: headline, then the cover beside the "Free" tag and what is inside, then the button.
   Desktop: the words and the button on the left, the cover on its page 2 on the right. */
.hm-hero { padding: var(--s-5) 0 var(--sec); }
.hm-hero-in { display: grid; grid-template-columns: 144px minmax(0, 1fr); column-gap: var(--s-4);
  grid-template-areas: "t t" "art what" "get get" "note note" "alt alt"; align-items: center; scroll-margin-top: var(--head); }
.hm-offer { display: contents; }
.hm-hero-t { grid-area: t; }
.hm-kick { font: 700 17px/1.2 var(--sign); text-transform: uppercase; letter-spacing: .07em; color: var(--acc); margin-bottom: var(--s-2); }
.hm-hero h1 { font-size: 40px; line-height: 1.04; }
.hm-hero h1 > span { display: block; }   /* two even lines on purpose: "Know your house" / "in 15 minutes." */
.hm-sub { margin-top: var(--s-3); font-size: 20px; line-height: 1.4; color: var(--ink); max-width: 30em; }

/* the paper: page 2 (the route) behind, the cover in front. Both sit straight (no rotate/scale), so the 1x pixels stay crisp;
   the files are rendered from the guide's own PDF at 600/900/1400w and `sizes` matches the measured widths. */
.hm-art { grid-area: art; position: relative; display: block; aspect-ratio: 128 / 170; margin-top: var(--s-5); }
.hm-art-pg, .hm-art-cv { position: absolute; display: block; background: var(--card); border-radius: 3px;
  box-shadow: 0 2px 3px rgba(0,0,0,.16), 0 16px 28px -16px rgba(0,0,0,.6); }
.hm-art img { display: block; width: 100%; border-radius: 3px; }
.hm-art-pg { right: 0; top: 0; width: 72%; }
.hm-art-cv { left: 0; bottom: 0; width: 86%; z-index: 1; }
@media (max-width: 479px) { .hm-art { aspect-ratio: 400 / 518; } .hm-art-pg { display: none; } .hm-art-cv { position: relative; width: 100%; } }   /* phone: the cover alone, as big as the column allows */

.hm-what { grid-area: what; margin-top: var(--s-5); display: grid; justify-items: start; gap: var(--s-3); font-size: 18px; line-height: 1.35; color: var(--ink); }
.hm-what .price-tag--lg { padding: 7px 15px 7px 23px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.hm-what .price-tag--lg b { font-size: 40px; }
.hm-what .price-tag small { font-size: 17px; }
.hm-get { grid-area: get; width: 100%; min-height: 64px; margin-top: var(--s-5); font-size: 24px; }
.hm-get svg { width: 24px; height: 24px; }
.hm-assure { grid-area: note; margin-top: var(--s-4); font-size: 17px; }
.hm-alt { grid-area: alt; margin-top: var(--s-2); }
.hm-alt a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 48px; font-size: 18px; font-weight: 700; color: var(--acc);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.hm-alt .arw { width: 18px; height: 18px; }

/* 1b. what is inside the free guide: four real pages as paper, the safety promise, the same button again */
.hm-inside { padding: var(--sec) 0; background: var(--card); }
.hm-inside h2 { font-size: 30px; }
.hm-isub { margin-top: var(--s-2); max-width: 40em; font-size: 19px; color: var(--body); }
.hm-tap { margin-top: var(--s-2); font-size: 17px; color: var(--steel); }
.hm-pages { list-style: none; padding: 0; margin: var(--sec-head) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
.hm-pg { display: block; border-radius: 3px; background: var(--card); box-shadow: 0 0 0 1px rgba(22,22,22,.10), 0 2px 3px rgba(0,0,0,.10), 0 14px 24px -16px rgba(0,0,0,.5); }
.hm-pg img { display: block; width: 100%; border-radius: 3px; }
a.hm-pg { transition: transform .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { a.hm-pg:hover { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { a.hm-pg { transition: none; } a.hm-pg:hover { transform: none; } }
.hm-pages figcaption { margin-top: var(--s-3); font-size: 17px; line-height: 1.3; color: var(--ink); }
.hm-pages figcaption b { display: block; font: 700 15px/1.2 var(--sign); text-transform: uppercase; letter-spacing: .07em; color: var(--acc); margin-bottom: 2px; }
.hm-safe { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: var(--s-3); align-items: start; margin-top: var(--s-6); max-width: 40em;
  padding: var(--s-4) var(--pad); background: var(--green-bg); border-radius: var(--r-in); font-size: 18px; line-height: 1.4; color: var(--ink); }
.hm-safe svg { width: 26px; height: 26px; color: var(--green); }
.hm-get2 { display: flex; width: 100%; max-width: 520px; min-height: 64px; margin-top: var(--s-5); font-size: 24px; }   /* same size as the hero button */

/* 2. the three paid guides: white cards, each in its own book accent (label + link). cover | label, title, what is in it;
   then the price tag and "See the book" under the title. */
.hm-guides { padding: var(--sec) 0; background: #e9e7e0; scroll-margin-top: var(--head); }
.hm-guides h2, .ht-home-h h2, .hm-free h2 { font-size: 30px; }   /* one section-heading size on the page (the counter band keeps base.css) */
.ht-home-h a { display: inline-flex; align-items: center; min-height: 44px; }
.ht-home .ht-p { font-size: 17px; line-height: 1.4; }   /* homepage how-to cards: larger body text (owner, 2026-11-16) */
.hm-gsub { margin-top: var(--s-2); font-size: 19px; color: var(--body); }
.hm-rows { list-style: none; padding: 0; margin: var(--sec-head) 0 0; display: grid; gap: var(--s-4); }
.hm-row { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "img t" "img go";
  column-gap: var(--s-4); row-gap: var(--s-3); align-items: center; align-content: center; height: 100%;
  padding: var(--pad); background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); text-decoration: none; color: var(--body);
  transition: transform .2s var(--ease); }
.hm-row::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--sh-2); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); }   /* the raised shadow fades in (opacity only) */
.hm-row.fix { --acc: #1d4f7a; }
.hm-row.bnd { --acc: #1f6f6a; }
.hm-row.pan { --acc: #5f6b2a; }
.hm-row img { grid-area: img; width: 76px; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 6px 10px -6px rgba(0,0,0,.5); }
.hm-row-t { grid-area: t; align-self: end; }
.hm-for { display: block; font: 700 16px/1.2 var(--sign); text-transform: uppercase; letter-spacing: .06em; color: var(--acc); margin-bottom: var(--s-1); }
.hm-row-t b { display: block; font-size: 21px; line-height: 1.2; color: var(--ink); }
.hm-meta { display: block; margin-top: var(--s-1); font-size: 18px; line-height: 1.3; color: #3d4145; }
.hm-row-go { grid-area: go; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.hm-row .price-tag { transition: transform .25s var(--ease); }
.hm-see { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; font-size: 18px; font-weight: 700; color: var(--acc);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.arw { width: 20px; height: 20px; flex: none; transition: transform .25s var(--ease); }
.hm-see .arw { width: 18px; height: 18px; }
.hm-row:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) {
  .hm-row:hover { transform: translateY(-2px); }
  .hm-row:hover::after { opacity: 1; }
  .hm-row:hover .hm-see { text-decoration-thickness: 3px; }
  .hm-row:hover .price-tag { transform: rotate(-3.5deg) scale(1.05); }   /* the tag tips toward the pointer */
  .hm-alt a:hover .arw { transform: translateY(2px); }
  .hm-row:hover .arw { transform: translateX(3px); }
  .hm-alt a:hover { color: var(--ink); }
}

/* 3. the set: three covers on the counter band (overrides the band's single-cover rule) */
.hm-fan { display: flex; justify-content: center; }
.counter .hm-fan img { width: 92px; border-radius: 2px; box-shadow: 0 2px 3px rgba(0,0,0,.5), 0 24px 34px -16px rgba(0,0,0,.95); }
.counter .hm-fan img + img { margin-left: calc(var(--s-3) * -1); }   /* small overlap: every title stays readable */
.counter .hm-fan img:nth-child(1) { transform: rotate(-7deg) translateY(6px); }
.counter .hm-fan img:nth-child(2) { position: relative; z-index: 1; transform: translateY(-4px); }
.counter .hm-fan img:nth-child(3) { transform: rotate(7deg) translateY(6px); }
@media (max-width: 759px) { .counter .hm-fan img { width: 60px; } .counter .hm-fan img + img { margin-left: -10px; } }
@media (max-width: 370px) { .counter .hm-fan img { width: 48px; } }   /* phone: a small fan beside the heading (base.css counter row) */
.counter .hm-set-p { margin-top: var(--s-4); line-height: 1; }
.counter .hm-set-p + .anchor { margin-top: var(--s-4); }

/* 5. one short reminder of the free guide (the full offer is the hero): a small cover, the title, an outline button */
.hm-free { padding-top: var(--sec); }
.hm-free-in { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: var(--s-4) var(--s-5); align-items: center;
  padding: var(--pad); background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); }
.hm-free-in > img { width: 76px; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 8px 14px -8px rgba(0,0,0,.55); }
.hm-free h2 .hm-for { margin-bottom: var(--s-2); }
.hm-free-btn { margin-top: var(--s-4); min-height: 56px; }   /* the same action as the hero, so the same yellow button */
@media (max-width: 479px) { .hm-free h2 { font-size: 24px; } .hm-free-btn { width: 100%; } .hm-free-in > div { display: contents; } .hm-free-btn { grid-column: 1 / -1; margin-top: 0; } }
@media (hover: hover) and (pointer: fine) { .hm-free-btn:hover .arw { transform: translateX(3px); } }

/* 6. who makes these, two lines */
.hm-who { padding: var(--s-7) 0 var(--s-7); }   /* its own room before the footer */
.hm-who-in { }
.hm-who p { max-width: 60ch; font-size: 18px; color: var(--ink); }
@media (max-width: 479px) { .hm-who b { display: block; margin-bottom: var(--s-1); } }   /* phone: the label on its own line */
.hm-who p + p { margin-top: var(--s-3); }
.hm-who b { color: var(--ink); }

@media (max-width: 370px) {
  .hm-hero-in { grid-template-columns: 104px minmax(0, 1fr); }
  .hm-hero h1 { font-size: 34px; }
  .hm-get { font-size: 21px; }
}
@media (min-width: 760px) {
  .hm-hero-in { grid-template-columns: minmax(0, 1fr) 260px; column-gap: var(--s-7); grid-template-areas: "t art" "o art"; align-items: center; }
  .hm-offer { display: block; grid-area: o; max-width: 520px; }
  .hm-hero h1 { font-size: 50px; }
  .hm-pages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hm-art { margin-top: 0; }
  .hm-what { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s-4); }
  .hm-get { width: 100%; }
  .hm-rows { max-width: 720px; }
  .counter-in { grid-template-columns: 300px 1fr; gap: var(--s-7); align-items: center; }   /* the fan centred on the offer */
  .counter .hm-fan img { width: 100px; }
}
@media (min-width: 1000px) {
  .hm-hero { padding: var(--s-8) 0 var(--s-8); }
  .hm-hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: var(--s-8); }
  .hm-kick { font-size: 20px; }
  .hm-hero h1 { font-size: 68px; }
  .hm-sub { font-size: 24px; margin-top: var(--s-4); max-width: 22em; }
  .hm-what { margin-top: var(--s-6); font-size: 20px; }
  .hm-what .price-tag--lg b { font-size: 48px; }
  .hm-get { min-height: 70px; font-size: 26px; }
  .hm-assure { font-size: 18px; }
  .hm-alt a { font-size: 19px; }
  .hm-art { max-width: 430px; justify-self: center; width: 100%; aspect-ratio: 430 / 470; }
  .hm-art-pg { width: 66%; }
  .hm-art-cv { width: 74%; }
  .hm-gsub { font-size: 20px; }
  .hm-rows { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
  /* three across: the text starts at the top, the price row sits on the card's bottom line, so all three tags line up */
  .hm-row { grid-template-columns: 108px minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: var(--s-5); align-items: start; align-content: stretch; }
  .hm-row img { align-self: start; }
  .hm-row-t { align-self: start; }
  .hm-row-go { align-self: end; }
  .hm-row-t b { font-size: 22px; }
  .counter-in { grid-template-columns: 400px 1fr; gap: var(--s-8); }
  .counter .hm-fan img { width: 128px; }
  .hm-guides h2, .ht-home-h h2, .hm-free h2 { font-size: 44px; }
  .hm-free h2 { font-size: 32px; }
  .hm-inside h2 { font-size: 44px; }
  .hm-isub { font-size: 20px; }
  .hm-pages { gap: var(--s-5); }
  .hm-pages figcaption { font-size: 19px; }
  .ht-home .ht-p { font-size: 18px; }
  .hm-free-in { grid-template-columns: 110px minmax(0, 1fr); max-width: 760px; }
  .hm-free-in > img { width: 110px; }
  .hm-row img { width: 108px; }
}

/* motion: one authored moment on load. The cover is set down on its page while the page slides in under it, then the
   "Free" tag is stamped (transform/opacity only, done by .8s, no loops). Every other price tag stamps once when it
   comes into view (script in the page). */
@keyframes hm-set-down { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }   /* ends at none: no resampled pixels at rest */
@keyframes hm-page-in { from { opacity: 0; transform: translate(-14px, 10px); } to { opacity: 1; transform: none; } }
@keyframes hm-stamp { from { transform: scale(1.08) rotate(-4deg); } to { transform: rotate(-1.5deg); } }   /* the price is never hidden or faded */
@media (prefers-reduced-motion: no-preference) {
  .hm-art-pg { animation: hm-page-in .6s var(--ease) .05s both; }
  .hm-art-cv { animation: hm-set-down .55s var(--ease) .12s both; }
  .price-tag[data-stamp].stamp-in { animation: hm-stamp .3s cubic-bezier(.2,.8,.3,1) backwards; }   /* backwards: hover can tilt it afterwards */
  .stamp-wait:not(.stamp-late) .hm-what .price-tag.stamp-in { animation-delay: .45s; }   /* on load: after the cover lands */
}
@media (prefers-reduced-motion: reduce) {
  .hm-art-pg, .hm-art-cv { animation: none !important; }
  .hm-row, .arw, .hm-row .price-tag { transition: none; }
  .hm-row:hover, .hm-row:active, .arw { transform: none !important; }
  .hm-row:hover .price-tag { transform: rotate(-1.5deg) !important; }
}
