/* The Forgotten Hafiz landing page. Loaded after styles.css and product.css; touches only .fh-* classes. */

/* ---------- reframe ---------- */
.fh-reframe { background: var(--ivory-light); }
.fh-reframe-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
.fh-reframe .section-title { text-align: left; }
.fh-reframe .section-lead { text-align: left; margin-inline: 0; max-width: none; }
.fh-ill { margin-top: 30px; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--forest); color: var(--cream-text); position: relative; }
.fh-ill-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); border: 1px solid rgba(213,183,121,.4); padding: 4px 10px; border-radius: var(--radius-pill); }
.fh-ill p { margin-top: 14px; font-size: 16.5px; line-height: 1.6; color: rgba(240,231,214,.9); }
.fh-ill .fh-ill-end { font-family: var(--font-display); font-size: 25px; font-style: italic; color: var(--gold-pale); line-height: 1.2; }
.fh-say { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow-card); }
.fh-say > div { display: grid; grid-template-columns: 1fr 1.25fr; border-top: 1px solid var(--line); }
.fh-say > div:first-child { border-top: 0; }
.fh-say > div > span { padding: 16px 20px; font-size: 16px; line-height: 1.4; }
.fh-say > div > span:first-child { color: var(--ink-muted); border-right: 1px solid var(--line); font-style: italic; }
.fh-say > div > span:last-child { color: var(--forest); font-weight: 500; }
.fh-say-head > span { font-size: 11.5px !important; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; background: var(--forest-deep); color: var(--cream-text) !important; font-style: normal !important; }
.fh-say-head > span:last-child { color: var(--gold-light) !important; }

/* ---------- free test ---------- */
.fh-test { background: linear-gradient(180deg, var(--ivory) 0%, #F1E8D4 100%); }
.fh-test .section-lead { max-width: 720px; }
.fh-who { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.fh-who button { font: 600 15px var(--font-body); padding: 11px 20px; border-radius: var(--radius-pill); border: 1.5px solid var(--sandstone); background: var(--white); color: var(--ink); cursor: pointer; transition: all .2s var(--ease); }
.fh-who button:hover { border-color: var(--forest); }
.fh-who button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--white); }
.fh-set-note { text-align: center; margin-top: 16px; font-size: 14.5px; color: var(--ink-muted); }
.fh-pages { list-style: none; padding: 0; margin: 22px auto 0; display: grid; gap: 10px; }
.fh-pages li { display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; align-items: center; padding: 14px 18px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-md); transition: border-color .2s; }
.fh-pages li.is-done { border-color: #BFD6C6; background: #FBFDFB; }
.fh-pg-n { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.1; color: var(--ink); }
.fh-pg-n b { color: var(--forest); font-variant-numeric: lining-nums; }
.fh-pg-n small { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.fh-pg-hint { display: block; font-size: 13.5px; color: var(--ink-muted); margin-top: 2px; }
.fh-score { display: flex; gap: 6px; }
.fh-score button { min-width: 70px; padding: 9px 6px 8px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--ivory-light); cursor: pointer; font: 700 17px var(--font-display); color: var(--ink); line-height: 1.05; transition: all .18s var(--ease); }
.fh-score button small { display: block; margin-top: 3px; font: 500 10.5px var(--font-body); color: var(--ink-muted); letter-spacing: .02em; }
.fh-score button:hover { border-color: var(--forest); }
.fh-score button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--white); transform: translateY(-1px); }
.fh-score button[aria-pressed="true"] small { color: var(--gold-pale); }
.fh-progress { margin: 18px auto 0; display: flex; align-items: center; gap: 14px; font-size: 13.5px; font-weight: 500; color: var(--ink-muted); }
.fh-progress i { flex: 1; height: 6px; border-radius: 6px; background: rgba(0,0,0,.08); overflow: hidden; }
.fh-progress b { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 6px; transition: width .3s var(--ease); }
.fh-result { margin-top: 26px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 30px 32px; border-radius: var(--radius-xl); background: var(--forest); color: var(--cream-text); box-shadow: var(--shadow-lift); animation: fh-pop .5s var(--ease); }
.fh-result[hidden] { display: none; }
@keyframes fh-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.fh-result-score { text-align: center; padding: 18px 26px; border-radius: var(--radius-lg); background: rgba(255,255,255,.08); border: 1px solid rgba(213,183,121,.35); }
.fh-result-score b { display: block; font-family: var(--font-display); font-size: 72px; font-weight: 600; line-height: .9; color: var(--gold-pale); font-variant-numeric: lining-nums; }
.fh-result-score span { font-size: 14px; letter-spacing: .12em; color: var(--gold-light); }
.fh-result h3 { font-size: 30px; line-height: 1.1; color: var(--white); }
.fh-result p { margin-top: 10px; font-size: 17px; line-height: 1.55; color: rgba(240,231,214,.9); }
.fh-result .fh-result-note { font-size: 14.5px; font-style: italic; color: var(--gold-pale); }
.fh-result .pp-cta-row { margin-top: 20px; }
.fh-test-foot { text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--ink-muted); }

/* ---------- three slots + dose finder ---------- */
.fh-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.fh-slot { padding: 28px 26px; border-radius: var(--radius-lg); border: 1px solid transparent; }
.fh-slot--1 { background: #FCE6DD; border-color: #F4CFC1; }
.fh-slot--2 { background: #FFF3CC; border-color: #F0E0A0; }
.fh-slot--3 { background: #E4F2EA; border-color: #C9E2D3; }
.fh-slot-n { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(41,40,32,.6); }
.fh-slot h3 { font-size: 36px; margin-top: 6px; }
.fh-slot .fh-slot-big { margin-top: 10px !important; font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1.05; color: var(--forest); }
.fh-slot p { margin-top: 8px; font-size: 15.5px; color: #4A463D; }
.fh-slot-sub { font-size: 14.5px !important; padding-top: 12px; border-top: 1px dashed rgba(0,0,0,.15); margin-top: 14px !important; }
.fh-table-wrap { max-width: 920px; margin: 44px auto 0; }
.fh-table-title { font-size: 26px; text-align: center; }
.fh-table { width: 100%; margin-top: 18px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow-soft); font-size: 16px; }
.fh-table thead th { background: var(--forest-deep); color: var(--cream-text); text-align: left; padding: 14px 18px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.fh-table td, .fh-table tbody th { padding: 16px 18px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.fh-table tbody th { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--forest); width: 120px; }
.fh-table tbody tr:nth-child(odd) { background: #FBF8F1; }
.fh-table-note { margin-top: 12px; text-align: center; font-size: 14px; color: var(--ink-muted); }
.fh-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 920px; margin: 34px auto 0; }
.fh-day { padding: 20px 22px; border-radius: var(--radius-md); }
.fh-day b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.fh-day span { display: block; margin-top: 4px; font-size: 15px; color: #4A463D; }
.fh-day em { font-style: normal; font-weight: 700; color: #A53A22; }
.fh-day--full { background: #E4F2EA; } .fh-day--full b { color: var(--forest); }
.fh-day--short { background: #FFF3CC; } .fh-day--short b { color: #8A6D00; }
.fh-day--floor { background: #FCE6DD; } .fh-day--floor b { color: #A53A22; }
.fh-days-note { text-align: center; margin-top: 18px; font-size: 17px; color: #4A463D; }

/* ---------- first day ---------- */
.fh-first { background: var(--forest-deep); color: var(--cream-text); }
.fh-first-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.fh-first .eyebrow { color: var(--gold-light); }
.fh-first h2 { color: var(--white); font-size: clamp(34px, 4.4vw, 54px); margin-top: 12px; }
.fh-first h2 em { color: var(--gold-light); font-style: italic; }
.fh-first p { margin-top: 16px; font-size: 18px; color: rgba(240,231,214,.86); }
.fh-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; counter-reset: s; }
.fh-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; align-items: start; padding: 14px 18px; border: 1px solid rgba(213,183,121,.28); border-radius: var(--radius-md); background: rgba(255,255,255,.04); }
.fh-steps li::before { content: counter(s); grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--forest-deep); display: grid; place-items: center; font: 700 18px var(--font-display); }
.fh-steps b { font-family: var(--font-display); font-size: 23px; font-weight: 600; color: var(--white); line-height: 1.1; }
.fh-steps span { font-size: 15.5px; color: rgba(240,231,214,.82); grid-column: 2; }
.fh-steps i { font-style: normal; font-weight: 600; color: var(--gold-light); margin-left: 6px; white-space: nowrap; }
.fh-first-quote { font-family: var(--font-display); font-style: italic; font-size: 26px !important; color: var(--gold-pale) !important; }
.fh-first-art img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-dark); }

/* ---------- misc ---------- */
.fh-ramadan { margin: 22px auto 0; max-width: 640px; font-size: 16px; color: rgba(240,231,214,.82); }
.fh-ramadan[hidden] { display: none; }
.fh-ramadan b { color: var(--gold-pale); }
.fh .pp-stack-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.fh .pp-row b { color: var(--forest); }

@media (max-width: 980px) {
  .fh-reframe-grid, .fh-first-grid { grid-template-columns: 1fr; gap: 36px; }
  .fh-slots, .fh-days { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fh-pages li { grid-template-columns: 1fr; }
  .fh-score { width: 100%; }
  .fh-score button { flex: 1; min-width: 0; }
  .fh-result { grid-template-columns: 1fr; padding: 24px 20px; gap: 18px; }
  .fh-result-score { padding: 12px 20px; }
  .fh-result-score b { font-size: 56px; }
  .fh-result h3 { font-size: 26px; }
  .fh-say > div { grid-template-columns: 1fr; }
  .fh-say > div > span:first-child { border-right: 0; padding-bottom: 4px; }
  .fh-say > div > span:last-child { padding-top: 0; }
  .fh-say-head > span:last-child { display: none; }
  .fh-table { font-size: 14.5px; }
  .fh-table thead th, .fh-table td, .fh-table tbody th { padding: 12px 10px; }
  .fh-table tbody th { font-size: 22px; width: 56px; }
  .fh-slot .fh-slot-big { font-size: 30px; }
}

.fh .pp-pains li p { margin: 0; }

/* phones: keep the headline and the buy button on the first screen (Instagram in-app browser) */
@media (max-width: 640px) {
  .fh .pp-hero-grid { padding-block: 24px 28px; gap: 22px; }
  .fh .trust-pill { font-size: 10px; letter-spacing: .1em; padding: 7px 14px; line-height: 1.3; }
  .fh .trust-pill svg { display: none; }
  .fh .pp-hero h1 { font-size: clamp(34px, 9.6vw, 42px); line-height: 1.04; margin-top: 12px; }
  .fh .pp-lead { font-size: 16px; margin-top: 12px; line-height: 1.5; }
  .fh .pp-insider { padding: 12px 14px; margin-top: 14px; }
  .fh .pp-insider li { font-size: 14.5px; }
  .fh .pp-buy { margin-top: 16px; }
}

.fh-result .fh-result-alt { margin-top: 14px; font-size: 15px; color: rgba(240,231,214,.85); }
.fh-result .fh-result-alt a { color: var(--gold-pale); text-decoration: underline; text-underline-offset: 3px; }
.pp-free span a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
