/*
 * ThemeHarvest — shared page templates (About, Contact, Services, Pricing,
 * FAQ, Legal, Full width). Colours and fonts come from --thp-* variables
 * that each theme maps to its own design tokens in style.css.
 */

.thp-hero { padding: 72px 0 48px; border-bottom: var(--thp-border-w, 1px) solid var(--thp-line); }
.thp-eyebrow { font-family: var(--thp-label-font); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--thp-highlight); margin-bottom: 12px; }
.thp-title { font-family: var(--thp-head); font-weight: var(--thp-head-weight, 700); color: var(--thp-head-color, var(--thp-text)); font-size: calc(clamp(40px, 5.6vw, 76px) * var(--head-scale, 1)); line-height: 1; letter-spacing: var(--thp-head-tracking, -0.03em); max-width: 960px; }
.thp-lede { color: var(--thp-muted); font-size: 19px; line-height: 1.55; max-width: 680px; margin-top: 18px; }
.thp-updated { font-family: var(--thp-label-font); font-size: 12px; color: var(--thp-muted); margin-top: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.thp-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.thp-body { padding-top: 56px; }
.thp-section { padding-top: 88px; scroll-margin-top: 110px; }
.thp-section--first { padding-top: 0; }
.thp-narrow { max-width: 780px; }
.thp-center { text-align: center; }
.thp-muted { color: var(--thp-muted); }
.thp-more { margin-top: 20px; font-weight: 600; }
.thp-more a, .thp-center a { color: var(--thp-highlight); }
.thp-h2 { font-family: var(--thp-head); font-weight: var(--thp-head-weight, 700); color: var(--thp-head-color, var(--thp-text)); font-size: calc(clamp(30px, 3.6vw, 46px) * var(--head-scale, 1)); line-height: 1.05; letter-spacing: var(--thp-head-tracking, -0.02em); margin: 0 0 28px; }
.thp-h2 em, .thp-title em { color: var(--thp-highlight); }
.thp-h3 { font-family: var(--thp-head); font-weight: var(--thp-head-weight, 700); color: var(--thp-head-color, var(--thp-text)); font-size: 28px; line-height: 1.1; margin: 0 0 16px; }
.thp-row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.thp-row-head .thp-h2 { margin: 0; }
.thp-stack { display: flex; flex-direction: column; gap: 10px; }
.thp-stack .btn { width: 100%; }

/* Cards */
.thp-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.thp-card { background: var(--thp-card); border: var(--thp-border-w, 1px) solid var(--thp-line); border-radius: var(--thp-radius, 14px); padding: 28px; margin: 0; }
.thp-card h3 { font-family: var(--thp-head); font-weight: var(--thp-head-weight, 700); color: var(--thp-head-color, var(--thp-text)); font-size: 24px; line-height: 1.15; margin: 14px 0 8px; }
.thp-card p { color: var(--thp-muted); font-size: 15px; margin: 0 0 16px; }
.thp-card p:last-child { margin-bottom: 0; }
.thp-card--accent { background: var(--thp-soft); }
.thp-icon { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; align-items: center; justify-content: center; background: var(--thp-soft); color: var(--thp-icon, var(--thp-text)); flex: 0 0 auto; }
.thp-num { font-family: var(--thp-label-font); font-size: 13px; color: var(--thp-highlight); }

/* Stats */
.thp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: var(--thp-border-w, 1px) solid var(--thp-line); border-radius: var(--thp-radius, 14px); background: var(--thp-card); overflow: hidden; }
.thp-stat { padding: 26px 28px; border-left: 1px solid var(--thp-line); display: flex; flex-direction: column; gap: 4px; }
.thp-stat:first-child { border-left: 0; }
.thp-stat b { font-family: var(--thp-head); font-weight: var(--thp-head-weight, 700); color: var(--thp-head-color, var(--thp-text)); font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.thp-stat span { color: var(--thp-muted); font-size: 14px; }

/* Steps */
.thp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: none; }
.thp-step { background: var(--thp-card); border: var(--thp-border-w, 1px) solid var(--thp-line); border-radius: var(--thp-radius, 14px); padding: 26px; }
.thp-step__n { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; background: var(--thp-primary); color: var(--thp-primary-text); font-weight: 700; }
.thp-step h3 { font-family: var(--thp-head); font-weight: var(--thp-head-weight, 700); color: var(--thp-head-color, var(--thp-text)); font-size: 22px; margin: 16px 0 6px; }
.thp-step p { color: var(--thp-muted); font-size: 15px; margin: 0; }

/* Two columns */
.thp-split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.thp-split__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.thp-split__main { flex: 2 1 520px; min-width: 0; }
.thp-sticky { position: sticky; top: 110px; }

/* Contact */
.thp-contact-cards { display: flex; flex-direction: column; border: var(--thp-border-w, 1px) solid var(--thp-line); border-radius: var(--thp-radius, 14px); background: var(--thp-card); overflow: hidden; }
.thp-contact { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--thp-line); }
.thp-contact:first-child { border-top: 0; }
.thp-contact .thp-icon { width: 42px; height: 42px; }
.thp-contact small { display: block; font-family: var(--thp-label-font); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--thp-muted); }
.thp-contact a, .thp-contact b { color: var(--thp-head-color, var(--thp-text)); font-weight: 600; text-decoration: none; word-break: break-word; }
.thp-contact a:hover { color: var(--thp-highlight); }
.th-form__small { font-size: 13px; color: var(--thp-muted); margin: 0; }

/* Pricing */
.thp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; margin-bottom: 28px; }
.thp-plan { position: relative; background: var(--thp-card); border: var(--thp-border-w, 1px) solid var(--thp-line); border-radius: var(--thp-radius, 14px); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.thp-plan.is-featured { border: 2px solid var(--thp-accent); box-shadow: 0 24px 48px rgba(0,0,0,0.12); }
.thp-plan__tag { position: absolute; top: -13px; left: 28px; background: var(--thp-accent); color: var(--thp-accent-text); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.thp-plan__name { font-family: var(--thp-head); font-weight: var(--thp-head-weight, 700); color: var(--thp-head-color, var(--thp-text)); font-size: 30px; line-height: 1; margin: 0; }
.thp-plan__desc { color: var(--thp-muted); font-size: 15px; margin: 0; min-height: 44px; }
.thp-plan__price { font-family: var(--thp-head); font-weight: var(--thp-head-weight, 700); color: var(--thp-head-color, var(--thp-text)); font-size: 56px; line-height: 1; letter-spacing: -0.03em; }
.thp-plan__price small { font-family: var(--thp-label-font); font-size: 13px; color: var(--thp-muted); letter-spacing: 0; margin-left: 4px; }
.thp-plan .btn { width: 100%; }
.thp-plan__list { list-style: none; margin: 8px 0 0; padding: 16px 0 0; border-top: 1px solid var(--thp-line); display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.thp-plan__list li { display: flex; gap: 10px; }
.thp-plan__list li::before { content: "✓"; color: var(--thp-highlight); font-weight: 700; }

/* FAQ */
.thp-faq { border-top: var(--thp-border-w, 1px) solid var(--thp-line); }
.thp-faq details { border-bottom: 1px solid var(--thp-line); padding: 20px 0; }
.thp-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-family: var(--thp-faq-font, var(--thp-head)); font-weight: var(--thp-faq-weight, 600); color: var(--thp-head-color, var(--thp-text)); font-size: var(--thp-faq-size, 20px); line-height: 1.25; }
.thp-faq summary::-webkit-details-marker { display: none; }
.thp-faq summary::after { content: "+"; color: var(--thp-highlight); font-family: var(--thp-body, inherit); }
.thp-faq details[open] summary::after { content: "–"; }
.thp-faq details p { color: var(--thp-muted); margin: 10px 0 0; }

/* Reviews */
.thp-score { display: flex; gap: 12px; align-items: center; }
.thp-score b { font-family: var(--thp-head); font-weight: var(--thp-head-weight, 700); color: var(--thp-head-color, var(--thp-text)); font-size: 46px; line-height: 1; }
.thp-score small { display: block; color: var(--thp-muted); font-size: 13px; }
.thp-stars { color: var(--thp-star, var(--thp-accent)); letter-spacing: 2px; }
.thp-review { display: flex; flex-direction: column; gap: 14px; }
.thp-review blockquote { margin: 0; font-size: 17px; line-height: 1.5; color: var(--thp-text); flex: 1 1 auto; }
.thp-review figcaption b { display: block; color: var(--thp-head-color, var(--thp-text)); }
.thp-review figcaption small { color: var(--thp-muted); font-size: 13px; }

/* Legal */
.thp-legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.thp-legal--no-toc { grid-template-columns: minmax(0, 780px); }
.thp-toc { position: sticky; top: 110px; border-left: 2px solid var(--thp-line); padding-left: 18px; }
.thp-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.thp-toc a { color: var(--thp-muted); text-decoration: none; }
.thp-toc a:hover { color: var(--thp-highlight); }
.thp-legal__body { max-width: 780px; }
.thp-legal__body h2 { scroll-margin-top: 110px; }

/* Full width / canvas */
.thp-full { padding: 0; }
.thp-full > .alignfull { margin-left: 0; margin-right: 0; }
.thp-full > :not(.alignfull):not(.alignwide) { max-width: var(--wrap, 1280px); margin-left: auto; margin-right: auto; padding-left: 28px; padding-right: 28px; }
.thp-full > .alignwide { max-width: calc(var(--wrap, 1280px) + 120px); margin-left: auto; margin-right: auto; }

/* Social icons (footer and contact page) */
.thv-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.thv-social a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--thp-social-line, var(--thp-line)); color: var(--thp-social-color, var(--thp-text)); }
.thv-social a:hover { background: var(--thp-accent); color: var(--thp-accent-text); border-color: var(--thp-accent); }

/* Global options */
.thv-no-sticky .site-header { position: relative !important; }
.thv-no-anim *, .thv-no-anim *::before, .thv-no-anim *::after { transition: none !important; }
.thv-no-anim .packet:hover, .thv-no-anim .card:hover { transform: none !important; }

@media (max-width: 860px) {
	.thp-legal { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.thp-toc { position: static; }
	.thp-sticky { position: static; }
}
@media (max-width: 640px) {
	.thp-hero { padding: 48px 0 32px; }
	.thp-section { padding-top: 64px; }
	.thp-stat { border-left: 0; border-top: 1px solid var(--thp-line); }
	.thp-stat:first-child { border-top: 0; }
	.thp-card { padding: 22px; }
	.thp-full > :not(.alignfull):not(.alignwide) { padding-left: 16px; padding-right: 16px; }
}
