/* LedgerReply sales site
   Shape rule: 16px for media and panels, 12px for controls.
   Motion is limited to focus, hover, and active feedback. */
:root {
  color-scheme: light dark;
  --page: #f4f7fb;
  --surface: #fbfcfe;
  --surface-strong: #ffffff;
  --surface-tint: #e9f0fb;
  --text: #13202e;
  --muted: #526273;
  --line: #cfd9e5;
  --accent: #225dc7;
  --accent-hover: #17499f;
  --accent-soft: #dce8fb;
  --button: #225dc7;
  --button-hover: #17499f;
  --focus: #0b63ce;
  --shadow: 0 24px 70px rgba(25, 53, 84, .13);
  --shell: min(1180px, calc(100% - 40px));
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #111821;
    --surface: #161f2a;
    --surface-strong: #1b2632;
    --surface-tint: #17263b;
    --text: #edf3fa;
    --muted: #afbcc9;
    --line: #334355;
    --accent: #72a5ff;
    --accent-hover: #a2c3ff;
    --accent-soft: #1c355a;
    --button: #2f67c5;
    --button-hover: #2054ac;
    --focus: #8fb7ff;
    --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--page) 91%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -.025em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: var(--surface-strong);
  font-size: 17px;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

@media (prefers-color-scheme: dark) {
  .brand-mark {
    color: #101925;
  }
}

.primary-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.nav-cta:hover {
  border-color: var(--accent);
}

.hero {
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(420px, 1.06fr);
  align-items: center;
  gap: clamp(42px, 6vw, 82px);
  padding-block: clamp(54px, 8vh, 90px);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.05;
  letter-spacing: -.045em;
}

h1 {
  max-width: 16ch;
  margin-bottom: 25px;
  font-size: clamp(48px, 5.2vw, 68px);
  font-weight: 780;
}

h2 {
  font-size: clamp(35px, 4.3vw, 56px);
  font-weight: 760;
}

h3 {
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 740;
  letter-spacing: -.025em;
}

.hero-lede {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 780;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:active,
.nav-cta:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--button);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--button-hover);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
}

.hero-visual {
  position: relative;
  margin: 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 0 -6% 18%;
  z-index: -1;
  border-radius: 16px;
  background: var(--accent-soft);
  transform: rotate(2.2deg);
}

.hero-visual img,
.review-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-visual img {
  aspect-ratio: 4 / 3;
}

.signal-strip {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.signal-grid p {
  margin: 0;
  padding: 25px clamp(18px, 2.5vw, 32px);
  border-left: 1px solid var(--line);
}

.signal-grid p:last-child {
  border-right: 1px solid var(--line);
}

.signal-grid strong,
.signal-grid span {
  display: block;
}

.signal-grid strong {
  margin-bottom: 2px;
  font-size: 15px;
}

.signal-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.section {
  padding-block: clamp(82px, 11vw, 146px);
}

.section-intro {
  max-width: 800px;
  margin-bottom: clamp(44px, 7vw, 78px);
}

.section-intro h2,
.detail-heading h2,
.review-copy h2,
.csv-copy h2,
.pilot h2 {
  margin-bottom: 22px;
}

.section-intro p,
.detail-heading p,
.review-copy > p,
.csv-copy p,
.pilot-copy p {
  max-width: 64ch;
  margin-block: 0;
  color: var(--muted);
  font-size: 18px;
}

.workflow-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: clamp(22px, 5vw, 70px);
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.workflow-index {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 820;
  letter-spacing: .1em;
}

.workflow-list h3 {
  margin-bottom: 10px;
}

.workflow-list p {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
}

.review-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
  align-items: center;
  gap: clamp(44px, 8vw, 104px);
}

.review-image {
  margin: 0;
}

.review-image img {
  aspect-ratio: 1.18 / 1;
}

.feature-ledger {
  margin: 38px 0 0;
}

.feature-ledger div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.feature-ledger dt {
  font-weight: 760;
}

.feature-ledger dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.product-detail {
  background: var(--surface-tint);
}

.detail-shell {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(46px, 8vw, 120px);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
}

.detail-grid article {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.detail-grid h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.detail-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.section-intro.compact {
  max-width: 880px;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.security-grid article {
  padding: 34px clamp(0px, 4vw, 50px) 34px 0;
  border-bottom: 1px solid var(--line);
}

.security-grid article:nth-child(even) {
  padding-right: 0;
  padding-left: clamp(0px, 4vw, 50px);
  border-left: 1px solid var(--line);
}

.security-label {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.security-grid h3 {
  margin-bottom: 11px;
  font-size: 24px;
}

.security-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.csv-first {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: clamp(44px, 8vw, 100px);
}

.csv-path {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.csv-path span {
  min-height: 110px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  font-size: 15px;
  font-weight: 760;
}

.csv-path span:nth-child(2),
.csv-path span:nth-child(3) {
  background: var(--accent-soft);
}

.pilot {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.pilot-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(40px, 8vw, 110px);
}

.pilot h2 {
  max-width: 14ch;
}

.pilot-copy {
  padding-top: 37px;
}

.pilot-copy .pilot-note {
  margin-top: 24px;
  color: var(--text);
  font-size: 15px;
  font-weight: 740;
}

.site-footer {
  padding-block: 34px;
  background: var(--page);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 34px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-brand {
  font-size: 16px;
}

.footer-brand .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 14px;
}

.error-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding-block: 40px;
}

.error-panel {
  max-width: 680px;
}

.error-title {
  max-width: 12ch;
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--page);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy {
    padding-top: 26px;
  }

  h1 {
    max-width: 16ch;
  }

  .hero-visual {
    width: min(760px, 100%);
  }

  .signal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .signal-grid p:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .signal-grid p:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .review-split,
  .detail-shell,
  .csv-first,
  .pilot-inner {
    grid-template-columns: 1fr;
  }

  .review-image {
    order: 2;
  }

  .review-copy {
    order: 1;
  }

  .pilot-copy {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(100% - 32px, 1180px);
  }

  body {
    font-size: 16px;
  }

  .nav-wrap {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .primary-nav {
    display: none;
  }

  .hero {
    padding-block: 42px 70px;
  }

  h1 {
    font-size: clamp(43px, 14vw, 62px);
  }

  .hero-visual::before {
    inset: 8% -2% -4% 12%;
  }

  .workflow-list li {
    grid-template-columns: 46px 1fr;
    gap: 12px;
  }

  .detail-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .security-grid article,
  .security-grid article:nth-child(even) {
    padding: 28px 0;
    border-left: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 390px) {
  :root {
    --shell: calc(100% - 24px);
  }

  .site-header .brand span:last-child {
    font-size: 16px;
  }

  .nav-cta {
    padding-inline: 12px;
    font-size: 13px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .signal-grid,
  .csv-path {
    grid-template-columns: 1fr;
  }

  .signal-grid p,
  .signal-grid p:nth-child(2),
  .signal-grid p:last-child {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .signal-grid p:last-child {
    border-bottom: 0;
  }

  .workflow-list li {
    grid-template-columns: 1fr;
  }
}
