/* index.html -- the home page.
   Uses theme.css tokens only, so light and dark follow the site's theme
   toggle. Self-contained layout: no Materialize, no shared nav. */

.lp { margin: 0; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
      background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; }
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.lp a { color: var(--color-primary); }
.lp :focus-visible { outline: 3px solid var(--color-tech); outline-offset: 3px; border-radius: 4px; }
.lp-skip { position: absolute; left: -999px; top: 8px; background: var(--bg-card);
           padding: 8px 12px; border-radius: 6px; z-index: 10; }
.lp-skip:focus { left: 8px; }

/* header */
.lp-top { position: sticky; top: 0; z-index: 5; background: var(--bg-primary);
          border-bottom: 1px solid var(--border-light); }
.lp-top-row { display: flex; align-items: center; justify-content: space-between;
              gap: 12px; min-height: 64px; }
.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none;
            color: var(--text-primary) !important; min-width: 0; }
.lp-mark { background: var(--color-primary); color: #fff; font-weight: 700; font-size: 14px;
           padding: 6px 8px; border-radius: 8px; letter-spacing: .04em; }
.lp-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-nav { display: flex; align-items: center; gap: 18px; }
.lp-nav > a:not(.lp-btn) { text-decoration: none; color: var(--text-secondary) !important;
                           font-weight: 500; font-size: 15px; }
.lp-nav > a:not(.lp-btn):hover { color: var(--text-primary) !important; }
.lp-theme { background: none; border: 1px solid var(--border-light); border-radius: 8px;
            color: var(--text-primary); width: 44px; height: 44px; cursor: pointer;
            display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 860px) { .lp-nav > a:not(.lp-btn) { display: none; } .lp-name { font-size: 15px; } }

/* buttons */
.lp-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
          padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none;
          background: var(--color-accent); color: #1f2937 !important;
          box-shadow: var(--shadow-card); border: 1px solid transparent; }
.lp-btn:hover { background: var(--color-accent-light); }
.lp-btn-ghost { background: transparent; color: var(--text-primary) !important;
                border-color: var(--border-medium); box-shadow: none; }
.lp-btn-ghost:hover { background: var(--bg-section); }
.lp-btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.lp-btn .material-icons { font-size: 20px; }

/* hero */
.lp-hero { padding: 56px 0 48px;
           background: linear-gradient(180deg, rgba(var(--color-primary-rgb), .07), transparent 80%); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
                gap: 40px; align-items: center; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--color-primary);
              font-weight: 600; font-size: 14px; margin: 0 0 12px; }
.lp-eyebrow .material-icons, .lp-area .material-icons { font-size: 18px; }
.lp h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.12; margin: 0 0 16px; font-weight: 700; }
.lp-lede { font-size: 1.12rem; color: var(--text-secondary); margin: 0 0 24px; max-width: 40rem; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-area { display: flex; align-items: center; gap: 6px; color: var(--text-secondary);
           font-size: 14px; margin: 18px 0 0; }

.lp-flow { margin: 0; background: var(--bg-card); border: 1px solid var(--border-light);
           border-radius: var(--radius-lg); padding: 18px 18px 12px; box-shadow: var(--shadow-card); }
.lp-flow svg { width: 100%; height: auto; display: block; }
.lp-step rect { fill: var(--bg-section); stroke: var(--border-medium); }
.lp-step text { fill: var(--text-primary); font: 600 15px "Poppins", sans-serif; }
.lp-step-you rect { fill: rgba(var(--color-accent-rgb), .18); stroke: var(--color-accent-dark); }
.lp-arrow { stroke: var(--color-primary); stroke-width: 2.5; fill: none; marker-end: none; }
.lp-flow figcaption { color: var(--text-secondary); font-size: 14px; text-align: center; margin-top: 8px; }

/* sections */
.lp-section { padding: 56px 0; }
.lp-alt { background: var(--bg-section); }
.lp h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 8px; font-weight: 700; }
.lp h3 { font-size: 1.05rem; margin: 0 0 6px; font-weight: 600; }
.lp-sub { color: var(--text-secondary); margin: 0 0 28px; max-width: 44rem; }
.lp-grid { display: grid; gap: 16px; }
.lp-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.lp-grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.lp-card { background: var(--bg-card); border: 1px solid var(--border-light);
           border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-card); }
.lp-card p, .lp-trust p { margin: 0; color: var(--text-secondary); }
.lp-ico { color: var(--color-primary); font-size: 30px; margin-bottom: 8px; }
.lp-proof { border-top: 4px solid var(--color-tech); }
.lp-note { color: var(--text-secondary); margin: 18px 0 0; font-size: 15px; }

/* steps */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px;
            grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.lp-steps li { display: flex; gap: 14px; background: var(--bg-card); border: 1px solid var(--border-light);
               border-radius: var(--radius-lg); padding: 18px; }
.lp-steps p { margin: 0; color: var(--text-secondary); }
.lp-num { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--color-primary);
          color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* calculator */
.lp-calc-grid, .lp-price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
                                gap: 32px; align-items: start; }
.lp-calc { background: var(--bg-card); border: 1px solid var(--border-light);
           border-radius: var(--radius-lg); padding: 20px; display: grid; gap: 14px; }
.lp-calc label { display: grid; gap: 6px; font-weight: 500; }
.lp-calc input[type=number] { font: inherit; padding: 10px 12px; border-radius: 8px; min-height: 44px;
                              border: 1px solid var(--border-medium); background: var(--bg-primary);
                              color: var(--text-primary); }
.lp-calc input[type=range] { width: 100%; accent-color: var(--color-primary); min-height: 32px; }
.lp-range { color: var(--text-secondary); font-size: 14px; }
.lp-calc-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
               border-top: 1px solid var(--border-light); padding-top: 14px; }
.lp-calc-out p { margin: 0; }
.lp-calc-out span { display: block; font-size: 1.5rem; font-weight: 700; color: var(--color-primary);
                    font-variant-numeric: tabular-nums; }
.lp-calc-out small { color: var(--text-secondary); font-size: 13px; line-height: 1.3; display: block; }

/* pricing */
.lp-price { font-size: 2.4rem; font-weight: 700; margin: 4px 0 8px; }
.lp-price span { display: block; font-size: 1rem; font-weight: 500; color: var(--text-secondary); }
.lp-included { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-included li { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-card);
                  border: 1px solid var(--border-light); border-radius: 10px; padding: 12px 14px; }
.lp-included .material-icons { color: var(--color-primary); }

/* trust */
.lp-trust .material-icons { color: var(--color-primary); font-size: 28px; }

/* faq */
.lp-faq details { border: 1px solid var(--border-light); border-radius: 10px; background: var(--bg-card);
                  margin: 0 0 10px; }
.lp-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; min-height: 44px; }
.lp-faq details p { margin: 0; padding: 0 16px 14px; color: var(--text-secondary); }

.lp-me p { max-width: 46rem; }
.lp-cta { background: linear-gradient(135deg, rgba(var(--color-primary-rgb), .1),
                                      rgba(var(--color-tech-rgb), .08)); text-align: center; }
.lp-cta .lp-sub { margin-left: auto; margin-right: auto; }
.lp-contact { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lp-contact .lp-btn { overflow-wrap: anywhere; }

.lp-foot { border-top: 1px solid var(--border-light); padding: 22px 0 32px; color: var(--text-secondary);
           font-size: 14px; }
.lp-foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.lp-foot p { margin: 0; }

@media (max-width: 860px) {
  .lp-hero-grid, .lp-calc-grid, .lp-price-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-hero { padding-top: 36px; }
  .lp-calc-out { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .lp * { transition: none !important; scroll-behavior: auto !important; } }
html { scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* theme.css styles every <nav> for the site's mega-menu; this header's nav is
   just a row of links. */
.lp .lp-nav { background: none; box-shadow: none; height: auto; line-height: normal; width: auto; border: 0; }

/* Phones: the header carries the mark, the call button and the theme toggle;
   the full name wrapped "Free call" onto two lines at 390px. Touch targets
   stay at 44px. */
.lp-btn { white-space: nowrap; }
.lp-brand { min-height: 44px; }
.lp-calc input[type=range] { min-height: 44px; }
@media (max-width: 480px) {
  .lp-name { display: none; }
}

/* the invoice demo */
.lp-demo { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.15fr);
           gap: 16px; align-items: stretch; }
.lp-doc, .lp-fields { background: var(--bg-card); border: 1px solid var(--border-light);
                      border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-card); }
.lp-doc-tag { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em;
              text-transform: uppercase; color: var(--text-secondary); }
.lp-doc-head { margin: 0 0 12px; font-weight: 600; }
.lp-doc-head small { font-weight: 400; color: var(--text-secondary); }
.lp-doc-lines { width: 100%; border-collapse: collapse; font-size: 15px; }
.lp-doc-lines th { text-align: left; color: var(--text-secondary); font-weight: 500;
                   border-bottom: 1px solid var(--border-light); padding: 6px 0; }
.lp-doc-lines th:last-child, .lp-doc-lines td:last-child { text-align: right;
                                                          font-variant-numeric: tabular-nums; }
.lp-doc-lines td { padding: 6px 0; border-bottom: 1px dashed var(--border-light); }
.lp-doc-total td { font-weight: 700; border-bottom: 0; }
.lp-arrowcol { display: flex; align-items: center; justify-content: center; color: var(--color-primary); }
.lp-field { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 2px 12px;
            align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.lp-field span { color: var(--text-secondary); font-size: 14px; }
.lp-field b, .lp-field input { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.lp-field i { grid-column: 2; font-style: normal; font-size: 13px; }
.lp-ok { color: var(--color-primary); }
.lp-ok::before { content: "\2713  "; }
.lp-flag { background: rgba(var(--color-accent-rgb), .12); border-radius: 8px; padding: 8px 8px;
           border-bottom: 0; margin: 4px 0; }
.lp-flag input { font: inherit; font-weight: 600; padding: 6px 8px; border-radius: 6px; min-height: 40px;
                 border: 1px solid var(--color-accent-dark); background: var(--bg-primary);
                 color: var(--text-primary); width: 100%; }
.lp-warn { color: var(--text-primary); }
.lp-warn::before { content: "\26A0  "; }
.lp-demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.lp-demo-actions .lp-btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.lp-demo-msg { margin: 0; color: var(--text-secondary); font-size: 14px; flex: 1 1 220px; }
.lp-done .lp-flag { background: rgba(var(--color-primary-rgb), .1); }
.lp-done #lp-approve { background: var(--color-primary); color: #fff !important; }

/* what if */
.lp-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.lp-whatif h3 { font-size: 1.12rem; color: var(--color-primary); }

@media (max-width: 860px) {
  .lp-demo { grid-template-columns: minmax(0, 1fr); }
  .lp-arrowcol { transform: rotate(90deg); height: 28px; }
}

/* "Two more, shown": copy beside an illustrated mock-up, alternating sides */
.lp-show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px;
           align-items: center; margin: 0 0 40px; }
.lp-show:last-child { margin-bottom: 0; }
.lp-show-flip .lp-show-copy { order: 2; }
.lp-show-copy h3 { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; margin-bottom: 10px; }
.lp-show-copy h3 .material-icons { color: var(--color-primary); }
.lp-show-copy p { color: var(--text-secondary); margin: 0 0 12px; }
.lp-proofline { display: flex; gap: 8px; align-items: flex-start; font-size: 15px;
                background: rgba(var(--color-tech-rgb), .08); border-radius: 10px; padding: 10px 12px; }
.lp-proofline .material-icons { color: var(--color-tech-dark); font-size: 20px; }
.lp-mock { margin: 0; background: var(--bg-card); border: 1px solid var(--border-light);
           border-radius: var(--radius-lg); box-shadow: var(--shadow-card-hover); overflow: hidden; }
.lp-mock-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
               padding: 12px 16px; background: var(--bg-section); border-bottom: 1px solid var(--border-light);
               font-size: 14px; }
.lp-mock-bar span { color: var(--text-secondary); }
.lp-mock figcaption { color: var(--text-secondary); font-size: 13px; padding: 10px 16px 14px;
                      border-top: 1px solid var(--border-light); }
.lp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 16px 4px; }
.lp-kpis p { margin: 0; background: var(--bg-section); border-radius: 8px; padding: 8px 10px; }
.lp-kpis small { display: block; color: var(--text-secondary); font-size: 12px; }
.lp-kpis b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.lp-amber { color: var(--color-accent-dark); }
.lp-timeline { list-style: none; margin: 0; padding: 12px 16px 8px 34px; position: relative; }
.lp-timeline::before { content: ""; position: absolute; left: 22px; top: 18px; bottom: 18px;
                       width: 2px; background: var(--border-medium); }
.lp-timeline li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr);
                  gap: 0 10px; padding: 7px 0; }
.lp-timeline time { color: var(--text-secondary); font-size: 13px; grid-row: span 2; padding-top: 2px; }
.lp-timeline b { font-size: 15px; }
.lp-timeline em { font-style: normal; color: var(--text-secondary); font-size: 13px; }
.lp-dot { position: absolute; left: -17px; top: 12px; width: 12px; height: 12px; border-radius: 50%;
          border: 2px solid var(--bg-card); }
.lp-dot-blue { background: var(--color-primary); }
.lp-dot-green { background: #2e9d5b; }
.lp-dot-amber { background: var(--color-accent-dark); }
.lp-queue { list-style: none; margin: 0; padding: 8px 16px; }
.lp-queue li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px;
               padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.lp-queue li:last-child { border-bottom: 0; }
.lp-queue b { font-size: 15px; }
.lp-queue span { grid-column: 1; color: var(--text-secondary); font-size: 13px; }
.lp-queue i { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal;
              font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.lp-q-done i { background: rgba(46, 157, 91, .14); color: #1f7a45; }
.lp-q-person i { background: rgba(var(--color-accent-rgb), .2); color: var(--text-primary); }
html[data-theme="dark"] .lp-q-done i { color: #7ed3a0; }
@media (max-width: 860px) {
  .lp-show { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .lp-show-flip .lp-show-copy { order: 0; }
}
@media (max-width: 420px) {
  .lp-queue li { grid-template-columns: minmax(0, 1fr); }
  .lp-queue i { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
  .lp-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---- "Less admin": the week bar ---- */
.lp-week { margin: 0 0 24px; background: var(--bg-card); border: 1px solid var(--border-light);
           border-radius: var(--radius-lg); padding: 18px 20px 12px; }
.lp-week-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px;
               align-items: center; margin: 0 0 10px; }
.lp-week-row > span { font-weight: 600; font-size: 15px; }
.lp-bar { display: flex; height: 38px; border-radius: 10px; overflow: hidden; background: var(--bg-section); }
.lp-bar i { display: flex; align-items: center; padding: 0 12px; font-style: normal; font-size: 14px;
            font-weight: 600; white-space: nowrap; overflow: hidden; }
.lp-seg-admin { background: rgba(var(--color-accent-rgb), .55); color: #1f2937; }
.lp-seg-work { background: var(--color-primary); color: #fff; }
.lp-week figcaption { color: var(--text-secondary); font-size: 13px; margin-top: 4px; }
@media (max-width: 520px) { .lp-week-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ---- the invoice demo: a sheet of paper and what was read from it ---- */
.lp-stepper { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-stepper li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
                 border: 1px solid var(--border-medium); color: var(--text-secondary); font-weight: 600;
                 font-size: 14px; background: var(--bg-card); }
.lp-stepper li .material-icons { font-size: 18px; }
.lp-stepper li.is-done { background: rgba(46, 157, 91, .14); border-color: rgba(46, 157, 91, .5); color: var(--text-primary); }
.lp-stepper li.is-now { background: rgba(var(--color-accent-rgb), .22); border-color: var(--color-accent-dark); color: var(--text-primary); }
.lp-demo2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
/* Paper is paper in either theme: a white sheet with dark ink. */
.lp-paper { position: relative; background: #fffdf8; color: #22252a; border-radius: 4px;
            padding: 34px 26px 18px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 32px rgba(0,0,0,.14);
            transform: rotate(-.6deg); font-size: 14px; overflow: hidden; }
.lp-paper small { color: #6b6f76; font-size: 11px; letter-spacing: .08em; }
.lp-paper p { margin: 0; }
.lp-paper-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start;
                 border-bottom: 2px solid #22252a; padding-bottom: 12px; margin-bottom: 26px; }
.lp-logo { display: block; font-size: 15px; letter-spacing: .04em; }
.lp-inv-meta { text-align: right; display: grid; gap: 22px; }
.lp-inv-title { font-size: 20px; font-weight: 700; letter-spacing: .12em; }
.lp-paper-row { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.lp-paper-lines { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.lp-paper-lines th { text-align: left; font-size: 11px; letter-spacing: .08em; color: #6b6f76;
                     border-bottom: 1px solid #c9c4b8; padding: 6px 0; font-weight: 600; }
.lp-paper-lines td { padding: 7px 0; border-bottom: 1px dotted #d8d3c7; }
.lp-paper-lines th:last-child, .lp-paper-lines td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.lp-paper-totals { margin-left: auto; width: min(100%, 240px); display: grid; gap: 4px; }
.lp-paper-totals p { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.lp-paper-totals .lp-bx { margin-top: 22px; }
.lp-paper-foot { margin-top: 16px !important; font-size: 12px; color: #6b6f76; text-align: center; }
.lp-hand { font-family: "Caveat", "Segoe Script", cursive; font-size: 28px; line-height: 1.1; color: #1d3a8a; }
.lp-hand-note { display: inline-block; margin-top: 34px !important; font-size: 24px; transform: rotate(-1.5deg); }

/* Bounding boxes: drawn around what was read, each labelled with what it is. */
.lp-bx { position: relative; border-radius: 3px; outline: 2px solid rgba(25, 118, 210, .75);
         outline-offset: 3px; transition: outline-color .3s, background-color .2s; }
.lp-bx::after { content: attr(data-label); position: absolute; left: -5px; top: -25px;
                background: #1976d2; color: #fff; font: 600 11px/1 "Poppins", sans-serif;
                padding: 4px 6px; border-radius: 4px; white-space: nowrap; letter-spacing: 0;
                pointer-events: none; transition: opacity .3s; transform: none; }
.lp-inv-meta .lp-bx::after { left: auto; right: -5px; }
.lp-bx-warn { outline-color: #f59e0b; }
.lp-bx-warn::after { background: #b45309; }
.lp-bx.is-hot { outline-width: 3px; outline-color: #0d47a1; background: rgba(25, 118, 210, .1); }
.lp-bx-warn.is-hot { outline-color: #b45309; background: rgba(245, 158, 11, .16); }

/* The scan pass, once, when the sheet comes into view; the boxes then appear. */
.lp-scan { position: absolute; left: 0; right: 0; top: -14%; height: 14%; pointer-events: none;
           background: linear-gradient(180deg, transparent, rgba(25, 118, 210, .22), transparent);
           opacity: 0; z-index: 2; }
.lp-paper.is-scanning .lp-scan { animation: lp-scan 1.5s ease-in-out 1; }
.lp-paper.is-waiting .lp-bx { outline-color: transparent; }
.lp-paper.is-waiting .lp-bx::after { opacity: 0; }
@keyframes lp-scan { 0% { top: -14%; opacity: 1; } 100% { top: 100%; opacity: 1; } }

.lp-read { background: var(--bg-card); border: 1px solid var(--border-light);
           border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-card); }
.lp-readlist { list-style: none; margin: 0; padding: 0; }
.lp-readlist li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 0 12px;
                  padding: 9px 8px; border-bottom: 1px solid var(--border-light); border-radius: 8px;
                  transition: background-color .15s; }
.lp-readlist li:hover, .lp-readlist li.is-hot { background: rgba(var(--color-primary-rgb), .08); }
.lp-readlist span { color: var(--text-secondary); font-size: 13px; padding-top: 2px; }
.lp-readlist b { font-weight: 600; overflow-wrap: anywhere; }
.lp-readlist i { grid-column: 2; font-style: normal; font-size: 13px; }
.lp-readlist .lp-flagged { background: rgba(var(--color-accent-rgb), .14); border-bottom: 0; margin: 4px 0; }
.lp-readlist input { font: inherit; font-weight: 600; padding: 6px 8px; border-radius: 6px; min-height: 40px;
                     border: 1px solid var(--color-accent-dark); background: var(--bg-primary);
                     color: var(--text-primary); width: 100%; }
.lp-done-list { margin-top: 12px; }
.lp-done-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lp-done-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.lp-done-list li .material-icons { color: #2e9d5b; font-size: 20px; }
.lp-read.is-processed .lp-flagged { background: rgba(46, 157, 91, .12); }

/* ---- tasks as a compact strip ---- */
.lp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lp-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
               background: var(--bg-card); border: 1px solid var(--border-light); font-weight: 500;
               box-shadow: var(--shadow-card); }
.lp-chips .material-icons { color: var(--color-primary); font-size: 20px; }

@media (max-width: 860px) {
  .lp-demo2 { grid-template-columns: minmax(0, 1fr); }
  .lp-paper { transform: none; padding: 32px 16px 14px; }
}
@media (max-width: 420px) {
  .lp-paper-head { flex-direction: column; }
  .lp-inv-meta { text-align: left; }
  .lp-inv-meta .lp-bx::after { left: -5px; right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-paper.is-scanning .lp-scan { animation: none; }
}

/* `hidden` must win over a button's display; and a box at the right edge
   carries its label right-aligned so the sheet does not clip it. */
.lp [hidden] { display: none !important; }
#bx-po::after, #bx-total::after { left: auto; right: -5px; }

/* theme.css paints every table for the dark theme; a sheet of paper is not
   themed. */
.lp .lp-paper table, .lp .lp-paper thead, .lp .lp-paper tbody, .lp .lp-paper tr,
.lp .lp-paper th, .lp .lp-paper td { background: transparent !important; color: #22252a; }
.lp .lp-paper th { color: #6b6f76; }

/* ---- client communication and follow-ups ---- */
.lp-comms { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.lp-mock-cap { color: var(--text-secondary); font-size: 13px; margin: 0; padding: 10px 16px 14px;
               border-top: 1px solid var(--border-light); }
.lp-inbox-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); }
.lp-msgs { list-style: none; margin: 0; padding: 8px; border-right: 1px solid var(--border-light); }
.lp-msg { display: grid; gap: 2px; width: 100%; text-align: left; font: inherit; color: var(--text-primary);
          background: none; border: 1px solid transparent; border-radius: 10px; padding: 10px 12px;
          cursor: pointer; margin-bottom: 4px; }
.lp-msg:hover { background: var(--bg-section); }
.lp-msg.is-on { background: rgba(var(--color-primary-rgb), .08); border-color: rgba(var(--color-primary-rgb), .35); }
.lp-msg b { font-size: 15px; }
.lp-msg span { color: var(--text-secondary); font-size: 13px; }
.lp-tag { justify-self: start; font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px;
          border-radius: 999px; margin-top: 4px; }
.lp-tag-quote { background: rgba(var(--color-primary-rgb), .14); color: var(--color-primary); }
.lp-tag-book { background: rgba(var(--color-tech-rgb), .16); color: var(--color-tech-dark); }
.lp-tag-bill { background: rgba(var(--color-accent-rgb), .25); color: var(--text-primary); }
html[data-theme="dark"] .lp-tag-quote { color: var(--color-primary-light); }
html[data-theme="dark"] .lp-tag-book { color: var(--color-tech-light); }
.lp-draft { padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.lp-said { margin: 0; color: var(--text-secondary); font-style: italic; font-size: 14px;
           border-left: 3px solid var(--border-medium); padding-left: 10px; }
.lp-draft-label { margin: 6px 0 0; display: flex; align-items: center; gap: 6px; font-weight: 600;
                  font-size: 13px; color: var(--color-primary); }
.lp-draft-label .material-icons { font-size: 18px; }
.lp-reply { margin: 0; background: var(--bg-section); border: 1px solid var(--border-light);
            border-radius: 10px; padding: 12px; font-size: 15px; }
.lp-reply[contenteditable="true"] { outline: 2px solid var(--color-primary); }
.lp-from { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 13px; }
.lp-from .material-icons { font-size: 16px; }
.lp-draft-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lp-draft-actions .lp-btn { cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; }
.lp-sent { color: #2e9d5b; font-weight: 600; font-size: 14px; }

.lp-ftl { list-style: none; margin: 0; padding: 14px 16px 6px; }
.lp-ftl li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; position: relative;
             padding-bottom: 14px; }
.lp-ftl li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0;
                                      width: 2px; background: var(--border-medium); }
.lp-fdot { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center;
           justify-content: center; background: var(--bg-section); color: var(--text-secondary);
           border: 2px solid var(--border-medium); }
.lp-fdot .material-icons { font-size: 18px; }
.lp-ftl b { display: block; font-size: 15px; }
.lp-ftl em { font-style: normal; color: var(--text-secondary); font-size: 13px; }
.lp-ftl .is-done .lp-fdot { background: rgba(46, 157, 91, .14); border-color: #2e9d5b; color: #2e9d5b; }
.lp-ftl .is-next .lp-fdot { background: rgba(var(--color-accent-rgb), .22); border-color: var(--color-accent-dark);
                            color: var(--text-primary); }
.lp-ftl .is-stop .lp-fdot { border-style: dashed; }
.lp-today { margin: 0 16px 12px; background: var(--bg-section); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.lp-today p { margin: 0; }

@media (max-width: 960px) {
  .lp-comms { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .lp-inbox-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-msgs { border-right: 0; border-bottom: 1px solid var(--border-light); display: flex; overflow-x: auto;
             gap: 6px; }
  .lp-msgs li { flex: 0 0 auto; }
  .lp-msg { width: auto; min-width: 170px; margin: 0; }
}

/* A used button looks used; amber text needs a darker amber on light. */
.lp .lp-btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
.lp .lp-amber { color: #9a5b00; }
html[data-theme="dark"] .lp .lp-amber { color: var(--color-accent); }

/* ---- reports and dashboards ---- */
/* One series, one hue: validated with the dataviz palette checks -- #1976d2 on
   the light card, #3d97e8 on the dark one (the site's lighter #64b5f6 sat
   outside the lightness band for a dark surface). */
.lp-dash { --lp-bar: #1976d2; }
html[data-theme="dark"] .lp-dash { --lp-bar: #3d97e8; }
.lp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 16px 4px; }
.lp-tiles p { margin: 0; background: var(--bg-section); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.lp-tiles small { color: var(--text-secondary); font-size: 12px; }
.lp-tiles b { font-size: 1.45rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.lp-tiles em { font-style: normal; font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 2px; }
.lp-tiles em .material-icons { font-size: 15px; }
.lp-up .material-icons { color: #2e9d5b; }
.lp-warnink .material-icons { color: #b45309; }
html[data-theme="dark"] .lp-warnink .material-icons { color: var(--color-accent); }
.lp-dash-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; padding: 12px 16px; }
.lp-chart { margin: 0; position: relative; }
.lp-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lp-chart-head p { margin: 0; font-size: 15px; }
.lp-chart-head span { color: var(--text-secondary); font-size: 13px; margin-left: 4px; }
.lp-linkbtn { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 13px; font-weight: 600;
              color: var(--color-primary); cursor: pointer; min-height: 32px; }
.lp-chart-plot svg { width: 100%; height: auto; display: block; overflow: visible; }
.lp-chart-plot .lp-grid line { stroke: var(--border-light); }
.lp-chart-plot .lp-ax text { fill: var(--text-secondary); font: 11px "Poppins", sans-serif; }
.lp-chart-plot .lp-bar-r { fill: var(--lp-bar); }
.lp-chart-plot .lp-hit { fill: transparent; cursor: default; }
.lp-chart-plot .lp-hit:focus { outline: none; }
.lp-chart-plot g.is-hot .lp-bar-r { opacity: .8; }
.lp-chart-plot .lp-dlabel { fill: var(--text-primary); font: 600 12px "Poppins", sans-serif; }
.lp-tip { position: absolute; pointer-events: none; background: var(--bg-elevated); color: var(--text-primary);
          border: 1px solid var(--border-medium); border-radius: 8px; padding: 6px 10px; font-size: 13px;
          box-shadow: var(--shadow-card-hover); white-space: nowrap; transform: translate(-50%, -110%); z-index: 3; }
.lp-chart-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.lp-chart-table th, .lp-chart-table td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--border-light); }
.lp-chart-table td:last-child, .lp-chart-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.lp-chart.has-chart .lp-chart-table { display: none; }
.lp-chart.has-chart.show-table .lp-chart-table { display: table; }
.lp-chart.has-chart.show-table .lp-chart-plot { display: none; }
.lp-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp-attn { background: var(--bg-section); border-radius: 10px; padding: 12px; }
.lp-attn-head { margin: 0 0 6px; font-size: 15px; }
.lp-attn ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-attn li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: start;
              background: var(--bg-card); border-radius: 8px; padding: 8px 10px; border-left: 3px solid var(--border-medium); }
.lp-attn li b { display: block; font-size: 14px; }
.lp-attn li span { color: var(--text-secondary); font-size: 13px; }
.lp-st-warn { border-left-color: #f59e0b !important; }
.lp-st-warn .material-icons { color: #b45309; }
html[data-theme="dark"] .lp-st-warn .material-icons { color: var(--color-accent); }
.lp-st-info .material-icons { color: var(--color-primary); }
.lp-mailstrip { display: flex; gap: 10px; align-items: flex-start; margin: 0 16px 12px; padding: 10px 12px;
                border: 1px dashed var(--border-medium); border-radius: 10px; font-size: 14px; }
.lp-mailstrip p { margin: 0; }
.lp-mailstrip .material-icons { color: var(--color-primary); }
@media (max-width: 900px) {
  .lp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-dash-grid { grid-template-columns: minmax(0, 1fr); }
}
