
/* ===============================================================
   Attention Flow – Final Print CSS
   Calm, modern, world‑class one‑pager styling
   =============================================================== */

/* ---------- CSS Variables (palette, rhythm) ---------- */
:root{
  --bg: #ffffff;
  --tint: #f8faf9;
  --teal: #5C9A9B;
  --divider: #C0D7D8;
  --text: #22303c;           /* slightly deeper for print legibility */
  --text-flow: #687789;
  --muted: #8a99a8;

  /* Breath-based spacing scale */
  --b-1: .25rem;
  --b-2: .5rem;
  --b-3: .75rem;
  --b-4: 1rem;
  --b-5: 1.5rem;
  --b-6: 2rem;
  --b-7: 3rem;
  --b-8: 4rem;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html {
  color-scheme: light;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  hyphens: auto;
  hanging-punctuation: first last;
}

body{
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.7;
  letter-spacing: 0.01em;
  font-feature-settings: "liga" 1, "kern" 1;
}

/* Page container */
.sheet{
  max-width: 880px;
  margin: 0 auto;
  padding: var(--b-7) var(--b-5) var(--b-7);
}

/* ---------- Headings & lead ---------- */
h1, h2, h3{
  color: var(--teal);
  margin: var(--b-6) 0 var(--b-3);
  line-height: 1.25;
  text-wrap: balance;            /* Chromium & modern browsers */
}
h1{ font-size: clamp(1.9rem, 4vw, 2.4rem); }
h2{ font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
h3{ font-size: clamp(1.1rem, 1.7vw, 1.25rem); }

.subtitle{
  color: var(--text-flow);
  margin-top: var(--b-2);
  opacity: .92;
  letter-spacing: .3px;
}

.lead{
  margin: var(--b-5) 0 var(--b-6);
}
.lead p{
  font-size: clamp(1.05rem, 1.2vw, 1.15rem);
  line-height: 1.9;
  color: var(--text);
}

/* ---------- Text content ---------- */
p{ margin: 0 0 var(--b-4); }
strong{ font-weight: 600; }
em{ color: var(--text-flow); }

ul, ol{
  padding-left: 1.2em;
  line-height: 1.65;
  margin: 0 0 var(--b-4);
}
ul li + li, ol li + li{ margin-top: .35em; }

hr{
  border: 0;
  height: 1px;
  background: var(--divider);
  margin: var(--b-6) 0;
}

/* ---------- Callouts ---------- */
.mantra{
  text-align: center;
  color: var(--teal);
  font-weight: 600;
  margin: var(--b-6) 0 var(--b-5);
}

/* Blockquote with left rule + airy padding */
blockquote{
  position: relative;
  background: linear-gradient(180deg, rgba(192,215,216,.16), rgba(192,215,216,.06));
  color: #3a4a57;
  font-style: italic;
  padding: var(--b-5) var(--b-6) var(--b-5) calc(var(--b-6) + 10px);
  border-radius: 6px;
  margin: var(--b-5) 0;
  break-inside: avoid;
}
blockquote::before{
  content: "";
  position: absolute;
  left: var(--b-5);
  top: var(--b-5);
  bottom: var(--b-5);
  width: 2px;
  background: var(--divider);
  border-radius: 1px;
}

/* ---------- Grids / two-column helpers ---------- */
.grid-two{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--b-6);
  margin: var(--b-5) 0 var(--b-6);
}
@media (max-width: 840px){
  .grid-two{ grid-template-columns: 1fr; }
}

/* Benefits list can split into two columns on wide */
.benefits-section ul{
  column-count: 2;
  column-gap: var(--b-6);
}
@media (max-width: 900px){
  .benefits-section ul{ column-count: 1; }
}

/* ---------- Footer ---------- */
.footer{
  margin-top: var(--b-7);
  padding-top: var(--b-5);
  border-top: 1px solid var(--divider);
  font-size: .95rem;
  color: var(--text-flow);
  display: flex;
  gap: var(--b-4);
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.footer a{ color: var(--teal); text-decoration: none; }
.footer a:hover{ text-decoration: underline; }

/* ---------- Print styles (Chrome headless friendly) ---------- */
@media print {
  /* base/page */
  html, body { background: #fff !important; }
  .sheet { background: #fff !important; box-shadow: none !important; }  /* .sheet has a box-shadow on screen */

  /* keep web look for masthead in print */
  .masthead { border: none !important; }
  .masthead::after { content: "" !important; } /* keep the subtle glow */

  /* section headings */
  h2::before { display: none !important; }  /* hides gradient accent bar */

  /* dividers */
  .divider { background: var(--divider) !important; }  /* replace gradient divider with flat rule */

  /* blockquotes */
  blockquote {
    background: none !important;
    box-shadow: none !important;
    border-left-color: var(--muted) !important;
  }
  blockquote::before { display: none !important; }  /* removes decorative dot */

  /* numbered circles in the two-column list */
  .grid-two ol li::before {
    background: #ddd !important;     /* flat neutral instead of gradient */
    box-shadow: none !important;
    color: #000 !important;
  }
}

/* ---------- Small niceties ---------- */
a{ color: var(--teal); }
a:hover{ text-decoration: underline; }

/* Soft section divider helper class */
.softdivider{
  height: 1px;
  background: var(--divider);
  margin: var(--b-6) 0 var(--b-5);
}

@media print {
  h2, h3 { break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  ul, ol { break-inside: avoid; }
  .grid-two > * { break-inside: avoid; }
}

@media print {
  /* Don’t expand links with their URL in print */
  a[href]::after { content: none !important; }
}

@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
