/* Tremhost Growth Engine — front end */
:root { --thg-primary: #13223a; --thg-accent: #ff6f6f; --thg-wa: #1fa855; --thg-radius: 10px; --thg-ink: #13223a; --thg-muted: #5b6777; --thg-line: #e3e7ee; --thg-bg: #fff; }

.thg-btn { font: inherit; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 44px; padding: .7em 1.2em; border-radius: var(--thg-radius); border: 1px solid var(--thg-line); background: var(--thg-bg); color: var(--thg-ink); font-weight: 600; text-decoration: none; line-height: 1.2; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.thg-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(19,34,58,.12); }
.thg-btn--primary { background: var(--thg-accent); border-color: var(--thg-accent); color: #fff; }
.thg-btn:focus-visible, .thg-bar__btn:focus-visible, .thg-finder button:focus-visible { outline: 3px solid var(--thg-primary); outline-offset: 2px; }

/* ---------- sticky bar ---------- */
.thg-bar { position: fixed; z-index: 9990; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--thg-primary); box-shadow: 0 -6px 20px rgba(0,0,0,.18); }
.thg-bar__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff !important; font-weight: 600; font-size: 15px; text-decoration: none !important; }
.thg-bar__btn--primary { background: var(--thg-accent); }
.thg-bar__btn--wa { background: var(--thg-wa); }
@media (max-width: 782px) { body:has(.thg-bar) { padding-bottom: 72px; } }
@media (min-width: 783px) {
	.thg-bar { left: auto; right: 22px; bottom: 22px; padding: 0; background: none; box-shadow: none; }
	.thg-bar__btn { display: none; }
	.thg-bar__btn--wa { display: inline-flex; flex: none; min-height: 54px; padding: 0 20px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
}

/* ---------- trust strip ---------- */
.thg-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0; padding: 0; list-style: none; color: var(--thg-ink); font-size: 15px; }
.thg-trust li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.thg-trust svg { color: var(--thg-wa); flex: none; }
.thg-trust--stack { flex-direction: column; }

/* ---------- pricing table ---------- */
.thg-pt { margin: 24px 0; }
.thg-pt__toggle { display: inline-flex; margin: 0 auto 20px; padding: 4px; border-radius: 999px; background: #eef1f6; }
.thg-pt__toggle button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--thg-ink); font-weight: 600; cursor: pointer; }
.thg-pt__toggle button[aria-pressed="true"] { background: var(--thg-primary); color: #fff; }
.thg-pt__toggle button span { font-size: 12px; color: var(--thg-accent); margin-left: 4px; }
.thg-pt__toggle button[aria-pressed="true"] span { color: #ffd1d1; }
.thg-pt__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.thg-pt__card { position: relative; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--thg-line); border-radius: 14px; background: var(--thg-bg); }
.thg-pt__card.is-featured { border: 2px solid var(--thg-accent); }
.thg-pt__badge { position: absolute; top: -12px; left: 22px; padding: 3px 10px; border-radius: 999px; background: var(--thg-accent); color: #fff; font-size: 12px; font-weight: 700; }
.thg-pt__card h3 { margin: 0 0 4px; color: var(--thg-ink); }
.thg-pt__tag { margin: 0 0 14px; color: var(--thg-muted); font-size: 14px; }
.thg-pt__price strong { display: block; font-size: 30px; color: var(--thg-ink); }
.thg-pt__price small { display: block; margin: 2px 0 14px; color: var(--thg-muted); }
.thg-pt__price .thg-btn { width: 100%; }
.thg-pt[data-period="annual"] [data-show="monthly"], .thg-pt[data-period="monthly"] [data-show="annual"] { display: none; }
.thg-pt__features { margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--thg-ink); }
.thg-pt__features li { padding: 6px 0; border-top: 1px solid var(--thg-line); }

/* ---------- lead form ---------- */
.thg-lead { max-width: 640px; color: var(--thg-ink); }
.thg-lead__title { margin: 0 0 6px; }
.thg-lead__title { font-size: 22px; line-height: 1.25; }
.thg-lead__text { margin: 0 0 16px; color: var(--thg-muted); font-size: 15px; line-height: 1.5; }
.thg-lead__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .thg-lead__grid { grid-template-columns: 1fr; } }
.thg-lead label { display: block; font-size: 14px; font-weight: 600; }
.thg-lead label span { font-weight: 400; color: var(--thg-muted); }
.thg-lead input[type=text], .thg-lead input[type=email], .thg-lead input[type=tel], .thg-lead input[type=url] { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 8px 12px; border: 1px solid #c9d1dc; border-radius: 8px; font-size: 16px; background: #fff; color: var(--thg-ink); box-sizing: border-box; }
.thg-lead__consent { display: flex !important; gap: 8px; align-items: flex-start; margin: 14px 0; font-weight: 400 !important; }
.thg-lead__consent input { margin-top: 3px; }
.thg-lead .thg-btn { width: 100%; margin-top: 4px; }
.thg-lead__msg { min-height: 1.2em; margin: 10px 0 0; font-size: 14px; }
.thg-lead__msg.is-ok { color: #157a3b; }
.thg-lead__msg.is-err { color: #b42318; }
.thg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- modal ---------- */
.thg-modal[hidden] { display: none; }
.thg-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.thg-modal__backdrop { position: absolute; inset: 0; background: rgba(10,18,32,.6); }
.thg-modal__panel { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; padding: 28px 24px 22px; border-top: 5px solid var(--thg-accent); border-radius: 14px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.thg-modal__x { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--thg-muted); cursor: pointer; }
html.thg-noscroll { overflow: hidden; }

/* ---------- plan finder ---------- */
.thg-finder { max-width: 680px; padding: 24px; border: 1px solid var(--thg-line); border-radius: 14px; background: #f7f9fc; color: var(--thg-ink); }
.thg-finder__q { margin: 0 0 14px; font-size: 20px; font-weight: 700; }
.thg-finder__opts { display: grid; gap: 10px; }
.thg-finder__opts button { min-height: 52px; padding: 12px 16px; border: 1px solid #c9d1dc; border-radius: 10px; background: #fff; color: var(--thg-ink); font-size: 16px; text-align: left; cursor: pointer; }
.thg-finder__opts button:hover { border-color: var(--thg-accent); }
.thg-finder__back { margin-top: 14px; padding: 6px 0; border: 0; background: none; color: var(--thg-muted); text-decoration: underline; cursor: pointer; }
.thg-finder__eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--thg-muted); }
.thg-finder__result h3 { margin: 4px 0; }
.thg-finder__price strong { font-size: 26px; }
.thg-finder__result .thg-btn { margin: 6px 6px 0 0; }
.thg-finder__small { font-size: 13px; color: var(--thg-muted); }

@media (prefers-reduced-motion: reduce) { .thg-btn { transition: none; } .thg-btn:hover { transform: none; } }

/* ---------- personalised cards ---------- */
.thg-foryou { display: grid; gap: 16px; margin: 24px 0; container-type: inline-size; }
.thg-foryou__title { margin: 0; color: var(--thg-ink); }
/* Full row or single column, never a 2 + 1 orphan. */
.thg-foryou__grid { display: grid; grid-template-columns: repeat(var(--thg-cols, 3), minmax(0, 1fr)); gap: 16px; }
@container (max-width: 760px) { .thg-foryou__grid { grid-template-columns: minmax(0, 1fr); } }
@supports not (container-type: inline-size) { @media (max-width: 860px) { .thg-foryou__grid { grid-template-columns: minmax(0, 1fr); } } }
.thg-reco { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--thg-line); border-radius: 14px; background: var(--thg-bg); color: var(--thg-ink); min-width: 0; }
.thg-reco__eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--thg-accent); }
.thg-reco__title { margin: 0; font-size: 20px; line-height: 1.25; color: var(--thg-ink); }
.thg-reco__text { margin: 0; color: var(--thg-muted); font-size: 15px; }
.thg-reco__price { margin: 0; font-weight: 700; color: var(--thg-ink); }
.thg-reco .thg-btn { margin-top: auto; align-self: flex-start; }
.thg-reco--continue { background: #f3f6fb; border-style: dashed; }
.thg-reco--continue .thg-reco__eyebrow { color: var(--thg-primary); }
@media (prefers-reduced-motion: no-preference) { .thg-foryou[data-thg-personalised] .thg-reco { animation: thg-in .25s ease both; } }
@keyframes thg-in { from { opacity: .4; } to { opacity: 1; } }
