/* ==========================================================================
   HostGuard marketing pages -- self-contained, namespaced (hgw_).
   No @import, no external fonts/CDN. Mobile-first, responsive.
   Palette: trustworthy teal/blue for an uptime-monitoring product.
   ========================================================================== */

.hgw_page {
	--hgw-primary:      #0d9488; /* teal-600 */
	--hgw-primary-dark: #0f766e; /* teal-700 */
	--hgw-accent:       #0ea5e9; /* sky-500 */
	--hgw-ink:          #0f172a; /* slate-900 */
	--hgw-body:         #334155; /* slate-700 */
	--hgw-muted:        #64748b; /* slate-500 */
	--hgw-line:         #e2e8f0; /* slate-200 */
	--hgw-soft:         #f1f5f9; /* slate-100 */
	--hgw-bg:           #f8fafc; /* slate-50  */
	--hgw-white:        #ffffff;
	--hgw-success:      #15803d;
	--hgw-success-bg:   #dcfce7;
	--hgw-error:        #b91c1c;
	--hgw-error-bg:     #fee2e2;
	--hgw-radius:       14px;
	--hgw-shadow:       0 1px 2px rgba(15,23,42,.06), 0 10px 30px rgba(15,23,42,.06);
	--hgw-shadow-lg:    0 20px 45px rgba(13,148,136,.18);

	color: var(--hgw-body);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.hgw_page * { box-sizing: border-box; }

.hgw_page h1, .hgw_page h2, .hgw_page h3, .hgw_page h4 {
	color: var(--hgw-ink);
	line-height: 1.2;
	margin: 0 0 .5em;
	font-weight: 700;
	letter-spacing: -.01em;
}
.hgw_page p { margin: 0 0 1rem; }
.hgw_page a { color: var(--hgw-primary-dark); }

/* ---- layout helpers ---- */
.hgw_wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
}
.hgw_section { padding: 56px 0; }
.hgw_section--soft { background: var(--hgw-bg); }
.hgw_section__head {
	max-width: 720px;
	margin: 0 auto 40px;
	text-align: center;
}
.hgw_section__head h2 { font-size: 1.9rem; }
.hgw_section__head p { color: var(--hgw-muted); font-size: 1.05rem; margin: 0; }
.hgw_eyebrow {
	display: inline-block;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--hgw-primary);
	margin-bottom: 12px;
}

/* ---- buttons ---- */
.hgw_btn {
	display: inline-block;
	padding: 13px 26px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
	text-align: center;
}
.hgw_btn:hover { transform: translateY(-2px); }
.hgw_btn--primary {
	background: var(--hgw-primary);
	color: var(--hgw-white);
	box-shadow: 0 8px 20px rgba(13,148,136,.28);
}
.hgw_btn--primary:hover { background: var(--hgw-primary-dark); color: #fff; }
.hgw_btn--secondary {
	background: transparent;
	color: var(--hgw-ink);
	border-color: var(--hgw-line);
}
.hgw_btn--secondary:hover { border-color: var(--hgw-primary); color: var(--hgw-primary-dark); }
.hgw_btn--ghost {
	background: rgba(255,255,255,.14);
	color: #fff;
	border-color: rgba(255,255,255,.4);
}
.hgw_btn--ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.hgw_btn--block { display: block; width: 100%; }

/* ---- hero ---- */
.hgw_hero {
	background:
		radial-gradient(1200px 500px at 80% -10%, rgba(14,165,233,.35), transparent 60%),
		linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #0891b2 100%);
	color: #fff;
	padding: 72px 0 76px;
	position: relative;
}
.hgw_hero h1 {
	color: #fff;
	font-size: 2.25rem;
	max-width: 16ch;
}
.hgw_hero__lead {
	color: rgba(255,255,255,.9);
	font-size: 1.15rem;
	max-width: 52ch;
	margin: 0 0 28px;
}
.hgw_hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hgw_hero__note {
	margin: 22px 0 0;
	font-size: .9rem;
	color: rgba(255,255,255,.75);
}

/* ---- generic grid ---- */
.hgw_grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .hgw_grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  {
	.hgw_grid--3 { grid-template-columns: repeat(3, 1fr); }
	.hgw_grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) { .hgw_grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---- cards ---- */
.hgw_card {
	background: var(--hgw-white);
	border: 1px solid var(--hgw-line);
	border-radius: var(--hgw-radius);
	padding: 28px 24px;
	box-shadow: var(--hgw-shadow);
	transition: transform .15s ease, box-shadow .15s ease;
}
.hgw_card:hover { transform: translateY(-4px); box-shadow: var(--hgw-shadow-lg); }
.hgw_card h3 { font-size: 1.15rem; margin-bottom: .4em; }
.hgw_card p { color: var(--hgw-muted); margin: 0; font-size: .98rem; }
.hgw_icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: var(--hgw-soft);
	color: var(--hgw-primary);
	font-size: 1.5rem;
	margin-bottom: 16px;
}

/* ---- how it works (steps) ---- */
.hgw_steps { counter-reset: hgw-step; }
.hgw_step { position: relative; padding-top: 8px; }
.hgw_step__num {
	counter-increment: hgw-step;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--hgw-primary);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	margin-bottom: 14px;
}
.hgw_step__num::before { content: counter(hgw-step); }

/* ---- feature detail rows ---- */
.hgw_feature {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
	align-items: start;
	padding: 24px;
	border: 1px solid var(--hgw-line);
	border-radius: var(--hgw-radius);
	background: var(--hgw-white);
	box-shadow: var(--hgw-shadow);
}
@media (min-width: 640px) { .hgw_feature { grid-template-columns: 56px 1fr; } }
.hgw_feature h3 { font-size: 1.1rem; }
.hgw_feature p { color: var(--hgw-muted); margin: 0; }
.hgw_feature ul { margin: 10px 0 0; padding-left: 18px; color: var(--hgw-muted); }
.hgw_feature li { margin-bottom: 4px; }

/* ---- CTA band ---- */
.hgw_band {
	background: linear-gradient(135deg, #0f766e 0%, #0891b2 100%);
	color: #fff;
	border-radius: 20px;
	padding: 44px 32px;
	text-align: center;
	box-shadow: var(--hgw-shadow-lg);
}
.hgw_band h2 { color: #fff; font-size: 1.7rem; }
.hgw_band p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 auto 24px; }
.hgw_band__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---- pricing ---- */
.hgw_pricing { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 620px)  { .hgw_pricing { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hgw_pricing { grid-template-columns: repeat(4, 1fr); } }
.hgw_plan {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--hgw-white);
	border: 1px solid var(--hgw-line);
	border-radius: var(--hgw-radius);
	padding: 28px 22px;
	box-shadow: var(--hgw-shadow);
}
.hgw_plan--featured {
	border-color: var(--hgw-primary);
	box-shadow: 0 0 0 2px var(--hgw-primary), var(--hgw-shadow-lg);
}
.hgw_plan__ribbon {
	position: absolute;
	top: -12px;
	right: 18px;
	background: var(--hgw-accent);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 999px;
	box-shadow: 0 6px 14px rgba(14,165,233,.4);
}
.hgw_plan__name { font-size: 1.1rem; color: var(--hgw-ink); margin-bottom: 6px; }
.hgw_plan__price { font-size: 2rem; font-weight: 800; color: var(--hgw-ink); line-height: 1.1; }
.hgw_plan__price span { font-size: .95rem; font-weight: 600; color: var(--hgw-muted); }
.hgw_plan__meta { font-size: .82rem; color: var(--hgw-muted); margin: 2px 0 18px; }
.hgw_plan__feats { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.hgw_plan__feats li {
	display: flex;
	gap: 10px;
	align-items: baseline;
	padding: 8px 0;
	border-bottom: 1px solid var(--hgw-soft);
	font-size: .95rem;
}
.hgw_plan__feats li::before { content: "\2713"; color: var(--hgw-primary); font-weight: 700; }
.hgw_plan__feats li.hgw_no::before { content: "\2013"; color: var(--hgw-muted); }
.hgw_plan__feats b { color: var(--hgw-ink); font-weight: 700; }

/* ---- FAQ ---- */
.hgw_faq { max-width: 800px; margin: 0 auto; }
.hgw_faq details {
	background: var(--hgw-white);
	border: 1px solid var(--hgw-line);
	border-radius: 12px;
	margin-bottom: 12px;
	box-shadow: var(--hgw-shadow);
	overflow: hidden;
}
.hgw_faq summary {
	cursor: pointer;
	padding: 18px 20px;
	font-weight: 600;
	color: var(--hgw-ink);
	list-style: none;
	position: relative;
	padding-right: 44px;
}
.hgw_faq summary::-webkit-details-marker { display: none; }
.hgw_faq summary::after {
	content: "+";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.4rem;
	color: var(--hgw-primary);
	font-weight: 400;
}
.hgw_faq details[open] summary::after { content: "\2013"; }
.hgw_faq details > p { margin: 0; padding: 0 20px 18px; color: var(--hgw-muted); }

/* ---- about ---- */
.hgw_prose { max-width: 760px; margin: 0 auto; }
.hgw_prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.hgw_prose p { color: var(--hgw-body); font-size: 1.05rem; }

/* ---- contact ---- */
.hgw_contact { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hgw_contact { grid-template-columns: 1.4fr 1fr; } }
.hgw_form {
	background: var(--hgw-white);
	border: 1px solid var(--hgw-line);
	border-radius: var(--hgw-radius);
	padding: 28px;
	box-shadow: var(--hgw-shadow);
}
.hgw_field { margin-bottom: 18px; }
.hgw_field label { display: block; font-weight: 600; color: var(--hgw-ink); margin-bottom: 6px; font-size: .95rem; }
.hgw_input, .hgw_textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--hgw-line);
	border-radius: 10px;
	font: inherit;
	color: var(--hgw-ink);
	background: var(--hgw-white);
	transition: border-color .12s ease, box-shadow .12s ease;
}
.hgw_input:focus, .hgw_textarea:focus {
	outline: none;
	border-color: var(--hgw-primary);
	box-shadow: 0 0 0 3px rgba(13,148,136,.15);
}
.hgw_textarea { min-height: 140px; resize: vertical; }
.hgw_consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: .92rem;
	color: var(--hgw-muted);
	line-height: 1.5;
}
.hgw_consent input { margin-top: 3px; flex: 0 0 auto; }
.hgw_info {
	background: var(--hgw-soft);
	border-radius: var(--hgw-radius);
	padding: 28px;
}
.hgw_info h3 { font-size: 1.1rem; }
.hgw_info p { color: var(--hgw-body); font-size: .98rem; }
.hgw_info a { font-weight: 600; }

/* ---- note (ajax response) ---- */
.hgw_note {
	margin-top: 6px;
	margin-bottom: 16px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: .95rem;
	border: 1px solid transparent;
}
.hgw_note--ok  { background: var(--hgw-success-bg); color: var(--hgw-success); border-color: #86efac; }
.hgw_note--err { background: var(--hgw-error-bg);   color: var(--hgw-error);   border-color: #fca5a5; }

/* ---- legal / placeholder ---- */
.hgw_legal { max-width: 800px; margin: 0 auto; }
.hgw_legal h2 { font-size: 1.3rem; margin-top: 1.8em; padding-top: 1em; border-top: 1px solid var(--hgw-line); }
.hgw_legal h2:first-of-type { border-top: 0; }
.hgw_intro { color: var(--hgw-muted); font-size: 1.05rem; }
.hgw_placeholder {
	font-style: italic;
	color: var(--hgw-muted);
	background: var(--hgw-soft);
	border-left: 3px solid var(--hgw-accent);
	padding: 10px 14px;
	border-radius: 0 8px 8px 0;
	margin: 0 0 8px;
}

/* ---- responsive type bump ---- */
@media (min-width: 768px) {
	.hgw_hero { padding: 96px 0 100px; }
	.hgw_hero h1 { font-size: 3rem; }
	.hgw_section { padding: 72px 0; }
	.hgw_section__head h2 { font-size: 2.2rem; }
	.hgw_band { padding: 56px 48px; }
}
