/* DebitHub — landing page (dark theme only). Base tokens copied from the app design system. */
/* ── CSS Variables (Dark Mode – Default) ── */
:root {
  --bg:           #0a0d12;
  --surface:      #10141b;
  --surface-2:    #151a22;
  --surface-3:    #1b212b;
  --surface-4:    #232a36;
  --border:       rgba(255, 255, 255, 0.10);
  --border-soft:  rgba(255, 255, 255, 0.06);
  --brand-navy:   #12305f;
  --accent:       #17b78f;
  --accent-2:     #22d6a8;
  --accent-hover: #149c79;
  --accent-dim:   rgba(23, 183, 143, 0.14);
  --accent-glow:  rgba(23, 183, 143, 0.28);
  --text:         #eef1f6;
  --text-2:       #aab2c2;
  --text-muted:   #707888;
  --success:      #26a97b;
  --success-dim:  rgba(38, 169, 123, 0.14);
  --warning:      #d99a3d;
  --warning-dim:  rgba(217, 154, 61, 0.14);
  --danger:       #e0605c;
  --danger-dim:   rgba(224, 96, 92, 0.14);
  --info:         #4d8fd6;
  --info-dim:     rgba(77, 143, 214, 0.14);

  --radius-sm:    5px;
  --radius:       8px;
  --radius-lg:    10px;
  --radius-xl:    14px;
  --radius-full:  9999px;

  --transition:   0.18s ease;
  --transition-fast: 0.12s ease;

  --shadow:       0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-lg:    0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-glow:  0 0 0 3px var(--accent-dim);

  --font: 'Inter', system-ui, -apple-system, sans-serif;

  --header-h: 64px;
  --sidebar-w: 248px;
}
/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; font-size: 15px; }
img, svg { display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
.w-full { width: 100%; }
/* ── Icons ── */
.icon, [data-icon] { display: inline-flex; align-items: center; justify-content: center; line-height: 0; flex-shrink: 0; vertical-align: -0.125em; }
.icon-svg { width: 1em; height: 1em; display: block; }
/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-soft);
}
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 0.85rem 1.8rem; font-size: 1rem; border-radius: var(--radius-lg); }
.brand-logo-full { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo-full img { height: 100%; width: auto; display: block; }
.brand-logo-full-sm { height: 30px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ── Landing-only layout & brand palette (sampled from the DebitHub mark: navy → teal) ── */
  body.lp {
    overflow-x: hidden;
    --lp-navy: #12305f;
    --accent: #17b78f;
    --accent-2: #22d6a8;
    --accent-hover: #149c79;
    --accent-dim: rgba(23, 183, 143, 0.14);
    --accent-glow: rgba(23, 183, 143, 0.32);
    --success: #17b78f;
    --success-dim: rgba(23, 183, 143, 0.14);
  }

  .lp-blob { position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0; pointer-events: none; }

  .lp-topbar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.5rem; background: rgba(10, 13, 18, 0.75); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
  }

  .lp-section { position: relative; padding: 5rem 1.5rem; z-index: 1; }
  .lp-container { max-width: 1120px; margin: 0 auto; position: relative; z-index: 1; }
  .lp-section-alt { background: var(--surface); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

  .lp-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: linear-gradient(90deg, var(--lp-navy), var(--accent));
    color: #fff; border: none;
    padding: .4rem .9rem; border-radius: var(--radius-full); font-size: .78rem; font-weight: 700;
    letter-spacing: .02em; margin-bottom: 1.25rem;
  }

  /* Orphan-word safety net on top of manual &nbsp; fixes in the copy.
     Short subtitle-style blocks use "balance" so every line comes out an even
     width instead of leaving one short line dangling on its own. */
  .lp-hero h1, .lp-h2, .lp-cta-banner h2, .lp-hero-sub, .lp-section-head p, .lp-cta-banner p { text-wrap: balance; }
  .lp-pain-card p, .lp-feature-card p, .lp-step p, .lp-faq p, .lp-price-permonth { text-wrap: pretty; }

  .lp-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding-top: 3.5rem; padding-bottom: 4rem; }
  .lp-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
  .lp-hero h1 em { font-style: normal; color: var(--accent-2); }
  .lp-hero-sub { font-size: 1.05rem; color: var(--text-2); max-width: 46ch; margin-bottom: 2rem; }
  .lp-hero-ctas { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
  .lp-hero-note { font-size: .8rem; color: var(--text-muted); display: flex; align-items: center; gap: .5rem; }
  .lp-hero-note [data-icon] { color: var(--accent-2); }

  /* Hero product screenshot (real app), framed like a browser window + brand glow behind it */
  .hero-shot-wrap { position: relative; }
  .hero-shot-wrap::before {
    content: ''; position: absolute; inset: -34px; z-index: -1; border-radius: 44px;
    background: linear-gradient(135deg, var(--lp-navy), var(--accent));
    filter: blur(54px); opacity: .38;
  }
  .hero-shot { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
  .hero-shot-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--border-soft); }
  .hero-shot-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-4); }
  .hero-shot-url { margin-left: .75rem; font-size: .72rem; color: var(--text-muted); background: var(--surface-3); padding: .2rem .6rem; border-radius: var(--radius-full); }
  .hero-shot img { display: block; width: 100%; height: auto; }

  .lp-h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; margin-bottom: .75rem; }
  .lp-section-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
  .lp-section-head p { color: var(--text-2); font-size: 1rem; }

  .lp-pain-grid, .lp-features-grid, .lp-steps-grid, .lp-pricing-grid { display: grid; gap: 1.25rem; }
  .lp-pain-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-features-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-steps-grid { grid-template-columns: repeat(3, 1fr); }

  .lp-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 1.5rem; }

  /* Pain section — stronger contrast + a distinct icon per topic */
  .lp-pain-card {
    display: flex; gap: 1.1rem; align-items: flex-start;
    background: linear-gradient(160deg, var(--warning-dim), var(--surface) 65%);
    border: 1px solid var(--border); border-left: 3px solid var(--warning);
  }
  .lp-pain-card [data-icon] {
    color: #fff; background: var(--warning); width: 48px; height: 48px; border-radius: var(--radius);
    flex-shrink: 0; box-shadow: 0 6px 16px rgba(217, 154, 61, .35);
  }
  .lp-pain-card p { color: var(--text); font-size: .95rem; font-weight: 500; }

  /* Feature cards — icon + title side by side on one line, description below */
  .lp-feature-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .85rem; }
  .lp-feature-card [data-icon] { width: 42px; height: 42px; border-radius: var(--radius); background: var(--accent-dim); color: var(--accent-2); flex-shrink: 0; }
  .lp-feature-card h3 { font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lp-feature-card p { color: var(--text-2); font-size: .88rem; }

  /* Step numbers — solid gradient badges instead of faint background digits */
  .lp-step-num {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--lp-navy), var(--accent));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800; margin-bottom: 1.1rem;
    box-shadow: 0 6px 18px var(--accent-glow);
  }
  .lp-step h3 { font-size: 1.05rem; margin-bottom: .5rem; }
  .lp-step p { color: var(--text-2); font-size: .9rem; }

  .lp-pricing-grid { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
  .lp-price-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-xl); padding: 1.5rem 1.25rem; position: relative; }
  .lp-price-card.featured { border-color: var(--accent); box-shadow: var(--shadow-glow); background: linear-gradient(165deg, rgba(18, 48, 95, .35), var(--surface) 45%); }
  .lp-price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--lp-navy), var(--accent)); color: #fff; font-size: .72rem; font-weight: 800; padding: .3rem .9rem; border-radius: var(--radius-full); white-space: nowrap; }
  .lp-price-name { font-size: 1rem; font-weight: 700; color: var(--text-2); margin-bottom: .75rem; }
  .lp-price-value { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.02em; }
  .lp-price-value small { font-size: .95rem; font-weight: 600; color: var(--text-muted); }
  .lp-price-permonth { font-size: .8rem; color: var(--text-muted); margin: .35rem 0 1.25rem; }
  .lp-price-save { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--accent-2); background: var(--accent-dim); padding: .2rem .6rem; border-radius: var(--radius-full); margin-bottom: 1.25rem; align-self: flex-start; }
  .lp-price-features { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; flex: 1; }
  .lp-price-features li { display: flex; gap: .55rem; align-items: flex-start; font-size: .86rem; color: var(--text-2); }
  .lp-price-features [data-icon] { color: var(--accent-2); flex-shrink: 0; margin-top: .1rem; width: 16px; height: 16px; }

  .lp-faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
  .lp-faq details { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 1.1rem 1.35rem; }
  .lp-faq summary { cursor: pointer; font-weight: 600; font-size: .95rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
  .lp-faq summary::-webkit-details-marker { display: none; }
  .lp-faq summary::after { content: '+'; font-size: 1.4rem; color: var(--accent-2); flex-shrink: 0; transition: transform var(--transition); line-height: 1; }
  .lp-faq details[open] summary::after { transform: rotate(45deg); }
  .lp-faq p { color: var(--text-2); font-size: .88rem; margin-top: .85rem; }

  .lp-cta-banner { text-align: center; background: linear-gradient(135deg, var(--accent-dim), rgba(18, 48, 95, .3)); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 3.5rem 2rem; }
  .lp-cta-banner h2 { margin-bottom: .75rem; }
  .lp-cta-banner p { color: var(--text-2); max-width: 44ch; margin: 0 auto 2rem; }

  .lp-footer { text-align: center; padding: 3rem 1.5rem 2.5rem; }
  .lp-footer .brand-logo-full { margin: 0 auto 1rem; justify-content: center; }
  .lp-footer p { color: var(--text-muted); font-size: .82rem; margin-bottom: .35rem; }
  .lp-footer a { color: var(--text-2); }

  @media (max-width: 1100px) {
    .lp-pricing-grid { grid-template-columns: repeat(2, 1fr); }
  }

  @media (max-width: 900px) {
    .lp-hero { grid-template-columns: 1fr; padding-top: 2rem; }
    .lp-hero-visual { order: -1; }
    .hero-shot-wrap::before { inset: -18px; }
    .lp-pain-grid, .lp-features-grid, .lp-steps-grid, .lp-pricing-grid { grid-template-columns: 1fr; }
    .lp-feature-card h3 { white-space: normal; }
    .lp-section { padding: 3.5rem 1.25rem; }
  }
