/* ═══════════════════════════════════════════════════════════════════════
   ONESTAR MILK ANALYZERS — site tokens
   Direction: the dairy collection register — ruled ledger pages, stamped
   receipts, monospace measurement figures. Not a generic SaaS gradient page.
   ═══════════════════════════════════════════════════════════════════════ */

:root{
  --paper:      #FAF6EC;   /* ledger page cream */
  --paper-line: #D8E6E2;   /* faint ruled lines on the page */
  --ink:        #16302B;   /* body ink, green-black */
  --teal-dark:  #0E7A73;   /* brand — headings, primary */
  --teal:       #14A89E;   /* brand — buttons, links, accents */
  --teal-pale:  #E3F6F4;
  --stamp:      #B8461D;   /* rubber-stamp red-orange, used sparingly */
  --muted:      #5B7C78;
  --border:     #C9DEDA;
  --shadow:     0 18px 40px -20px rgba(14,60,55,.35);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'IBM Plex Sans', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

/* Ruled ledger-page backdrop, used behind the hero */
.ruled{
  background-image:repeating-linear-gradient(
    to bottom, transparent, transparent 37px, var(--paper-line) 38px
  );
}

h1,h2,h3{
  font-family:'Fraunces', Georgia, serif;
  color:var(--teal-dark);
  margin:0 0 .4em;
  letter-spacing:-.01em;
}
h1{ font-size:clamp(2.4rem, 5vw, 3.6rem); font-weight:600; line-height:1.05; }
h2{ font-size:clamp(1.5rem, 3vw, 2rem); font-weight:600; }
h3{ font-size:1.15rem; font-weight:600; }
p{ margin:0 0 1em; }
a{ color:var(--teal-dark); }
.mono, .figure{ font-family:'IBM Plex Mono', monospace; }

.eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--teal);
  font-weight:600;
}

.wrap{ max-width:1080px; margin:0 auto; padding:0 24px; }
section{ padding:72px 0; }
.center{ text-align:center; }

/* ---------- nav ---------- */
header.site{
  position:sticky; top:0; z-index:40;
  background:rgba(250,246,236,.92);
  backdrop-filter:blur(6px);
}
header.site .bar{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 24px; max-width:1080px; margin:0 auto;
}
header.site .brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
header.site .brand img{ height:34px; width:34px; border-radius:8px; }
header.site .brand span{
  font-family:'Fraunces', serif; font-weight:600; color:var(--ink); font-size:1.02rem;
}
header.site nav{ display:flex; gap:28px; }
header.site nav a{
  color:var(--ink); text-decoration:none; font-size:.94rem; font-weight:500;
  padding-bottom:3px; border-bottom:2px solid transparent;
}
header.site nav a:hover, header.site nav a.active{ border-bottom-color:var(--teal); color:var(--teal-dark); }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--teal-dark); color:#fff; text-decoration:none;
  padding:13px 22px; border-radius:8px; font-weight:600; font-size:.95rem;
  border:none; cursor:pointer;
}
.btn:hover{ background:var(--ink); }
.btn.ghost{
  background:transparent; color:var(--teal-dark); border:1.5px solid var(--teal-dark);
}
.btn.ghost:hover{ background:var(--teal-pale); }

/* ---------- hero receipt signature ---------- */
.hero{ padding:64px 0 40px; position:relative; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center; }
@media (max-width:820px){ .hero-grid{ grid-template-columns:1fr; } }

.hero p.lede{ font-size:1.15rem; color:var(--muted); max-width:46ch; }
.hero-ctas{ display:flex; gap:14px; margin-top:28px; flex-wrap:wrap; }

.receipt-stage{ position:relative; display:flex; justify-content:center; padding:20px; }
.receipt{
  width:280px; background:#fff; padding:22px 20px 26px;
  box-shadow:var(--shadow);
  transform:rotate(-3.5deg);
  position:relative;
  font-family:'IBM Plex Mono', monospace;
  color:var(--ink);
}
.receipt::before, .receipt::after{
  content:""; position:absolute; left:0; right:0; height:10px;
  background-image:radial-gradient(circle at 8px 5px, var(--paper) 5px, transparent 5.5px);
  background-size:16px 10px; background-repeat:repeat-x;
}
.receipt::before{ top:-5px; }
.receipt::after{ bottom:-5px; transform:scaleY(-1); }
.receipt .rtitle{ font-family:'Fraunces', serif; font-size:1rem; font-weight:600; color:var(--teal-dark); text-align:center; }
.receipt .rsub{ text-align:center; font-size:.68rem; color:var(--muted); margin-bottom:14px; letter-spacing:.05em; }
.receipt .rline{ display:flex; justify-content:space-between; font-size:.78rem; padding:3px 0; }
.receipt .rline b{ font-weight:600; }
.receipt hr{ border:none; border-top:1px dashed var(--border); margin:10px 0; }
.receipt .rtotal{ display:flex; justify-content:space-between; font-size:.92rem; font-weight:700; color:var(--teal-dark); margin-top:6px; }

.stamp{
  position:absolute; top:-14px; right:6px;
  width:96px; height:96px; border-radius:50%;
  border:2.5px solid var(--stamp); color:var(--stamp);
  display:flex; align-items:center; justify-content:center; text-align:center;
  transform:rotate(11deg);
  font-family:'IBM Plex Mono', monospace; font-size:.62rem; font-weight:700;
  letter-spacing:.05em; text-transform:uppercase; line-height:1.3;
  opacity:.85; background:rgba(255,255,255,.4);
}

/* ---------- feature grid ---------- */
.grid3{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:40px; }
@media (max-width:820px){ .grid3{ grid-template-columns:1fr; } }
.card{
  background:#fff; border:1px solid var(--border); border-radius:12px;
  padding:26px; box-shadow:0 10px 26px -20px rgba(14,60,55,.25);
}
.card .icon{
  width:40px; height:40px; border-radius:9px; background:var(--teal-pale);
  color:var(--teal-dark); display:flex; align-items:center; justify-content:center;
  margin-bottom:14px; font-size:1.1rem;
}
.card p{ color:var(--muted); font-size:.94rem; margin:0; }

/* ---------- steps (real sequence, numbered on purpose) ---------- */
.steps{ counter-reset:step; margin-top:44px; }
.step{
  display:grid; grid-template-columns:64px 1fr; gap:20px;
  padding:22px 0; border-top:1px solid var(--border);
}
.step:last-child{ border-bottom:1px solid var(--border); }
.step .num{
  counter-increment:step; font-family:'Fraunces', serif; font-size:1.6rem;
  color:var(--teal); font-weight:600;
}
.step .num::before{ content: counter(step, decimal-leading-zero); }
.step h3{ margin-bottom:4px; }
.step p{ color:var(--muted); margin:0; font-size:.94rem; }

/* ---------- band / cta ---------- */
.band{ background:var(--teal-dark); color:#fff; }
.band h2{ color:#fff; }
.band p{ color:#D6ECE9; }

/* ---------- footer ---------- */
footer.site{ border-top:1px solid var(--border); padding:36px 0; }
footer.site .wrap{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; }
footer.site p{ margin:0; color:var(--muted); font-size:.85rem; }
footer.site a{ color:var(--muted); text-decoration:none; }
footer.site a:hover{ color:var(--teal-dark); }
footer.site .flinks{ display:flex; gap:18px; font-size:.85rem; }

/* ---------- inner pages (about/contact) ---------- */
.page-hero{ padding:56px 0 20px; }
.page-hero .eyebrow{ margin-bottom:10px; }
.prose p{ color:var(--ink); }
.prose .muted{ color:var(--muted); }

.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:40px; margin-top:20px; }
@media (max-width:820px){ .contact-grid{ grid-template-columns:1fr; } }
.form-card{
  background:#fff; border:1px solid var(--border); border-radius:12px; padding:28px; box-shadow:var(--shadow);
}
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:.82rem; font-weight:600; color:var(--teal-dark); margin-bottom:6px; }
.field input, .field textarea{
  width:100%; padding:11px 12px; border:1px solid var(--border); border-radius:8px;
  font-family:inherit; font-size:.95rem; background:var(--paper);
}
.field textarea{ min-height:120px; resize:vertical; }
.contact-info .row{ display:flex; gap:14px; align-items:flex-start; margin-bottom:20px; }
.contact-info .row .ico{
  width:38px; height:38px; border-radius:9px; background:var(--teal-pale); color:var(--teal-dark);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.contact-info .row h3{ margin:0 0 3px; font-size:1rem; }
.contact-info .row p{ margin:0; color:var(--muted); font-size:.92rem; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
}
