/* Homepage composition for the blue editorial system. */
.home-page { color: var(--ink); background: var(--page); }
.home-page main { background: var(--page); }
.home-page .container { width: min(calc(100% - 64px), var(--content)); }
.home-page h1, .home-page h2, .home-page h3 { color: var(--ink); text-wrap: balance; }
.home-page h2 { font-size: clamp(2.4rem, 4.5vw, 4.8rem); font-weight: 540; line-height: 1; letter-spacing: -.06em; }
.home-page h3 { font-weight: 560; }
.home-page p { color: var(--muted); }
.home-page .eyebrow, .home-page .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--blue);
  font-size: .68rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.home-page .eyebrow::before, .home-page .section-eyebrow::before {
  width: 8px;
  height: 8px;
  display: block;
  border-radius: 50%;
  background: var(--lime);
  content: "";
}
.home-page .text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: .88rem; font-weight: 600; text-underline-offset: 5px; }
.home-page .text-link span { transition: transform .2s ease; }
.home-page .text-link:hover span { transform: translateX(4px); }

/* Reference-style blue hero with a lightweight document illustration. */
.home-hero {
  width: min(calc(100% - 32px), 1520px);
  margin: 16px auto 0;
  padding: clamp(3.4rem, 6vw, 5.6rem) 0 32px;
  overflow: hidden;
  border-radius: 28px;
  color: var(--white);
  background: var(--blue);
}
.home-hero-simple {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  grid-template-areas:
    "copy art"
    "proof proof";
  column-gap: clamp(36px, 6vw, 100px);
  row-gap: clamp(44px, 6vw, 64px);
  align-items: center;
}
.hero-copy { grid-area: copy; max-width: 640px; }
.home-hero .eyebrow { color: var(--lime); }
.home-hero .eyebrow::before { background: var(--white); }
.home-hero h1 {
  position: relative;
  z-index: 2;
  max-width: 940px;
  margin: 0;
  color: var(--white);
  font-size: clamp(4.25rem, 7.2vw, 7.4rem);
  font-weight: 520;
  line-height: .9;
  letter-spacing: -.075em;
}
.home-hero h1::after {
  position: absolute;
  right: 3%;
  bottom: -.4em;
  color: var(--lime);
  content: "↗";
  font-size: .48em;
  font-weight: 400;
  transform: rotate(-14deg);
}
.home-hero .hero-lead {
  max-width: 460px;
  margin: clamp(22px, 3vw, 32px) 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.6;
}
.hero-copy > .button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 7px 7px 7px 24px;
  border-color: var(--white);
  color: var(--navy);
  background: var(--white);
}
.hero-copy > .button::after, .final-layout > .button::after {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  content: "↗";
  transition: transform .2s ease, background-color .2s ease;
}
.hero-copy > .button:hover { border-color: var(--lime); color: var(--navy); background: var(--lime); }
.hero-copy > .button:hover::after { background: var(--blue); transform: translate(3px, -3px); }

/* Hero illustration: a bank statement flowing through Bank File Flow into a clean result. */
.hero-art { grid-area: art; position: relative; width: min(82%, 300px); aspect-ratio: .92; justify-self: center; align-self: center; }
.hero-art-card { position: absolute; width: 68%; aspect-ratio: .72; border: 3px solid var(--navy); border-radius: 20px; }
.hero-art-statement { top: 0; left: 0; z-index: 0; background: var(--page); transform: rotate(-8deg); filter: drop-shadow(14px 16px 0 rgba(2, 8, 23, .12)); }
.hero-art-line { position: absolute; left: 14%; height: 4px; border-radius: 2px; background: var(--navy); }
.hero-art-line:nth-child(1) { top: 28%; width: 46%; }
.hero-art-line:nth-child(2) { top: 42%; width: 74%; }
.hero-art-line:nth-child(3) { top: 54%; width: 58%; }
.hero-art-line:nth-child(4) { top: 66%; width: 66%; }
.hero-art-result { right: 0; bottom: 0; z-index: 2; background: var(--lime); transform: rotate(8deg); }
.hero-art-grid {
  position: absolute;
  inset: 30% 12% 12%;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 23%, var(--navy) 23% calc(23% + 2px)),
    repeating-linear-gradient(0deg, transparent 0 30%, var(--navy) 30% calc(30% + 2px));
}
.hero-art-connector { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-art-connector path { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1 9; }
.hero-art-badge {
  position: absolute;
  top: 46%;
  left: 48%;
  z-index: 3;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 10px 22px rgba(2, 8, 23, .28);
}
.hero-art-badge img { display: block; }

.hero-proof {
  grid-area: proof;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .3);
  color: var(--white) !important;
  font-size: .7rem;
  font-weight: 520;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-proof span { display: inline-flex; align-items: center; gap: 9px; }
.hero-proof span::before { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); content: ""; }

.home-section { padding: var(--section-space) 0; border: 0; }
.section-grid { display: grid; grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr); gap: clamp(56px, 9vw, 140px); align-items: start; }
.section-intro { max-width: 620px; min-width: 0; }
.section-intro h2 { margin: 0 0 24px; }
.section-intro p { font-size: 1rem; line-height: 1.7; }
.section-intro .text-link { margin-top: 18px; }

/* Small step-by-step visual used in place of extra explanatory paragraphs. */
.mini-flow { display: flex; align-items: flex-start; gap: 8px; margin: 26px 0 0; min-width: 0; }
.mini-flow-step { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; gap: 9px; min-width: 54px; max-width: 84px; color: var(--ink); font-size: .68rem; font-weight: 650; line-height: 1.3; text-align: center; }
.mini-flow-icon { width: 44px; height: 44px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid rgba(2, 8, 23, .12); border-radius: 50%; color: var(--blue); background: var(--white); }
.mini-flow-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mini-flow-arrow { align-self: center; margin-top: 14px; color: var(--line-strong, #b7bcc6); font-size: .8rem; }

.other-tools-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 50%; color: var(--white); background: var(--navy); }
.other-tools-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Destination cards echo the reference's numbered service system. */
.software-section { background: var(--page); }
.software-section .section-intro h2 { font-size: clamp(3rem, 5.2vw, 5.2rem); }
.software-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; border: 0; counter-reset: destination; }
.software-list a {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(2, 8, 23, .12);
  border-radius: var(--radius);
  color: inherit;
  background: var(--white);
  text-decoration: none;
  counter-increment: destination;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
.software-list a::before { color: var(--blue); content: "0" counter(destination); font-size: .68rem; font-weight: 650; letter-spacing: .12em; }
.software-list a::after { position: absolute; top: 22px; right: 24px; content: "↗"; transition: transform .2s ease; }
.software-list a:first-child { grid-row: span 2; min-height: 394px; color: var(--white); background: var(--navy); }
.software-list a:first-child::before { color: var(--lime); }
.software-list a:nth-child(4), .software-list a:hover { color: var(--white); background: var(--blue); }
.software-list a:nth-child(4)::before { color: var(--lime); }
.software-list a:hover { transform: scale(1.012); }
.software-list a:hover::after { transform: translate(4px, -4px); }
.software-list strong { max-width: 82%; color: inherit; font-size: clamp(1.15rem, 1.7vw, 1.5rem); font-weight: 560; line-height: 1.12; }
.software-list span { color: inherit; font-size: .8rem; line-height: 1.55; opacity: .7; }
/* Other Tools section holds a single card (PDF Editor) — the two-column,
   row-spanning destination-grid treatment above is built for a longer list,
   so this single entry gets a plain one-column, natural-height card instead
   of an oddly tall card beside empty grid space. */
.other-tools-section .software-list { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
.other-tools-section .software-list a:first-child { grid-row: auto; min-height: 190px; }

/* Workflow and compact data preview. */
.workflow-section { background: var(--soft); }
.workflow-section .section-intro.compact { max-width: 800px; margin: 0 0 54px; }
.workflow-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; border: 0; list-style: none; }
.workflow-list li { min-width: 0; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border: 1px solid rgba(2, 8, 23, .12); border-radius: var(--radius); background: var(--page); }
.workflow-list li:nth-child(2) { color: var(--white); background: var(--blue); }
.workflow-list li > span { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: inherit; font-size: .78rem; }
.workflow-list h3 { margin: 38px 0 10px; color: inherit; font-size: 1.3rem; }
.workflow-list p { margin: 0; color: inherit; font-size: .82rem; line-height: 1.58; opacity: .72; }
.conversion-example { max-width: none; min-width: 0; margin: 40px 0 0; overflow: hidden; border: 1px solid rgba(2, 8, 23, .12); border-radius: 26px; background: var(--white); }
.conversion-example figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.conversion-example figcaption span { color: var(--blue); font-size: .65rem; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; }
.conversion-example figcaption strong { font-size: .9rem; font-weight: 560; }
.conversion-path { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 14px 24px; border-bottom: 1px solid var(--line); list-style: none; }
.conversion-path li { position: relative; font-size: .72rem; font-weight: 550; }
.conversion-path li:not(:last-child)::after { position: absolute; right: 24px; color: var(--blue); content: "→"; }
.example-grid { display: grid; grid-template-columns: .88fr 1.12fr; border-bottom: 1px solid var(--line); }
.statement-sample { padding: 12px 24px 18px; border-right: 1px solid var(--line); }
.statement-sample > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.statement-sample .sample-heading { color: var(--muted-light); font-size: .62rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.statement-sample time { display: inline-block; width: 54px; color: var(--muted-light); }
.statement-sample data { color: var(--danger); }
.statement-sample data.positive, .conversion-example .positive { color: var(--blue); }
.csv-sample { overflow-x: auto; }
.conversion-example table { width: 100%; min-width: 360px; border: 0; border-collapse: collapse; font-size: .7rem; }
.conversion-example th, .conversion-example td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); color: var(--muted); background: var(--white); text-align: left; white-space: nowrap; }
.conversion-example th { color: var(--white); background: var(--blue); font-size: .61rem; letter-spacing: .08em; text-transform: uppercase; }
.conversion-example th:last-child, .conversion-example td:last-child { text-align: right; }
.sample-chart { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: center; padding: 18px 24px 10px; }
.sample-chart > div { display: grid; }
.sample-chart strong { font-size: .75rem; }
.sample-chart span { color: var(--muted-light); font-size: .65rem; }
.sample-chart svg { width: 100%; height: 52px; }
.sample-chart path { fill: none; vector-effect: non-scaling-stroke; }
.sample-chart .chart-grid { stroke: var(--line); }
.sample-chart .chart-zero { stroke: var(--line-strong); stroke-dasharray: 3 4; }
.sample-chart .chart-line { stroke: var(--blue); stroke-width: 2; }
.sample-chart circle { fill: var(--navy); stroke: var(--white); stroke-width: 1.5; }
.sample-chart .positive-point { fill: var(--lime); stroke: var(--navy); }
.sample-note { margin: 0; padding: 0 24px 18px; color: var(--muted-light) !important; font-size: .65rem; }

/* Privacy section becomes the bold dark editorial panel. */
.privacy-section { background: var(--page); }
.facts-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(56px, 9vw, 140px); }
.facts-grid h2 { margin: 0 0 24px; }
.facts-grid > div:first-child h2 { font-size: clamp(3.2rem, 5.4vw, 5.4rem); }
.facts-grid > div > p:not(.section-eyebrow) { font-size: 1rem; line-height: 1.7; }
.plain-facts { display: grid; gap: 0; margin: 34px 0; padding: 0; border-block: 1px solid var(--line); list-style: none; }
.plain-facts li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.plain-facts li:last-child { border: 0; }
.plain-facts li::before { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: var(--lime); content: "✓"; font-size: .65rem; font-weight: 700; }
.limitations { padding: clamp(32px, 5vw, 70px); border: 0; border-radius: 26px; color: var(--white); background: var(--navy); }
.limitations .section-eyebrow { color: var(--lime); }
.limitations .section-eyebrow::before { background: var(--blue); }
.limitations h2 { color: var(--white); }
.limitations dl { margin: 36px 0 0; }
.limitations dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.limitations dl > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.limitations dt { font-size: .8rem; font-weight: 600; }
.limitations dd { margin: 0; color: rgba(255, 255, 255, .66); font-size: .78rem; line-height: 1.55; }
.limitations-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 24px 0 0; }
.limitations-links a { color: var(--white); font-size: .78rem; }

/* FAQ mirrors the reference's question/answer contrast. */
.faq-section { background: var(--soft); }
.faq-layout { display: grid; grid-template-columns: minmax(240px, 4fr) minmax(0, 8fr); gap: clamp(48px, 7vw, 100px); }
.faq-list { display: grid; gap: 8px; }
.faq-list details { margin: 0; overflow: hidden; border: 1px solid rgba(2, 8, 23, .12); border-radius: 18px; background: var(--white); transition: background-color .2s ease, color .2s ease; }
.faq-list summary { position: relative; min-height: 60px; display: flex; align-items: center; padding: 16px 54px 16px 20px; color: var(--ink); font-size: .88rem; font-weight: 550; line-height: 1.4; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 50%; right: 20px; content: "+"; font-size: 1.15rem; transform: translateY(-50%); }
.faq-list details[open] { color: var(--white); background: var(--navy); }
.faq-list details[open] summary { color: var(--white); }
.faq-list details[open] summary::after { color: var(--lime); content: "−"; }
.faq-list details p { margin: 0; padding: 0 54px 24px 20px; color: rgba(255, 255, 255, .68); font-size: .86rem; line-height: 1.65; }

.final-section { padding: clamp(5rem, 8vw, 8rem) 0; color: var(--white); background: var(--navy); }
.final-layout { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; }
.final-layout .section-eyebrow { color: var(--lime); }
.final-layout .section-eyebrow::before { background: var(--blue); }
.final-layout h2 { max-width: 900px; margin: 0 0 20px; color: var(--white); font-size: clamp(3.2rem, 6vw, 6rem); }
.final-layout p:not(.section-eyebrow) { margin: 0; color: rgba(255, 255, 255, .68); }
.final-layout > .button { min-height: 68px; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 22px; padding: 8px 8px 8px 26px; border-color: var(--white); color: var(--navy); background: var(--white); }
.final-layout > .button::after { width: 48px; height: 48px; }
.final-layout > .button:hover { border-color: var(--lime); color: var(--navy); background: var(--lime); }
.final-layout > .button:hover::after { transform: translate(4px, -4px); }

/* Homepage static footer matches the shared footer visual. */
.home-footer { padding: clamp(4rem, 7vw, 7rem) 0 24px; color: rgba(255, 255, 255, .66); background: var(--navy); }
.home-footer-grid { display: grid; grid-template-columns: minmax(250px, 1.5fr) repeat(3, 1fr); gap: clamp(32px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 78px); }
.home-footer .brand { margin-bottom: 18px; color: var(--white); }
.home-footer-about p { max-width: 300px; margin: 0; color: rgba(255, 255, 255, .52); font-size: .78rem; }
.home-footer-column h2 { margin: 7px 0 18px; color: var(--lime); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; }
.home-footer-column nav { display: grid; gap: 10px; }
.home-footer-column a, .home-footer-link { width: fit-content; padding: 0; border: 0; color: rgba(255, 255, 255, .66); background: none; font-size: .78rem; text-decoration: none; }
.home-footer-column a:hover, .home-footer-link:hover { color: var(--white); }
.home-footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .42); font-size: .7rem; }

.reveal-enabled .reveal-item { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal-enabled .reveal-item.is-visible { opacity: 1; transform: none; }
.reveal-enabled .conversion-example .chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal-enabled .conversion-example circle { opacity: 0; }
.reveal-enabled .conversion-example.is-visible .chart-line { animation: chart-draw .68s ease .15s forwards; }
.reveal-enabled .conversion-example.is-visible circle { animation: chart-point .2s ease .4s forwards; }
@keyframes chart-draw { to { stroke-dashoffset: 0; } }
@keyframes chart-point { to { opacity: 1; } }

@media (max-width: 1200px) {
  .home-page .container { width: min(calc(100% - 56px), var(--content)); }
  .home-hero-simple { grid-template-columns: minmax(0, 6.5fr) minmax(300px, 5.5fr); }
  .home-hero h1 { font-size: clamp(4rem, 7.3vw, 6rem); }
}

@media (max-width: 992px) {
  .home-page .container { width: min(calc(100% - 48px), var(--content)); }
  .home-hero-simple { grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); column-gap: 30px; }
  .section-grid, .facts-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .software-list { grid-template-columns: 1fr; }
  .software-list a:first-child { grid-row: auto; min-height: 220px; }
  .faq-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .home-page .container { width: min(calc(100% - 36px), var(--content)); }
  .home-hero { width: calc(100% - 20px); margin-top: 10px; border-radius: 22px; }
  .home-hero-simple {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "art" "proof";
    row-gap: 36px;
  }
  .home-hero h1 { font-size: clamp(3.5rem, 12vw, 5.4rem); }
  .hero-art { width: min(56vw, 240px); margin: 0 auto; }
  .hero-proof { justify-content: flex-start; }
  .section-grid, .facts-grid { grid-template-columns: 1fr; }
  .software-list { grid-template-columns: repeat(2, 1fr); }
  .workflow-list { grid-template-columns: 1fr; }
  .workflow-list li { min-height: 200px; }
  .final-layout { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .home-page .container { width: min(calc(100% - 28px), var(--content)); }
  .home-page main h2 { font-size: 2.35rem; }
  .home-section { padding: 84px 0; }
  .home-hero { padding: 54px 0 28px; }
  .home-hero h1 { font-size: clamp(3rem, 15vw, 4.2rem); }
  .hero-copy > .button { width: 100%; justify-content: space-between; }
  .hero-art { width: min(64vw, 200px); }
  .hero-art-card { border-width: 2px; }
  .hero-proof span { width: 100%; }
  .software-section .section-intro h2, .facts-grid > div:first-child h2 { font-size: 2.8rem; }
  .software-list { grid-template-columns: 1fr; }
  .software-list a, .software-list a:first-child { min-height: 190px; }
  .conversion-example figcaption { align-items: flex-start; flex-direction: column; }
  .conversion-path { padding-inline: 14px; }
  .conversion-path li { font-size: .59rem; }
  .example-grid { grid-template-columns: 1fr; }
  .statement-sample { display: none; }
  .sample-chart { grid-template-columns: 1fr; }
  .limitations { padding: 28px 22px; }
  .limitations dl > div { grid-template-columns: 1fr; gap: 6px; }
  .final-layout h2 { font-size: 3rem; }
  .final-layout > .button { width: 100%; justify-content: space-between; }
  .home-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-footer-about { grid-column: 1 / -1; }
}

@media (max-width: 390px) {
  .home-page .container { width: min(calc(100% - 24px), var(--content)); }
  .home-footer-grid { grid-template-columns: 1fr; }
  .home-footer-bottom { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page a, .home-page .button, .home-page summary { transition: none !important; }
  .reveal-enabled .reveal-item { opacity: 1; transform: none; transition: none; }
  .reveal-enabled .conversion-example .chart-line { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .reveal-enabled .conversion-example circle { opacity: 1; animation: none; }
}
