/* HrefHub site — layout and components. Colours come from theme.json presets. */

:root {
	--hh-radius: 14px;
	--hh-shadow: 0 1px 2px rgba(17, 36, 26, .06), 0 8px 24px rgba(17, 36, 26, .06);
	--hh-shadow-lg: 0 2px 6px rgba(17, 36, 26, .06), 0 24px 60px rgba(17, 36, 26, .12);
}

body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks { padding-top: 0; }
.hh-main { margin-top: 0 !important; }

/* Header ------------------------------------------------------------ */
.hh-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .88);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-top: 14px; padding-bottom: 14px;
}
.admin-bar .hh-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hh-header { top: 46px; } }

.hh-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800 !important; letter-spacing: -.03em !important; text-decoration: none; color: var(--wp--preset--color--ink) !important; font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; }
.hh-logo b { color: var(--wp--preset--color--accent); font-weight: 700; }
.hh-logo img { flex: none; width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 12px rgba(21, 128, 61, .25); }
.hh-footer .hh-logo img { width: 28px; height: 28px; }

.hh-nav .wp-block-navigation-item__content { padding: 6px 4px; }
.hh-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--accent); }
.hh-nav .hh-nav-cta > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--accent); color: #fff !important;
	padding: 8px 16px; border-radius: 9px; font-weight: 600;
}
.hh-nav .hh-nav-cta > .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--accent-dark); }
.hh-nav .wp-block-navigation__responsive-container.is-menu-open .hh-nav-cta > .wp-block-navigation-item__content { display: inline-block; margin-top: 8px; }

/* Shared type ------------------------------------------------------- */
.hh-eyebrow {
	display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .06em;
	text-transform: uppercase; color: var(--wp--preset--color--accent);
	margin-bottom: .25rem !important;
}
.hh-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--text); line-height: 1.55; }
.hh-fineprint { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.hh-meta { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }

/* Outline buttons */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--ink);
	border: 1.5px solid var(--wp--preset--color--border);
	padding-top: calc(.8rem - 1.5px); padding-bottom: calc(.8rem - 1.5px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink);
	border-color: #c7d6cc;
}

/* Hero ------------------------------------------------------------ */
.hh-hero {
	position: relative; overflow: hidden;
	padding-top: var(--wp--preset--spacing--60) !important;
	padding-bottom: var(--wp--preset--spacing--60) !important;
	margin-top: 0 !important;
	background: var(--wp--preset--color--surface);
}
.hh-hero::before { /* the big soft circle from the banner */
	content: ""; position: absolute; width: 760px; height: 760px; border-radius: 50%;
	right: -180px; top: -120px; background: var(--wp--preset--color--accent-soft); z-index: 0;
}
.hh-hero > * { position: relative; z-index: 1; }
.hh-hero__grid { gap: var(--wp--preset--spacing--50) !important; }
.hh-hero h1 { margin-top: .25rem; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.06; letter-spacing: -.04em; }
.hh-green { color: var(--wp--preset--color--accent); }
.hh-hero__buttons { margin-top: 1.75rem !important; }
.hh-hero .hh-fineprint { margin-top: .9rem; }

/* Feature chips under the hero text (banner style) */
.hh-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.hh-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: 99px; padding: 7px 14px 7px 8px; font-size: .9rem; font-weight: 600; color: var(--wp--preset--color--ink); }
.hh-chip i { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: .8rem; }
.hh-chip i.is-green { background: #dcfce7; color: #15803d; }
.hh-chip i.is-red { background: #fee2e2; color: #dc2626; }
.hh-chip i.is-orange { background: #ffedd5; color: #ea580c; }

/* Decorative dots from the banner */
.hh-dot { position: absolute; border-radius: 50%; pointer-events: none; }
.hh-dot--ring { width: 30px; height: 30px; border: 4px solid var(--wp--preset--color--warning); top: -18px; left: -22px; }
.hh-dot--green { width: 11px; height: 11px; background: var(--wp--preset--color--success); bottom: 22px; left: -26px; }
.hh-dot--red { width: 18px; height: 18px; background: var(--wp--preset--color--danger); bottom: -14px; right: 6%; }

/* Product mock — mirrors the banner screenshot */
.hh-mock { position: relative; margin: 10px 0 30px; text-align: left; font-size: .88rem; }
.hh-mock__win { background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: 14px; box-shadow: 0 2px 6px rgba(17, 36, 26, .05), 0 24px 60px rgba(17, 36, 26, .12); overflow: hidden; }
.hh-mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--wp--preset--color--border); background: #fbfcfb; }
.hh-mock__bar span { width: 10px; height: 10px; border-radius: 50%; }
.hh-mock__bar span:nth-child(1) { background: #f05f5f; } .hh-mock__bar span:nth-child(2) { background: #f5ac2e; } .hh-mock__bar span:nth-child(3) { background: #22c55e; }
.hh-mock__bar em { flex: 1; height: 14px; max-width: 200px; margin-left: 14px; border-radius: 99px; background: #eef2ef; }
.hh-mock__app { display: grid; grid-template-columns: 46px 1fr; }
.hh-mock__side { background: var(--wp--preset--color--deep); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hh-mock__side img { width: 24px; height: 24px; border-radius: 6px; }
.hh-mock__side b { display: block; width: 18px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); }
.hh-mock__main { padding: 16px 18px 10px; }
.hh-mock__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.hh-mock__top strong { font-size: 1.1rem; font-weight: 800; color: var(--wp--preset--color--ink); letter-spacing: -.02em; }
.hh-mock__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hh-mock__row { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr .9fr 52px; gap: 10px; align-items: center; padding: 10px 8px; border-top: 1px solid #edf1ee; border-radius: 6px; }
.hh-mock__head { border-top: 0; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--wp--preset--color--muted); padding-top: 4px; padding-bottom: 6px; }
.hh-mock__row.is-hot { background: #fef2f2; border-top-color: transparent; }
.hh-mock__url { color: var(--wp--preset--color--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-mock__fix { font-style: normal; display: inline-block; background: var(--wp--preset--color--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 5px; }
.hh-mock__ok { font-size: .72rem; font-weight: 700; color: var(--wp--preset--color--accent); white-space: nowrap; }
.hh-pill { font-style: normal; display: inline-block; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.hh-pill.is-danger { background: #fee2e2; color: #b91c1c; }
.hh-pill.is-warning { background: #ffedd5; color: #c2410c; }
.hh-pill.is-ok { background: #dcfce7; color: #15803d; }
.hh-mock__tags .hh-pill { border-radius: 99px; }

/* "Update link" popover */
.hh-mock__pop { position: absolute; right: -28px; top: 50%; width: 230px; background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: 12px; padding: 14px; box-shadow: 0 18px 40px rgba(17, 36, 26, .16); }
.hh-mock__pop strong { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--wp--preset--color--ink); margin-bottom: 10px; }
.hh-mock__pop strong i { width: 22px; height: 22px; border-radius: 6px; background: #ffedd5; color: #ea580c; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: .8rem; }
.hh-mock__old { background: #fef2f2; color: #b91c1c; text-decoration: line-through; border-radius: 6px; padding: 7px 10px; font-size: .8rem; margin-bottom: 8px; }
.hh-mock__new { border: 1.5px solid var(--wp--preset--color--accent); border-radius: 6px; padding: 6px 10px; font-size: .8rem; color: var(--wp--preset--color--ink); margin-bottom: 10px; }
.hh-mock__go { background: var(--wp--preset--color--accent); color: #fff; text-align: center; font-weight: 700; font-size: .8rem; padding: 9px; border-radius: 7px; }

@media (max-width: 1100px) { .hh-mock__pop { right: 8px; top: auto; bottom: -24px; } }
@media (max-width: 781px) {
	.hh-hero::before { width: 420px; height: 420px; right: -160px; top: auto; bottom: -120px; }
	.hh-mock__pop { display: none; }
	.hh-mock__row { grid-template-columns: minmax(0, 1fr) auto 52px; }
	.hh-mock__row > span:nth-child(3) { display: none; }
	.hh-dot { display: none; }
}

/* Sections ---------------------------------------------------------- */
.hh-section { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important; margin-top: 0 !important; }
.hh-section--tint { background: var(--wp--preset--color--surface); border-top: 1px solid var(--wp--preset--color--border); border-bottom: 1px solid var(--wp--preset--color--border); }
.hh-section__head { text-align: center; margin-bottom: var(--wp--preset--spacing--50) !important; }
.hh-section__head .hh-lead { margin-top: .5rem; }

/* Cards */
.hh-cards, .hh-features, .hh-pricing { gap: 20px !important; }
.hh-features + .hh-features { margin-top: 20px !important; }
.hh-card, .hh-feature, .hh-price {
	background: #fff; border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--hh-radius); padding: 26px !important; box-shadow: var(--hh-shadow);
}
.hh-card h3, .hh-feature h3, .hh-price h3 { margin-top: 0; }
.hh-card p, .hh-feature p { margin-bottom: 0; color: var(--wp--preset--color--text); }
.hh-card--accent { border-color: var(--wp--preset--color--accent); background: linear-gradient(180deg, var(--wp--preset--color--accent-soft), #fff 70%); }
.hh-feature h3::before {
	content: ""; display: block; width: 34px; height: 34px; border-radius: 9px; margin-bottom: 14px;
	background: var(--wp--preset--color--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Steps */
.hh-steps { list-style: none; counter-reset: hh; padding-left: 0 !important; }
.hh-steps > li { counter-increment: hh; position: relative; padding-left: 52px; margin-bottom: 1.1rem; }
.hh-steps > li::before {
	content: counter(hh); position: absolute; left: 0; top: -2px;
	width: 34px; height: 34px; border-radius: 50%;
	background: var(--wp--preset--color--accent); color: #fff; font-weight: 700;
	display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.hh-split { gap: var(--wp--preset--spacing--50) !important; }

/* Checklist */
.hh-checks { list-style: none; padding-left: 0 !important; }
.hh-checks > li { position: relative; padding-left: 30px; margin-bottom: .6rem; }
.hh-checks > li::before {
	content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
	background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.hh-section .hh-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 32px; max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
@media (max-width: 700px) { .hh-section .hh-checks { grid-template-columns: 1fr; } }

/* Callout */
.hh-callout {
	background: linear-gradient(135deg, #eef6f0 0%, #ffffff 60%);
	border: 1px solid #cfe5d6; border-radius: 18px;
	padding: clamp(24px, 4vw, 48px) !important;
}
.hh-callout h2 { max-width: 760px; }
.hh-callout > *:first-child { margin-top: 0; }

/* Final CTA */
.hh-cta {
	background: var(--wp--preset--color--deep); color: #cfe5d6; text-align: center;
	padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important;
	margin-top: 0 !important;
}
.hh-cta h2 { color: #fff; }

/* Inner pages ------------------------------------------------------- */
.hh-pagehead {
	background: linear-gradient(180deg, #f6f9f5, #fff);
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-top: var(--wp--preset--spacing--50) !important;
	padding-bottom: var(--wp--preset--spacing--40) !important;
	margin-top: 0 !important;
}
.hh-pagehead h1 { margin: 0; }
.hh-page { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--60); }
.hh-page h2 { margin-top: var(--wp--preset--spacing--50); }
.hh-page > .hh-cards, .hh-page > .hh-pricing { margin-top: 1.5rem; }

/* Tables */
.hh-table table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--wp--preset--color--border); border-radius: 12px; overflow: hidden; font-size: .95rem; }
.hh-table th, .hh-table td { border: 0; border-top: 1px solid var(--wp--preset--color--border); padding: 12px 14px; text-align: left; vertical-align: top; }
.hh-table thead th { border-top: 0; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); font-weight: 600; }
.hh-table thead { border-bottom: 0; }
.hh-table td:not(:first-child), .hh-table th:not(:first-child) { width: 24%; }
.hh-table--scope td:not(:first-child) { color: var(--wp--preset--color--muted); }
@media (max-width: 600px) { .hh-table table { font-size: .85rem; } .hh-table th, .hh-table td { padding: 10px; } }

/* FAQ */
.hh-faq { border: 1px solid var(--wp--preset--color--border); border-radius: 12px; padding: 0 18px; margin-top: 10px !important; }
.hh-faq summary { cursor: pointer; font-weight: 600; color: var(--wp--preset--color--ink); padding: 15px 0; }
.hh-faq[open] summary { border-bottom: 1px solid var(--wp--preset--color--border); margin-bottom: .75rem; }
.hh-faq p { margin-bottom: 15px; }

/* Docs TOC */
.hh-toc { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 12px; padding: 18px 18px 18px 38px !important; columns: 2; }
@media (max-width: 600px) { .hh-toc { columns: 1; } }

/* Pricing */
.hh-price { display: flex; flex-direction: column; }
.hh-price--featured { border: 2px solid var(--wp--preset--color--accent); position: relative; }
.hh-price--featured::before { content: "Most popular"; position: absolute; top: -12px; left: 24px; background: var(--wp--preset--color--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; letter-spacing: .03em; }
.hh-price__amount { font-size: 2rem; font-weight: 700; color: var(--wp--preset--color--ink); letter-spacing: -.03em; margin: .25rem 0 1rem !important; line-height: 1.1; }
.hh-price__amount span { font-size: 1rem; font-weight: 500; color: var(--wp--preset--color--muted); letter-spacing: 0; }

/* Waitlist form */
.hh-waitlist__form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.hh-waitlist__form input[type="email"] {
	flex: 1 1 240px; min-width: 0; font: inherit; padding: .75rem 1rem;
	border: 1.5px solid var(--wp--preset--color--border); border-radius: 10px; background: #fff; color: var(--wp--preset--color--ink);
}
.hh-waitlist__form input[type="email"]:focus { outline: none; border-color: var(--wp--preset--color--accent); box-shadow: 0 0 0 3px rgba(21, 128, 61, .18); }
.hh-waitlist__form button { cursor: pointer; border: 0; }
.hh-waitlist__note { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); margin-top: .6rem; }
.hh-waitlist__msg { padding: 12px 16px; border-radius: 10px; font-weight: 500; max-width: 520px; }
.hh-waitlist__msg--success { background: #e7f6ec; color: #0f6a2f; }
.hh-waitlist__msg--error { background: #fdecec; color: #a11d1d; }
.hh-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Blog */
.hh-postlist { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--60); }
.hh-postcard { border-bottom: 1px solid var(--wp--preset--color--border); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.hh-postcard h2 { font-size: var(--wp--preset--font-size--large); margin-top: .25rem; }
.hh-post-cta { background: var(--wp--preset--color--accent-soft); border-radius: 12px; padding: 18px 22px !important; margin-bottom: var(--wp--preset--spacing--60) !important; }

.hh-404 { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }

/* Footer ------------------------------------------------------------ */
.hh-footer { background: var(--wp--preset--color--surface); border-top: 1px solid var(--wp--preset--color--border); padding-top: var(--wp--preset--spacing--50) !important; padding-bottom: 24px !important; margin-top: 0 !important; font-size: .95rem; }
.hh-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--wp--preset--color--muted); margin-bottom: .75rem; }
.hh-footer__tag { color: var(--wp--preset--color--muted); max-width: 320px; margin-top: .75rem; }
.hh-footer__links { list-style: none; padding-left: 0 !important; margin: 0; }
.hh-footer__links li { margin-bottom: .45rem; }
.hh-footer__links a { color: var(--wp--preset--color--text); text-decoration: none; }
.hh-footer__links a:hover { color: var(--wp--preset--color--accent); }
.hh-footer__bottom { border-top: 1px solid var(--wp--preset--color--border); margin-top: var(--wp--preset--spacing--40) !important; padding-top: 18px; font-size: .82rem; color: var(--wp--preset--color--muted); }
.hh-footer__bottom p { margin: 0; }

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; border-radius: 4px; }
