/* ==========================================================================
   GoodOps marketing homepage — v0
   Brand tokens mirror GoodOps_Pricing_OnePager.html (forest palette,
   Lora headings + DM Sans body). Light + dark safe via prefers-color-scheme.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand — forest palette */
  --forest:      #2D6A4F;
  --forest-dark: #1B4332;
  --forest-mid:  #40916C;
  --forest-pale: #D8F3DC;
  --forest-ghost:#F0FAF3;

  /* Surfaces + ink (light) */
  --ink:      #14201B;
  --ink-soft: #3A3A3A;
  --ink-muted:#6B7A72;
  --bg:       #FDFCFA;
  --bg-alt:   #F5F4F1;
  --card:     #FFFFFF;
  --border:   #E6E3DE;

  /* Accent used on dark backgrounds (readable on forest) */
  --on-forest:      #FDFCFA;
  --on-forest-soft: #D8F3DC;

  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1080px;
  --shadow: 0 1px 2px rgba(20,32,27,.04), 0 8px 28px rgba(20,32,27,.06);

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --forest:      #52B788;
    --forest-dark: #0F1E17;
    --forest-mid:  #40916C;
    --forest-pale: #1B4332;
    --forest-ghost:#14261D;

    --ink:      #ECF3EF;
    --ink-soft: #C4CFC9;
    --ink-muted:#8FA69B;
    --bg:       #0B1511;
    --bg-alt:   #101E18;
    --card:     #13221B;
    --border:   #22362C;

    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  }
}

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ------------------------------- Wordmark ------------------------------- */
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--ink);
}
.wordmark .ops { color: var(--forest); }

/* ------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { color: #06120C; } }
.btn-primary:hover { background: var(--forest-mid); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--forest-mid); background: var(--forest-ghost); }
.btn-sm { padding: 10px 16px; font-size: 14.5px; }
.btn-lg { padding: 16px 30px; font-size: 17px; }

/* ------------------------------- Header --------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.site-header .wordmark { font-size: 24px; }
.nav {
  margin-left: auto;
  display: flex;
  gap: 26px;
}
.nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
}
.nav a:hover { color: var(--forest); text-decoration: none; }

/* -------------------------------- Hero ---------------------------------- */
.hero {
  background:
    radial-gradient(1100px 520px at 50% -10%, var(--forest-ghost), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  text-align: center;
  padding: 92px 24px 84px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 20px;
}
h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 6.2vw, 62px);
  line-height: 1.06;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 22px;
}
.lede {
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 32px;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.hero-sub {
  font-size: 14px;
  color: var(--ink-muted);
  font-style: italic;
}

/* ------------------------------ Sections -------------------------------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-label {
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.18;
  letter-spacing: -.5px;
  color: var(--ink);
  margin-bottom: 40px;
  max-width: 720px;
}
.section-intro { color: var(--ink-soft); max-width: 640px; margin: -24px 0 36px; }

/* -------------------------------- Steps --------------------------------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step {
  background: var(--forest-ghost);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px 26px;
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}
@media (prefers-color-scheme: dark) { .step-n { color: #06120C; } }
.step h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 8px;
}
.step p { font-size: 15px; color: var(--ink-muted); line-height: 1.5; }

/* ------------------------------ The model ------------------------------- */
.model-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}
.model-copy p { color: var(--ink-soft); margin-bottom: 16px; max-width: 46ch; }
.model-copy .section-title { margin-bottom: 24px; }
.model-points { list-style: none; display: grid; gap: 14px; }
.model-points li {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--forest-mid);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 15.5px;
  color: var(--ink-soft);
  box-shadow: var(--shadow);
}
.model-points strong { color: var(--ink); }

/* ------------------------------- Pricing -------------------------------- */
.price-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--forest-ghost);
  border: 1.5px solid var(--forest-mid);
  border-radius: var(--radius);
  padding: 26px 30px;
}
.price-base-copy { flex: 1; min-width: 260px; }
.price-base-copy h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 6px;
}
.price-base-copy p { color: var(--ink-muted); font-size: 15px; max-width: 52ch; }
.price-base-figure {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--serif);
}
.price-base-figure .amount { font-size: 30px; font-weight: 700; color: var(--forest); }
.price-base-figure .unit { font-family: var(--sans); font-size: 14px; color: var(--ink-muted); font-weight: 500; }
.price-base-figure .plus { font-size: 22px; color: var(--ink-muted); margin: 0 4px; }

.price-flat-note {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 14px 2px 30px;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.price-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.price-card-top h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}
.price-card-top .tag {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--forest);
  white-space: nowrap;
}
.price-card-top .tag small { font-family: var(--sans); font-size: 13px; color: var(--ink-muted); font-weight: 500; }
.price-card p { font-size: 14.5px; color: var(--ink-muted); line-height: 1.5; }

.price-note {
  margin-top: 22px;
  background: var(--bg-alt);
  border-left: 3px solid var(--forest-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.price-note strong { color: var(--ink); }
.price-fine { margin-top: 14px; font-size: 13px; color: var(--ink-muted); }

/* ------------------------------ Who it's for ---------------------------- */
.who-inner { text-align: center; }
.who-inner .section-title { margin-left: auto; margin-right: auto; }
.who-lede {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--ink-soft);
  max-width: 660px;
  margin: 0 auto 30px;
}
.who-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.who-tags li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--forest-dark);
}
@media (prefers-color-scheme: dark) { .who-tags li { color: var(--on-forest-soft); } }

/* -------------------------------- CTA band ------------------------------ */
.cta-band {
  background: linear-gradient(160deg, var(--forest-dark), var(--forest));
}
@media (prefers-color-scheme: dark) {
  .cta-band { background: linear-gradient(160deg, #0F241A, #14261D); border-block: 1px solid var(--border); }
}
.cta-band-inner {
  text-align: center;
  padding: 84px 24px;
}
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--on-forest);
  margin-bottom: 14px;
  letter-spacing: -.5px;
}
.cta-band p { color: var(--on-forest-soft); max-width: 520px; margin: 0 auto 28px; font-size: 17px; }
.cta-band .btn-primary { background: #fff; color: var(--forest-dark); }
.cta-band .btn-primary:hover { background: var(--forest-pale); }
.cta-email { margin-top: 18px; font-size: 14.5px; color: var(--on-forest-soft); }
.cta-email a { color: #fff; text-decoration: underline; }

/* -------------------------------- Footer -------------------------------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand .wordmark { font-size: 20px; }
.footer-brand p { font-size: 13.5px; color: var(--ink-muted); margin-top: 2px; }
.footer-meta { display: flex; gap: 20px; align-items: center; font-size: 14px; color: var(--ink-muted); }
.footer-meta a { color: var(--ink-soft); }

/* ------------------------------ Library (v1) ---------------------------- */
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.lib-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.lib-card h4 { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.lib-card p { font-size: 14.5px; color: var(--ink-muted); line-height: 1.5; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .model-grid { grid-template-columns: 1fr; gap: 34px; }
  .library-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .header-inner { height: 62px; }
  .site-header .btn { margin-left: auto; }
  .hero-inner { padding: 64px 20px 60px; }
  .section { padding: 60px 0; }
  .steps { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: 1fr; }
  .price-base { padding: 22px; }
  .price-base-figure { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
