/* =================================================================
   DodoBooks · Design System
   Distinct from the main CloudDodo site: deeper / cooler navy base,
   serif headlines for ledger gravitas, emerald + warm-cream accents.
   ================================================================= */

:root {
  /* Surfaces */
  --ink:        #0a0f1c;    /* page background */
  --ink-2:      #0e1525;
  --paper:      #f5efe0;    /* warm cream — used for hero panel & accents */
  --paper-2:    #ece3cb;
  --surface:    #131b2c;
  --surface-2:  #1a2336;
  --line:       rgba(245, 239, 224, 0.08);
  --line-strong:rgba(245, 239, 224, 0.16);

  /* Text */
  --text:       #f3eede;
  --text-dim:   #b8b2a3;
  --text-mute:  #79766d;
  --text-on-paper:#0f1521;

  /* Accents */
  --emerald:    #15c486;    /* "money" green — more grown-up than #37ea9e */
  --emerald-deep:#0c8f60;
  --gold:       #d6a85a;    /* gold leaf */
  --rust:       #d97757;    /* warning / negative numbers */

  /* Fonts */
  --serif:      'Fraunces', 'Source Serif Pro', Georgia, serif;
  --sans:       'Inter', system-ui, -apple-system, sans-serif;
  --mono:       'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(21, 196, 134, 0.32); color: var(--text); }

/* ===== Page chrome ===== */
.page-bg {
  position: fixed; inset: 0; z-index: -3;
  background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(21,196,134,0.06), transparent 70%),
              var(--ink);
}
.page-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(245,239,224,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,239,224,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 30%, transparent 80%);
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  background: rgba(10, 15, 28, 0.7);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 700; font-size: 22px;
  color: var(--text); letter-spacing: -0.4px;
}
.brand-mark, .brand-mark-img {
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
  color: var(--ink); font-weight: 800; font-size: 17px;
  box-shadow: 0 6px 20px -8px rgba(21, 196, 134, 0.6);
}
.brand-mark { background: linear-gradient(135deg, var(--emerald), var(--gold)); }
.brand-mark-img { object-fit: contain; }
.brand small {
  display: block; font-family: var(--mono);
  font-size: 10px; font-weight: 500; color: var(--text-mute);
  letter-spacing: 1.2px; text-transform: uppercase; line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 14px; color: var(--text-dim); padding: 8px 14px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-cta {
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-weight: 600;
  padding: 9px 16px !important;
  border-radius: 999px;
}
.nav-cta:hover { background: #fff !important; }

/* ===== Hero ===== */
.hero { padding: 80px 0 60px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--emerald);
  padding: 6px 12px;
  background: rgba(21,196,134,0.08);
  border: 1px solid rgba(21,196,134,0.25);
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
}
h1.hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -1.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 22px;
}
h1.hero-title em {
  font-style: italic; font-weight: 500;
  color: var(--gold);
}
.hero-lead {
  font-size: 17px; line-height: 1.6;
  color: var(--text-dim); max-width: 520px;
  margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  font-size: 14.5px; font-weight: 600;
  border-radius: 10px; border: 0; cursor: pointer;
  transition: transform .12s, background .15s, color .15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--emerald); color: var(--ink);
  box-shadow: 0 10px 28px -10px rgba(21,196,134,0.55);
}
.btn-primary:hover { transform: translateY(-1px); background: #1cd494; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: var(--text-dim); }

/* Hero: ledger preview on the right */
.hero-mock {
  background: var(--paper);
  color: var(--text-on-paper);
  border-radius: 18px;
  padding: 22px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 24px 60px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(0,0,0,0.05);
  position: relative;
  transform: rotate(-1.2deg);
  font-family: var(--mono);
  font-size: 13px;
}
.hero-mock::before {
  content: '';
  position: absolute; top: -10px; left: 24px;
  background: var(--gold); color: var(--ink);
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  padding: 4px 10px; border-radius: 5px;
}
.mock-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 2px solid rgba(15,21,33,0.15);
}
.mock-title {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  letter-spacing: -0.3px;
}
.mock-period { font-size: 11px; color: rgba(15,21,33,0.55); letter-spacing: 0.5px; }
.mock-row {
  display: grid; grid-template-columns: 1.6fr 0.8fr 0.6fr;
  gap: 12px; padding: 7px 0;
  border-bottom: 1px dashed rgba(15,21,33,0.08);
  font-variant-numeric: tabular-nums;
}
.mock-row:last-of-type { border-bottom: 0; }
.mock-row .label { color: rgba(15,21,33,0.85); }
.mock-row .acc   { color: rgba(15,21,33,0.5); font-size: 11.5px; letter-spacing: 0.3px; }
.mock-row .amt   { text-align: right; color: rgba(15,21,33,0.95); font-weight: 600; }
.mock-row .amt.neg { color: var(--rust); }
.mock-foot {
  display: grid; grid-template-columns: 1fr auto;
  margin-top: 12px; padding-top: 10px;
  border-top: 2px solid rgba(15,21,33,0.18);
  font-family: var(--serif); font-size: 17px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mock-foot .amt.pos { color: var(--emerald-deep); }
.stamp {
  /* Sit inside the card on the bottom-right corner; the card no longer clips
     it. Slightly smaller + the text shape fits properly within the circle. */
  position: absolute;
  right: 18px;
  bottom: -28px;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border: 5px solid var(--paper);
  box-shadow:
    0 14px 32px -10px rgba(21,196,134,0.55),
    inset 0 0 0 2px rgba(10, 15, 28, 0.12);
  transform: rotate(-7deg);
  z-index: 2;
  pointer-events: none;
}
.stamp .stamp-big {
  font-size: 17px;
  font-style: italic;
  margin-bottom: 4px;
}
.stamp .stamp-small {
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 2px 5px;
  border-top: 1px solid rgba(10,15,28,0.18);
  border-bottom: 1px solid rgba(10,15,28,0.18);
}
/* Make sure the hero card and the stamp aren't clipped by anything */
.hero-mock { overflow: visible; }
.hero-inner { overflow: visible; padding-bottom: 36px; }

/* ===== Stat strip ===== */
.stats-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 50px 0 100px;
}
.stat-cell { text-align: left; border-right: 1px solid var(--line); padding-right: 24px; }
.stat-cell:last-child { border-right: 0; }
.stat-num {
  font-family: var(--serif); font-size: 38px; font-weight: 600;
  color: var(--text); letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}
.stat-num .unit { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--text-dim); margin-left: 6px; }
.stat-label { font-size: 12.5px; color: var(--text-mute); letter-spacing: 0.3px; }

/* ===== Section heading ===== */
.section { padding: 80px 0; }
.section-head { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.section-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--gold);
  padding: 5px 10px;
  border: 1px solid rgba(214,168,90,0.3);
  border-radius: 4px;
  margin-bottom: 18px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.section-head h2 em {
  font-style: italic; font-weight: 500;
  color: var(--emerald);
}
.section-head p { font-size: 15.5px; color: var(--text-dim); }

/* ===== Feature grid ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  transition: border-color .2s, transform .15s, background .2s;
}
.feature:hover {
  border-color: rgba(21,196,134,0.3);
  transform: translateY(-2px);
  background: var(--surface-2);
}
.feature-num {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.feature h3 {
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  margin-bottom: 8px; letter-spacing: -0.3px;
}
.feature p { font-size: 14px; color: var(--text-dim); line-height: 1.55; }

/* ===== Banks marquee ===== */
.banks-row {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.banks-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.4px; color: var(--text-mute); text-transform: uppercase; }
.bank-pill {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  padding: 8px 14px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
}

/* ===== Workflow / "Books of account" section ===== */
.workflow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.workflow-card {
  background: var(--paper);
  color: var(--text-on-paper);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 24px 70px -24px rgba(0,0,0,0.55);
  font-family: var(--mono);
}
.workflow-card .row {
  display: grid; grid-template-columns: 30px 1fr 100px;
  gap: 14px; padding: 9px 0;
  border-bottom: 1px solid rgba(15,21,33,0.08);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  align-items: center;
}
.workflow-card .row .check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--emerald); color: var(--ink);
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px;
}
.workflow-card .row .amt { text-align: right; font-weight: 600; }
.workflow-card h4 {
  font-family: var(--serif); font-size: 20px; margin-bottom: 12px;
  font-weight: 600; letter-spacing: -0.3px;
}
.workflow-list { list-style: none; padding: 0; margin: 0; }
.workflow-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 32px 1fr; gap: 16px;
  align-items: start;
}
.workflow-list li:last-child { border-bottom: 0; }
.workflow-list .step-num {
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  color: var(--emerald);
  padding-top: 2px;
}
.workflow-list h5 {
  font-family: var(--serif); font-size: 17px; font-weight: 600;
  margin-bottom: 4px;
}
.workflow-list p { font-size: 14px; color: var(--text-dim); line-height: 1.55; }

/* ===== Comparison table ===== */
.compare {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td {
  text-align: left; padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.compare th {
  font-family: var(--serif); font-weight: 600;
  background: rgba(255,255,255,0.02);
  font-size: 14px;
  color: var(--text);
}
.compare th.us { color: var(--emerald); }
.compare td.row-name { font-weight: 600; color: var(--text); font-family: var(--serif); }
.compare td.yes { color: var(--emerald); font-weight: 600; }
.compare td.no  { color: var(--text-mute); }
.compare td .us-mark::before { content: '◆ '; color: var(--emerald); }

/* ===== Pricing ===== */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color .2s, transform .15s;
}
.price-card.popular {
  border-color: var(--emerald);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  box-shadow: 0 20px 60px -24px rgba(21,196,134,0.4);
}
.price-card.popular::before {
  content: 'Most owner-operators pick this';
  position: absolute; top: -13px; left: 28px;
  background: var(--emerald); color: var(--ink);
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.4px;
  padding: 5px 12px; border-radius: 4px;
}
.price-name {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  margin-bottom: 6px;
}
.price-sub { font-size: 13px; color: var(--text-dim); margin-bottom: 22px; min-height: 38px; }
.price-amt {
  font-family: var(--serif); font-size: 44px; font-weight: 600;
  color: var(--text); letter-spacing: -1px;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.price-amt .per { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--text-dim); margin-left: 6px; }
.price-bill {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-mute); letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.price-features { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; }
.price-features li {
  font-size: 13.5px; color: var(--text);
  padding-left: 22px; position: relative;
  line-height: 1.5;
}
.price-features li::before {
  content: '+'; position: absolute; left: 0; top: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(21,196,134,0.15);
  color: var(--emerald);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  margin-top: 3px;
}
.price-cta { margin-top: auto; }
.price-cta .btn { width: 100%; justify-content: center; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq[open] { border-color: rgba(21,196,134,0.35); }
.faq summary {
  list-style: none;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--serif); font-size: 16.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--mono); font-size: 22px; font-weight: 400;
  color: var(--emerald);
  transition: transform .2s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; font-size: 14.5px; color: var(--text-dim); line-height: 1.7; }

/* ===== CTA card ===== */
.cta-card {
  background: var(--paper);
  color: var(--text-on-paper);
  border-radius: 22px;
  padding: 56px 40px;
  text-align: center;
  box-shadow: 0 30px 80px -28px rgba(0,0,0,0.6);
  position: relative; overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(21,196,134,0.18), transparent 70%);
  filter: blur(40px);
}
.cta-card h2 {
  position: relative;
  font-family: var(--serif); font-size: clamp(28px, 4vw, 40px);
  font-weight: 600; letter-spacing: -1px; line-height: 1.1;
  margin-bottom: 14px;
}
.cta-card h2 em { font-style: italic; color: var(--emerald-deep); }
.cta-card p { position: relative; font-size: 15px; color: rgba(15,21,33,0.7); max-width: 540px; margin: 0 auto 28px; }
.cta-card .btn { position: relative; }
.cta-card .btn-primary { background: var(--emerald-deep); color: var(--paper); }
.cta-card .btn-primary:hover { background: var(--emerald); color: var(--ink); }
.cta-card .btn-ghost { background: transparent; color: var(--text-on-paper); border-color: rgba(15,21,33,0.2); }
.cta-card .btn-ghost:hover { border-color: var(--emerald-deep); color: var(--emerald-deep); background: transparent; }

/* ===== Footer ===== */
.foot {
  padding: 50px 0 30px;
  margin-top: 80px;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 32px;
}
.foot h4 {
  font-family: var(--serif); font-size: 14px; font-weight: 600;
  margin-bottom: 12px; color: var(--text);
}
.foot ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot a {
  font-size: 13.5px; color: var(--text-dim);
  transition: color .15s;
}
.foot a:hover { color: var(--emerald); }
.foot-tag { font-size: 12.5px; color: var(--text-mute); max-width: 320px; margin-top: 12px; line-height: 1.55; }
.foot-bottom {
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-mute);
  flex-wrap: wrap; gap: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-mock { transform: rotate(0); margin: 0 auto; max-width: 460px; }
  .stats-strip { grid-template-columns: 1fr 1fr; gap: 20px; padding: 22px 18px; }
  .stat-cell { border-right: 0; padding-right: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .stat-cell:nth-child(2n) { border-right: 0; }
  .stat-cell:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
  .features, .pricing { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .stats-strip { grid-template-columns: 1fr; }
  .stat-cell { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .stat-cell:last-child { border-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}
