/* ============================================================
   OtterSprint  shared stylesheet
   No external fonts, no external assets. Everything self-hosted,
   one file, cached after first request.
   ============================================================ */

:root {
  /* color */
  --bg: #F3F6F4;
  --surface: #FFFFFF;
  --surface-2: #EDF2EF;
  --ink: #142420;
  --ink-soft: #51655D;
  --ink-faint: #8CA098;
  --brand: #0E5C52;
  --brand-dark: #0A3F38;
  --brand-light: #1F8A79;
  --accent: #D98F4E;
  --line: #DCE6E0;
  --line-strong: #C4D2CB;

  /* type */
  --font-display: -apple-system, "Segoe UI Semibold", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", Menlo, monospace;

  /* layout */
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(20, 36, 32, 0.04), 0 10px 30px rgba(20, 36, 32, 0.06);
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 3px;
}

img, svg { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--brand);
  display: inline-block;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 246, 244, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.brand:hover { color: var(--ink); }

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand-word b { color: var(--brand); }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--brand);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
}

.nav-cta:hover { background: var(--brand-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .nav { position: fixed; inset: 72px 0 0 0; background: var(--bg); flex-direction: column; align-items: flex-start; padding: 26px 24px; gap: 22px; border-top: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .2s ease, opacity .2s ease; }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { margin-top: 6px; }
}

/* ---------- ripple divider (signature motif) ---------- */

.ripple {
  width: 100%;
  height: 28px;
  display: block;
  color: var(--brand-light);
  opacity: 0.55;
}

.ripple path {
  stroke: currentColor;
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 6 10;
  animation: ripple-flow 5.5s linear infinite;
}

@keyframes ripple-flow {
  to { stroke-dashoffset: -160; }
}

/* ---------- hero ---------- */

.hero {
  padding: 76px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 { max-width: 15ch; }

.hero .lede {
  font-size: 1.1rem;
  max-width: 46ch;
  color: var(--ink-soft);
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- sections ---------- */

section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head p { font-size: 1.02rem; }

.bordered-top { border-top: 1px solid var(--line); }
.surface { background: var(--surface); }
.surface-2 { background: var(--surface-2); }

.grid {
  display: grid;
  gap: 22px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

.icon-chip {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* process steps (a real sequence  numbering is meaningful here) */

.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.step .num {
  font-family: var(--font-mono);
  color: var(--brand);
  font-size: 0.95rem;
  padding-top: 4px;
}

@media (max-width: 600px) {
  .step { grid-template-columns: 40px 1fr; gap: 14px; }
}

/* stat row */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--brand-dark);
}

.stat span {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* table (faq / pricing-style rows) */

.list-rows { border-top: 1px solid var(--line); }
.list-row { padding: 24px 0; border-bottom: 1px solid var(--line); }
.list-row h3 { margin-bottom: 8px; }
.list-row p { margin-bottom: 0; }

/* cta band */

.cta-band {
  background: var(--brand-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.75); margin-bottom: 0; }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); }
.cta-band .btn-primary:hover { background: var(--surface-2); }

/* blog */

.post-card { display: grid; gap: 8px; }
.post-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

article.post {
  max-width: 68ch;
  margin: 0 auto;
}
article.post h1 { margin-bottom: 10px; }
article.post h2 { margin-top: 1.6em; }
article.post p, article.post li { color: var(--ink-soft); }

/* forms (static  no submission endpoint) */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }

.note {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 30px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

.footer-grid h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.footer-grid a {
  display: block;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ink-faint);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* error pages */

.error-page {
  min-height: 62vh;
  display: flex;
  align-items: center;
}

.error-page .code {
  font-family: var(--font-mono);
  color: var(--brand);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
