/* MyProfit landing page (homes#index, layouts/marketing). Static on purpose: Heroku does not precompile
   assets. Same palette and type as the app (public/modern/app.css). */

:root {
  --ink: #15171a;
  --ink-2: #3d4148;
  --muted: #5b616b;
  --ground: #f6f5f0;
  --surface: #fff;
  --line: #e4e2da;
  --line-2: #efede6;
  --brand: #0b6e4f;
  --brand-dark: #084d38;
  --brand-soft: #e3f1ea;
  --mint: #8fd1b0;
  --deep: #10231b;
  --loss: #b93815;
  --loss-soft: #fcf3ef;
  --tan: #d9b58e;
  --display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --body: 'Geist', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.lp { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5;
          font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
.lp h1, .lp h2, .lp h3, .lp p { margin: 0; }
.lp a { color: var(--brand); }
.lp :focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 6px; }
.lp-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .lp-wrap { padding: 0 40px; } }
@media (min-width: 1200px) { .lp-wrap { padding: 0 80px; max-width: 1440px; } }

.lp-flash { padding: 12px 20px; text-align: center; font-size: 15px; }
.lp-flash.is-ok { background: var(--brand-soft); color: var(--brand-dark); }
.lp-flash.is-err { background: var(--loss-soft); color: var(--loss); }

/* buttons */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 10px;
          font-size: 15px; font-weight: 650; text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.lp-btn-lg { min-height: 56px; padding: 0 26px; border-radius: 12px; font-size: 17px; }
.lp .lp-btn-ink { background: var(--ink); color: #fff; }
.lp .lp-btn-ink:hover { background: #2a2d33; }
.lp .lp-btn-brand { background: var(--brand); color: #fff; }
.lp .lp-btn-brand:hover { background: var(--brand-dark); }
.lp .lp-btn-ghost { border-color: #d8d5cb; color: var(--ink); background: transparent; }
.lp .lp-btn-ghost:hover { border-color: var(--ink); }
.lp .lp-btn-light { background: #fff; color: var(--ink); width: 100%; }
.lp .lp-btn-light:hover { background: var(--brand-soft); }
.lp .lp-btn-mint { background: var(--mint); color: var(--deep); }
.lp .lp-btn-mint:hover { background: #a6dcc1; }

/* nav */
.lp-nav { position: sticky; top: 0; z-index: 10; background: rgba(246, 245, 240, .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; }
.lp-nav-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.lp .lp-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; }
.lp-brand span { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.lp-links { display: none; gap: 28px; flex-grow: 1; margin-left: 20px; }
.lp .lp-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.lp .lp-links a:hover { color: var(--ink); }
.lp-nav-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.lp .lp-signin { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; padding: 10px 4px; }
@media (min-width: 900px) { .lp-links { display: flex; } }
.lp-nav-actions a { white-space: nowrap; }
@media (max-width: 480px) { .lp-nav-actions .lp-signin + .lp-btn { display: none; } }

/* hero */
.lp-hero { display: grid; gap: 48px; padding-top: 40px; padding-bottom: 72px; align-items: center; }
@media (min-width: 1024px) { .lp-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; padding-top: 64px; padding-bottom: 96px; } }
.lp-hero-copy { display: flex; flex-direction: column; gap: 24px; }
.lp-pill { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.lp-hero h1 { font-family: var(--display); font-size: clamp(44px, 6.4vw, 78px); line-height: 1; font-weight: 750; letter-spacing: -.035em; }
.lp-hero h1 em { font-style: normal; color: var(--brand); }
.lp-lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 36em; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-fine { font-size: 14px; color: var(--muted); }

.lp-hero-art { position: relative; }
@media (min-width: 640px) { .lp-hero-art { padding-bottom: 236px; } }
.lp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -36px rgba(21, 23, 26, .3); }
.lp-hero-card { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 24px; margin-right: 0; }
@media (min-width: 640px) { .lp-hero-card { margin-right: 40px; } }
.lp-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lp-hero-top div { display: flex; flex-direction: column; gap: 4px; }
.lp-muted { font-size: 13px; color: var(--muted); }
.lp-big { font-family: var(--display); font-size: clamp(30px, 4vw, 40px); font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.lp-chip { font-size: 13px; font-weight: 650; padding: 5px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.lp-bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; border-bottom: 1px solid var(--line); }
.lp-bars span { position: relative; flex: 1 1 0; background: #cfe3d8; border-radius: 3px 3px 0 0; }
.lp-bars i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--brand); border-radius: 2px 2px 0 0; }
.lp-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lp-hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.lp-hero-stats strong { font-size: 18px; font-weight: 650; }
.lp-sample { position: absolute; top: 14px; right: 88px; font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 480px) { .lp-sample { display: none; } }
.lp-flow { position: relative; margin: -28px 12px 0 auto; width: min(330px, 92%); display: flex; flex-direction: column; gap: 8px; padding: 20px;
           background: var(--ink); color: #fff; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(21, 23, 26, .45); }
.lp-flow > strong { font-size: 14px; }
.lp-flow-row { display: flex; justify-content: space-between; font-size: 13px; }
.lp-flow-row span:first-child { color: #c9ccd1; }
.lp-flow-bar { height: 4px; border-radius: 2px; background: #2a2d33; margin-bottom: 2px; }
.lp-flow-bar i { display: block; height: 4px; border-radius: 2px; background: var(--tan); }
.lp-flow-net { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid #2a2d33; font-size: 14px; font-weight: 700; color: var(--mint); }
@media (min-width: 640px) { .lp-flow { position: absolute; right: 0; bottom: 0; margin: 0; } }

/* trust strip */
.lp-trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 24px 0;
            border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-trust p { font-size: 15px; color: var(--ink-2); max-width: 44em; }
.lp-markets { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.lp-markets li { font-size: 13px; font-weight: 650; padding: 7px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }

/* sections */
.lp-section { padding-top: 88px; }
@media (min-width: 1024px) { .lp-section { padding-top: 120px; } }
.lp-eyebrow { display: block; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.lp-eyebrow-light { color: var(--mint); }
.lp-h2 { font-family: var(--display); font-size: clamp(34px, 4.2vw, 48px); line-height: 1.05; font-weight: 750; letter-spacing: -.03em; max-width: 18em; }

/* problem */
.lp-problem { display: grid; gap: 40px; align-items: center; margin-top: 88px; padding: 40px 24px; background: var(--deep); color: var(--ground); border-radius: 28px; }
@media (min-width: 900px) { .lp-problem { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; padding: 72px; } }
.lp-problem h2 { font-family: var(--display); font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; font-weight: 750; letter-spacing: -.03em; margin-bottom: 20px; }
.lp-problem-copy p { font-size: 18px; line-height: 1.6; color: #c9d6cf; }
.lp-receipt { padding: 24px; background: var(--ground); color: var(--ink); border-radius: 18px; }
.lp-receipt-head, .lp-receipt-row, .lp-receipt-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.lp-receipt-head { padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.lp-receipt-head strong { font-family: var(--display); font-size: 28px; font-weight: 750; color: var(--ink); }
.lp-receipt-row { padding: 11px 0; border-bottom: 1px dashed #d8d5cb; font-size: 15px; color: var(--ink-2); }
.lp-receipt-row strong { color: var(--ink); font-weight: 600; }
.lp-receipt-total { padding-top: 16px; font-weight: 700; }
.lp-receipt-total strong { font-family: var(--display); font-size: 32px; font-weight: 750; color: var(--brand); }
.lp-receipt-total small { font-family: var(--body); font-size: 16px; font-weight: 600; color: var(--ink-2); }

/* how it works */
.lp-steps { display: grid; gap: 20px; list-style: none; padding: 0; margin: 40px 0 0; }
@media (min-width: 900px) { .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-steps li { display: flex; flex-direction: column; gap: 12px; padding: 28px; box-shadow: none; }
.lp-step-num { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; font-family: var(--display); font-size: 18px; font-weight: 700;
               display: inline-flex; align-items: center; justify-content: center; }
.lp-steps h3, .lp-extra h3 { font-size: 20px; font-weight: 650; }
.lp-steps p, .lp-extra p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* feature rows */
.lp-feature { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) {
  .lp-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 72px; }
  .lp-feature-flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .lp-feature-flip .lp-feature-copy { order: 2; }
}
.lp-feature-copy { display: flex; flex-direction: column; }
.lp-feature-copy .lp-h2 { font-size: clamp(32px, 3.6vw, 44px); margin-bottom: 18px; }
.lp-feature-copy p { font-size: 18px; line-height: 1.6; color: var(--ink-2); }

.lp-table { overflow: hidden; }
.lp-table-row { display: grid; grid-template-columns: minmax(0, 2.4fr) repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; padding: 14px 20px;
                border-top: 1px solid var(--line-2); font-size: 14px; }
.lp-table-row > span:not(:first-child) { text-align: right; white-space: nowrap; }
.lp-table-row > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.lp-table-row strong { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-table-row small { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lp-table-head { border-top: 0; background: var(--ground); font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.lp-strong { font-weight: 650; }
.lp-table-row.is-loss { background: var(--loss-soft); }
.lp-table-row.is-loss > span:not(:first-child) { color: var(--loss); }
@media (max-width: 560px) { .lp-table-row { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); } .lp-table-row > span:nth-child(2) { display: none; } }

.lp-periods { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.lp-periods-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 16px; }
.lp-periods-head small { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lp-timeline { display: grid; grid-template-columns: 2.5fr 4.5fr 1.8fr; gap: 4px; height: 12px; }
.lp-timeline i:first-child { border-radius: 6px 0 0 6px; }
.lp-timeline i:last-child { border-radius: 0 6px 6px 0; }
.lp-periods .p1 { background: #cfe3d8; }
.lp-periods .p2 { background: #9cc7b0; }
.lp-periods .p3 { background: var(--brand); }
.lp-period { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line-2); }
.lp-period > i { width: 12px; height: 12px; border-radius: 4px; }
.lp-period > span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.lp-period small { font-size: 13px; color: var(--muted); }
.lp-period-total { font-family: var(--display); font-size: 22px; font-weight: 700; }

.lp-acos { display: flex; flex-direction: column; gap: 18px; padding: 28px; }
.lp-acos-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 16px; }
.lp-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.lp-legend .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--brand); }
.lp-legend .tick { width: 2px; height: 12px; background: var(--ink); margin-left: 10px; }
.lp-acos-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 6px; }
.lp-acos-line span:last-child { color: var(--muted); white-space: nowrap; }
.lp-acos-line strong { color: var(--ink); }
.lp-acos-track { position: relative; height: 10px; border-radius: 5px; background: #f1efe9; }
.lp-acos-track i { display: block; height: 10px; border-radius: 5px; background: var(--brand); }
.lp-acos-track b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.lp-acos-row.is-over .lp-acos-track i { background: #c2410c; }
.lp-acos-row.is-over .lp-acos-line strong { color: var(--loss); }

/* everything else */
.lp-split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.lp-split-head p { max-width: 24em; font-size: 16px; color: var(--ink-2); }
.lp-extras { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 700px) { .lp-extras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lp-extras { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-extra { display: flex; flex-direction: column; gap: 12px; padding: 26px; box-shadow: none; }
.lp-extra-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }

/* pricing */
.lp-pricing { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .lp-pricing { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.lp-pricing-copy p { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 32em; }
.lp-plan { display: flex; flex-direction: column; gap: 20px; padding: 32px 24px; background: var(--ink); color: #fff; border-radius: 24px; }
@media (min-width: 600px) { .lp-plan { padding: 40px; } }
.lp-plan-name { font-size: 16px; font-weight: 600; color: #c9ccd1; }
.lp-plan-price { display: flex; align-items: baseline; gap: 8px; }
.lp-plan-price strong { font-family: var(--display); font-size: clamp(56px, 7vw, 72px); font-weight: 750; letter-spacing: -.03em; line-height: 1; }
.lp-plan-price span { font-size: 18px; color: #c9ccd1; }
.lp-plan-trial { font-size: 15px; font-weight: 600; color: var(--mint); }
.lp-plan ul { display: grid; gap: 12px 20px; list-style: none; margin: 0; padding: 22px 0; border-top: 1px solid #2a2d33; border-bottom: 1px solid #2a2d33; }
@media (min-width: 480px) { .lp-plan ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-plan li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #e6e7e9; }
.lp-plan li svg { color: var(--mint); flex-shrink: 0; }
.lp-plan-fine { font-size: 13px; color: #9a9ea5; text-align: center; }

/* faq */
.lp-faq { display: grid; gap: 32px; }
@media (min-width: 1000px) { .lp-faq { grid-template-columns: 340px minmax(0, 1fr); gap: 72px; } }
.lp-faq-list { display: grid; gap: 0 48px; }
@media (min-width: 760px) { .lp-faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.lp-faq details { border-top: 1px solid #d8d5cb; padding: 18px 0; }
.lp-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 18px; font-weight: 650; min-height: 28px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .15s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { padding-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* footer */
.lp-footer { margin-top: 120px; padding: 88px 0 40px; background: var(--deep); color: var(--ground); }
.lp-footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 48px; }
.lp-footer-cta h2 { max-width: 13em; font-family: var(--display); font-size: clamp(38px, 5vw, 64px); line-height: 1; font-weight: 750; letter-spacing: -.035em; }
.lp-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 64px; padding-top: 28px;
                    border-top: 1px solid #25392f; font-size: 14px; color: #a9bbb1; }
.lp-footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.lp-footer-brand svg { color: var(--mint); }
.lp-footer nav { display: flex; gap: 24px; }
.lp .lp-footer nav a { color: #a9bbb1; text-decoration: none; padding: 10px 0; }
.lp .lp-footer nav a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .lp-btn, .lp-faq summary::after { transition: none; } }
