/* Home page: who it's for, a question to try, the first exercise, the rooms and About.
   Builds on styles.css and profit-challenge.css. */

/* Hero: the promise, then a question to try */
.hm-hero{display:grid;grid-template-columns:1.25fr 1fr;grid-template-rows:auto 1fr;grid-template-areas:"copy card" "cta card";column-gap:54px;align-items:start;padding:56px 0 44px}
.hm-copy{grid-area:copy}
.hm-cta{grid-area:cta}
.hm-taster{grid-area:card;align-self:center}
.hm-hero h1{font-size:clamp(33px,4.3vw,50px);max-width:16ch;text-wrap:balance}
.hm-hero h1 em{display:block;font-style:normal;color:var(--red)}
.hm-hero .lead{max-width:44ch}
.hm-hero .explain{margin-top:18px}
.hm-cta .button{margin-top:24px;font-size:15px}
.hm-cta .fine{font-size:13px;color:var(--red);font-weight:750;margin-top:14px}

/* The taster card: one question from the first exercise, on an invoice */
.hm-taster.example{padding:40px 24px 26px}
.hm-invoice{background:#fff;border:2px solid var(--line);border-radius:12px;padding:14px 16px;transform:rotate(-1.5deg)}
.hm-inv-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding-bottom:10px;border-bottom:2px solid var(--ink)}
.hm-inv-head strong{font-size:16px;font-weight:850}
.hm-inv-head span{font-size:11px;font-weight:850;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.hm-inv-line{display:flex;justify-content:space-between;gap:16px;padding:12px 0;font-size:15px;border-bottom:1px dashed var(--line)}
.hm-inv-line b{font-weight:900;font-variant-numeric:tabular-nums}
.hm-inv-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:10px;font-size:13px;color:var(--muted)}
.hm-stamp{border:2px solid var(--red);color:var(--red);border-radius:6px;padding:2px 8px;font-size:12px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;transform:rotate(-4deg)}
.hm-taster.example h2{font-size:21px;line-height:1.3;color:var(--ink);margin-top:20px}
.hm-taster.example h2 span{display:block;color:var(--red);margin-top:4px}
.hm-answers{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.hm-answers button{min-height:48px;padding:10px;border:2px solid var(--ink);border-radius:12px;background:#fff;color:var(--ink);font-size:15px;font-weight:800;line-height:1.3;transition:background .15s,transform .15s}
.hm-answers button:hover:enabled{background:var(--tint)}
.hm-answers button:active:enabled{transform:translateY(1px)}
.hm-answers button:disabled{opacity:1;border-color:var(--line);color:var(--muted)}
.hm-answers button.right{background:var(--goodbg);border-color:var(--green);color:var(--ink)}
.hm-answers button.wrong{background:var(--amberbg);border-color:var(--amber);color:var(--ink)}
.hm-reveal{margin-top:14px;padding:14px 16px;border-radius:12px;background:var(--tint);font-size:15px;line-height:1.5}
.hm-reveal p+p{margin-top:8px}
.hm-reveal a{font-weight:800;text-underline-offset:3px}

.hm-strap{padding:2px 0 40px;font-size:21px;font-weight:850;line-height:1.4;text-align:center;color:var(--ink)}
.hm-strap em{font-style:normal;color:var(--red)}

/* The exercise intro says which level this is before offering a harder one */
.hm-level{display:inline-block;font-weight:850;color:var(--ink)}

/* Rooms: one open door, then what's coming */
.hm-rooms{padding:52px 0 56px}
.hm-rooms h2{margin-bottom:22px}
.hm-open{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:26px;align-items:center;padding:26px 28px;border:2px solid var(--red);border-bottom-width:5px;border-radius:20px;background:var(--wash)}
.hm-open .room-icon{width:120px;height:120px;margin:0}
.hm-open h3{font-size:26px;font-weight:850;color:var(--red)}
.hm-open p{font-size:16px;color:var(--muted);line-height:1.6;margin-top:8px;max-width:56ch}
.hm-open .hm-inside{font-size:14px;color:var(--ink);font-weight:700}
.hm-open .available{margin:0 0 8px}
.hm-open .room-link{margin:0}
.hm-next-title{font-size:13px;font-weight:850;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:38px 0 30px}
.hm-next{display:grid;grid-template-columns:1.25fr 1fr;gap:18px}
.hm-flow{grid-row:span 2;position:relative;padding:34px 24px 22px;border:2px solid var(--line);border-bottom-width:4px;border-radius:18px;background:#fff}
.hm-flow .tab{position:absolute;top:-16px;left:20px;transform:rotate(-4deg);background:var(--yellow);padding:6px 15px;border-radius:10px;font-size:12px;letter-spacing:.02em;font-weight:850}
.hm-flow blockquote{margin:0;font-size:26px;font-weight:850;line-height:1.2;color:var(--red)}
.hm-flow .symptoms{margin:14px 0}
.hm-flow .question{font-weight:800;font-size:15px;line-height:1.5;background:var(--tint);color:var(--dark);border-radius:12px;padding:12px 14px}
.hm-room-line{display:flex;align-items:center;gap:14px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.hm-room-line img{width:56px;height:56px;flex:none}
.hm-room-line h3,.hm-soon h3{font-size:19px;font-weight:850;color:var(--ink)}
.hm-room-line p,.hm-soon p{font-size:14px;color:var(--muted);line-height:1.55;margin-top:4px}
.hm-soon{display:grid;grid-template-columns:56px minmax(0,1fr);gap:14px;align-items:center;padding:20px;border:2px solid var(--line);border-radius:18px;background:#fff}
.hm-soon img{width:56px;height:56px}
.hm-closed{display:inline-block;margin-top:10px;font-size:12px;font-weight:800;background:var(--wash);color:var(--muted);border-radius:999px;padding:4px 11px}

/* About: a face instead of a monogram */
.hm-about.about{grid-template-columns:150px 1fr;gap:30px;max-width:900px}
.hm-photo{width:150px;height:150px;border-radius:26px;object-fit:cover;object-position:50% 18%;border:2px solid var(--line);border-bottom-width:5px;background:var(--wash)}

@media(max-width:860px){
  .hm-hero{grid-template-columns:1fr;grid-template-rows:none;grid-template-areas:"copy" "card" "cta";padding:34px 0 36px}
  .hm-taster.example{max-width:430px;margin:26px auto 4px;width:calc(100% - 12px)}
  .hm-open{grid-template-columns:90px minmax(0,1fr)}
  .hm-open .room-icon{width:90px;height:90px}
  .hm-open .room-link{grid-column:1 / -1;justify-self:start}
  .hm-next{grid-template-columns:1fr}
  .hm-flow{grid-row:auto}
}
@media(max-width:560px){
  .hm-strap{font-size:18px}
  .hm-open{grid-template-columns:1fr;padding:22px}
  .hm-open .room-link{width:100%}
  .hm-about.about{grid-template-columns:1fr;gap:18px}
  .hm-photo{width:104px;height:104px;border-radius:20px}
}
@media(prefers-reduced-motion:reduce){.hm-answers button{transition:none}}
