:root {
  --brand: #147985;
  --brand-dark: #0b5660;
  --brand-deep: #083e46;
  --brand-soft: #e8f6f7;
  --brand-pale: #f4fbfb;
  --ink: #102f35;
  --muted: #587177;
  --line: #cfe4e6;
  --white: #ffffff;
  --warm: #f5f2eb;
  --shadow: 0 24px 70px rgba(10, 74, 82, 0.13);
  --shadow-small: 0 14px 38px rgba(10, 74, 82, 0.09);
  --radius: 28px;
  --radius-small: 18px;
  --shell: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.85rem, 7vw, 5.6rem); margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4.4vw, 3.55rem); margin-bottom: 20px; }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); margin-bottom: 12px; }
p { color: var(--muted); }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 790px); margin-inline: auto; }
.section { padding: 108px 0; }
.section-soft { background: var(--brand-pale); }
.section-dark { background: var(--ink); color: var(--white); }
.section-header { max-width: 760px; margin-bottom: 48px; }
.section-header-centred { margin-inline: auto; text-align: center; }
.section-header p { font-size: 1.12rem; }
.eyebrow {
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.section-dark .eyebrow { color: #8ed8de; }
.section-dark p { color: #c8d9dc; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #f2a341; outline-offset: 3px; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(207, 228, 230, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}
.header-inner { display: flex; min-height: 78px; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.18rem; font-weight: 850; letter-spacing: -0.035em; }
.brand img { border-radius: 11px; }
.primary-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; font-size: 0.94rem; font-weight: 700; }
.primary-nav > a:not(.button) { color: #38575d; }
.primary-nav > a:not(.button):hover { color: var(--brand); }
.menu-button { display: none; width: 46px; height: 42px; border: 0; border-radius: 12px; background: var(--brand-soft); cursor: pointer; }
.menu-button span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 2px; background: var(--ink); }

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 23px;
  border: 1px solid var(--brand);
  border-radius: 15px;
  background: var(--brand);
  color: var(--white);
  font-weight: 800;
  line-height: 1.1;
  box-shadow: 0 12px 28px rgba(20, 121, 133, 0.2);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.button:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(20, 121, 133, 0.24); }
.button-secondary { border-color: var(--line); background: var(--white); color: var(--ink); box-shadow: none; }
.button-secondary:hover { background: var(--brand-soft); color: var(--brand-dark); }
.button-dark { border-color: var(--ink); background: var(--ink); }
.button-small { min-height: 43px; padding: 10px 17px; border-radius: 12px; }
.button-row { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }

.hero { position: relative; overflow: hidden; padding: 82px 0 96px; background: linear-gradient(150deg, #fff 5%, var(--brand-pale) 64%, #e7f5f3 100%); }
.hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -240px;
  top: -320px;
  border: 1px solid rgba(20, 121, 133, 0.17);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(20, 121, 133, 0.035), 0 0 0 150px rgba(20, 121, 133, 0.025);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.72fr); align-items: center; gap: 72px; }
.hero-copy { max-width: 720px; }
.hero-copy h1 em { color: var(--brand); font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 670px; margin-bottom: 30px; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.availability { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 22px 0 0; color: #48686e; font-size: 0.9rem; font-weight: 700; }
.availability span::before { content: "✓"; margin-right: 7px; color: var(--brand); }
.phone-stage { position: relative; display: flex; justify-content: center; min-height: 620px; align-items: center; }
.phone-stage::before { content: ""; position: absolute; width: 410px; height: 410px; border-radius: 50%; background: rgba(20, 121, 133, 0.13); filter: blur(1px); }
.phone-shot { position: relative; z-index: 2; width: min(100%, 340px); filter: drop-shadow(0 30px 42px rgba(9, 54, 60, 0.25)); }
.floating-note {
  position: absolute;
  z-index: 3;
  max-width: 205px;
  padding: 15px 17px;
  border: 1px solid rgba(207, 228, 230, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-small);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.35;
}
.floating-note-top { top: 82px; right: -10px; }
.floating-note-bottom { bottom: 92px; left: -14px; }
.floating-note span { display: block; margin-bottom: 4px; color: var(--brand); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }

.trust-strip { border-block: 1px solid var(--line); background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 28px 26px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; color: var(--ink); font-size: 0.98rem; }
.trust-item span { color: var(--muted); font-size: 0.82rem; }

.intro-panel { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; }
.intro-panel p { font-size: 1.18rem; }
.mini-list { display: grid; gap: 12px; margin-top: 28px; padding: 0; list-style: none; }
.mini-list li { display: flex; gap: 10px; color: var(--ink); font-weight: 700; }
.mini-list li::before { content: ""; width: 9px; height: 9px; margin-top: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--brand); }

.feature-showcase { display: grid; gap: 34px; }
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  min-height: 610px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-small);
}
.feature-row:nth-child(even) { grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr); }
.feature-row:nth-child(even) .feature-row-copy { order: 2; }
.feature-row:nth-child(even) .feature-visual { order: 1; }
.feature-row-copy { display: flex; flex-direction: column; justify-content: center; padding: 60px; }
.feature-row-copy > p { font-size: 1.08rem; }
.feature-index { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; margin-bottom: 25px; border-radius: 15px; background: var(--brand-soft); color: var(--brand); font-size: 0.84rem; font-weight: 850; }
.benefit-list { display: grid; gap: 11px; margin: 20px 0 0; padding: 0; list-style: none; }
.benefit-list li { position: relative; padding-left: 24px; color: #38575d; font-size: 0.94rem; }
.benefit-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 900; }
.feature-visual { position: relative; display: flex; align-items: end; justify-content: center; min-height: 520px; padding: 54px 32px 0; overflow: hidden; background: linear-gradient(155deg, var(--brand-soft), #d3eeee); }
.feature-visual img { width: min(100%, 300px); filter: drop-shadow(0 22px 34px rgba(8, 62, 70, 0.23)); }
.feature-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.feature-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--white); }
.feature-card p { margin-bottom: 0; font-size: 0.94rem; }
.feature-card .feature-index { width: 42px; height: 42px; margin-bottom: 18px; }

.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: workflow; }
.workflow-card { position: relative; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--white); counter-increment: workflow; }
.workflow-card::before { content: "0" counter(workflow); display: block; margin-bottom: 28px; color: var(--brand); font-size: 0.82rem; font-weight: 850; letter-spacing: 0.12em; }
.workflow-card p { margin-bottom: 0; }

.industry-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.industry-link { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); color: var(--ink); font-size: 0.91rem; font-weight: 750; transition: color 180ms ease, border-color 180ms ease, transform 180ms ease; }
.industry-link::after { content: "→"; color: var(--brand); }
.industry-link:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-1px); }

.faq-list { display: grid; gap: 13px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.faq-item summary { position: relative; padding: 23px 58px 23px 24px; cursor: pointer; color: var(--ink); font-weight: 780; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; top: 17px; right: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); text-align: center; font-size: 1.35rem; line-height: 32px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 24px 22px; margin: 0; }

.cta-panel { position: relative; overflow: hidden; padding: 70px; border-radius: 34px; background: var(--brand); color: var(--white); }
.cta-panel::after { content: ""; position: absolute; width: 420px; height: 420px; right: -180px; bottom: -260px; border: 80px solid rgba(255,255,255,0.08); border-radius: 50%; }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { max-width: 720px; }
.cta-panel p { max-width: 690px; color: #dbf1f3; font-size: 1.08rem; }
.cta-panel .button { border-color: var(--white); background: var(--white); color: var(--brand-deep); box-shadow: none; }
.cta-panel .button-secondary { border-color: rgba(255,255,255,0.45); background: transparent; color: var(--white); }

.page-hero { padding: 72px 0 86px; background: linear-gradient(160deg, var(--brand-pale), #fff); text-align: center; }
.page-hero .narrow { display: flex; flex-direction: column; align-items: center; }
.page-hero .narrow > p:not(.eyebrow) { font-size: 1.18rem; }
.page-hero .button-row { justify-content: center; }
.breadcrumb { padding: 24px 0 0; background: var(--brand-pale); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.86rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #99b2b7; }
.breadcrumb a:hover { color: var(--brand); }

.screen-rail { overflow: hidden; padding: 70px 0; background: var(--ink); }
.screen-rail-track { display: grid; width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 220px)); justify-content: center; align-items: start; gap: 28px 20px; }
.screen-card { display: flex; width: 100%; min-width: 0; height: 100%; margin: 0; flex-direction: column; align-items: center; }
.screen-card img { width: 100%; max-width: 220px; filter: drop-shadow(0 20px 26px rgba(0,0,0,0.25)); }
.screen-card figcaption { width: 100%; min-height: 2.8em; margin-top: 14px; color: #c8d9dc; font-size: 0.8rem; line-height: 1.4; text-align: center; }
.feature-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature-detail { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--white); }
.feature-detail p:last-child { margin-bottom: 0; }
.feature-detail .practical-value { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); color: #38575d; font-size: 0.94rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tag { padding: 6px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 0.75rem; font-weight: 750; }

.steps { position: relative; display: grid; gap: 26px; }
.steps::before { content: ""; position: absolute; top: 24px; bottom: 24px; left: 31px; width: 2px; background: var(--line); }
.step-card { position: relative; display: grid; grid-template-columns: 64px 1fr minmax(230px, 0.45fr); gap: 28px; align-items: center; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--white); }
.step-number { position: relative; z-index: 1; display: flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 20px; background: var(--brand); color: var(--white); font-weight: 850; }
.step-support { padding: 16px; border-radius: 13px; background: var(--brand-soft); color: var(--brand-dark); font-size: 0.83rem; font-weight: 700; }

.industry-hero { text-align: left; }
.industry-hero .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.6fr); }
.challenge-grid, .industry-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.challenge-card, .industry-feature-card { padding: 31px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--white); }
.challenge-card p, .industry-feature-card p { margin-bottom: 0; }
.industry-feature-card { border-top: 5px solid var(--brand); }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.directory-tools { margin-bottom: 34px; }
.directory-search { width: min(100%, 620px); min-height: 56px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); color: var(--ink); }
.directory-search:focus { border-color: var(--brand); }
.directory-groups { display: grid; gap: 46px; }
.directory-group h2 { margin-bottom: 20px; font-size: 1.65rem; }
.directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.directory-empty { display: none; padding: 30px; border-radius: var(--radius-small); background: var(--brand-soft); color: var(--muted); text-align: center; }

.resource-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.65fr);
  gap: 42px;
  align-items: center;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-small);
}
.resource-feature h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.resource-feature p:last-child { margin-bottom: 0; }
.resource-feature-actions { display: grid; gap: 13px; }
.resource-feature-actions .button { width: 100%; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.resource-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--white);
  box-shadow: var(--shadow-small);
}
.resource-card .eyebrow { margin-bottom: 12px; }
.resource-card h2, .resource-card h3 { font-size: 1.35rem; }
.resource-card p { flex: 1; }
.text-link { color: var(--brand-dark); font-weight: 800; }
.text-link::after { content: " →"; }
.text-link:hover { color: var(--brand); }
.editorial-note { padding: 24px 28px; border-left: 5px solid var(--brand); border-radius: 0 var(--radius-small) var(--radius-small) 0; background: var(--brand-soft); }
.editorial-note p:last-child { margin-bottom: 0; color: #38575d; }

.article-shell { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: start; }
.article-copy { min-width: 0; }
.article-copy h2 { margin-top: 56px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.article-copy h2:first-child { margin-top: 0; }
.article-copy p { font-size: 1.05rem; }
.article-aside { position: sticky; top: 110px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--brand-pale); }
.article-aside h2 { margin-bottom: 14px; font-size: 1.2rem; }
.article-aside ol { margin: 0; padding-left: 20px; color: #38575d; }
.article-aside li { margin: 8px 0; }
.checklist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.checklist-grid li { position: relative; padding: 18px 18px 18px 49px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); font-weight: 700; }
.checklist-grid li::before { content: "✓"; position: absolute; left: 18px; color: var(--brand); font-weight: 900; }

.utility-panel { padding: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-small); }
.utility-intro { max-width: 850px; }
.sample-table { width: 100%; margin-top: 28px; border-collapse: collapse; }
.table-scroll { overflow-x: auto; }
.sample-table th, .sample-table td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.sample-table th { color: var(--brand-dark); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.sample-table td:first-child { color: var(--ink); font-weight: 750; }
.sample-table tbody tr:last-child td { border-bottom: 0; }
.utility-checks { display: flex; flex-wrap: wrap; gap: 9px; margin: 28px 0 0; padding: 0; list-style: none; }
.utility-checks li { padding: 8px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 0.82rem; font-weight: 750; }
.utility-note { margin-top: 23px; color: var(--muted); font-size: 0.82rem; }

.generator-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr); gap: 28px; align-items: start; }
.generator-controls, .invoice-preview { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--white); box-shadow: var(--shadow-small); }
.generator-controls h2, .invoice-preview h2 { font-size: 1.55rem; }
.generator-section { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--line); }
.generator-section h3 { font-size: 1.05rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.field-grid .field-wide { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; color: var(--ink); font-size: 0.84rem; font-weight: 750; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 47px;
  padding: 10px 12px;
  border: 1px solid #b9d4d7;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-weight: 500;
}
.field textarea { min-height: 86px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); outline: 3px solid rgba(20, 121, 133, 0.16); }
.line-item-editor { display: grid; grid-template-columns: minmax(0, 1fr) 92px 110px 44px; gap: 9px; align-items: end; margin-bottom: 12px; }
.icon-button { display: inline-grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: #8b3030; cursor: pointer; }
.icon-button:hover { border-color: #c97878; background: #fff3f3; }
.generator-help { margin: 18px 0 0; font-size: 0.82rem; }
.invoice-preview { position: sticky; top: 100px; min-height: 720px; }
.invoice-preview-header { display: flex; justify-content: space-between; gap: 28px; padding-bottom: 28px; border-bottom: 3px solid var(--brand); }
.invoice-preview-business strong { display: block; color: var(--ink); font-size: 1.35rem; }
.invoice-preview-meta { text-align: right; }
.invoice-preview-meta strong { display: block; color: var(--brand-dark); font-size: 1.6rem; }
.invoice-preview-addresses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; padding: 28px 0; }
.invoice-preview-addresses h3 { margin-bottom: 7px; color: var(--brand-dark); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.invoice-preview-addresses p { margin: 0; white-space: pre-line; }
.invoice-lines { width: 100%; border-collapse: collapse; }
.invoice-lines th, .invoice-lines td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.invoice-lines th:first-child, .invoice-lines td:first-child { text-align: left; }
.invoice-totals { display: grid; width: min(100%, 300px); gap: 8px; margin: 24px 0 0 auto; }
.invoice-total-row { display: flex; justify-content: space-between; gap: 20px; }
.invoice-total-row strong { color: var(--ink); }
.invoice-total-grand { margin-top: 6px; padding-top: 12px; border-top: 2px solid var(--ink); font-size: 1.15rem; }
.invoice-preview-notes { margin-top: 34px; padding: 18px; border-radius: 12px; background: var(--brand-pale); white-space: pre-line; }
.invoice-preview-notes:empty { display: none; }
.generator-print-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.tool-privacy { margin-top: 20px; padding: 16px; border-radius: 12px; background: var(--brand-soft); color: #38575d; font-size: 0.84rem; }

.legal-section { background: var(--brand-pale); }
.legal-shell { padding: 58px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-small); }
.legal-shell > h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
.legal-date { margin-bottom: 44px; font-weight: 700; }
.legal-copy { color: #38575d; }
.legal-copy h2 { margin-top: 48px; font-size: 1.55rem; }
.legal-copy h3 { margin-top: 34px; }
.legal-copy li { margin-bottom: 9px; }
.legal-copy strong { color: var(--ink); }

.site-footer { padding: 76px 0 28px; background: #0b272c; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.45fr repeat(4, 0.72fr); gap: 38px; }
.brand-footer { margin-bottom: 18px; }
.footer-brand p { max-width: 390px; color: #a9c2c6; }
.site-footer h2 { margin-bottom: 20px; color: #8ed8de; font-size: 0.75rem; letter-spacing: 0.13em; text-transform: uppercase; }
.site-footer div > a:not(.brand) { display: block; margin: 10px 0; color: #d2e0e2; font-size: 0.9rem; }
.site-footer div > a:not(.brand):hover { color: var(--white); }
.footer-link-button { display: block; margin: 10px 0; padding: 0; border: 0; background: transparent; color: #d2e0e2; font-size: 0.9rem; cursor: pointer; text-align: left; }
.footer-link-button:hover { color: var(--white); }
.store-links { display: flex; flex-wrap: wrap; gap: 10px; }
.store-links a { display: inline-flex !important; padding: 9px 12px; border: 1px solid #315157; border-radius: 10px; background: #12363c; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 58px; padding-top: 24px; border-top: 1px solid #24434a; }
.footer-bottom p { margin: 0; color: #88a4a9; font-size: 0.78rem; }

.consent-banner {
  position: fixed;
  z-index: 1200;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: min(calc(100% - 48px), 760px);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(4, 38, 43, 0.2);
}
.consent-copy h2 { margin-bottom: 7px; font-size: 1.2rem; }
.consent-copy p:last-child { margin-bottom: 0; font-size: 0.85rem; line-height: 1.5; }
.consent-copy a { color: var(--brand-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.consent-actions .button { min-width: 92px; min-height: 42px; padding: 9px 14px; font-size: 0.82rem; white-space: nowrap; }

.not-found { min-height: 65vh; display: grid; place-items: center; text-align: center; }
.not-found h1 { color: var(--brand); font-size: clamp(5rem, 15vw, 10rem); margin-bottom: 8px; }

@media (max-width: 980px) {
  .hero-grid, .industry-hero .hero-grid { grid-template-columns: 1fr 0.7fr; gap: 36px; }
  .phone-stage { min-height: 540px; }
  .feature-card-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-preview, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-detail-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .generator-layout { grid-template-columns: 1fr; }
  .invoice-preview { position: static; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .menu-button { display: block; margin-left: auto; }
  .primary-nav {
    position: fixed;
    inset: 78px 0 auto;
    display: none;
    padding: 24px 20px 30px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow-small);
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    margin-left: 0;
  }
  .primary-nav.open { display: flex; }
  .primary-nav > a { padding: 12px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .shell, .narrow { width: min(calc(100% - 30px), var(--shell)); }
  .section { padding: 76px 0; }
  .menu-button { display: block; }
  .primary-nav {
    position: fixed;
    inset: 78px 0 auto;
    display: none;
    padding: 24px 20px 30px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow-small);
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    margin-left: 0;
  }
  .primary-nav.open { display: flex; }
  .primary-nav > a { padding: 12px; }
  .hero { padding: 58px 0 68px; }
  .hero-grid, .industry-hero .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy > p:not(.eyebrow) { margin-inline: auto; }
  .hero-copy .button-row, .hero-copy .availability { justify-content: center; }
  .phone-stage { min-height: 500px; }
  .phone-shot { width: 280px; }
  .floating-note-top { right: 0; }
  .floating-note-bottom { left: 0; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .intro-panel { grid-template-columns: 1fr; gap: 18px; }
  .resource-feature, .article-shell { grid-template-columns: 1fr; gap: 30px; }
  .article-aside { position: static; }
  .feature-row, .feature-row:nth-child(even) { grid-template-columns: 1fr; min-height: 0; }
  .feature-row:nth-child(even) .feature-row-copy, .feature-row:nth-child(even) .feature-visual { order: initial; }
  .feature-row-copy { padding: 38px 28px; }
  .feature-visual { min-height: 430px; }
  .feature-card-grid, .workflow-grid, .challenge-grid, .industry-feature-grid, .directory-grid { grid-template-columns: 1fr; }
  .industry-preview, .related-grid { grid-template-columns: 1fr 1fr; }
  .cta-panel { padding: 45px 28px; border-radius: 24px; }
  .page-hero { padding: 58px 0 66px; }
  .page-hero .narrow > p:not(.eyebrow) { font-size: 1.06rem; }
  .screen-rail { padding: 54px 0; }
  .screen-rail-track { width: min(calc(100% - 30px), var(--shell)); grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 210px)); gap: 30px 16px; }
  .step-card { grid-template-columns: 56px 1fr; gap: 18px; }
  .step-number { width: 56px; height: 56px; }
  .step-support { grid-column: 2; }
  .steps::before { left: 58px; }
  .legal-shell { padding: 35px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .consent-banner { right: 15px; bottom: 15px; width: calc(100% - 30px); grid-template-columns: 1fr; align-items: stretch; gap: 20px; padding: 22px; }
  .consent-actions { justify-content: stretch; }
  .consent-actions .button { flex: 1 1 210px; white-space: normal; }
}

@media (max-width: 470px) {
  h1 { font-size: 2.55rem; }
  .button-row { flex-direction: column; align-items: stretch; }
  .button-row .button { width: 100%; }
  .availability { display: grid; gap: 7px; text-align: left; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .floating-note { max-width: 170px; font-size: 0.74rem; }
  .screen-rail-track { grid-template-columns: minmax(0, 260px); }
  .feature-card-grid, .industry-preview, .related-grid { grid-template-columns: 1fr; }
  .resource-grid, .checklist-grid, .field-grid, .invoice-preview-addresses { grid-template-columns: 1fr; }
  .resource-feature, .utility-panel, .generator-controls, .invoice-preview { padding: 25px 20px; }
  .line-item-editor { grid-template-columns: minmax(0, 1fr) 76px 94px; }
  .line-item-editor .icon-button { grid-column: 3; justify-self: end; }
  .invoice-preview-header { flex-direction: column; }
  .invoice-preview-meta { text-align: left; }
  .sample-table thead { display: none; }
  .sample-table, .sample-table tbody, .sample-table tr, .sample-table td { display: block; }
  .sample-table tr { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .sample-table td { padding: 3px 0; border: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .consent-actions { flex-direction: column-reverse; }
  .consent-actions .button { width: 100%; flex-basis: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .button-row, .screen-rail { display: none !important; }
  .section { padding: 30px 0; }
  body { color: #000; }
}
