/* Aeroqua business valuation site. Type: Montserrat for headings, Inter for text (SIL Open Font License, bundled). */

@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --teal: #145EA0;
  --teal-dark: #0E4578;
  --green: #1C2B33;
  --slate: #1E2D38;
  --slate-dark: #15212A;
  --accent: #1F78CC;
  --leaf: #58A8F8;
  --sand: #E3EBF4;
  --sand-light: #F1F5FA;
  --grey: #F7F9FC;
  --surface: #FFFFFF;
  --ink: #1C2B33;
  --ink-soft: #55626E;
  --rule: #D8DFE7;
  --tint: #E6F0FA;
  --warn-bg: #FBF3DF;
  --warn-ink: #6B4B0A;
  --head: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
  --pill: 999px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0; color: var(--green); }
h1 { font-weight: 300; text-transform: uppercase; letter-spacing: 0.01em; font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h1 strong { font-weight: 700; display: block; }
h2 { font-weight: 700; font-size: 1.45rem; }
h3 { font-weight: 600; font-size: 1.05rem; color: var(--ink); }
p { margin: 0 0 1em; max-width: 70ch; }
.figures { font-family: var(--head); font-variant-numeric: lining-nums tabular-nums; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* Preview bar */
.preview-bar { background: var(--warn-bg); color: var(--warn-ink); font-size: 0.83rem; padding: 7px 0; border-bottom: 1px solid #E9D9AE; }
.preview-bar .wrap { max-width: none; }

/* Header: white corner with the logo, white pill menu, blue contact pill */
.site-head { position: relative; background: var(--sand-light); min-height: 112px; }
.site-head .corner {
  position: absolute; left: 0; top: 0; width: 290px; height: 150px; z-index: 2;
  background: #fff; border-radius: 0 0 100% 0 / 0 0 100% 0; box-shadow: 0 4px 18px rgba(28, 43, 51, 0.10);
  display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 6px 0 0 30px; text-decoration: none;
}
.site-head .corner img { display: block; width: 104px; height: auto; margin-left: 14px; }
.wordmark { font-family: var(--head); color: var(--teal); text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; font-size: 1.02rem; line-height: 1.25; display: block; }
.wordmark small { display: block; font-family: var(--head); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin: -2px 0 0 12px; }
.site-head .wrap { max-width: none; display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 22px 34px 0 310px; flex-wrap: wrap; }
.site-nav { display: flex; align-items: center; gap: 4px; background: #fff; border-radius: var(--pill); padding: 6px 18px; box-shadow: 0 2px 10px rgba(28, 43, 51, 0.10); flex-wrap: wrap; }
.site-nav a { font-family: var(--head); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); text-decoration: none; padding: 9px 14px 8px; border-bottom: 4px solid transparent; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* Buttons: pills */
.btn {
  display: inline-block; font-family: var(--head); font-weight: 600; font-size: 0.9rem; line-height: 1.2; letter-spacing: 0.01em;
  padding: 12px 26px; border-radius: var(--pill); border: 2px solid #fff; background: var(--teal); color: #fff;
  box-shadow: 0 0 0 2px var(--teal), 0 6px 16px rgba(20, 94, 160, 0.18); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--teal-dark); color: #fff; box-shadow: 0 0 0 2px var(--teal-dark), 0 6px 16px rgba(20, 94, 160, 0.25); }
.btn.slate { background: var(--slate); box-shadow: 0 0 0 2px var(--slate), 0 6px 16px rgba(30, 45, 56, 0.2); }
.btn.slate:hover { background: var(--slate-dark); box-shadow: 0 0 0 2px var(--slate-dark); }
.btn.quiet { background: #fff; color: var(--teal); border-color: var(--teal); box-shadow: none; }
.btn.quiet:hover { background: var(--tint); color: var(--teal-dark); }
.actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Page intro (hero) */
.intro { background: var(--sand-light); padding: 70px 0 60px; }
.intro .wrap { display: flex; flex-direction: column; align-items: flex-end; text-align: left; }
.intro .wrap > * { width: min(100%, 620px); }
.intro .tag { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.95rem; color: var(--green); margin: 14px 0 0; line-height: 1.5; }
.intro .lede { font-size: 1.06rem; color: var(--ink-soft); margin-top: 18px; }
.intro .actions { margin-top: 24px; }
.intro.plain { padding: 56px 0 40px; }
.intro.plain .wrap { align-items: flex-start; }
.intro.plain .wrap > * { width: auto; max-width: 760px; }

/* The equation band */
.equation { background: var(--teal); color: #fff; }
.equation .wrap { padding-top: 50px; padding-bottom: 46px; }
.eq-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1.15fr; align-items: start; gap: 22px; }
.eq-cell .num { font-family: var(--head); font-weight: 300; font-variant-numeric: lining-nums tabular-nums; font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.05; white-space: nowrap; display: block; }
.eq-cell .cap { display: block; margin-top: 10px; color: #CFE0F2; font-size: 0.95rem; max-width: 30ch; }
.eq-cell.answer .num { font-weight: 700; background: linear-gradient(90deg, #8CC6FA, #D6EBFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eq-op { font-family: var(--head); font-weight: 300; font-size: clamp(1.6rem, 3.4vw, 2.6rem); color: #8FB5DA; line-height: 1.25; }
.eq-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 34px; max-width: 760px; }
.eq-controls label { display: block; font-size: 0.9rem; color: #DCE8F5; margin-bottom: 8px; }
.eq-controls input[type="range"] { width: 100%; accent-color: #8CC6FA; }
.eq-note { margin-top: 26px; color: #CFE0F2; font-size: 0.93rem; max-width: 74ch; }
.eq-note a { color: #fff; }

/* Sections: centred heading, content below */
.terms { padding-top: 8px; padding-bottom: 20px; }
.term { padding: 56px 0; border-top: 1px solid var(--rule); }
.term:first-child { border-top: 0; }
.term > h2 { text-align: center; margin-bottom: 30px; }
.term > .sub { text-align: center; color: var(--ink-soft); margin: -16px auto 30px; max-width: 62ch; }
.term .body > :last-child { margin-bottom: 0; }

.plain-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 40px; text-align: center; }
.plain-list li h3 { margin-bottom: 6px; color: var(--green); }
.plain-list li p { margin: 0 auto; color: var(--ink-soft); font-size: 0.95rem; max-width: 30ch; }

.rows { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rows > li { background: var(--grey); border-radius: 18px; padding: 28px 26px 26px; display: flex; flex-direction: column; }
.rows > li:nth-child(2) { background: var(--slate); color: #fff; }
.rows > li:nth-child(2) h3 { color: #fff; }
.rows > li:nth-child(2) p { color: #E3E7EC; }
.rows > li:nth-child(2) a { color: #fff; }
.rows h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; color: var(--green); }
.rows > li > div { display: flex; flex-direction: column; flex: 1; }
.rows p { margin: 0 0 0.9em; color: var(--ink-soft); font-size: 0.96rem; }
.rows p:last-child { margin: auto 0 0; padding-top: 8px; font-family: var(--head); font-weight: 600; font-size: 0.9rem; }

.steps { margin: 0 auto; padding: 0; list-style: none; counter-reset: step; max-width: 780px; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 18px 0; border-top: 1px solid var(--rule); align-items: start; }
.steps > li:first-child { border-top: 0; padding-top: 0; }
.steps > li::before { content: counter(step, decimal-leading-zero) "."; font-family: var(--head); font-size: 1.35rem; font-weight: 700; color: var(--accent); line-height: 1.25; }
.steps h3 { margin-bottom: 4px; color: var(--green); }
.steps p { margin: 0; color: var(--ink-soft); }

/* Method lists */
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.methods > div { background: var(--grey); border-radius: 18px; padding: 26px 26px 22px; }
.methods h3 { font-size: 1.08rem; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.methods .what { color: var(--ink-soft); font-size: 0.93rem; margin-bottom: 14px; }
.methods ul { margin: 0; padding-left: 18px; }
.methods li { margin-bottom: 8px; font-size: 0.96rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.two > div { border: 1px solid var(--rule); border-radius: 18px; padding: 26px; }
.two h3 { font-size: 1.08rem; font-weight: 700; color: var(--green); margin-bottom: 10px; }
.two p:last-child { margin-bottom: 0; }
.refs { max-width: 820px; margin: 0 auto; padding-left: 20px; }
.refs li { margin-bottom: 10px; }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }

/* Closing call to action strip */
.cta { background: var(--grey); padding: 54px 0; text-align: center; }
.cta .wrap { display: flex; gap: 26px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta p { margin: 0; font-family: var(--head); font-weight: 700; font-size: 1.3rem; color: var(--slate); max-width: none; }
.cta p span { background: linear-gradient(90deg, var(--accent), var(--leaf)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.note { background: var(--warn-bg); color: var(--warn-ink); border-left: 4px solid #C9A227; border-radius: 0 10px 10px 0; padding: 14px 18px; font-size: 0.93rem; margin: 0 0 24px; max-width: 86ch; }
.note p { margin: 0; max-width: none; }

/* The "for reference only" notice on the estimate */
.caution { border: 1px solid var(--rule); border-left: 6px solid var(--teal); border-radius: 0 18px 18px 0; background: var(--grey); padding: 24px 28px 22px; margin: 34px 0 6px; }
.caution h2 { font-size: 1.12rem; margin-bottom: 10px; }
.caution p { max-width: 96ch; }
.caution ul { margin: 6px 0 14px; padding-left: 20px; columns: 2; column-gap: 44px; }
.caution li { margin-bottom: 7px; break-inside: avoid; font-size: 0.95rem; }
.caution p:last-child { margin-bottom: 0; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }

/* Tables */
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 6px 0 22px; }
table.data th, table.data td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data th { font-family: var(--head); font-weight: 600; font-size: 0.82rem; color: var(--ink-soft); }
table.data td.num, table.data th.num { text-align: right; padding-right: 0; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
table.data tr.total td { border-top: 2px solid var(--green); border-bottom: 0; font-weight: 600; }
table.data .group td { padding-top: 18px; font-weight: 600; }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 48px; padding: 36px 0 72px; align-items: start; }
.calc fieldset { border: 0; border-top: 1px solid var(--rule); margin: 0; padding: 26px 0 8px; }
.calc fieldset:first-of-type { border-top: 0; padding-top: 0; }
.calc legend { font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--green); padding: 0; margin-bottom: 14px; float: left; width: 100%; }
.calc legend + * { clear: both; }
.field { margin-bottom: 20px; max-width: 520px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 4px; }
.field .hint { display: block; color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 7px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #9AA6B3; border-radius: 10px; padding: 11px 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field .money { position: relative; }
.field .money::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.field .money input { padding-left: 28px; font-variant-numeric: tabular-nums; }
.field .error { color: #9B2C1F; font-size: 0.9rem; margin-top: 5px; display: none; }
.field.invalid .error { display: block; }
.field.invalid input { border-color: #9B2C1F; }
.check { display: flex; gap: 10px; align-items: flex-start; max-width: 520px; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--teal); }

.result { position: sticky; top: 20px; background: var(--surface); border: 1px solid var(--rule); border-top: 6px solid var(--teal); border-radius: 18px; padding: 26px 26px 24px; box-shadow: 0 8px 26px rgba(28, 43, 51, 0.08); }
.result h2 { font-size: 1.02rem; font-weight: 600; }
.result .empty { color: var(--ink-soft); margin: 14px 0 0; }
.result .headline { font-family: var(--head); font-variant-numeric: lining-nums tabular-nums; font-size: 2.3rem; font-weight: 700; color: var(--teal); line-height: 1.1; margin: 12px 0 2px; }
.result .sub { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 18px; }
.range { margin: 6px 0 22px; }
.range .bar { position: relative; height: 10px; background: var(--tint); border-radius: 5px; }
.range .bar .fill { position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--accent), var(--leaf)); border-radius: 5px; }
.range .bar .mid { position: absolute; top: -5px; width: 4px; height: 20px; background: var(--green); border-radius: 2px; transform: translateX(-2px); }
.range .ends { display: flex; justify-content: space-between; margin-top: 9px; font-family: var(--head); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; font-size: 0.98rem; }
.range .ends small { display: block; font-family: var(--sans); font-weight: 400; color: var(--ink-soft); font-size: 0.8rem; }
.range .ends div:last-child { text-align: right; }
.result table.data { font-size: 0.92rem; margin-bottom: 14px; }
.result .eq-line { background: var(--tint); border-radius: 10px; padding: 12px 14px; font-variant-numeric: lining-nums tabular-nums; font-size: 0.97rem; margin: 0 0 16px; }
.result .actions { margin-top: 18px; }
.result .fine { font-size: 0.82rem; color: var(--ink-soft); margin: 16px 0 0; }

/* Prose pages (legal, about) */
.prose { padding: 40px 0 72px; max-width: 760px; }
.prose h2 { margin: 38px 0 12px; font-size: 1.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; max-width: 70ch; }
.prose li { margin-bottom: 6px; }
.blank { padding: 70px 0 110px; color: var(--ink-soft); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; padding: 44px 0 72px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 18px 0; border-top: 1px solid var(--rule); }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list .k { display: block; font-family: var(--head); font-weight: 600; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 2px; }
.contact-list .v { font-family: var(--head); font-weight: 600; font-size: 1.1rem; }

/* Footer: slate */
.site-foot { background: var(--slate); color: #E3E7EC; font-size: 0.93rem; }
.site-foot .wrap { padding-top: 50px; padding-bottom: 34px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1.3fr 0.8fr 0.8fr; gap: 40px; }
.site-foot h2 { font-family: var(--head); font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.site-foot h2.minor { font-size: 0.88rem; }
.site-foot a { color: #fff; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot .btn { background: transparent; border-color: #fff; box-shadow: none; margin-top: 14px; padding: 12px 30px; }
.site-foot .btn:hover { background: rgba(255, 255, 255, 0.12); }
.foot-legal { border-top: 1px solid #40505E; margin-top: 34px; padding-top: 20px; color: #CBD2DA; font-size: 0.8rem; }
.foot-legal p { max-width: 110ch; }

/* Cookie notice */
.cookie { position: fixed; left: 20px; right: 20px; bottom: 20px; max-width: 620px; margin: 0 auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; box-shadow: 0 10px 30px rgba(31, 43, 42, 0.25); padding: 18px 22px; z-index: 50; }
.cookie p { margin: 0 0 12px; font-size: 0.9rem; max-width: none; }
.cookie .actions .btn { padding: 9px 18px; font-size: 0.85rem; }
.cookie[hidden] { display: none; }

@media (max-width: 980px) {
  .site-head .corner { width: 230px; height: 124px; padding: 2px 0 0 14px; }
  .site-head .corner img { width: 86px; margin-left: 10px; }
  .site-head .wrap { padding: 124px 20px 14px; justify-content: flex-start; }
  .site-head { min-height: 0; }
  .rows, .methods, .two { grid-template-columns: 1fr; }
  .caution ul { columns: 1; }
  .plain-list { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; gap: 28px; }
  .result { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .eq-row { grid-template-columns: 1fr; gap: 6px; }
  .eq-op { line-height: 1; }
  .eq-controls { grid-template-columns: 1fr; gap: 20px; }
  .intro { padding: 40px 0 40px; }
  .intro .wrap { align-items: flex-start; }
  .term { padding: 40px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .plain-list, .foot-grid { grid-template-columns: 1fr; }
  .site-nav { border-radius: 18px; padding: 6px 8px; }
  .site-nav a { padding: 8px 9px 7px; }
}

@media print {
  .preview-bar, .site-head, .site-foot, .cookie, .cta, .no-print, .calc form { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .calc { display: block; padding: 0; }
  .result { position: static; border: 0; padding: 0; box-shadow: none; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .range .bar .mid { transition: left 0.25s ease; }
}

/* v0.4: three scenarios and value drivers */
.result .range-headline { font-size: 1.7rem; line-height: 1.2; }
.scenarios td:first-child { width: 52%; }
.note.basis { background: var(--grey); color: var(--ink); border-left-color: var(--teal); margin: 4px 0 0; }
.drivers { margin: 48px 0 10px; }
.drivers h2 { font-size: 1.3rem; margin-bottom: 10px; }
.drivers p { max-width: 86ch; }
.table-scroll { overflow-x: auto; }
.drivers-table { min-width: 620px; }
.drivers-table td, .drivers-table th { vertical-align: top; text-align: left; padding-right: 18px; }
.drivers-table td:first-child { width: 22%; }
[hidden] { display: none !important; }
.scenarios td.num, .scenarios th.num { padding-left: 12px; white-space: nowrap; }
