/* AI CFO landing page */
.skip:focus { position: fixed !important; left: 16px; top: 16px; width: auto; height: auto; clip: auto; z-index: 10; background: var(--ivory); padding: 10px 14px; border-radius: 8px; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--ivory); padding-bottom: clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.hero::after { /* ledger ruling, very faint, only in the hero */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(175,192,207,.06) 39px 40px);
}
.hero > * { position: relative; z-index: 1; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--mist); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--ivory); }

.hero-head {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px);
  align-items: end; padding-top: clamp(36px, 6vw, 84px); padding-bottom: clamp(36px, 5vw, 56px);
}
.hero h1 { font-size: clamp(38px, 6.4vw, 82px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; }
.hero-lede { color: #D5DEE6; font-size: clamp(16px, 1.4vw, 18px); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Demo: chat -> ledger ---------- */
.demo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0;
  border: 1px solid var(--navy-3); border-radius: 18px; overflow: hidden; background: var(--navy-2);
}
.chat { background: #0F2840; display: flex; flex-direction: column; min-height: 100%; }
.chat-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--navy-3); }
.chat-top img { border-radius: 50%; }
.chat-top div { display: grid; line-height: 1.2; }
.chat-top strong { font-size: 15px; }
.chat-top span { font-size: 12.5px; color: var(--mist); }
.chat-body { list-style: none; margin: 0; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.b { max-width: 84%; padding: 9px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.4; }
.b.out { align-self: flex-end; background: var(--emerald); color: #fff; border-bottom-right-radius: 4px; }
.b.in { align-self: flex-start; background: var(--ivory); color: var(--navy); border-bottom-left-radius: 4px; }
.b.in b { color: var(--emerald-dark); }

.ledger { background: var(--paper); color: var(--navy); padding: 22px clamp(18px, 2.4vw, 30px) 18px; display: flex; flex-direction: column; }
.ledger-head, .ledger-row, .ledger-total { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, 1fr); gap: 12px; align-items: baseline; }
.ledger-head { font-size: 12.5px; color: var(--slate); padding-bottom: 10px; border-bottom: 2px solid var(--navy); }
.ledger-row { padding: 13px 0; border-bottom: 1px solid var(--rule-soft); font-size: 15px; }
.ledger-row span:nth-child(2) { color: var(--slate); font-size: 14px; }
.ledger .r { text-align: right; }
.ledger .gain { color: var(--emerald-dark); }
.ledger-total { grid-template-columns: 1fr auto; margin-top: auto; padding-top: 18px; border-top: 2px solid var(--navy); font-weight: 600; }
.ledger-total .fig { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); color: var(--emerald-dark); letter-spacing: -0.02em; }
.ledger-note { font-size: 12.5px; color: var(--slate); margin-top: 8px; text-align: right; }

/* the one orchestrated motion: each message lands, then becomes a ledger line */
.js-anim [data-step] { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.js-anim .ledger-row[data-step] { transform: translateX(-14px); }
.js-anim [data-step].on { opacity: 1; transform: none; }
.ledger-row.flash { background: linear-gradient(to right, var(--gain-soft), transparent 80%); transition: background 1.2s ease; }

/* ---------- Bands ---------- */
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.02em; max-width: 20ch; }
.band-paper { background: var(--paper); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }

.steps { list-style: none; padding: 0; margin: clamp(32px, 4vw, 56px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.steps li { border-top: 2px solid var(--navy); padding-top: 18px; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--emerald); color: #fff; font-weight: 500; font-size: 15px; }
.steps h3 { font-size: 19px; margin: 16px 0 8px; }
.steps p { color: var(--slate); max-width: 38ch; }

.talk { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.talk-intro p { color: var(--slate); margin-top: 16px; max-width: 40ch; }
.talk-table { width: 100%; border-collapse: collapse; }
.talk-table th { text-align: left; font-size: 13px; font-weight: 500; color: var(--slate); padding: 0 0 10px; border-bottom: 2px solid var(--navy); }
.talk-table td { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }
.talk-table td:first-child { padding-right: 20px; width: 52%; }
.said { display: inline-block; background: var(--emerald); color: #fff; padding: 7px 12px; border-radius: 12px 12px 4px 12px; font-size: 14.5px; }
.kind { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; margin-right: 6px; }
.kind.in { background: var(--gain-soft); color: #0B5A42; }
.kind.out { background: #E4E9EE; color: var(--navy); }
.kind.fix { background: var(--loss-soft); color: #7A2218; }
.talk-table .fig { font-weight: 500; margin-right: 6px; }
.cat { color: var(--slate); font-size: 14.5px; }

.showcase { display: grid; gap: clamp(72px, 9vw, 120px); }
.show-row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.show-row.flip { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
.show-copy p { color: var(--slate); margin-top: 16px; max-width: 44ch; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.show-copy .fine { font-size: 14px; border-left: 3px solid var(--rule); padding-left: 12px; margin-top: 24px; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper); box-shadow: 0 30px 60px -30px rgba(11,31,51,.35); }
.shot img { width: 100%; height: auto; }
.shot-paper { border-radius: var(--r-sheet); max-width: 440px; justify-self: center; transform: rotate(1.2deg); }

.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(32px, 4vw, 52px); }
.trust > div { border-top: 2px solid var(--navy); padding-top: 18px; }
.trust h3 { font-size: 18px; margin-bottom: 8px; }
.trust p { color: var(--slate); }
.trust a { color: var(--emerald-dark); font-weight: 600; }

.closing { background: var(--navy); color: var(--ivory); padding: clamp(56px, 8vw, 96px) 0; }
.closing-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.closing h2 { font-size: clamp(28px, 4vw, 48px); max-width: 16ch; }
.closing .hero-ctas { margin-top: 0; }

.foot { padding: 40px 0; border-top: 1px solid var(--rule); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot-row > p { color: var(--slate); font-size: 14.5px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--navy); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.foot-links a:hover { color: var(--emerald-dark); text-decoration: underline; }

/* ---------- Smaller screens ---------- */
@media (max-width: 960px) {
  .hero-head, .talk, .show-row, .show-row.flip { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; }
  .steps, .trust { grid-template-columns: 1fr; }
  .show-row.flip .shot { order: 2; }
}
@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .talk-table thead { display: none; }
  .talk-table tr { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
  .talk-table td { border: 0; padding: 0; width: auto !important; }
  .ledger-head, .ledger-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .ledger-head span:nth-child(2), .ledger-row span:nth-child(2) { display: none; }
  .shot-paper { transform: none; }
}
