/* Shared 420Ledger visual foundation. Brand assets supplied by the owner. */
:root {
  --ledger-green: #00875a;
  --ledger-ink: #101310;
  --ledger-paper: #f5f5f1;
  --ledger-rule: #dedfd9;
  --brand: var(--ledger-green);
  --brand-hover: #006b47;
  --ink: var(--ledger-ink);
  --ink-deep: #111a15;
  --body: #464d47;
  --muted: #60685f;
  --tint: var(--ledger-paper);
  --line: var(--ledger-rule);
  --grid: none;
  --grid-dark: none;
}
::selection { background: #cde9da; color: var(--ink); }
a, button, input, textarea, select { -webkit-tap-highlight-color: #cde9da; }
:focus-visible { outline: 2px solid var(--brand-hover) !important; outline-offset: 4px; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 100; padding: 12px 20px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.brand-lockup { display: block; width: 174px; height: 44px; object-fit: contain; }
.brand { flex-shrink: 0; }
.container { width: min(1240px, calc(100% - 64px)); }
.nav-inner { height: 88px; gap: 20px; }
.nav-link { font-size: 14px; padding-inline: 10px; }
.nav-link[aria-current="page"] { color: var(--brand-hover); background: var(--tint); }
.btn-primary, .btn-secondary { border-radius: 5px; font-size: 14px; min-height: 48px; }
.hero h1, .section-head h2, .cta-card h2, .legal h1, .spotlight h2 { letter-spacing: -.035em; line-height: 1.06; }
.hero::before, .spotlight::before, .spotlight::after, .cta-card::before, .cta-card::after { content: none; }
.home-hero { padding: 100px 0 88px; }
.home-hero .hero-grid { grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: start; }
.home-hero h1 { font-size: clamp(44px, 5.2vw, 72px); max-width: 17ch; font-variation-settings: "wdth" 100; }
.home-hero p { max-width: 48ch; }
.trust-pill { box-shadow: none; padding: 0; font-family: inherit; font-size: 13px; }
.trust-row { gap: 18px; }
.service-summary { padding: 34px 0 0 32px; border-left: 1px solid var(--line); }
.service-summary h2 { font-size: 24px; letter-spacing: -.025em; line-height: 1.2; }
.service-summary > p { font-size: 16px; margin-top: 12px; }
.service-summary dl { margin: 24px 0; }
.service-summary dl > div { padding: 18px 0; border-top: 1px solid var(--line); }
.service-summary dt { font-size: 14px; color: var(--muted); }
.service-summary dd { margin-top: 4px; font-size: 16px; font-weight: 600; }
.text-link { color: var(--brand-hover); font-size: 14px; font-weight: 600; display: inline-flex; gap: 20px; min-height: 44px; align-items: center; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.home-hero + .section { border-top: 1px solid var(--line); }
.feature-card, .step-card { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 24px 0; background: transparent; }
.card-grid, .steps { gap: 36px; }
.feature-card p, .step-card p { font-size: 16px; }
.software-section { background: var(--ledger-paper); border-block: 1px solid var(--line); scroll-margin-top: 90px; }
.software-heading { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: end; margin-bottom: 40px; }
.software-heading h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.1; letter-spacing: -.035em; font-family: Archivo, Inter, sans-serif; }
.software-heading p { color: var(--body); font-size: 17px; line-height: 1.7; }
.software-section .product-frame { box-shadow: none; border: 1px solid #c9cfc8; border-radius: 8px; }
.software-section .product-app { grid-template-columns: 230px minmax(0,1fr); min-height: 400px; }
.software-section .product-main { padding: 32px; }
.software-section .demo-tab { font-size: 14px; border-left-width: 1px; }
.software-section .metric .k, .software-section .metric .d, .software-section .status-pill, .software-section .panel-kicker, .software-section .demo-tag { font-size: 12px; }
.software-section td { font-size: 14px; padding: 14px; }
.preview-caption { color: var(--muted); font-size: 13px; margin-top: 16px; }
.spotlight, .cta-card { background-image: none; }
.reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
.faq-item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.faq-q { font-size: 18px; }
.footer .brand-lockup { background: white; border-radius: 4px; padding: 5px; }
@media (max-width: 1100px) {
  .nav-actions .btn-secondary { display: none; }
  .nav-links .nav-link[href*="portal/login"] { display: inline-flex; }
  .home-hero .hero-grid { gap: 40px; }
}
@media (max-width: 900px) {
  .home-hero .hero-grid, .software-heading { grid-template-columns: 1fr; gap: 36px; }
  .service-summary { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .nav-inner { gap: 10px; }
  .nav-link { padding-inline: 6px; }
}
@media (max-width: 768px) {
  .container { width: calc(100% - 40px); }
  .nav-inner { height: 72px; }
  .nav-links:not(.open) { visibility: hidden; }
  .nav-links.open { visibility: visible; max-height: calc(100dvh - 100px); overflow-y: auto; }
  .nav-link { padding: 12px; }
  .home-hero { padding: 52px 0; }
  .home-hero h1 { font-size: clamp(38px, 8.7vw, 58px); }
  .home-hero p { font-size: 17px; }
  .software-section .product-app { grid-template-columns: 1fr; }
  .software-section .product-main { padding: 16px; }
  .software-section .product-top { flex-wrap: wrap; gap: 8px; }
  .software-section td { font-size: 13px; padding: 10px 8px; }
  .software-heading { gap: 20px; }
  .card-grid, .steps { gap: 12px; }
}

/* Trellflow reference: centered editorial opening and prominent walkthrough. */
.nav-inner { height: 72px; }
.nav-links { margin-right: auto; margin-left: 28px; }
.btn-primary { background: #101b16; }
.btn-primary:hover { background: #243d30; }
.nav-actions .btn-secondary { box-shadow: none; padding-inline: 8px; }
.home-hero { padding: 88px 0 52px; }
.home-hero .hero-grid { display: block; text-align: center; }
.home-hero h1 { font-size: clamp(46px, 6.5vw, 88px); max-width: 1100px; margin: 0 auto; line-height: 1.04; letter-spacing: -.04em; font-variation-settings: "wdth" 100; }
.home-hero h1 em { color: #101b16; }
.home-hero p { max-width: 700px; margin: 28px auto 0; font-size: 19px; color: #657168; }
.home-hero .actions { justify-content: center; margin-top: 30px; }
.home-hero .btn-primary, .home-hero .btn-secondary { min-height: 54px; padding-inline: 24px; font-size: 16px; }
.home-hero .hero-note { font-size: 13px; margin-top: 18px; }
.software-section { background: white; border: 0; padding: 0 0 80px; }
.software-section > .container { background: #dcece4; padding: 0 48px 28px; border-radius: 14px; }
.walkthrough-label { display: flex; justify-content: space-between; padding: 13px 0; gap: 20px; font-size: 12px; color: #3b5c4a; }
.walkthrough-label span:first-child { font-weight: 700; }
.software-section .product-frame { margin-top: 26px; box-shadow: 0 18px 40px -24px #325943; border: 0; }
.software-section .preview-caption { color: #405e4d; text-align: center; }
.section-head { max-width: 800px; }
@media(max-width: 900px) { .nav-links { margin-left: 10px; } }
@media(max-width: 768px) {
 .nav-links { margin: 0; }
 .home-hero { padding: 56px 0 38px; }
 .home-hero h1 { font-size: clamp(39px, 9vw, 60px); }
 .home-hero p { font-size: 17px; }
 .home-hero p br { display: none; }
 .home-hero .hero-note { font-size: 12px; }
 .software-section > .container { padding: 0 12px 20px; width: calc(100% - 24px); border-radius: 10px; }
 .software-section .product-frame { margin-top: 12px; }
 .software-section { padding-bottom: 40px; }
}

/* Secondary pages: service scope first, supporting software further down. */
.secondary-page .hero { padding:72px 0 48px; background:#fff; }
.secondary-page .hero::before { display:none; }
.service-page .hero-grid,.pricing-page .hero-grid { display:block; }
.secondary-page .hero h1 { max-width:1000px; font-size:clamp(40px,5.5vw,68px); line-height:1.08; letter-spacing:-.035em; }
.secondary-page .hero h1 em { color:#101b16; }
.secondary-page .hero p { max-width:740px; }
.secondary-page .trust-row { margin-top:28px; }
.page-sections { display:flex; flex-wrap:wrap; gap:12px 24px; padding:20px 0; border-top:1px solid #dfe5df; border-bottom:1px solid #dfe5df; }
.page-sections a { color:#3d4a41; font-size:14px; text-decoration:underline; text-underline-offset:4px; }
.secondary-page section[id] { scroll-margin-top:100px; }
.secondary-page .section { padding:64px 0; }
.secondary-page .section-head h2 { font-size:clamp(30px,3.5vw,44px); }
.service-page .card-grid,.about-page .card-grid { display:block; }
.service-page .feature-card,.about-page .feature-card { display:grid; grid-template-columns:minmax(180px,1fr) 2fr; gap:28px; padding:28px 0; border:0; border-top:1px solid #dfe5df; background:transparent; border-radius:0; box-shadow:none; }
.service-page .feature-card h3,.about-page .feature-card h3 { font-size:22px; }
.secondary-page .secondary-software { background:#f5f6f3; }
.secondary-software > .container { max-width:1100px; }
.secondary-software h2 { font-size:32px; margin-bottom:12px; }
.secondary-software .product-frame { margin-top:28px; }
.about-page .quote-card { padding:32px; background:#dcece4; border:0; box-shadow:none; }
.pricing-page .feature-card { border-top:1px solid #101b16; border-radius:0 0 8px 8px; box-shadow:none; padding:28px; }
.secondary-page .step-card { box-shadow:none; }
.legal-page main { color:#101b16; }
@media(max-width:768px) {
 .secondary-page .hero { padding:44px 0 32px; }
 .secondary-page .hero h1 { font-size:40px; }
 .secondary-page .section { padding:44px 0; }
 .service-page .feature-card,.about-page .feature-card { display:block; padding:24px 0; }
 .page-sections { flex-wrap:nowrap; overflow-x:auto; }
 .page-sections a { flex:0 0 auto; max-width:220px; }
 .secondary-software h2 { font-size:28px; }
}
