/* Altima Inspect public website. Themes are sets of variables; Admin → Website picks one (html data-theme). */
:root, [data-theme="coastal"] {
	--bg: #f7fbfc; --surface: #ffffff; --surface-2: #eaf5f6; --text: #0f2a33; --muted: #4f6a73;
	--brand: #0e7c86; --brand-2: #f2a541; --brand-ink: #ffffff; --cta-ink: #1a1203; --line: #d5e6e9;
	--hero: linear-gradient(135deg, #0b6d76 0%, #12a3a8 60%, #e9b866 140%); --hero-ink: #ffffff;
	--radius: 16px; --font: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; --head: var(--font);
	--shadow: 0 10px 30px rgba(14, 124, 134, .12);
}
[data-theme="harbor"] {
	--bg: #f6f5f2; --surface: #ffffff; --surface-2: #ecebe6; --text: #14213d; --muted: #545d70;
	--brand: #1d3557; --brand-2: #b23a2f; --brand-ink: #ffffff; --cta-ink: #ffffff; --line: #dcdad2;
	--hero: linear-gradient(135deg, #14213d 0%, #1d3557 65%, #8c2d25 140%); --hero-ink: #ffffff;
	--radius: 6px; --font: Georgia, "Times New Roman", serif; --head: Georgia, serif;
	--shadow: 0 8px 24px rgba(20, 33, 61, .12);
}
[data-theme="storm"] {
	--bg: #0b1220; --surface: #121b2e; --surface-2: #18243b; --text: #e6edf7; --muted: #9fb0c8;
	--brand: #38bdf8; --brand-2: #facc15; --brand-ink: #04121f; --cta-ink: #1a1500; --line: #24324d;
	--hero: linear-gradient(135deg, #0b1220 0%, #13284a 60%, #0e7490 150%); --hero-ink: #ffffff;
	--radius: 14px; --font: "Segoe UI", system-ui, sans-serif; --head: var(--font);
	--shadow: 0 10px 30px rgba(0, 0, 0, .4); color-scheme: dark;
}
[data-theme="fresh"] {
	--bg: #ffffff; --surface: #ffffff; --surface-2: #f1f7f2; --text: #18241c; --muted: #56665b;
	--brand: #15803d; --brand-2: #15803d; --brand-ink: #ffffff; --cta-ink: #ffffff; --line: #e3ebe5;
	--hero: linear-gradient(180deg, #f1f7f2 0%, #ffffff 100%); --hero-ink: #18241c;
	--radius: 999px; --font: "Trebuchet MS", "Segoe UI", system-ui, sans-serif; --head: var(--font);
	--shadow: 0 6px 20px rgba(22, 163, 74, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; }
a { color: var(--brand); }
img, svg { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
section { padding: 76px 0; }
.alt { background: var(--surface-2); }
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); font-weight: 700; margin-bottom: 8px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }
.note { font-size: .88rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius); font: 700 1rem var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-cta { background: var(--brand-2); color: var(--cta-ink); }
.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: min(var(--radius), 18px); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .15s; }
a.card:hover, a.card:focus-visible { border-color: var(--brand); }
a.card h3 { color: var(--brand); }
.cmp th[scope="row"] { text-align: left; width: 30%; vertical-align: top; }
.sources { padding-left: 1.1em; }
.sources li { margin: 6px 0; }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--brand); font-size: .78rem; font-weight: 700; }
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { padding: 5px 0 5px 28px; position: relative; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 900; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 1.15rem var(--head); color: var(--text); text-decoration: none; white-space: nowrap; }
.logo b { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: .9rem; }
.site-nav { display: flex; gap: 20px; flex: 1; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.site-nav a[aria-current="page"] { color: var(--brand); }
.head-actions { display: flex; align-items: center; gap: 14px; }
.head-actions a.signin { font-weight: 700; text-decoration: none; color: var(--text); white-space: nowrap; }
.theme-toggle { background: none; border: 1px solid var(--line); border-radius: 999px; width: 38px; height: 38px; cursor: pointer; color: var(--text); font-size: 1rem; }
.site-nav .nav-signin { display: none; }
/* Small phones: the logo, the dark-mode button and the menu fit on one line; Sign in moves into the menu. */
@media (max-width: 480px) {
	.site-head .wrap { gap: 10px; }
	.logo { font-size: 1rem; gap: 8px; }
	.logo b { width: 30px; height: 30px; }
	.head-actions { gap: 8px; }
	.head-actions a.signin { display: none; }
	.site-nav .nav-signin { display: block; }
}
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--text); font-size: 1.1rem; cursor: pointer; }
@media (max-width: 1000px) {
	.menu-btn { display: block; }
	.site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 16px 22px; border-bottom: 1px solid var(--line); }
	.site-nav.open { display: flex; }
	.head-actions .btn { display: none; }
	.site-head .wrap { justify-content: space-between; }
}

/* Hero */
.hero { background: var(--hero); color: var(--hero-ink); padding: 84px 0 70px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .mock { display: none; } }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.hero .lead { color: inherit; opacity: .9; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 12px; }
.hero .small { font-size: .9rem; opacity: .85; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pills span { background: rgba(255, 255, 255, .16); padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
[data-theme="fresh"] .pills span { background: var(--surface-2); color: var(--brand); }
.page-hero { padding: 64px 0 40px; }
.page-hero.hero { padding: 70px 0 56px; }
.page-hero .wrap { display: block; }

/* Product mockup */
.mock { position: relative; height: 420px; }
.screen { position: absolute; background: var(--surface); color: var(--text); border-radius: 14px; box-shadow: 0 25px 60px rgba(0, 0, 0, .3); overflow: hidden; font: 13px/1.5 "Segoe UI", system-ui, sans-serif; }
.screen.desk { left: 0; top: 20px; width: 92%; height: 320px; }
.screen .bar { height: 28px; background: var(--surface-2); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.screen .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.screen .body { padding: 14px 16px; }
.screen .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.screen small { color: var(--muted); }
.pill { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.p-ok { background: #dcfce7; color: #166534; } .p-wait { background: #fef3c7; color: #92400e; } .p-draft { background: #e0f2fe; color: #075985; }
.screen.phone { right: 0; top: 86px; width: 186px; height: 330px; border: 8px solid #111; border-radius: 28px; }
.phone .body { padding: 10px; }
.q { background: var(--surface-2); border-radius: 10px; padding: 7px; margin-bottom: 7px; font-size: 11px; }
.q b { display: block; }
.opts { display: flex; gap: 4px; margin-top: 4px; }
.opts span { flex: 1; text-align: center; padding: 2px; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; }
.opts span.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

.strip { padding: 20px 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: center; font-weight: 700; color: var(--muted); font-size: .92rem; }

/* Steps */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; margin-top: 32px; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } }
.flow .card { position: relative; padding-top: 50px; }
.flow .card::before { counter-increment: s; content: counter(s); position: absolute; top: 16px; left: 24px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 30px; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: min(var(--radius), 18px); padding: 26px; display: flex; flex-direction: column; }
.price.best { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.price .amt { font: 800 2.3rem var(--head); margin: 6px 0; }
.price .amt small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.price ul { flex: 1; margin: 14px 0 20px; }
table.cmp { width: 100%; border-collapse: collapse; margin-top: 28px; background: var(--surface); }
table.cmp th, table.cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: .95rem; }
table.cmp th { background: var(--surface-2); }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; }
details p { color: var(--muted); margin: 10px 0 0; }
.cta-band { background: var(--hero); color: var(--hero-ink); text-align: center; border-radius: min(var(--radius), 24px); padding: 56px 24px; }
.cta-band p { opacity: .9; }

/* Text pages (legal) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose p, .prose li { color: var(--text); }
.draft-note { background: #fff4e0; color: #7a4a00; border-radius: 10px; padding: 12px 16px; font-size: .92rem; }

/* Footer */
.site-foot { padding: 48px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; background: var(--surface); }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }
.site-foot h4 { margin: 0 0 10px; color: var(--text); font-size: .95rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 6px 0; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--brand); }
.site-foot .bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.price .tag { align-self: flex-start; }

/* Contact us form and the customer's support ticket page */
.contact-grid { grid-template-columns: 3fr 2fr; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form .fld { margin-bottom: 14px; }
.contact-form .tight { gap: 14px; }
.contact-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: min(var(--radius), 10px); background: var(--bg); color: var(--text); font: inherit; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-ok, .form-err { padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; font-weight: 600; }
.form-ok { background: color-mix(in srgb, #16a34a 14%, var(--surface)); color: var(--text); }
.form-err { background: color-mix(in srgb, #dc2626 14%, var(--surface)); color: var(--text); }
.thread { display: grid; gap: 14px; }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.msg-us { background: var(--surface-2); margin-left: 40px; }
.msg-head { margin-bottom: 6px; }
.msg-body { overflow-wrap: anywhere; }
