/* ============================================================
   Build More Human — AI Workflow Diagnostic
   Mobile-first. Base styles target 360px+; min-width queries
   layer on tablet (48em) and desktop (60em).

   System:
   - Type      display serif (system) / sans body, fluid clamp scale
   - Surfaces  paper → stone → ink, alternating for rhythm
   - Texture   fractal-noise paper grain over every surface
   - Color     one accent (#2563EB light / #5A9BFF on ink)
   - Structure hairline rules + numbered ledger columns
   ============================================================ */

:root{
  /* surfaces */
  --paper:#FCFBF8;
  --stone:#F4F2EC;
  --ink:#14181F;
  --ink-2:#1C2029;

  /* type */
  --fg:#14181F;
  --body:#4A5259;
  --soft:#7A828B;
  --on-ink:#FBFAF7;
  --on-ink-soft:#98A1AE;

  /* lines */
  --rule:#E4E1D9;
  --rule-strong:#CDC9BE;
  --rule-ink:#2E3541;

  /* accent */
  --accent:#2563EB;
  --accent-ink:#1D4ED8;
  --accent-lift:#5A9BFF;

  --shell:900px;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:64px;
}

body{
  background:var(--paper);
  color:var(--body);
  font-family:var(--sans);
  font-size:1.0625rem;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  font-kerning:normal;
  overflow-x:hidden;
}

/* --- paper grain: a fixed, non-interactive tactile layer --- */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:1;
  pointer-events:none;
  opacity:.55;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none !important}
}

h1,h2,h3,.display{
  font-family:var(--serif);
  color:var(--fg);
  font-weight:600;
  text-wrap:balance;
}
p{text-wrap:pretty}

.shell{
  width:100%;
  max-width:var(--shell);
  margin-inline:auto;
  padding-inline:20px;
  position:relative;
  z-index:2;
}

/* ============================ masthead ============================ */
.masthead{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(252,251,248,.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--rule);
}
.masthead .shell{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  height:58px;
}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none;min-width:0}
.brand svg{width:23px;height:23px;flex-shrink:0;display:block}
.brand span{
  color:var(--fg);
  font-size:.6rem;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  white-space:nowrap;
}

.masthead-actions{display:flex;align-items:center;gap:14px}

/* phone: hidden on the smallest screens where the masthead is tight,
   restored at 30em. It still appears in the hero, close, and footer. */
.tel-link{
  display:none;
  align-items:center;
  gap:7px;
  color:var(--fg);
  text-decoration:none;
  font-size:.82rem;
  font-weight:600;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.tel-link svg{width:14px;height:14px;color:var(--accent);flex-shrink:0}
.tel-link:hover{color:var(--accent)}
.tel-link:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:2px}
@media (min-width:30em){.tel-link{display:inline-flex}}

/* ============================ buttons ============================ */
.btn{
  display:inline-block;
  background:var(--accent);
  color:#fff;
  font-family:inherit;
  font-size:.95rem;
  font-weight:600;
  line-height:1.2;
  text-decoration:none;
  padding:15px 26px;
  border-radius:3px;
  transition:background .18s ease,transform .18s ease;
  white-space:nowrap;
}
.btn:hover{background:var(--accent-ink)}
.btn:active{transform:translateY(1px)}
.btn:focus-visible{outline:2px solid var(--fg);outline-offset:3px}
.btn.sm{padding:13px 14px;font-size:.78rem}
.btn.on-ink{background:var(--accent-lift);color:#0B0E13}
.btn.on-ink:hover{background:#7FB2FF}

.quiet{
  color:var(--fg);
  font-weight:500;
  text-decoration:none;
  border-bottom:1px solid var(--rule-strong);
  padding-bottom:3px;
  transition:border-color .18s ease;
}
.quiet:hover{border-color:var(--fg)}
.quiet:focus-visible{outline:2px solid var(--accent);outline-offset:4px}

/* ============================ surfaces ============================ */
.band{
  position:relative;
  border-bottom:1px solid var(--rule);
  padding-block:54px;
}
.band--stone{background:var(--stone)}
.band--ink{
  background:var(--ink);
  border-bottom-color:var(--rule-ink);
  color:var(--on-ink-soft);
}
/* grain reads inverted on dark, so give ink its own light-screen pass */
.band--ink::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.5;
  mix-blend-mode:screen;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.10'/%3E%3C/svg%3E");
}
.band--ink h1,.band--ink h2,.band--ink h3,.band--ink .display{color:var(--on-ink)}
.band--ink .sec-label{color:var(--on-ink-soft)}
.band--ink .sec-label b{color:var(--accent-lift)}

/* ============================ hero ============================ */
.hero{padding:56px 0 52px}
.eyebrow{
  display:block;
  color:var(--soft);
  font-size:.7rem;
  font-weight:600;
  letter-spacing:.15em;
  text-transform:uppercase;
  line-height:1.5;
  margin-bottom:22px;
}
h1{
  font-size:clamp(2.4rem,8.6vw,4.05rem);
  line-height:1.06;
  letter-spacing:-.025em;
  max-width:15ch;
}
.lede{
  font-size:clamp(1.06rem,3.6vw,1.28rem);
  line-height:1.55;
  max-width:54ch;
  margin-top:22px;
}
.hero-cta{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:22px;
  margin-top:34px;
}
.hero-call{
  margin-top:20px;
  font-size:.95rem;
  color:var(--soft);
}
.hero-call a{
  color:var(--fg);
  font-weight:600;
  font-variant-numeric:tabular-nums;
  text-decoration:none;
  border-bottom:1px solid var(--rule-strong);
  padding-bottom:2px;
  white-space:nowrap;
}
.hero-call a:hover{color:var(--accent);border-color:var(--accent)}

.hero-rule{
  margin-top:44px;
  padding-top:22px;
  border-top:1px solid var(--rule);
  display:flex;
  flex-wrap:wrap;
  gap:10px 26px;
  color:var(--soft);
  font-size:.82rem;
  letter-spacing:.02em;
}
.hero-rule b{color:var(--fg);font-weight:600}

/* ============================ section frame ============================ */
.sec-grid{display:grid;grid-template-columns:1fr;gap:14px}
.sec-label{
  color:var(--soft);
  font-size:.7rem;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.sec-label b{
  color:var(--accent);
  font-weight:600;
  margin-right:.55em;
  font-variant-numeric:tabular-nums;
}
h2{
  font-size:clamp(1.6rem,5.6vw,2.3rem);
  line-height:1.15;
  letter-spacing:-.02em;
  max-width:20ch;
}
.intro{margin-top:14px;max-width:56ch}

/* ============================ ledger rows ============================ */
.rows{list-style:none;margin-top:26px;border-top:1px solid var(--rule)}
.rows li{
  display:grid;
  grid-template-columns:2.2rem 1fr;
  gap:2px 12px;
  padding:17px 0;
  border-bottom:1px solid var(--rule);
}
.rows .idx{
  color:var(--soft);
  font-size:.76rem;
  font-weight:600;
  font-variant-numeric:tabular-nums;
  padding-top:.4em;
}
.rows .head{
  color:var(--fg);
  font-size:1.06rem;
  font-weight:600;
  line-height:1.4;
}
.rows .sub{grid-column:2;font-size:.97rem;margin-top:3px}

/* ============================ steps ============================ */
.steps{display:grid;grid-template-columns:1fr;margin-top:26px}
.step{padding:20px 0;border-top:2px solid var(--fg)}
.step + .step{border-top-width:1px;border-top-color:var(--rule-strong)}
.step .k{
  display:block;
  color:var(--accent);
  font-size:.68rem;
  font-weight:700;
  letter-spacing:.13em;
  text-transform:uppercase;
  margin-bottom:8px;
}
.step h3{font-size:1.1rem;line-height:1.3;margin-bottom:5px}
.step p{font-size:.97rem}

/* ============================ pricing (ink) ============================ */
.price{
  font-size:clamp(3.6rem,15vw,5.4rem);
  line-height:1;
  letter-spacing:-.035em;
  margin:26px 0 12px;
  font-variant-numeric:tabular-nums;
}
.price-meta{
  color:var(--on-ink-soft);
  font-size:.98rem;
  display:flex;
  flex-wrap:wrap;
  gap:6px 14px;
}
.price-meta .sep{color:#39414F}
.band--ink .intro{color:var(--on-ink-soft);max-width:52ch}

/* ============================ fit ============================ */
.fit{display:grid;grid-template-columns:1fr;gap:28px;margin-top:26px}
.fit h3{
  font-size:1.02rem;
  padding-bottom:11px;
  border-bottom:1px solid var(--rule-strong);
}
.fit ul{list-style:none}
.fit li{
  display:flex;
  gap:11px;
  padding:11px 0;
  border-bottom:1px solid var(--rule);
  font-size:.97rem;
}
.fit svg{width:15px;height:15px;flex-shrink:0;margin-top:.42em}
.fit .y svg{color:var(--accent)}
.fit .n svg{color:#B3B0A7}

/* ============================ faq ============================ */
.faq{margin-top:24px;border-top:1px solid var(--rule)}
.faq details{border-bottom:1px solid var(--rule)}
.faq summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  gap:16px;
  align-items:baseline;
  justify-content:space-between;
  padding:19px 0;
  color:var(--fg);
  font-weight:600;
  font-size:1.03rem;
  line-height:1.45;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:"+";
  color:var(--soft);
  font-size:1.3rem;
  font-weight:400;
  line-height:1;
  flex-shrink:0;
}
.faq details[open] summary{color:var(--accent)}
.faq details[open] summary::after{content:"\2212"}
.faq summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.faq p{padding:0 0 22px;max-width:62ch;font-size:.99rem}

/* ============================ close ============================ */
.close{
  position:relative;
  padding:68px 0 76px;
  border-bottom:none;
  text-align:center;
  overflow:hidden;
}
/* oversized keystone watermark: texture, not decoration-for-its-own-sake */
.close .watermark{
  position:absolute;
  left:50%;
  top:-6%;
  width:min(430px,105vw);
  transform:translateX(-50%);
  opacity:.05;
  pointer-events:none;
  z-index:0;
}
.close .shell{position:relative;z-index:2}
.close h2{
  font-size:clamp(1.85rem,6.6vw,2.75rem);
  max-width:19ch;
  margin:0 auto 30px;
}
.close-call{
  margin-top:18px;
  font-size:1.02rem;
  color:var(--soft);
}
.close-call a{
  font-family:var(--serif);
  font-size:1.3rem;
  color:var(--fg);
  font-weight:600;
  font-variant-numeric:tabular-nums;
  text-decoration:none;
  border-bottom:1px solid var(--rule-strong);
  padding-bottom:3px;
  white-space:nowrap;
}
.close-call a:hover{color:var(--accent);border-color:var(--accent)}

.close .fine{
  margin-top:20px;
  font-size:.89rem;
  color:var(--soft);
  max-width:44ch;
  margin-inline:auto;
}

footer{border-top:1px solid var(--rule);padding:24px 0 36px;background:var(--stone)}
footer .shell{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  font-size:.8rem;
  color:var(--soft);
}
footer a{color:var(--soft);text-decoration:none}
footer a:hover{color:var(--fg)}
.foot-links{display:flex;gap:18px;flex-wrap:wrap}
.foot-links a{font-variant-numeric:tabular-nums}

/* ============================ tablet ============================ */
@media (min-width:48em){
  html{scroll-padding-top:70px}
  .shell{padding-inline:32px}
  .masthead .shell{height:64px}
  .brand{gap:11px}
  .brand svg{width:26px;height:26px}
  .brand span{font-size:.7rem;letter-spacing:.15em}
  .btn.sm{padding:11px 18px;font-size:.85rem}

  .hero{padding:86px 0 76px}
  .hero-cta{flex-direction:row;align-items:center;gap:26px}
  .band{padding-block:76px}

  .steps{grid-template-columns:repeat(3,1fr);gap:24px}
  .step{border-top-width:2px;border-top-color:var(--fg)}
  .step + .step{border-top-width:2px;border-top-color:var(--fg)}

  .fit{grid-template-columns:1fr 1fr;gap:40px}
  .rows li{grid-template-columns:2.7rem 1fr}
  .close{padding:96px 0 104px}
}

/* ============================ desktop ============================ */
@media (min-width:60em){
  .band{padding-block:88px}
  .hero{padding:104px 0 88px}

  /* ledger layout: numbered label column beside the content */
  .sec-grid{grid-template-columns:172px 1fr;gap:0}
  .sec-grid > .sec-label{padding-top:.55em;padding-right:28px}
  .sec-grid > div{
    padding-left:36px;
    border-left:1px solid var(--rule);
  }
  .band--ink .sec-grid > div{border-left-color:var(--rule-ink)}
}
