/* Ridge Chapel Tech — landing page styles (self-contained; no framework) */

:root {
  --ink:        #0b1220;
  --ink-2:      #111a2e;
  --body:       #334155;
  --muted:      #64748b;
  --line:       #e2e8f0;
  --bg:         #ffffff;
  --bg-alt:     #f6f8fc;
  --brand:      #4f46e5;
  --brand-700:  #4338ca;
  --brand-100:  #eef2ff;
  --accent:     #059669;
  --amber:      #d97706;
  --radius:     14px;
  --radius-sm:  10px;
  --wrap:       1140px;
  --shadow:     0 1px 2px rgba(15,23,42,.04), 0 12px 32px -12px rgba(15,23,42,.14);
  --font:       "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif:      "Instrument Serif", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 760px; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.15rem); font-weight: 750; }
h3 { font-size: 1.07rem; font-weight: 650; }
p  { margin: 0 0 1rem; }
a  { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--ink); font-weight: 600; }
em { font-family: var(--serif); font-style: italic; color: var(--brand-700); font-weight: 400; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
}
.skip:focus { left: 0; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #7c5cf0); color: #fff;
  font-weight: 800; font-size: .95rem; letter-spacing: -.03em;
}
.brand-name { font-size: 1.02rem; letter-spacing: -.02em; }
.brand-name span { font-weight: 400; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a { color: var(--body); font-size: .93rem; font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: .5rem .95rem;
  border-radius: 999px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--brand-700); }

.nav-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }
.mobile-nav { display: none; flex-direction: column; padding: .5rem 22px 1rem; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-nav a { padding: .55rem 0; color: var(--ink); font-weight: 500; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem; justify-content: center;
  padding: .78rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), #6d5ae6); color: #fff; box-shadow: 0 10px 24px -12px rgba(79,70,229,.75); }
.btn-primary:hover { box-shadow: 0 14px 30px -12px rgba(79,70,229,.85); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #c7d2fe; background: var(--brand-100); }
.btn-lg { padding: .95rem 1.6rem; font-size: 1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.4rem 0 .4rem; }
.cta-row.center { justify-content: center; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: clamp(2.6rem, 6vw, 4.6rem) 0 clamp(2.4rem, 5vw, 4rem); background:
  radial-gradient(1100px 420px at 78% -12%, #eef2ff 0%, rgba(255,255,255,0) 62%),
  radial-gradient(760px 340px at 12% 6%, #ecfdf5 0%, rgba(255,255,255,0) 58%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700;
  color: var(--brand-700); margin: 0 0 .9rem;
}
.eyebrow-light { color: #c7d2fe; }
.lede { font-size: 1.09rem; color: var(--body); max-width: 56ch; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 1.6rem; padding: 0; margin: 1.9rem 0 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.02rem; }
.hero-stats span { font-size: .84rem; color: var(--muted); }

.hero-diagram { margin: 0; }
.stack { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem; box-shadow: var(--shadow); }
.stack-row { display: flex; gap: .85rem; align-items: flex-start; padding: .7rem .5rem; }
.stack-row h3 { margin: 0 0 .1rem; font-size: .98rem; }
.stack-row p { margin: 0; font-size: .86rem; color: var(--muted); }
.stack-connector { width: 1px; height: 16px; margin-left: 1.05rem; background: linear-gradient(var(--line), #cbd5e1); }
.dot { width: 12px; height: 12px; border-radius: 50%; margin-top: .42rem; flex: none; box-shadow: 0 0 0 4px rgba(79,70,229,.10); }
.dot-indigo { background: var(--brand); }
.dot-emerald { background: var(--accent); box-shadow: 0 0 0 4px rgba(5,150,105,.12); }
.dot-amber { background: var(--amber); box-shadow: 0 0 0 4px rgba(217,119,6,.12); }
.hero-diagram figcaption { margin-top: .7rem; font-size: .82rem; color: var(--muted); text-align: center; }

/* ── Sections ───────────────────────────────────────────────────────── */
.section { padding: clamp(2.8rem, 6vw, 4.6rem) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lede { max-width: 62ch; margin-bottom: 2.2rem; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.4rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--brand-100); color: var(--brand-700); font-size: 1.15rem; margin-bottom: .9rem;
}
.card-lede { color: var(--muted); font-size: .95rem; }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; }
.ticks li { position: relative; padding-left: 1.5rem; margin-bottom: .55rem; font-size: .93rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .52em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--brand); opacity: .85;
}

.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.2rem; list-style: none; padding: 0; margin: 2rem 0 2.6rem; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.step-n { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--brand); margin-bottom: .4rem; }
.steps h3 { margin-bottom: .35rem; }
.steps p { font-size: .9rem; color: var(--muted); margin: 0; }

.promise { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; box-shadow: var(--shadow); }
.promise-list { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem 1.4rem; }
.promise-list li { font-size: .93rem; }

/* ── BareNOC band ───────────────────────────────────────────────────── */
.barenoc-band { background: linear-gradient(135deg, #0b1220 0%, #1e1b4b 55%, #0f172a 100%); color: #cbd5e1; }
.barenoc-band h2 { color: #fff; }
.barenoc-band p { color: #cbd5e1; }
.brandword { font-family: var(--serif); font-weight: 400; color: #a5b4fc; }
.barenoc-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(1.6rem,4vw,3rem); align-items: start; }
.barenoc-band .btn-ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); color: #fff; }
.barenoc-band .btn-ghost:hover { background: rgba(255,255,255,.12); }
.barenoc-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.barenoc-points li { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.barenoc-points strong { display: block; color: #fff; font-size: .95rem; }
.barenoc-points span { font-size: .86rem; color: #a8b3c7; }

/* ── Contact ────────────────────────────────────────────────────────── */
.contact { text-align: center; }
.contact .eyebrow { }
.small { font-size: .87rem; color: var(--muted); margin-top: 1.6rem; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 2.6rem 0 1.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1.6rem; }
.footer-grid h3 { font-size: .84rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .7rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .45rem; font-size: .9rem; }
.footer-grid a { color: var(--body); }
.footer-grid a:hover { color: var(--brand-700); }
.brand-footer { margin-bottom: .5rem; }
.footer-note { font-size: .9rem; color: var(--muted); max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.footer-bottom p { font-size: .83rem; color: var(--muted); margin: 0; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid, .barenoc-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav:not([hidden]) { display: flex; }
  .promise-list { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.1rem; }
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
