/* Pastorally landing page — palette matches the demonstration app */
:root {
  --navy: #1B2A48;
  --navy-2: #2a3d63;
  --navy-deep: #17243b;
  --sky: #3FB7E0;
  --sky-ink: #0f6f93;          /* sky darkened for text on white (AA) */
  --orange: #F6A12F;
  --red: #E5292A;
  --green: #1f8a4c;
  --bg: #f5f6f8;
  --card: #ffffff;
  --ink: #1c2333;
  --muted: #5d6577;
  --border: #dde1e8;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(27, 42, 72, .06), 0 8px 24px rgba(27, 42, 72, .08);
  --shadow-lg: 0 2px 4px rgba(27, 42, 72, .06), 0 24px 60px rgba(27, 42, 72, .16);
  --wrap: 1160px;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--navy);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; color: var(--navy); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
h3 { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--navy); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
  text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; outline: 3px solid var(--orange); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: inherit; font-weight: 650; text-decoration: none; line-height: 1.2;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn-sm { padding: .55rem 1.05rem; font-size: .95rem; }
.btn-lg { padding: .9rem 1.5rem; font-size: 1.0625rem; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy); background: #fff; }
.btn-icon { width: 1em; height: 1em; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 246, 248, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--bg); } }
.site-header { border-bottom-color: rgba(221, 225, 232, .8); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--serif); font-size: 1.4rem; color: var(--navy); letter-spacing: -0.01em;
}
.wordmark-mark { width: 30px; height: 30px; }

.site-nav ul { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  display: block; padding: .5rem .8rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: .975rem; font-weight: 500;
}
.site-nav a:not(.btn):hover { background: rgba(27, 42, 72, .06); color: var(--navy); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; cursor: pointer; position: relative;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px;
  background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 859px) {
  .js .nav-toggle { display: block; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px clamp(18px, 4vw, 40px) 20px; gap: 2px; }
  .js .site-nav a:not(.btn) { padding: .8rem .6rem; font-size: 1.05rem; }
  .js .nav-cta { margin: 10px 0 0; }
  .js .nav-cta .btn { width: 100%; padding: .85rem 1rem; }
  /* Without JS: keep links visible, hide in-page links, keep CTA */
  html:not(.js) .site-nav li:not(.nav-cta) { display: none; }
}

/* Shared section styles */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); margin-bottom: 18px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.125rem; }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-ink);
}
.eyebrow-light { color: var(--sky); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%;
  background:
    radial-gradient(closest-side, rgba(63, 183, 224, .18), transparent 70%),
    radial-gradient(closest-side at 70% 70%, rgba(246, 161, 47, .10), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.hero h1 { font-size: clamp(2.35rem, 5.6vw, 4.1rem); line-height: 1.06; margin-bottom: 24px; max-width: 14ch; }
.hero h1 em {
  font-style: italic; color: var(--navy-2);
  text-decoration: underline; text-decoration-color: var(--orange);
  text-decoration-thickness: .09em; text-underline-offset: .14em; text-decoration-skip-ink: none;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-note { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 4px rgba(31, 138, 76, .14); }

/* Hero mock */
.hero-visual { margin: 0; position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 10% -6% -6% 12%;
  background: var(--navy); border-radius: 28px; transform: rotate(3deg); opacity: .96;
}
.mock {
  position: relative; background: var(--card); border-radius: 20px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); overflow: hidden; font-size: .9rem;
}
.mock-bar {
  display: flex; align-items: center; gap: 6px; padding: 12px 16px;
  background: var(--navy); color: #fff;
}
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.mock-bar b { margin-left: 10px; font-family: var(--serif); font-weight: 400; font-size: 1rem; }
.mock-bar i {
  margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--orange); color: #1b1300; padding: 3px 8px; border-radius: 999px;
}
.mock-body { padding: 18px; display: grid; gap: 14px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-stats div { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.mock-stats strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--navy); line-height: 1.1; }
.mock-stats small { color: var(--muted); font-size: .75rem; line-height: 1.3; display: block; }
.mock-list { display: grid; gap: 2px; }
.mock-list li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 10px 6px; border-bottom: 1px solid var(--border);
}
.mock-list li:last-child { border-bottom: 0; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: .72rem; font-weight: 700; color: #fff;
}
.a1 { background: var(--sky-ink); } .a2 { background: var(--navy-2); } .a3 { background: var(--green); } .a4 { background: var(--navy); }
.mock-who { display: grid; min-width: 0; }
.mock-who b { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-who small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.pill-s1 { background: #e3f4fb; color: #0b5874; }
.pill-s2 { background: #fff4d6; color: #6b3f00; }
.pill-s3 { background: #fde2e2; color: #9b1c1c; }
.pill-m  { background: #e3f3ea; color: #145c33; }
.mock-note { background: #eef1f8; border-left: 3px solid var(--sky); border-radius: 10px; padding: 12px 14px; }
.mock-note small { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mock-note p { margin-top: 4px; color: var(--ink); font-family: var(--serif); font-style: italic; }
@media (max-width: 420px) {
  .mock-body { padding: 14px; }
  .mock-stats small { font-size: .68rem; }
  .mock-list li { gap: 9px; }
}

/* Problem */
.problem { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.scatter { display: grid; gap: 20px; counter-reset: s; }
@media (min-width: 760px) { .scatter { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.scatter li { padding-top: 22px; border-top: 2px solid var(--navy); }
.scatter-num { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--sky); margin-bottom: 14px; }
.scatter h3 { margin-bottom: 8px; }
.scatter p { color: var(--muted); }

/* Features */
.feature-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px 28px; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cfd5df; }
.feature h3 { margin: 18px 0 8px; }
.feature p { color: var(--muted); font-size: 1rem; }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.feature-icon svg { width: 24px; height: 24px; }
.fi-navy { background: #e8ecf4; color: var(--navy); }
.fi-sky { background: #e3f4fb; color: var(--sky-ink); }
.fi-orange { background: #fff1dc; color: #9a5a00; }
.fi-green { background: #e3f3ea; color: var(--green); }

.roles {
  margin-top: clamp(32px, 5vw, 48px); padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius); background: var(--navy); color: #fff;
  display: grid; gap: 22px; align-items: center;
}
@media (min-width: 900px) { .roles { grid-template-columns: .9fr 1.1fr; gap: 40px; } }
.roles h3 { color: #fff; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin-bottom: 8px; }
.roles p { color: #c9d0de; }
.role-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.role-chips li {
  padding: .5rem .95rem; border-radius: 999px; font-size: .95rem; font-weight: 600;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff;
}
.role-chips li:nth-child(3n+1) { border-color: rgba(63, 183, 224, .55); }
.role-chips li:nth-child(3n+2) { border-color: rgba(246, 161, 47, .55); }

/* Who */
.who { background: #fff; border-top: 1px solid var(--border); }
.who-grid { display: grid; gap: 0; border-top: 1px solid var(--border); }
@media (min-width: 760px) { .who-grid { grid-template-columns: repeat(2, 1fr); } }
.who-grid li { padding: 28px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 760px) {
  .who-grid li { padding: 32px 40px 32px 0; }
  .who-grid li:nth-child(even) { padding: 32px 0 32px 40px; border-left: 1px solid var(--border); }
}
.who-grid h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; margin-bottom: 8px; }
.who-grid h3::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px;
  background: var(--sky); margin-right: 12px; vertical-align: .18em;
}
.who-grid li:nth-child(2) h3::before { background: var(--orange); }
.who-grid li:nth-child(3) h3::before { background: var(--green); }
.who-grid li:nth-child(4) h3::before { background: var(--navy); }
.who-grid p { color: var(--muted); max-width: 34em; }

/* Care */
.care { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.care-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 960px) { .care-grid { grid-template-columns: .95fr 1.05fr; align-items: start; } }
.care h2 { color: #fff; font-size: clamp(1.85rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
.care-grid > div > p:not(.eyebrow) { color: #c9d0de; font-size: 1.125rem; max-width: 34em; }
.care-list { display: grid; gap: 14px; }
.care-list li {
  padding: 22px 24px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
}
.care-list h3 { color: #fff; margin-bottom: 6px; }
.care-list p { color: #c9d0de; font-size: 1rem; }

/* Demo */
.demo-card {
  position: relative; overflow: hidden;
  display: grid; gap: 28px; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 24px;
  padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow);
}
.demo-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, var(--sky), var(--navy));
}
@media (min-width: 900px) { .demo-card { grid-template-columns: 1.4fr .8fr; gap: 48px; } }
.demo-card h2 { font-size: clamp(1.85rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.demo-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.demo-copy .demo-honest {
  margin-top: 18px; padding: 14px 16px; border-radius: 10px;
  background: #fff4d6; color: #4a2c00; font-size: 1rem; border: 1px solid #f3c47e;
}
.demo-honest strong { color: #4a2c00; }
.demo-action { display: grid; gap: 12px; justify-items: start; }
@media (min-width: 900px) { .demo-action { justify-items: center; text-align: center; } }
.demo-url { font-size: .9rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.closing { margin-top: 36px; text-align: center; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.15rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #fff; padding: 36px 0 44px; color: var(--muted); font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; }
.footer-brand { font-family: var(--serif); color: var(--navy); font-size: 1.2rem; }
.footer-meta { margin-left: auto; }
@media (max-width: 640px) { .footer-inner { flex-direction: column; } .footer-meta { margin-left: 0; } }

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .btn-primary:hover, .feature:hover { transform: none; }
}

/* Forced colours / high contrast */
@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .hero::before, .hero-visual::before { display: none; }
}

/* Print */
@media print {
  .site-header, .nav-toggle, .hero-visual { display: none; }
  .care, .roles { background: #fff; color: #000; }
  .care h2, .care h3, .roles h3, .care-list p, .roles p, .role-chips li { color: #000; }
}
