/* Metrecx Solutions, LLC: text-program site.
   Colours and type follow metrecx.com (Newsreader + DM Sans, deep green ink on paper,
   terracotta action colour) so a reviewer who opens both sees one business. */

:root {
  --paper: #fbfaf6;
  --sage: #e5eee9;
  --sand: #f3eee4;
  --ink: #0f302f;
  --body: #173b3a;
  --muted: #4d6664;
  --line: #d5e0da;
  --accent: #a64f3a;
  --accent-dark: #8a3f2d;
  --deep: #102f2e;
  --deep-text: #a9c0b6;
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

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

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 4px; }
.skip-link:focus { left: 8px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 246, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { max-width: var(--wrap); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 52px; width: auto; }
.navlinks { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.navlinks a { color: var(--body); text-decoration: none; font-size: 15px; }
.navlinks a:hover { color: var(--accent); }
.navlinks a.cta { background: var(--accent); color: #fff; padding: 9px 16px; border-radius: 7px; font-weight: 700; }
.navlinks a.cta:hover { background: var(--accent-dark); color: #fff; }
@media (max-width: 720px) {
  .navlinks a:not(.cta) { display: none; }
  .brand img { height: 42px; }
}

/* Identity strip */
.id-strip { background: var(--deep); color: var(--deep-text); font-size: 13.5px; text-align: center; padding: 8px 20px; }
.id-strip strong { color: #fff; font-weight: 600; }

/* Hero */
.hero { background: var(--sage); padding: clamp(3rem, 8vw, 5.5rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.eyebrow { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--muted); }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 1.12rem; max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 7px; font-weight: 700; text-decoration: none; font-size: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.fit { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 26px 26px 18px; }
.fit h2 { font-size: 1.55rem; }
.fit ul { list-style: none; margin: 0; padding: 0; }
.fit li { padding: 10px 0 10px 28px; border-top: 1px solid var(--line); position: relative; font-size: 15.5px; }
.fit li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section.sand { background: var(--sand); }
.section.sage { background: var(--sage); }
.kicker { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.section-intro { max-width: 44em; font-size: 1.05rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 34px; counter-reset: step; }
.step { border-top: 2px solid var(--ink); padding-top: 16px; }
.step .n { font-family: var(--serif); font-size: 2rem; color: var(--accent); line-height: 1; margin-bottom: 10px; }
.step p { font-size: 15.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.plain-list { margin: 0; padding-left: 1.1em; }
.plain-list li { margin-bottom: .55em; }

/* SMS program */
.sms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 30px; }
.sms-grid > div { border-top: 1px solid var(--ink); padding-top: 16px; }
.sms-grid ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 820px) { .sms-grid { grid-template-columns: 1fr; } }
.sms-fine { margin-top: 30px; font-size: 14.5px; color: var(--muted); max-width: 60em; }

/* Form */
.form-section { background: var(--deep); color: #dfe9e4; padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.form-section h2 { color: #fff; }
.form-section .kicker { color: #e3a48f; }
.form-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }
.form-copy ul { padding-left: 1.1em; }
.form-copy li { margin-bottom: .5em; }
.form-copy a { color: #f0c2b3; }
.leadform { background: var(--paper); color: var(--body); border-radius: 14px; padding: clamp(22px, 4vw, 32px); }
.leadform h3 { margin-bottom: 4px; }
.leadform .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid #b9cbc3; border-radius: 7px; padding: 11px 12px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .consent input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.err { color: #b3261e; font-size: 13.5px; margin: 5px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 11px; align-items: flex-start; background: var(--sage); border-radius: 8px; padding: 13px 14px; margin: 18px 0 8px; }
.consent input { width: 19px; height: 19px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--accent); }
.consent label { font-size: 14px; line-height: 1.5; color: var(--body); }
.consent-note { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.submit { width: 100%; background: var(--accent); color: #fff; border: 0; border-radius: 7px; padding: 14px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.submit:hover { background: var(--accent-dark); }
.submit:disabled { opacity: .6; cursor: default; }
.disclosure { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.thanks h3 { margin-bottom: 8px; }
.thanks .next { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.thanks .next .btn { text-align: center; }

/* Legal pages */
.legal { padding: clamp(2.6rem, 6vw, 4.5rem) 20px; }
.legal h1 { font-size: clamp(2.1rem, 4.6vw, 3rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2em; }
.legal .updated { color: var(--muted); font-size: 14.5px; margin-bottom: 2em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.callout { background: var(--sage); border-left: 3px solid var(--accent); padding: 18px 20px; border-radius: 0 8px 8px 0; margin: 1.4em 0; }
.callout p:last-child { margin-bottom: 0; }
.toc { columns: 2; column-gap: 32px; font-size: 15px; padding-left: 1.2em; }
@media (max-width: 600px) { .toc { columns: 1; } }

/* Footer */
footer.site { background: var(--deep); color: var(--deep-text); padding: 52px 0 28px; font-size: 14.5px; }
footer.site a { color: #dfe9e4; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
.footgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
@media (max-width: 800px) { .footgrid { grid-template-columns: 1fr; } }
footer.site h4 { color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; font-weight: 700; }
footer.site .logo { height: 70px; width: auto; margin-bottom: 14px; }
footer.site .legalname { color: #fff; font-weight: 600; }
footer.site .col div { margin-bottom: 6px; }
.foot-bottom { border-top: 1px solid rgba(169, 192, 182, .25); margin-top: 36px; padding-top: 20px; font-size: 12.5px; line-height: 1.6; }
