/* ============================================================================
   Reconcile — landing page. Self-contained design system.
   Warm paper (light) / deep charcoal (dark). Emerald accent, Fraunces display.
   ========================================================================== */
:root {
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-xs: 6px;
  --r-sm: 9px;
  --r-md: 13px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t: 0.18s var(--ease);
}

/* ---------- light ---------- */
:root,
[data-theme="light"] {
  --bg: #fbfaf7;
  --bg-soft: #f3f1ea;
  --surface: #ffffff;
  --surface-2: #f6f4ee;
  --fg: #17201b;
  --muted: #58655d;
  --dim: #8b978f;
  --line: #e7e3d8;
  --line-2: #d3cdbe;
  --acc: #0f7a52;
  --acc-2: #0a5c3d;
  --acc-soft: rgba(15, 122, 82, 0.1);
  --acc-ink: #ffffff;
  --amber: #b6791a;
  --amber-soft: rgba(182, 121, 26, 0.12);
  --ok: #0f7a52;
  --warn: #b6791a;
  --crit: #c0392b;
  --shadow-sm: 0 1px 2px rgba(23, 32, 27, 0.05);
  --shadow: 0 2px 4px rgba(23, 32, 27, 0.05), 0 16px 40px rgba(23, 32, 27, 0.08);
  --ring: 0 0 0 4px rgba(15, 122, 82, 0.16);
  --scheme: light;
}
/* ---------- dark ---------- */
[data-theme="dark"] {
  --bg: #0a0d0c;
  --bg-soft: #0f1311;
  --surface: #121614;
  --surface-2: #181d1a;
  --fg: #e9ede9;
  --muted: #9aa79f;
  --dim: #6c786f;
  --line: #232a26;
  --line-2: #333c37;
  --acc: #35c08a;
  --acc-2: #4fd6a0;
  --acc-soft: rgba(53, 192, 138, 0.14);
  --acc-ink: #08120d;
  --amber: #e0b15e;
  --amber-soft: rgba(224, 177, 94, 0.14);
  --ok: #35c08a;
  --warn: #e0b15e;
  --crit: #ff6b6b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 20px 48px rgba(0, 0, 0, 0.45);
  --ring: 0 0 0 4px rgba(53, 192, 138, 0.18);
  --scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scrollbar-color: var(--line-2) var(--bg);
  color-scheme: var(--scheme);
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition:
    background-color 0.24s var(--ease),
    color 0.24s var(--ease);
}
::selection {
  background: var(--acc-soft);
}
:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 5px;
}
a {
  color: var(--acc);
  text-underline-offset: 3px;
}
button,
input {
  font: inherit;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  z-index: 99;
}
.skip:focus {
  left: 12px;
  top: 12px;
}

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  transition: var(--t);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--fg);
}
.btn-primary {
  background: var(--acc);
  border-color: var(--acc);
  color: var(--acc-ink);
}
.btn-primary:hover {
  background: var(--acc-2);
  border-color: var(--acc-2);
}
.btn-ghost {
  background: none;
  box-shadow: none;
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--line);
}
.btn-lg {
  padding: 15px 26px;
  font-size: 15px;
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

/* ---------- eyebrow + headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--acc);
  opacity: 0.6;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.02;
  margin-bottom: 24px;
}
.h1 em {
  font-style: italic;
  color: var(--acc);
}
.h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin-bottom: 18px;
}
.h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 60ch;
}
.lede b {
  color: var(--fg);
  font-weight: 600;
}
.section-sub {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 60ch;
  margin-bottom: 44px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: var(--t);
}
.nav.scrolled {
  border-bottom-color: var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand .mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--acc), var(--acc-2));
  display: grid;
  place-items: center;
  color: var(--acc-ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 13px;
  border-radius: var(--r-pill);
  transition: var(--t);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--fg);
  background: var(--surface-2);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: var(--t);
  font-size: 15px;
}
.iconbtn:hover {
  color: var(--fg);
  border-color: var(--line-2);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--acc-soft), transparent 66%);
  pointer-events: none;
}
.hero-in {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px var(--acc-soft);
  flex-shrink: 0;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px var(--acc-soft);
  }
  50% {
    box-shadow: 0 0 0 8px transparent;
  }
}

/* ---------- product mockup ---------- */
.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.mock-bar .dots {
  display: flex;
  gap: 6px;
}
.mock-bar .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}
.mock-bar .title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  margin-left: 6px;
}
.mock-body {
  padding: 18px;
  display: grid;
  gap: 12px;
}
.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  font-size: 13px;
}
.mock-row .ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.mock-row .txt {
  min-width: 0;
  flex: 1;
}
.mock-row .txt b {
  display: block;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-row .txt span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
}
.mock-row .amt {
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  flex-shrink: 0;
}
.chip {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
}
.chip.ok {
  border-color: var(--acc);
  color: var(--acc);
  background: var(--acc-soft);
}
.chip.warn {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-soft);
}
.mock-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.mock-foot b {
  color: var(--acc);
}

/* ---------- logo / trust strip ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 24px 0;
}
.strip-in {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}
.strip-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.strip-logos {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  align-items: center;
}
.strip-logos span {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--muted);
  opacity: 0.72;
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 8px;
}
.stat {
  background: var(--surface);
  padding: 26px 22px;
}
.stat .v {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.stat .v.a {
  color: var(--acc);
}
.stat .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 10px;
}

/* ---------- generic section ---------- */
.section {
  padding: 88px 0;
}
.section.alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: 720px;
  margin-bottom: 46px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.split .h2 {
  margin-bottom: 0;
}
.prose p {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.72;
}
.prose p + p {
  margin-top: 18px;
}
.prose strong {
  color: var(--fg);
}

/* ---------- steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: s;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--t);
}
.steps li:hover {
  transform: translateY(-3px);
  border-color: var(--acc);
  box-shadow: var(--shadow);
}
.step-n {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--acc);
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--acc-soft);
}
.steps h3 {
  font-size: 19px;
  margin: 16px 0 8px;
}
.steps p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--t);
}
.feat:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.feat .fi {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--acc-soft);
  color: var(--acc);
  margin-bottom: 18px;
}
.feat .fi svg {
  width: 21px;
  height: 21px;
}
.feat h3 {
  font-size: 18px;
  margin-bottom: 9px;
}
.feat p {
  font-size: 14px;
  line-height: 1.62;
  color: var(--muted);
}

/* ---------- deep dive split w/ visual ---------- */
.deep {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.deep .lede {
  font-size: 16.5px;
}
.deep .prose {
  margin-top: 22px;
}
.list {
  list-style: none;
  margin-top: 22px;
  display: grid;
  gap: 12px;
}
.list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--acc-soft);
  border: 1px solid var(--acc);
}
.list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 5px;
  height: 9px;
  border: solid var(--acc);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--t);
}
.plan.featured {
  border-color: var(--acc);
  box-shadow: var(--shadow);
  position: relative;
}
.plan.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 26px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--acc);
  color: var(--acc-ink);
  padding: 5px 12px;
  border-radius: var(--r-pill);
}
.plan .pname {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
}
.plan .pdesc {
  font-size: 13.5px;
  color: var(--dim);
  margin-top: 4px;
}
.plan .pamount {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  color: var(--fg);
  margin: 20px 0 2px;
  line-height: 1;
}
.plan .pamount small {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--dim);
  margin-left: 4px;
}
.plan .pnote {
  font-size: 12.5px;
  color: var(--dim);
  font-family: var(--mono);
  margin-bottom: 20px;
}
.plan .btn {
  margin: 22px 0 0;
  width: 100%;
}
.plan .plist {
  list-style: none;
  display: grid;
  gap: 11px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.plan .plist li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.plan .plist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--acc);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 780px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 20px;
  transition: var(--t);
}
.faq details[open] {
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 18px;
  color: var(--acc);
  transition: var(--t);
  flex-shrink: 0;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---------- final CTA ---------- */
.cta {
  padding: 92px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  bottom: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--acc-soft), transparent 68%);
  pointer-events: none;
}
.cta .h2 {
  max-width: 22ch;
  margin: 0 auto 14px;
}
.cta .lede {
  margin: 0 auto 34px;
  text-align: center;
}
.form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.form input {
  flex: 1 1 260px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: 15px 22px;
  font-size: 14.5px;
  color: var(--fg);
  box-shadow: var(--shadow-sm);
  transition: var(--t);
}
.form input:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: var(--ring);
}
.form-note {
  flex: 1 1 100%;
  font-size: 12.5px;
  font-family: var(--mono);
  color: var(--dim);
  margin-top: 4px;
}
.form-note.ok {
  color: var(--acc);
}
.form-note.bad {
  color: var(--crit);
}

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 40px 0;
}
.foot-in {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.foot-in .brand {
  font-size: 18px;
}
.foot-sp {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
}
.foot-links {
  display: flex;
  gap: 18px;
}
.foot-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.foot-links a:hover {
  color: var(--acc);
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
  .pulse {
    animation: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-in,
  .split,
  .deep {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .nav-links {
    display: none;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid,
  .price-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .section {
    padding: 64px 0;
  }
}
@media (max-width: 560px) {
  .wrap {
    padding: 0 16px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .nav-cta .btn {
    display: none;
  }
  .hero {
    padding: 48px 0 28px;
  }
}
