/* ==========================================================================
   Pallets Simplified — palletssimplified.com.au
   Design system: deep navy base, teal accent, Inter, 4px spacing scale.
   ========================================================================== */

:root {
  /* Palette */
  --navy-950: #0a0e1a;
  --navy-900: #0d1424;
  --navy-800: #121b30;
  --navy-700: #1a2540;
  --ink: #101625;
  --ink-soft: #3a4354;
  --muted: #5c6577;
  --teal: #14b8a6;
  --teal-bright: #2dd4bf;
  --teal-deep: #0e9384;
  --teal-ink: #0a6f63;
  --paper: #ffffff;
  --paper-soft: #f6f8fa;
  --line: #e5e9f0;
  --line-dark: rgba(255, 255, 255, 0.09);
  --text-on-dark: #eef2f7;
  --muted-on-dark: #93a0b4;

  /* Type */
  --font: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing scale (4px base) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 22, 37, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(16, 22, 37, 0.18);
  --shadow-frame: 0 30px 60px -30px rgba(10, 14, 26, 0.55);

  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0 0 var(--s-4);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: inherit;
}

p {
  margin: 0 0 var(--s-4);
}

a {
  color: var(--teal-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

::selection {
  background: rgba(20, 184, 166, 0.25);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: var(--navy-950);
  padding: var(--s-3) var(--s-5);
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus {
  left: var(--s-4);
  top: var(--s-4);
}

/* Numerals that must line up */
.num,
.rate-table td,
.rate-table th,
.calc-output-value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.section--dark {
  background: var(--navy-950);
  color: var(--text-on-dark);
}

.section--tint {
  background: var(--paper-soft);
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: var(--s-4);
}

.section--dark .eyebrow {
  color: var(--teal-bright);
}

.section-head {
  max-width: 620px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  letter-spacing: -0.03em;
}

.section-head p {
  color: var(--muted);
  font-size: 1.0625rem;
  margin-bottom: 0;
}

.section--dark .section-head p {
  color: var(--muted-on-dark);
}

.hairline {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.8rem 1.5rem;
  font: 600 0.9375rem/1.2 var(--font);
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease,
    color 160ms ease, transform 160ms ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn .btn-arrow {
  transition: transform 160ms ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn--solid {
  background: var(--teal);
  color: var(--navy-950);
}

.btn--solid:hover {
  background: var(--teal-bright);
  color: var(--navy-950);
}

.btn--ghost-dark {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text-on-dark);
}

.btn--ghost-dark:hover {
  border-color: var(--teal-bright);
  color: var(--teal-bright);
}

.btn--ghost-light {
  border-color: #c9d1de;
  color: var(--ink);
}

.btn--ghost-light:hover {
  border-color: var(--teal-deep);
  color: var(--teal-ink);
}

.btn--lg {
  padding: 1rem 1.9rem;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 72px;
}

.brand img {
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.site-nav a {
  color: var(--muted-on-dark);
  font-size: 0.9375rem;
  font-weight: 500;
  padding-block: var(--s-2);
  border-bottom: 2px solid transparent;
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--text-on-dark);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--text-on-dark);
  border-bottom-color: var(--teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.header-login {
  color: var(--muted-on-dark);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.header-login:hover {
  color: var(--text-on-dark);
  text-decoration: none;
}

.header-cta {
  padding: 0.6rem 1.2rem;
  font-size: 0.875rem;
}

.site-nav .nav-mobile-only {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  color: var(--text-on-dark);
}

.nav-toggle svg {
  display: block;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .header-actions {
    display: none;
  }

  .site-nav .nav-mobile-only {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-950);
    border-bottom: 1px solid var(--line-dark);
    padding: var(--s-3) var(--gutter) var(--s-5);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 1.0625rem;
  }

  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--line-dark);
    color: var(--teal-bright);
  }
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  background: var(--navy-950);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}

.hero::after {
  /* faint structural grid, not a gradient blob */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 90% at 85% 10%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 10%, black 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin-bottom: var(--s-5);
}

.hero h1 em {
  font-style: normal;
  color: var(--teal-bright);
}

.hero-lede {
  font-size: 1.125rem;
  color: var(--muted-on-dark);
  max-width: 34rem;
  margin-bottom: var(--s-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}

/* Hire-clock panel */
.hire-clock {
  background: var(--navy-900);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-frame);
}

.hire-clock-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.hire-clock-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-dark);
}

.hire-clock-rows {
  display: grid;
  gap: 0;
}

.hire-clock-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line-dark);
}

.hire-clock-row:last-child {
  border-bottom: 0;
}

.hire-clock-row .period {
  color: var(--muted-on-dark);
  font-size: 0.9375rem;
}

.hire-clock-row .amount {
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.hire-clock-row.accent .amount {
  color: var(--teal-bright);
  font-size: 1.625rem;
}

.hire-clock-note {
  margin: var(--s-5) 0 0;
  font-size: 0.8125rem;
  color: var(--muted-on-dark);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hire-clock {
    max-width: 30rem;
  }
}

/* --------------------------------------------------------------------------
   Statement band (problem)
   -------------------------------------------------------------------------- */
.statement {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.statement-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.statement-mark {
  width: 44px;
  height: 4px;
  background: var(--teal);
  margin-top: 1.1rem;
}

.statement p {
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
  max-width: 46rem;
  margin: 0;
}

.statement p strong {
  color: var(--teal-ink);
}

.statement .statement-sub {
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: var(--s-4);
  letter-spacing: 0;
}

@media (max-width: 640px) {
  .statement-inner {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .statement-mark {
    margin-top: 0;
  }
}

/* --------------------------------------------------------------------------
   Feature rows (home highlights) — editorial numbered list
   -------------------------------------------------------------------------- */
.feature-rows {
  display: grid;
  border-top: 1px solid var(--line);
}

.feature-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 7fr) 3rem;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}

.feature-row:hover {
  background: var(--paper-soft);
}

.feature-row .feature-no {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal-deep);
  letter-spacing: 0.08em;
  padding-top: 0.35rem;
}

.feature-row h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.feature-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9843rem;
}

.feature-row .feature-icon {
  color: var(--teal-deep);
  justify-self: end;
  padding-top: 0.2rem;
}

@media (max-width: 760px) {
  .feature-row {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .feature-row .feature-icon {
    display: none;
  }

  .feature-row h3 {
    margin-bottom: var(--s-2);
  }

  .feature-row p {
    grid-column: 2;
  }
}

/* --------------------------------------------------------------------------
   Product showcase
   -------------------------------------------------------------------------- */
.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.showcase-side {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.frame {
  margin: 0;
}

.frame-window.is-zoomable {
  cursor: zoom-in;
}

.frame-window.is-zoomable:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 14, 26, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vh 3vw;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}

.lightbox-hint {
  position: absolute;
  bottom: 2vh;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted-on-dark);
  font-size: 0.8125rem;
}

.frame-window {
  background: var(--navy-900);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-frame);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-dark);
  background: var(--navy-800);
}

.frame-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.frame-bar span:first-child {
  background: rgba(45, 212, 191, 0.55);
}

.frame img {
  width: 100%;
}

.frame figcaption {
  margin-top: var(--s-4);
  font-size: 0.9063rem;
  line-height: 1.55;
  color: var(--muted-on-dark);
  max-width: 40rem;
}

.frame--lead figcaption {
  font-size: 0.9688rem;
}

.frame--tilt-left .frame-window {
  transform: rotate(-1.1deg);
}

.frame--tilt-right .frame-window {
  transform: rotate(0.9deg);
}

.frame--soft .frame-window {
  opacity: 0.94;
}

@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .frame--tilt-left .frame-window,
  .frame--tilt-right .frame-window {
    transform: none;
  }
}

/* Web-app section (How We Help) */
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.app-points {
  list-style: none;
  margin: 0 0 var(--s-6);
  padding: 0;
}

.app-points li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-on-dark);
}

.app-points li:first-child {
  border-top: 1px solid var(--line-dark);
}

.app-points svg {
  color: var(--teal-bright);
  margin-top: 0.25rem;
}

.app-points strong {
  color: var(--text-on-dark);
}

@media (max-width: 900px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Cost preview (home) + rate cards (cost page)
   -------------------------------------------------------------------------- */
.cost-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}

.cost-preview-cell {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-right: 1px solid var(--line);
}

.cost-preview-cell:last-child {
  border-right: 0;
}

.cost-preview-cell .equip {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-3);
}

.cost-preview-cell .range {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: var(--s-2);
}

.cost-preview-cell .range small {
  display: block;
  margin-top: var(--s-1);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.cost-preview-cell .per {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 760px) {
  .cost-preview {
    grid-template-columns: 1fr;
  }

  .cost-preview-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .cost-preview-cell:last-child {
    border-bottom: 0;
  }
}

.rate-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: start;
}

.rate-table-wrap {
  overflow-x: auto;
}

.rate-table-wrap .rate-table {
  min-width: 430px;
}

.rate-card {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.rate-card-head {
  padding: var(--s-5) var(--s-6);
  border-right: 1px solid var(--line);
  background: var(--paper-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rate-card-head h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-2);
}

.rate-card-head .sub {
  font-size: 0.8438rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 760px) {
  .rate-card {
    grid-template-columns: 1fr;
  }

  .rate-card-head {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.rate-table th {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: var(--s-4) var(--s-5) var(--s-2);
  text-align: right;
}

.rate-table td {
  padding: var(--s-3) var(--s-5);
  text-align: right;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  white-space: nowrap;
}

.rate-table td:first-child {
  font-weight: 600;
  color: var(--ink);
}

.rate-table td:last-child {
  font-weight: 600;
  color: var(--teal-ink);
}

.rate-caption {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: var(--s-4) 0 0;
}

/* Note block (illustrative-rates disclaimer) */
.note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: var(--s-5);
  max-width: 54rem;
}

.note svg {
  color: var(--teal-deep);
  margin-top: 0.15rem;
}

.note p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* Pay-twice callout on the cost page */
.pay-twice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-6);
}

.pay-twice-item {
  border-top: 2px solid var(--teal);
  padding-top: var(--s-4);
}

.pay-twice-item h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--s-2);
}

.pay-twice-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Calculator
   -------------------------------------------------------------------------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.calc-inputs {
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: grid;
  gap: var(--s-5);
  align-content: start;
}

.calc-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s-2);
}

.calc-field .hint {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: var(--s-2);
}

.calc-field select,
.calc-field input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: 500 1rem/1.3 var(--font);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #c9d1de;
  border-radius: var(--radius);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.calc-field select:focus,
.calc-field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.calc-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.calc-output {
  background: var(--navy-950);
  color: var(--text-on-dark);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-output-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: var(--s-3);
}

.calc-output-value {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--teal-bright);
  line-height: 1.05;
  margin-bottom: var(--s-3);
  overflow-wrap: anywhere;
}

.calc-output-breakdown {
  font-size: 0.9375rem;
  color: var(--muted-on-dark);
  margin-bottom: var(--s-5);
}

.calc-output-caption {
  font-size: 0.8438rem;
  color: var(--muted-on-dark);
  border-top: 1px solid var(--line-dark);
  padding-top: var(--s-4);
  margin: 0;
}

@media (max-width: 820px) {
  .calc {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--navy-950);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.cta-band h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 32rem;
}

.cta-band p {
  color: var(--muted-on-dark);
  margin: var(--s-3) 0 0;
  max-width: 32rem;
}

/* --------------------------------------------------------------------------
   Interior page header
   -------------------------------------------------------------------------- */
.page-head {
  background: var(--navy-950);
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--line-dark);
}

.page-head-inner {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  max-width: 46rem;
}

.page-head h1 {
  font-size: clamp(2rem, 4.5vw, 3.125rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-4);
}

.page-head p {
  font-size: 1.125rem;
  color: var(--muted-on-dark);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Services (How We Help)
   -------------------------------------------------------------------------- */
.service-flagship {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: var(--navy-950);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  overflow: hidden;
}

.service-flagship .flag-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-950);
  background: var(--teal);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: var(--s-4);
}

.service-flagship h3 {
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  letter-spacing: -0.025em;
}

.service-flagship p {
  color: var(--muted-on-dark);
  margin: 0;
}

.service-flagship .frame figcaption {
  display: none;
}

@media (max-width: 860px) {
  .service-flagship {
    grid-template-columns: 1fr;
  }
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-5);
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: #d4dae4;
}

.service-card .service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.1);
  color: var(--teal-deep);
  margin-bottom: var(--s-4);
}

.service-card h3 {
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  margin-bottom: var(--s-3);
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.founder-body {
  font-size: 1.0938rem;
  color: var(--ink-soft);
  max-width: 44rem;
}

.founder-byline {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.founder-byline .name {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.0625rem;
  display: block;
}

.founder-byline .role {
  color: var(--muted);
  font-size: 0.9063rem;
}

.founder-body .pull-quote {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
  color: var(--ink);
  border-left: 3px solid var(--teal);
  padding-left: var(--s-5);
  margin: var(--s-6) 0;
}


/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

@media (max-width: 680px) {
  .contact-actions {
    grid-template-columns: 1fr;
  }
}

.email-action {
  display: block;
  background: var(--navy-950);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: var(--shadow-md);
}

.email-action:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-frame);
  text-decoration: none;
}

.email-action .email-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(45, 212, 191, 0.14);
  color: var(--teal-bright);
  margin-bottom: var(--s-5);
}

.email-action .email-title {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-2);
}

.email-action .email-addr {
  display: block;
  font-size: 1.0625rem;
  color: var(--teal-bright);
  word-break: break-all;
}

.contact-facts {
  display: grid;
  gap: var(--s-4);
}

.contact-fact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-4) 0;
  border-top: 1px solid var(--line);
}

.contact-fact svg {
  color: var(--teal-deep);
  margin-top: 0.15rem;
}

.contact-fact p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.contact-fact p strong {
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}

/* Contact form */
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.contact-form h2 {
  font-size: 1.25rem;
  margin-bottom: var(--s-5);
}

.form-grid {
  display: grid;
  gap: var(--s-4);
}

.form-grid .two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

@media (max-width: 560px) {
  .form-grid .two-up {
    grid-template-columns: 1fr;
  }
}

.form-field label {
  display: block;
  font-size: 0.8438rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: var(--s-2);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: 400 0.9688rem/1.5 var(--font);
  color: var(--ink);
  border: 1px solid #c9d1de;
  border-radius: var(--radius);
  background: var(--paper);
  resize: vertical;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: var(--muted-on-dark);
  border-top: 1px solid var(--line-dark);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: var(--s-4);
}

.footer-brand p {
  font-size: 0.9063rem;
  max-width: 24rem;
  margin: 0;
}

.footer-col h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin-bottom: var(--s-4);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
}

.footer-col a {
  color: var(--muted-on-dark);
  font-size: 0.9375rem;
}

.footer-col a:hover {
  color: var(--teal-bright);
  text-decoration: none;
}

.footer-legal {
  border-top: 1px solid var(--line-dark);
  padding-block: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  font-size: 0.8438rem;
}

.footer-legal p {
  margin: 0;
}

@media (max-width: 820px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   Reveal micro-interaction (subtle, respects reduced motion)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 550ms ease, transform 550ms ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta-band {
    display: none;
  }
}
