/*
Theme Name: Hail of a Tool
Theme URI: https://hailofatool.com/
Author: Hail of a Tool
Description: One-page, full-screen landing theme for Hail of a Tool — the AI platform. Roofer-proven. AI-engineered. Leads to invoices in one app. Logo and Login link on top, the headline on the left, your sign-up form (loaded from pq.hailofatool.com) on the right, and four service tiles along the bottom. Edit the text in Appearance → Customize → Hail of a Tool.
Version: 1.3.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: hailofatool
*/

:root {
	--navy-900: #050c1d;
	--navy-800: #0a1730;
	--navy-700: #10224a;
	--steel: #c9d3e0;
	--steel-2: #8fa0b8;
	--ice: #9cc7ff;
	--ice-2: #6fb1ff;
	--white: #ffffff;
	--text: #e8edf5;
	--line: rgba(156, 199, 255, 0.22);
	--card: rgba(8, 18, 40, 0.72);
	--head: "Russo One", "Arial Black", sans-serif;
	--body: "Barlow", "Helvetica Neue", Arial, sans-serif;
	--radius: 6px;
	--pad: clamp(18px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.5;
	color: var(--text);
	background: var(--navy-900);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ice); }
a:hover { color: var(--white); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- The one-screen page ---------- */
.hoat {
	position: relative;
	height: 100vh;
	height: 100dvh;
	min-height: 560px;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto auto;
	overflow: hidden;
	isolation: isolate;
}
.hoat__bg { position: absolute; inset: 0; z-index: -2; background: var(--navy-900) center / cover no-repeat; transform: scale(1.04); }
.hoat__shade {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(100deg, rgba(5, 12, 29, 0.9) 0%, rgba(6, 15, 36, 0.72) 45%, rgba(8, 20, 46, 0.4) 75%, rgba(10, 26, 58, 0.3) 100%),
		linear-gradient(180deg, rgba(5, 12, 29, 0.2) 60%, rgba(5, 12, 29, 0.9) 100%);
}
.hoat__flash { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 50% 60% at 82% 18%, rgba(156, 199, 255, 0.35), transparent 70%); opacity: 0; animation: hoat-flash 9s infinite; }
.hoat__bolt { position: absolute; top: 0; z-index: -1; pointer-events: none; height: min(72vh, 620px); width: auto; mix-blend-mode: screen; }
.hoat__bolt--r { right: 0; opacity: 0.95; animation: hoat-bolt 9s infinite; }
.hoat__bolt--l { left: 0; opacity: 0.18; }
.hoat__floor { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; width: 100%; height: min(30vh, 300px); object-fit: cover; object-position: center bottom; opacity: 0.75; pointer-events: none; }
@keyframes hoat-bolt { 0%, 86%, 100% { filter: brightness(1); } 87% { filter: brightness(1.8); } 89.5% { filter: brightness(1.5); } 92% { filter: brightness(1); } }
@keyframes hoat-flash { 0%, 86%, 100% { opacity: 0; } 87% { opacity: 1; } 88% { opacity: 0.2; } 89.5% { opacity: 0.8; } 92% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hoat__flash, .hoat__bolt--r { animation: none; } }
@media (max-width: 860px) { .hoat__bolt { height: 46vh; } .hoat__bolt--l { display: none; } .hoat__bolt--r { opacity: 0.7; } }

/* Header */
.hoat-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(10px, 1.8vh, 22px) var(--pad) 0; }
.hoat-brand { display: inline-flex; align-items: center; text-decoration: none; }
.hoat-brand img { height: clamp(66px, 13.5vh, 138px); width: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55)); }
.hoat-brand .custom-logo { height: clamp(66px, 13.5vh, 138px); width: auto; }
.hoat-nav { display: flex; align-items: center; gap: 14px; }
.hoat-login {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--head); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
	color: var(--white); padding: 11px 20px; min-height: 44px;
	border: 1.5px solid rgba(201, 211, 224, 0.55); border-radius: var(--radius);
	background: rgba(8, 18, 40, 0.45); backdrop-filter: blur(4px);
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.hoat-login:hover { color: var(--navy-900); background: var(--steel); border-color: var(--steel); }
.hoat-login svg { width: 16px; height: 16px; }

/* Page menu (How it works, Real AI, ...) */
.hoat-menu { flex: 1; display: flex; justify-content: center; position: relative; min-width: 0; }
.hoat-menu__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.hoat-menu a {
	display: inline-block; padding: 8px 0; border-bottom: 2px solid transparent; text-decoration: none; color: var(--steel);
	font-family: var(--head); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
}
.hoat-menu a:hover { color: var(--white); border-bottom-color: var(--ice-2); }
.hoat-menu__mobile { display: none; }
@media (max-width: 1080px) {
	.hoat-menu__list { display: none; }
	.hoat-menu { justify-content: flex-end; }
	.hoat-menu__mobile { display: block; }
	.hoat-menu__mobile summary {
		list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 11px 18px;
		font-family: var(--head); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white);
		border: 1.5px solid rgba(201, 211, 224, 0.55); border-radius: var(--radius); background: rgba(8, 18, 40, 0.45);
	}
	.hoat-menu__mobile summary::-webkit-details-marker { display: none; }
	.hoat-menu__mobile ul {
		list-style: none; margin: 8px 0 0; padding: 8px 18px; position: absolute; z-index: 50; right: 0; top: 100%; min-width: 220px;
		background: var(--navy-800); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
	}
	.hoat-menu__mobile li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.hoat-menu__mobile li:last-child a { border-bottom: 0; }
}

/* Headline on the left, the sign-up form on the right */
.hoat-main {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
	align-items: stretch; gap: clamp(28px, 4.5vw, 80px);
	padding: clamp(10px, 2vh, 24px) var(--pad);
	min-height: 0;
	max-width: 1520px; width: 100%; margin: 0 auto;
}
.hoat-hero { align-self: center; }
.hoat-eyebrow {
	display: inline-flex; align-items: center; gap: 10px; margin: 0 0 clamp(10px, 2vh, 18px);
	font-weight: 700; font-size: clamp(12px, 1.1vw, 14px); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ice);
}
.hoat-eyebrow::before { content: ""; width: 34px; height: 2px; background: linear-gradient(90deg, var(--ice), transparent); }
.hoat-title {
	margin: 0; font-family: var(--head); font-weight: 400; text-transform: uppercase; color: var(--white);
	font-size: clamp(32px, min(4.7vw, 7vh), 80px); line-height: 0.98; letter-spacing: 0.005em;
	text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.hoat-title span { display: block; background: linear-gradient(180deg, #ffffff 0%, #c9d3e0 55%, #8fa0b8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hoat-title em { font-style: normal; display: block; color: var(--ice); background: none; -webkit-text-fill-color: var(--ice); }
.hoat-lead { margin: clamp(12px, 2.4vh, 22px) 0 0; max-width: 34em; font-size: clamp(16px, min(1.3vw, 2.2vh), 20px); line-height: 1.5; color: var(--steel); }
.hoat-quote { margin: clamp(12px, 2.2vh, 20px) 0 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--ice); max-width: 34em; }
.hoat-quote p { margin: 0; font-style: italic; font-weight: 500; font-size: clamp(15px, min(1.2vw, 2vh), 19px); line-height: 1.45; color: var(--white); }
.hoat-badges { list-style: none; margin: clamp(14px, 2.6vh, 26px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hoat-badges li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--text); }
.hoat-badges svg { width: 18px; height: 18px; color: var(--ice); flex: none; }
.hoat-mobile-cta { display: none; }
.hoat-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
	padding: 14px 36px; border: 0; border-radius: var(--radius); cursor: pointer; text-decoration: none;
	font-family: var(--head); font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy-900);
	background: linear-gradient(180deg, #ffffff 0%, #dbe6f4 45%, #a9b8cc 100%);
	box-shadow: 0 10px 28px rgba(111, 177, 255, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
	transition: transform 0.12s, box-shadow 0.12s;
}
.hoat-btn:hover { color: var(--navy-900); transform: translateY(-1px); box-shadow: 0 14px 34px rgba(111, 177, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.15); }
.hoat-btn svg { width: 18px; height: 18px; }

/* The framed form */
.hoat-formbox {
	position: relative; min-height: 0; height: 100%; max-height: 760px; align-self: center;
	display: flex; flex-direction: column;
	background: var(--navy-800); border: 1px solid rgba(201, 211, 224, 0.35); border-radius: 12px; overflow: hidden;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(156, 199, 255, 0.08);
}
.hoat-formbox::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 1; background: linear-gradient(90deg, var(--ice-2), var(--steel), var(--ice-2)); }
.hoat-formbox__bar {
	flex: none; display: flex; align-items: center; gap: 12px;
	padding: 12px 14px 10px 18px; border-bottom: 1px solid var(--line);
	background: linear-gradient(180deg, #10224a, #0a1730);
}
.hoat-formbox__bar h2 { margin: 0; flex: 1; font-family: var(--head); font-weight: 400; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); }
.hoat-formbox__newtab { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--steel); text-decoration: none; }
.hoat-formbox__newtab:hover { color: var(--white); }
.hoat-formbox__newtab svg { width: 14px; height: 14px; }
.hoat-formbox__frame { flex: 1; min-height: 0; background: #f4f6fa; }
.hoat-formbox__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.hoat-close { display: none; width: 44px; height: 44px; margin: -6px -6px -6px 0; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--steel); cursor: pointer; }
.hoat-close svg { width: 22px; height: 22px; }

/* Service strip */
.hoat-services { list-style: none; margin: 0 auto; padding: 0 var(--pad); width: 100%; max-width: 1520px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.hoat-service {
	display: flex; gap: 14px; align-items: flex-start; padding: clamp(10px, 1.8vh, 16px) clamp(12px, 1.4vw, 18px);
	background: rgba(8, 18, 40, 0.65); border: 1px solid var(--line); border-radius: 8px; backdrop-filter: blur(6px);
}
.hoat-service__icon { flex: none; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; color: var(--navy-900); background: linear-gradient(180deg, #ffffff, #a9b8cc); }
.hoat-service__icon svg { width: 22px; height: 22px; }
.hoat-service h3 { margin: 0; font-family: var(--head); font-weight: 400; font-size: clamp(13px, 1.1vw, 16px); text-transform: uppercase; letter-spacing: 0.03em; color: var(--white); line-height: 1.2; }
.hoat-service p { margin: 4px 0 0; font-size: clamp(13px, 0.95vw, 14px); line-height: 1.4; color: var(--steel); }
.hoat-step { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--ice); margin-bottom: 2px; }

/* Footer */
.hoat-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: clamp(8px, 1.6vh, 16px) var(--pad); font-size: 13px; color: var(--steel-2); }
.hoat-foot a { color: var(--steel); text-decoration: none; }
.hoat-foot a:hover { color: var(--white); }
.hoat-foot__links { display: flex; gap: 16px; }

/* ---------- Shorter screens: tighten so everything still fits ---------- */
@media (max-height: 900px) and (min-width: 861px) {
	.hoat-badges { display: none; }
}
@media (max-height: 820px) and (min-width: 861px) {
	.hoat-service p { display: none; }
	.hoat-service { align-items: center; }
}
@media (max-height: 720px) and (min-width: 861px) {
	.hoat-badges { display: none; }
	.hoat-step { display: none; }
}
@media (max-height: 600px) and (min-width: 861px) {
	.hoat-services { display: none; }
}
@media (max-width: 1100px) and (min-width: 861px) {
	.hoat-main { grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); }
	.hoat-service p { display: none; }
	.hoat-service { align-items: center; }
}

/* ---------- Tablet & phone: the form opens full screen ---------- */
@media (max-width: 860px) {
	.hoat { min-height: 0; }
	.hoat-main { grid-template-columns: 1fr; align-content: center; }
	.hoat-formbox { display: none; }
	.hoat-formbox.is-open {
		display: flex; position: fixed; z-index: 60; inset: 0; max-height: none; height: auto; align-self: stretch; justify-self: stretch;
		border-radius: 0; border: 0;
	}
	.hoat-sheet-open, .hoat-sheet-open body { overflow: hidden; }
	.hoat-close { display: inline-flex; }
	.hoat-mobile-cta { display: block; margin-top: clamp(16px, 3vh, 28px); }
	.hoat-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.hoat-service { align-items: center; padding: 10px 12px; }
	.hoat-service p, .hoat-step { display: none; }
	.hoat-service__icon { width: 34px; height: 34px; }
	.hoat-service__icon svg { width: 18px; height: 18px; }
	.hoat-service h3 { font-size: 14px; }
}
@media (min-width: 600px) and (max-width: 860px) and (min-height: 900px) {
	/* Tall tablets have room for the tile text. */
	.hoat-service { align-items: flex-start; padding: 14px; }
	.hoat-service p, .hoat-step { display: block; }
}
@media (max-width: 520px) {
	.hoat-login { padding: 9px 14px; font-size: 13px; }
	.hoat-badges li { font-size: 14px; }
	.hoat-badges { gap: 6px 14px; }
	.hoat-mobile-cta .hoat-btn { width: 100%; }
	.hoat-service h3 { font-size: 13px; }
	.hoat-foot { justify-content: center; text-align: center; padding-top: 8px; }
}
@media (max-width: 860px) {
	.hoat-badges { display: none; }
}
@media (max-width: 520px) and (max-height: 760px) {
	.hoat-lead { font-size: 15px; }
	.hoat-quote p { font-size: 15px; }
	.hoat-services { display: none; }
}
@media (max-height: 560px) and (max-width: 860px) {
	/* Phones on their side: let it scroll so it stays readable. */
	.hoat { height: auto; min-height: 100dvh; overflow: visible; }
}

/* ---------- Other pages (privacy policy etc.): normal scrolling ---------- */
.hoat-page { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); }
.hoat-page .hoat-top { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hoat-content { flex: 1; width: 100%; max-width: 780px; margin: 0 auto; padding: 48px var(--pad) 64px; }
.hoat-content h1 { font-family: var(--head); font-weight: 400; text-transform: uppercase; color: var(--white); font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 0 0 24px; }
.hoat-content h2, .hoat-content h3 { font-family: var(--head); font-weight: 400; color: var(--white); }
.hoat-content p, .hoat-content li { color: var(--text); }
