/* UsefulIQ: practical, restrained, and built to load without JavaScript. */
:root {
  --paper: #f6f2e9;
  --paper-deep: #ece5d7;
  --white: #fffefa;
  --ink: #102523;
  --muted: #4c625e;
  --forest: #173f3a;
  --forest-deep: #0e302c;
  --rust: #ba542d;
  --rust-dark: #893b20;
  --line: #cbd2c8;
  --focus: #f0b429;
  --shadow: 0 22px 50px -34px rgba(12, 45, 40, .55), 0 10px 22px -20px rgba(16, 37, 35, .28);
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--forest); text-underline-offset: .2em; }
a:hover { color: var(--rust-dark); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  padding: .7rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(16, 37, 35, .16);
  background: rgba(246, 242, 233, .96);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.4rem; }
.brand { display: flex; flex-direction: column; gap: .12rem; min-width: 9.75rem; text-decoration: none; }
.brand span { color: var(--muted); font-size: .72rem; letter-spacing: .025em; }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .15rem 1.5rem; }
nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: .86rem; font-weight: 600; text-decoration: none; }

.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(4rem, 9vw, 7.5rem); }
.hero::after {
  content: "";
  position: absolute;
  width: 28rem;
  height: 28rem;
  right: -15rem;
  top: -15rem;
  border: 1px solid rgba(186, 84, 45, .28);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(186, 84, 45, .04), 0 0 0 8rem rgba(23, 63, 58, .03);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(17rem, .7fr); align-items: center; gap: clamp(2.5rem, 8vw, 7rem); }
.eyebrow { margin: 0 0 1rem; color: var(--rust-dark); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: var(--serif); font-weight: 400; line-height: 1.08; text-wrap: balance; }
h1 { max-width: 14ch; margin-bottom: 1.6rem; font-size: clamp(2.7rem, 7vw, 5.4rem); letter-spacing: -.045em; }
h2 { max-width: 18ch; margin-bottom: 1.4rem; font-size: clamp(2.15rem, 5vw, 3.8rem); letter-spacing: -.035em; }
h3 { font-size: 1.8rem; }
.lede { max-width: 38rem; margin: 0 0 1.6rem; color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.25rem); }
.hero-offer { display: flex; flex-direction: column; gap: .1rem; margin: 0 0 1.5rem; padding: .85rem 0; border-block: 1px solid var(--line); }
.hero-offer strong { font-size: 1.04rem; }
.hero-offer span { color: var(--muted); font-size: .86rem; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.15rem;
  border: 2px solid var(--forest);
  border-radius: 3px;
  background: var(--forest);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.button:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--white); transform: translateY(-1px); }
.hero-case-link { display: flex; width: fit-content; min-height: 44px; align-items: center; margin-top: .45rem; color: var(--rust-dark); font-size: .86rem; font-weight: 700; }
.cta-note { margin: .65rem 0 0; color: var(--muted); font-size: .82rem; }

.workflow-map { position: relative; margin: 0; padding: 1.7rem; border: 1px solid rgba(16, 37, 35, .2); border-radius: 5px; background: var(--white); box-shadow: var(--shadow); }
.map-label { margin: 0 0 1.15rem; color: var(--muted); font-size: .73rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.workflow-map ol { margin: 0; padding: 0; list-style: none; }
.workflow-map li { position: relative; display: grid; grid-template-columns: 2.2rem 1fr; align-items: center; min-height: 3.25rem; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 600; }
.workflow-map li span { color: var(--rust-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; }
.map-caption { margin: 1rem 0 0; color: var(--muted); font-family: var(--serif); font-size: 1rem; font-style: italic; line-height: 1.4; }

main > section:not(.hero, .enquire) { padding: clamp(4rem, 9vw, 7rem) 0; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(3rem, .25fr) minmax(0, 1.75fr); gap: clamp(1.5rem, 5vw, 5rem); }
.split > div { max-width: 50rem; }
.split p:not(.eyebrow, .section-number, .price-line p), .privacy-copy p, .privacy-copy li { color: var(--muted); }
.section-number { margin: .35rem 0 0; color: var(--rust-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; }
.review, .data, .proof-preview, .case-proof { background: var(--white); }

.deliverables { margin-top: 3rem; }
.deliverables h3 { margin-bottom: .75rem; }
.deliverables ul { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.deliverables li { display: grid; grid-template-columns: minmax(12rem, .8fr) 1.2fr; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.deliverables li span { color: var(--muted); }
.price-line { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.5rem; align-items: end; margin-top: 2rem; padding: 1.6rem; background: var(--forest); color: var(--white); }
.price-line p { margin: 0; }
.price-line strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.price-line span { color: #d0ddd8; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.price-line p:last-child { color: #e4ece8; }

.steps { margin: 2.5rem 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps span { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid var(--rust); border-radius: 50%; color: var(--rust-dark); font-size: .8rem; font-weight: 700; }
.steps p { margin: .1rem 0 0; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; }

.enquire { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--forest); color: var(--white); }
.enquire-inner { max-width: 53rem; }
.enquire .eyebrow { color: #e2bda9; }
.enquire h2 { color: var(--white); }
.enquire-inner > p:not(.eyebrow) { max-width: 38rem; color: #d0ddd8; font-size: 1.08rem; }
.button-light { margin-top: 1rem; border-color: var(--white); background: var(--white); color: var(--forest); box-shadow: none; }
.button-light:hover { border-color: var(--paper); background: var(--paper); color: var(--forest-deep); }
address { margin-top: 2rem; color: #d0ddd8; font-size: .86rem; font-style: normal; }
address strong { color: var(--white); }
footer { border-top: 1px solid rgba(255, 255, 255, .12); background: var(--forest-deep); color: #d0ddd8; }
.footer-inner { display: flex; min-height: 5rem; align-items: center; justify-content: space-between; gap: 1rem; font-size: .82rem; }
.footer-inner a { color: var(--white); }

.privacy-main { padding: clamp(3rem, 8vw, 6rem) 0; }
.privacy-copy { max-width: 48rem; }
.privacy-copy h1 { max-width: none; }
.privacy-copy h2 { margin-top: 3rem; font-size: clamp(1.65rem, 4vw, 2.25rem); }
.privacy-copy li + li { margin-top: .5rem; }
.notice { margin: 2rem 0; padding: 1.25rem; border: 1px solid var(--line); background: var(--white); }

.case-hero { padding: clamp(4rem, 10vw, 8rem) 0; }
.case-hero-inner { max-width: 62rem; }
.case-hero h1 { max-width: 15ch; }
.case-note { max-width: 46rem; margin-top: 2rem; color: var(--muted); font-size: .82rem; }
.case-study > section { padding: clamp(4rem, 9vw, 7rem) 0; border-top: 1px solid var(--line); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.metric { display: flex; min-height: 17rem; flex-direction: column; padding: 1.6rem; border: 1px solid var(--line); background: var(--paper); }
.metric strong { color: var(--forest); font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 400; line-height: 1.08; }
.metric span { margin-top: auto; padding-top: 2rem; font-weight: 700; }
.metric small { margin-top: .6rem; color: var(--muted); line-height: 1.45; }
.case-split { display: grid; grid-template-columns: minmax(18rem, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 7vw, 7rem); }
.case-copy { max-width: 43rem; }
.case-copy p { color: var(--muted); font-size: 1.08rem; }
.case-dark { background: var(--forest-deep); color: var(--white); }
.case-dark .eyebrow { color: #e2bda9; }
.case-dark .case-copy p { color: #d0ddd8; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 2.5rem; padding: 1.2rem; border-block: 1px solid var(--line); font-size: .84rem; font-weight: 700; }
.flow b { color: var(--rust); }
.evidence-list article { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.evidence-list article:last-child { border-bottom: 1px solid var(--line); }
.evidence-list h3 { margin-bottom: .55rem; }
.evidence-list p:last-child { margin-bottom: 0; color: var(--muted); }
.evidence-label { margin: 0 0 .55rem; color: var(--rust-dark); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.case-cta-note { font-size: .82rem !important; }

@media (max-width: 760px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 1rem 0 .5rem; }
  nav { width: 100%; justify-content: flex-start; gap: 0 1.1rem; overflow-x: auto; }
  nav a { white-space: nowrap; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 3.5rem; }
  .workflow-map { display: none; }
  .split { grid-template-columns: 1fr; gap: .6rem; }
  .deliverables li, .price-line { grid-template-columns: 1fr; gap: .35rem; }
  .metric-grid, .case-split { grid-template-columns: 1fr; }
  .metric { min-height: 14rem; }
  .deliverables li { padding: 1rem 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 1rem 0; }
}

@media (max-width: 430px) {
  .shell { width: min(100% - 1.25rem, 70rem); }
  h1 { font-size: 2.65rem; }
  .hero-offer span { max-width: 21rem; }
  .button { width: 100%; text-align: center; }
}

@media (max-width: 430px) and (max-height: 700px) {
  .header-inner { min-height: 3.7rem; padding: .55rem 0; }
  .brand span, .site-header nav { display: none; }
  .hero { padding-top: 1.35rem; }
  .hero .eyebrow { margin-bottom: .45rem; font-size: .66rem; }
  h1 { margin-bottom: .75rem; font-size: 2.05rem; }
  .lede { margin-bottom: .75rem; font-size: .9rem; line-height: 1.4; }
  .hero-offer { margin-bottom: .75rem; padding: .48rem 0; line-height: 1.35; }
  .hero-offer strong { font-size: .92rem; }
  .hero-offer span { font-size: .75rem; }
  .hero .button { min-height: 44px; padding: .5rem .7rem; font-size: .86rem; line-height: 1.25; }
}

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

@media print {
  .site-header, .button, footer { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  main > section { break-inside: avoid; }
}
