/* The Contracting Store public website. Colours from the logo; one family (Inter, shipped by
   Frappe, OFL); heavy headings echo the wordmark. One construction touch: the site-tape stripe. */

@font-face {
	font-family: "Inter";
	src: url("/fonts/InterVariable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--royal: #0342cd;
	--royal-deep: #022f94;
	--sky: #2992ff;
	--sky-wash: #e6f0ff;
	--amber: #ffa10e;
	--yellow: #fec804;
	--navy: #0e1629;
	--ink: #26324a;
	--muted: #5b6475;
	--paper: #f4f7fc;
	--surface: #ffffff;
	--line: #d9e1ee;
	--danger: #b42318;
	--ok: #127a43;
	--radius-s: 6px;
	--radius-m: 10px;
	--radius-l: 18px;
	--max: 1120px;
	--focus: 0 0 0 3px #ffffff, 0 0 0 6px var(--sky);
	color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	font-feature-settings: "cv11", "ss01";
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--royal); text-underline-offset: 3px; }
a:hover { color: var(--royal-deep); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-s); }

h1, h2, h3 { color: var(--navy); line-height: 1.12; margin: 0; letter-spacing: -0.022em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 850; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); font-weight: 820; }
h3 { font-size: 1.2rem; font-weight: 720; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

.skip {
	position: absolute; left: 12px; top: -60px; z-index: 10;
	background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--radius-s);
}
.skip:focus { top: 12px; }

/* Site tape: the one construction touch, at the very top of every page. */
.tape {
	height: 7px;
	background: repeating-linear-gradient(-45deg, var(--amber) 0 14px, var(--navy) 14px 28px);
}

.test-banner {
	background: var(--yellow);
	color: var(--navy);
	font-size: 0.9rem;
	font-weight: 600;
	text-align: center;
	padding: 6px 12px;
}

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 560; font-size: 0.98rem; }
.nav a:hover { color: var(--royal); }
.nav a[aria-current="page"] { color: var(--royal); }
.nav .btn { color: #fff; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px;
	border-radius: var(--radius-m); border: 2px solid var(--royal);
	background: var(--royal); color: #fff;
	font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--royal-deep); border-color: var(--royal-deep); color: #fff; }
.btn-quiet { background: transparent; color: var(--royal); }
.btn-quiet:hover { background: var(--sky-wash); color: var(--royal-deep); border-color: var(--royal); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* Hero */
.hero { background: var(--surface); padding: 72px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lead { font-size: 1.22rem; color: var(--muted); margin-top: 22px; max-width: 34rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .fine { margin-top: 18px; font-size: 0.92rem; color: var(--muted); }

/* The product panel sits inside the logo's hexagon. */
.hex-stage { position: relative; display: grid; place-items: center; min-height: 460px; }
.hex-stage::before,
.hex-stage::after {
	content: ""; position: absolute; aspect-ratio: 0.866;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hex-stage::before { width: min(100%, 470px); background: var(--royal); }
.hex-stage::after { width: min(82%, 385px); background: var(--sky); }

.panel {
	position: relative; z-index: 1;
	width: min(100%, 420px);
	background: var(--surface);
	border-radius: var(--radius-l);
	box-shadow: 0 30px 60px -28px rgba(3, 30, 90, 0.55);
	padding: 22px 22px 18px;
}
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.panel-head strong { color: var(--navy); font-size: 1.05rem; }
.panel-head span { color: var(--muted); font-size: 0.82rem; }
.panel-total { margin: 14px 0 12px; padding: 14px 16px; border-radius: var(--radius-m); background: var(--sky-wash); }
.panel-total small { display: block; color: var(--muted); font-size: 0.82rem; }
.panel-total b { color: var(--navy); font-size: 1.7rem; font-weight: 820; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.panel table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.panel td { padding: 9px 0; border-top: 1px solid var(--line); }
.panel td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 620; }
.panel .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 9px; vertical-align: 1px; }
.panel .note { margin-top: 10px; font-size: 0.78rem; color: var(--muted); }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 44px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }

/* Modules: grouped by who uses them, a list rather than identical cards. */
.modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 56px; }
.module { display: grid; grid-template-columns: 34px 1fr; gap: 4px 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.module .hexi {
	grid-row: span 2; width: 30px; height: 34px; margin-top: 2px;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	background: var(--royal);
}
.module:nth-child(3n + 2) .hexi { background: var(--sky); }
.module:nth-child(3n) .hexi { background: var(--amber); }
.module p { color: var(--muted); }
.soon { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: #fff3dc; color: #8a5300; font-size: 0.78rem; font-weight: 650; vertical-align: 3px; letter-spacing: 0; }

/* How it works: a real sequence, so numbered. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
	content: counter(step);
	position: absolute; top: 0; left: 0; width: 46px; height: 52px;
	display: grid; place-items: center;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	background: var(--navy); color: #fff; font-weight: 800; font-size: 1.15rem;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 25px; left: 58px; right: -16px; height: 2px; background: var(--line); }
.steps p { color: var(--muted); margin-top: 8px; }

/* Region strip */
.regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; }
.regions div { border-top: 3px solid var(--royal); padding-top: 14px; }
.regions div:nth-child(2) { border-color: var(--sky); }
.regions div:nth-child(3) { border-color: var(--amber); }
.regions strong { display: block; color: var(--navy); font-size: 1.35rem; font-weight: 800; }
.regions span { display: block; margin-top: 4px; color: var(--muted); }

/* Closing call to action: navy band, no logo on it (the JPG logo is for light backgrounds). */
.cta-band { background: var(--navy); color: #d6deec; padding: 64px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band .btn { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.cta-band .btn:hover { background: var(--yellow); border-color: var(--yellow); }

/* FAQ */
.faq { max-width: 50rem; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 680; color: var(--navy); list-style-position: outside; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 36px; font-size: 0.95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer img { height: 40px; width: auto; }
.site-footer p { color: var(--muted); margin-top: 12px; max-width: 26rem; }
.site-footer h3 { font-size: 0.95rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--royal); text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: 0.88rem; }

/* Pricing */
.page-head { padding: 64px 0 32px; }
.page-head p { margin-top: 14px; color: var(--muted); font-size: 1.12rem; max-width: 40rem; }
.period-switch { display: inline-flex; margin-top: 28px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; }
.period-switch button {
	border: 0; background: transparent; font: inherit; font-weight: 650; color: var(--ink);
	padding: 8px 18px; border-radius: 99px; cursor: pointer; min-height: 40px;
}
.period-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; padding-bottom: 88px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--royal); }
.plan h2 { font-size: 1.5rem; }
.plan .price { margin: 18px 0 4px; color: var(--navy); font-size: 2.6rem; font-weight: 850; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .price-note { color: var(--muted); font-size: 0.92rem; min-height: 1.5em; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before {
	content: ""; position: absolute; left: 0; top: 0.38em; width: 13px; height: 15px; background: var(--sky);
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.plan li.limit::before { background: var(--royal); }
.empty { color: var(--muted); padding: 24px 0 88px; }

/* Forms (signup) */
.form-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; padding-bottom: 88px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 32px; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend { font-weight: 760; color: var(--navy); font-size: 1.1rem; margin-bottom: 14px; padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 620; font-size: 0.95rem; color: var(--navy); }
.field .hint { font-size: 0.86rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select {
	width: 100%; min-height: 48px; padding: 10px 14px;
	font: inherit; color: var(--navy);
	background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-m);
}
input:focus-visible, select:focus-visible { border-color: var(--sky); }
input[aria-invalid="true"] { border-color: var(--danger); }
.slug-row { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--radius-m); background: #fff; overflow: hidden; }
.slug-row:focus-within { box-shadow: var(--focus); border-color: var(--sky); }
.slug-row input { border: 0; min-width: 0; flex: 1; border-radius: 0; }
.slug-row input:focus-visible { box-shadow: none; }
.slug-row span { display: flex; align-items: center; padding: 0 14px; background: var(--paper); color: var(--muted); font-size: 0.95rem; white-space: nowrap; border-left: 1px solid var(--line); }
.status-line { font-size: 0.88rem; min-height: 1.4em; }
.status-line.ok { color: var(--ok); }
.status-line.bad { color: var(--danger); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--royal); }
.form-error { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--radius-m); background: #fdecea; color: var(--danger); font-weight: 560; }
.form-error[hidden] { display: none; }

.summary { position: sticky; top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px; }
.summary h2 { font-size: 1.2rem; }
.summary dl { margin: 18px 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; color: var(--navy); font-weight: 620; overflow-wrap: anywhere; }
.summary .total { border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.summary .fine { margin-top: 14px; font-size: 0.86rem; color: var(--muted); }
.summary .btn { width: 100%; margin-top: 20px; }
.summary a { font-size: 0.9rem; }

/* Progress: the build drawn as a building going up, floor by floor. The first step is the ground
   floor; finished floors are poured (royal), the floor in work wears the site tape, the rest are
   formwork (dashed). The list stays in reading order for screen readers; column-reverse stacks it. */
.build-page { padding: 56px 0 88px; }
.build-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.build-main h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); overflow-wrap: anywhere; }
.build-main .lead { margin-top: 12px; color: var(--muted); font-size: 1.08rem; max-width: 36rem; }
.build-count { margin-top: 26px; font-weight: 650; color: var(--navy); min-height: 1.6em; }
.tower {
	list-style: none; margin: 14px 0 0; padding: 0 0 10px;
	display: flex; flex-direction: column-reverse; gap: 5px;
	max-width: 560px;
	border-bottom: 6px solid var(--navy);
}
.tower:empty { display: none; }
.tower li {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 36px; padding: 0 14px; border-radius: 4px;
	font-size: 0.93rem; color: var(--muted);
	border: 1.5px dashed #b9c6db; background: transparent;
}
.tower li[data-state="done"] { background: var(--royal); border: 1.5px solid var(--royal); color: #fff; }
.tower li[data-state="current"] {
	border: 1.5px solid var(--navy);
	background: repeating-linear-gradient(-45deg, var(--amber) 0 14px, var(--navy) 14px 28px);
	background-size: 39.6px 39.6px;
	animation: tape 1.6s linear infinite;
}
.tower li[data-state="current"] .name { background: #fff; color: var(--navy); font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.tower li[data-state="current"] .state { background: var(--navy); color: #fff; font-size: 0.8rem; font-weight: 650; padding: 2px 10px; border-radius: 99px; }
@keyframes tape { to { background-position: 39.6px 0; } }

.build-side { display: grid; gap: 20px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px 26px; }
.side-card[hidden] { display: none; }
.side-card h2 { font-size: 1.15rem; margin-bottom: 14px; }
.side-card dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; margin: 0; }
.side-card dt { color: var(--muted); }
.side-card dd { margin: 0; text-align: right; color: var(--navy); font-weight: 620; overflow-wrap: anywhere; }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: next; }
.next-steps li { counter-increment: next; display: grid; grid-template-columns: 34px 1fr; gap: 2px 14px; }
.next-steps li::before {
	content: counter(next); grid-row: span 2; width: 30px; height: 34px;
	display: grid; place-items: center; font-weight: 800; font-size: 0.95rem;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	background: var(--line); color: var(--navy);
}
.next-steps li[data-done]::before { background: var(--royal); color: #fff; }
.next-steps strong { color: var(--navy); }
.next-steps span { color: var(--muted); font-size: 0.95rem; }
.ready-card { background: var(--navy); color: #d6deec; border-radius: var(--radius-l); padding: 26px; }
.ready-card h2 { color: #fff; font-size: 1.3rem; }
.ready-card p { margin-top: 10px; }
.ready-card .btn { margin-top: 18px; width: 100%; background: var(--amber); border-color: var(--amber); color: var(--navy); }
.ready-card .btn:hover { background: var(--yellow); border-color: var(--yellow); }
.notice { margin-top: 22px; padding: 16px 18px; border-radius: var(--radius-m); background: #fff3dc; color: #6b4100; max-width: 560px; }
.notice.bad { background: #fdecea; color: var(--danger); }
.bookmark { font-size: 0.9rem; color: var(--muted); }

/* Legal pages */
.prose { max-width: 46rem; padding-bottom: 88px; }
.prose h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.todo { background: #fff3dc; color: #6b4100; padding: 0 4px; border-radius: 4px; }

@media (max-width: 960px) {
	.hero .wrap { grid-template-columns: 1fr; gap: 40px; }
	/* The hexagons must fit inside the stage, or they cover the text above. */
	.hex-stage { min-height: 430px; overflow: hidden; }
	.hex-stage::before { width: min(90%, 350px); }
	.hex-stage::after { width: min(72%, 280px); }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.steps li::after { display: none; }
	.form-layout { grid-template-columns: 1fr; }
	.summary { position: static; }
	.build-layout { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
	body { font-size: 16px; }
	.nav a:not(.btn) { display: none; }
	.brand img { height: 38px; }
	.hero { padding: 44px 0 56px; }
	.section { padding: 60px 0; }
	.modules { grid-template-columns: 1fr; }
	.regions { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr; }
	.site-footer .wrap { grid-template-columns: 1fr; }
	.grid-2 { grid-template-columns: 1fr; }
	.form-card { padding: 22px; }
	.tower li { min-height: 34px; font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

.panel .dot-royal { background: var(--royal); }
.panel .dot-sky { background: var(--sky); }
.panel .dot-amber { background: var(--amber); }
.prose .updated { margin-top: 36px; color: var(--muted); font-size: 0.9rem; }

.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
