/* Steward Press: shared styles. Palette drawn from the Hidden Rivers cover
   (cream paper, forest-green ink, warm grays); type and mark are Steward's.
   Shapes: buttons are pills, panels are 14px. */

:root {
  --bg: #F9F8F4;          /* Cream (Hidden Rivers paper) */
  --surface: #FFFEFA;
  --surface-2: #EFEFE8;   /* Stone */
  --text: #2A2E2B;        /* Graphite */
  --heading: #163D2B;     /* Forest (Hidden Rivers title) */
  --muted: #5F6762;       /* Warm gray */
  --line: #DCDBD2;
  --accent: #24533A;      /* Forest green */
  --accent-text: #F9F8F4;
  --accent-bright: #3F7A55; /* Leaf, for large text only */
  --accent-soft: #E3ECE4; /* Sage wash */
  --band: #163D2B;
  --shadow: 0 10px 30px rgb(22 61 43 / .08);
  --radius: 14px;
  --wrap: 1120px;
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111714;        /* Night forest */
    --surface: #18201C;
    --surface-2: #202A25;
    --text: #EEEDE6;      /* Cream */
    --heading: #F4F3EC;
    --muted: #A9B1AC;
    --line: #313B36;
    --accent: #8FC29F;    /* Sage */
    --accent-text: #0D1713;
    --accent-bright: #8FC29F;
    --accent-soft: #1F3328;
    --band: #1A2C22;
    --shadow: 0 10px 30px rgb(0 0 0 / .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { color: var(--heading); font-family: var(--head); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 54ch; }
.muted { color: var(--muted); }
.small { font-size: .925rem; }
.eyebrow { font: 700 .8rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section + .section { border-top: 1px solid var(--line); }
.narrow { max-width: 68ch; }
.center { text-align: center; margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 14px; }

/* Brand (mark + wordmark) */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand .wm { display: grid; line-height: 1; }
.brand .wm b { color: var(--heading); font: 700 1.45rem/1 var(--head); letter-spacing: -0.03em; }
.brand .wm span { font: 700 .62rem/1 var(--head); letter-spacing: .34em; color: var(--accent); margin-top: 4px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:hover { color: var(--accent); }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px;
  font: 600 1rem/1.2 var(--body); text-decoration: none; border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-text); cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); }
.nav .btn, .nav .btn:hover { padding: 9px 18px; font-size: .93rem; color: var(--accent-text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero .coin { width: min(360px, 100%); margin-inline: auto; }
.hero .mission { margin-top: 22px; padding-left: 16px; border-left: 3px solid var(--accent); color: var(--muted); max-width: 52ch; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .coin { width: 200px; order: -1; margin-inline: 0; }
}

/* Cards and grids */
.grid { display: grid; gap: 18px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .g4, .g2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .num { font: 700 .85rem/1 var(--head); color: var(--accent); letter-spacing: .1em; margin-bottom: 12px; display: block; }

/* Packages */
.pkg { display: flex; flex-direction: column; }
.pkg.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); position: relative; }
.pkg .tag { position: absolute; top: -13px; left: 22px; background: var(--accent); color: var(--accent-text); font: 700 .75rem/1 var(--head);
  letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.pkg .price { font: 700 2.6rem/1 var(--head); letter-spacing: -0.03em; margin: 6px 0 4px; }
.pkg .for { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.pkg ul { padding: 0; margin: 0 0 22px; list-style: none; display: grid; gap: 8px; }
.pkg li { padding-left: 26px; position: relative; font-size: .98rem; }
.pkg li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.pkg .btn { margin-top: auto; }

.callout { margin-top: 28px; padding: 22px 24px; border-radius: var(--radius); background: var(--accent-soft); max-width: 760px; }
.callout h3 { margin-bottom: .3em; }
.callout p { margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 .82rem/1.3 var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
.compare { max-width: 860px; }
.compare td:first-child { width: 24%; }
.compare td:nth-child(2) { width: 33%; }
td.us { font-weight: 600; color: var(--text); background: var(--accent-soft); }
.total { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; margin-top: 18px; padding: 18px 20px; border-radius: var(--radius); background: var(--accent-soft); }
.total b { font: 700 1.25rem/1.2 var(--head); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1rem/1 var(--head); border: 2px solid var(--accent); color: var(--accent); }
.steps h3 { margin: 6px 0 4px; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--muted); }
.steps .when { font-size: .85rem; color: var(--accent); font-weight: 600; margin-left: 8px; }
.two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 100px; }

/* Portfolio */
.book { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.book img { border-radius: 6px; box-shadow: 0 18px 40px rgb(22 40 30 / .22); }
@media (max-width: 720px) { .book { grid-template-columns: 1fr; } .book img { width: 200px; } }

/* Fit / not a fit */
.fit ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 600 1.1rem/1.4 var(--head); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 70ch; }

/* Closing band */
.band { background: var(--band); color: #F9F8F4; border-radius: 22px; padding: clamp(32px, 6vw, 64px); text-align: center; }
.band h2 { color: #F9F8F4; }
.band p { color: rgb(249 248 244 / .8); max-width: 56ch; margin-inline: auto; }
.band .btn { background: #F9F8F4; border-color: #F9F8F4; color: #163D2B; }
@media (prefers-color-scheme: dark) { .band { border: 1px solid var(--line); } .band .btn { background: var(--accent); border-color: var(--accent); color: var(--accent-text); } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: .93rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Policies page */
.doc h2 { font-size: 1.5rem; margin-top: 2em; }
.doc ul { padding-left: 20px; }
.note { background: var(--accent-soft); border-radius: 10px; padding: 12px 16px; font-size: .95rem; }

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

/* Forms (fit-call.html). Inputs are 10px. */
.form { display: grid; gap: 22px; margin-top: 32px; max-width: 620px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 600; padding: 0; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .92rem; }
.field input, .field textarea, .field select { font: inherit; color: var(--text); background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400 !important; margin-top: 6px; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--accent); }
.form .btn { justify-self: start; }

/* ---- Scroll motion (11/27/26) ----
   Same system as stewardaicoaching.com: motion.js tags elements and adds .motion + .motion-sda
   (CSS scroll-driven animations) or .motion-io (IntersectionObserver fallback).
   Nothing here applies without JS or with reduced motion. */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); }
.site-header { transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom-color: transparent;
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgb(22 61 43 / .06); }
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 20; pointer-events: none;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright)); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }
/* Hero coin turns with the scroll (motion.js sets the transform) */
.motion .hero .coin { will-change: transform; backface-visibility: visible; }
/* Corner coin with a reading-progress ring */
.coin-chip { position: fixed; left: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 15; width: 64px; height: 64px;
  display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 6px 20px rgb(22 61 43 / .12);
  pointer-events: none; opacity: 0; scale: .7; transition: opacity .35s ease, scale .35s var(--ease-out); }
.coin-chip.on { opacity: 1; scale: 1; }
.coin-chip svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.coin-chip img { width: 40px; height: 40px; }
.cc-track { fill: none; stroke: var(--line); stroke-width: 4; }
.cc-fill { fill: none; stroke: var(--accent-bright); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.coin-chip.done { scale: 1.08; }
@media (max-width: 1279px) { .coin-chip { left: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  .coin-chip img { width: 32px; height: 32px; } .coin-chip.on:not(.moving) { opacity: 0; scale: .7; } }
/* Hero intro (time-based, both modes) */
.motion [data-intro] { animation: m-intro 1s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms + 60ms); }
@keyframes m-intro { from { opacity: 0; translate: 0 72px; filter: blur(12px); } }
@keyframes m-rise { from { opacity: 0; translate: 0 140px; scale: .92; filter: blur(10px); } to { opacity: 1; translate: 0 0; scale: 1; filter: none; } }
@keyframes m-card { from { opacity: 0; translate: 0 180px; rotate: x 34deg; scale: .85; } to { opacity: 1; translate: 0 0; rotate: x 0deg; scale: 1; } }
@keyframes m-grow { from { opacity: .1; scale: .7; } to { opacity: 1; scale: 1; } }
@keyframes m-hero-out { to { transform: translateY(90px) scale(.95); } }
.motion .grid { perspective: 1100px; }
@supports (animation-timeline: view()) {
  .motion-sda [data-reveal] { animation: m-rise var(--ease-out) both; animation-timeline: view();
    animation-range: entry calc(var(--i) * 100px) entry calc(420px + var(--i) * 100px); }
  .motion-sda [data-reveal][data-card] { animation-name: m-card; transform-origin: 50% 100%; }
  .motion-sda [data-grow] { animation: m-grow var(--ease-out) both; animation-timeline: view(); animation-range: entry 0% entry 480px; }
  @media (min-width: 761px) {
    .motion-sda .hero .wrap > div:first-child { animation: m-hero-out linear both; animation-timeline: scroll(root); animation-range: 0 85vh; }
  }
  .motion-sda .hero ~ .section { position: relative; }
}
.motion-io [data-reveal], .motion-io [data-grow] {
  transition: opacity .9s var(--ease-out), translate .9s var(--ease-out), scale 1s var(--ease-out), rotate 1s var(--ease-out);
  transition-delay: calc(var(--i) * 90ms); }
.motion-io [data-reveal]:not(.in) { opacity: 0; translate: 0 110px; scale: .92; }
.motion-io [data-reveal][data-card]:not(.in) { translate: 0 150px; rotate: x 30deg; scale: .86; }
.motion-io [data-reveal][data-card] { transform-origin: 50% 100%; }
.motion-io [data-grow]:not(.in) { opacity: .1; scale: .74; }
@media print {
  .scroll-progress, .coin-chip { display: none; }
  .motion [data-reveal], .motion [data-grow], .motion [data-intro], .motion .hero .wrap > div, .motion .hero .coin {
    animation: none !important; opacity: 1 !important; translate: none !important; scale: none !important; rotate: none !important; filter: none !important; transform: none !important; }
}
