/* Naz.tools — site styles
   Palette nod to nazarene.org. Typography: Inter throughout.
   Mobile-first. */

:root {
  --bg: #ffffff;
  --bg-tint: #f7f7f7;
  --bg-card: #ffffff;
  --ink: #4A4B4C;             /* Nazarene primary charcoal */
  --ink-soft: #6b6c6d;
  --ink-mute: #8a8b8d;
  --rule: #DEDFE0;
  --rule-soft: #ececed;
  --accent: #40996D;          /* Nazarene accent green */
  --accent-ink: #2f7553;
  --accent-tint: #e3f1ea;
  --secondary: #53819A;       /* Nazarene secondary slate blue */
  --secondary-ink: #3e6378;
  --secondary-tint: #e2ebf0;
  --warn: #b45c00;
  --warn-tint: #fdf0e0;
  --maxw: 1080px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(74, 75, 76, 0.04), 0 4px 16px rgba(74, 75, 76, 0.06);

  /* Hero gradient — green to slate blue, like the nazarene.org disciples panel */
  --hero-gradient: linear-gradient(135deg, #40996D 0%, #4a91a0 50%, #53819A 100%);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01", "ss03";
}

a { color: var(--secondary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--secondary-ink); }

h1, h2, h3, h4 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem); margin-top: 0; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.25em; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  background: var(--bg-tint);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.92em;
}

/* layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4rem 0; }
.section--tight { padding: 2.5rem 0; }
.section--tinted { background: var(--bg-tint); }

/* nav */
.site-nav {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: block;
}
.brand-text {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand-naz   { font-weight: 800; color: var(--ink); }
.brand-dot   { font-weight: 800; color: var(--ink-mute); }
.brand-tools { font-weight: 500; color: var(--ink); }
.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--accent-ink); }
.nav-links a.cta {
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.nav-links a.cta:hover { background: var(--accent-ink); color: #fff; }

/* hero — gradient panel with topographic-line overlay */
.hero {
  position: relative;
  padding: 5.5rem 0 5rem;
  background: var(--hero-gradient);
  color: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/img/topo.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.32;
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.hero > * { position: relative; }
.hero .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.hero h1 {
  max-width: 22ch;
  color: #fff;
  letter-spacing: -0.025em;
}
.hero .lede {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.92);
  max-width: 56ch;
  margin: 0.5rem 0 2rem;
}
.hero .btn--primary {
  background: #fff;
  color: var(--accent-ink);
}
.hero .btn--primary:hover { background: #f0f7f3; color: var(--accent-ink); }
.hero .btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.hero .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-ink); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--accent-ink);
  border-color: var(--rule);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.feature:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow);
}
.feature h3 {
  color: var(--secondary-ink);
  margin-bottom: 0.6rem;
  font-size: 1.12rem;
  font-weight: 800;
}
.feature ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.feature li { margin-bottom: 0.3em; }

/* beta callout */
.beta-callout {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}
.beta-callout h2 { margin-top: 0; }
.beta-callout p:last-child { margin-bottom: 0; }

/* form */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 1.5rem auto 0;
}
.form-card h2 { margin-top: 0; }
.form-row { margin-bottom: 1.1rem; }
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.form-row .req { color: var(--accent); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row .hp { display: none !important; }
.form-row.note { color: var(--ink-mute); font-size: 0.88rem; }
.form-error {
  background: #fdecec;
  color: #7a1c1c;
  border: 1px solid #f1c5c5;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* page header (subpages) — soft-tinted slate-blue band */
.page-head {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--secondary-tint) 0%, var(--bg) 100%);
}
.page-head h1 { margin-bottom: 0.5rem; color: var(--secondary-ink); }
.page-head .lede { color: var(--ink-soft); margin: 0; max-width: 60ch; }

/* roadmap timeline */
.roadmap-stage {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.roadmap-stage h3 {
  margin: 0 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  vertical-align: middle;
}
.tag--shipped { background: var(--accent-tint); color: var(--accent-ink); }
.tag--inprogress { background: #fde8d3; color: #8a4d00; }
.tag--planned { background: var(--secondary-tint); color: var(--secondary-ink); }
.roadmap-stage p { color: var(--ink-soft); margin-bottom: 0.5rem; }

/* faq */
details.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  padding: 0.25rem 1.25rem;
}
details.faq-item[open] { background: var(--accent-tint); border-color: var(--accent); }
details.faq-item summary {
  cursor: pointer;
  padding: 0.85rem 0;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--ink-mute);
  transition: transform 0.2s;
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item p { color: var(--ink-soft); padding-bottom: 0.5rem; margin: 0 0 0.75rem; }
details.faq-item p:last-child { padding-bottom: 0.75rem; }

/* quote / testimonial placeholder */
.quote {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink);
  position: relative;
}
.quote .attrib {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--ink-mute);
  font-style: normal;
}

/* footer */
.site-foot {
  border-top: 1px solid var(--rule);
  padding: 2rem 0;
  margin-top: 3rem;
  color: var(--ink-mute);
  font-size: 0.92rem;
  background: var(--bg);
}
.site-foot .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-foot a { color: var(--ink-soft); }

/* small screens */
@media (max-width: 640px) {
  .hero { padding: 2.5rem 0 2rem; }
  .section { padding: 2.5rem 0; }
  .form-card { padding: 1.5rem; }
  .nav-links { gap: 0.85rem; font-size: 0.9rem; }
  .nav-links a.cta { padding: 0.4rem 0.75rem; }
}

/* utility */
.muted { color: var(--ink-mute); }
.lede { font-size: 1.15rem; color: var(--ink-soft); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* skip link a11y */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }
