/* Ledgr Academy storefront. Same palette and type as ledgrsystems.com:
   deep purple ground, Poppins for display, DM Sans for reading. */
:root {
  --bg: #0d0a18;
  --bg-alt: #120e22;
  --surface: #17122b;
  --ink: #f4f1ff;
  --text: #d9d3ef;
  --soft: #a79fc6;
  --muted: #8a82a8;
  --purple: #7c5ce0;
  --purple-hover: #8f72f0;
  --accent: #c4b5fd;
  --border: rgba(124, 92, 224, 0.22);
  --border-strong: rgba(196, 181, 253, 0.45);
  --good: #6ee7b7;
  --bad: #fca5a5;
  --radius: 14px;
  --display: 'Poppins', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: #fff; }
img { max-width: 100%; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; color: #000; padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 10, 24, 0.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-word { font-family: var(--display); font-weight: 300; letter-spacing: 0.3em; font-size: 15px; color: var(--ink); white-space: nowrap; }
.brand-word span { font-weight: 400; color: var(--accent); }
.brand-word.small { font-size: 13px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a { color: var(--soft); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: #fff; }

/* Buttons */
.btn {
  display: inline-block; background: var(--purple); color: #fff; text-decoration: none;
  font-family: var(--display); font-weight: 400; font-size: 15px; letter-spacing: 0.02em;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--purple-hover); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover { background: rgba(196, 181, 253, 0.08); }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* Hero */
.hero { padding: 104px 0 88px; border-bottom: 1px solid var(--border);
  background: radial-gradient(1000px 420px at 70% -10%, rgba(124, 92, 224, 0.28), transparent 70%); }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.2em; font-size: 13px; color: var(--accent); margin: 0 0 18px; }
h1 { text-wrap: balance; font-family: var(--display); font-weight: 300; color: var(--ink); font-size: clamp(34px, 5.4vw, 60px); line-height: 1.12; margin: 0 0 24px; letter-spacing: -0.01em; }
h1 span { color: var(--accent); }
.lede { font-size: 20px; max-width: 720px; color: var(--text); margin: 0 0 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-facts { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hero-facts li { border-left: 2px solid var(--purple); padding: 2px 0 2px 14px; color: var(--soft); font-size: 15px; }
.hero-facts strong { display: block; color: var(--ink); font-family: var(--display); font-weight: 400; font-size: 19px; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { text-wrap: balance; font-family: var(--display); font-weight: 300; color: var(--ink); font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 12px; }
h3 { font-family: var(--display); font-weight: 400; color: var(--ink); font-size: 19px; margin: 0 0 8px; }
.section-lede { color: var(--soft); font-size: 18px; max-width: 700px; margin: 0 0 44px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.card p { margin: 0; color: var(--soft); font-size: 16px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 20px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; }
.steps p { margin: 0; color: var(--soft); font-size: 16px; }
.step-n { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-family: var(--display); }

/* Pricing */
.tier { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px; }
.tier-featured { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple), 0 18px 50px rgba(124, 92, 224, 0.22); }
.tier-flag { position: absolute; top: -12px; left: 24px; margin: 0; background: var(--purple); color: #fff; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.price { margin: 14px 0 6px; color: var(--soft); font-size: 15px; }
.price span { display: block; font-family: var(--display); font-weight: 300; font-size: 40px; color: var(--ink); line-height: 1.15; }
.tier-total { margin: 0; color: var(--muted); font-size: 15px; }
.included { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; }
.included li { padding-left: 26px; position: relative; color: var(--text); }
.included li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.note { color: var(--soft); margin-top: 28px; }

/* FAQ */
details { border-bottom: 1px solid var(--border); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--border); margin-top: 32px; }
summary { cursor: pointer; font-family: var(--display); font-weight: 400; color: var(--ink); font-size: 18px; list-style: none; position: relative; padding-right: 30px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: -2px; color: var(--accent); font-size: 22px; font-weight: 300; }
details[open] summary::after { content: '\2212'; }
details p { margin: 12px 0 0; color: var(--soft); }

/* Quote form */
.quote { display: grid; gap: 18px; margin-top: 8px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.row .short { max-width: 140px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--soft); }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.estimate { margin: 0; color: var(--accent); font-size: 16px; min-height: 1.6em; }
.form-status { margin: 0; min-height: 1.6em; }
.form-status.ok { color: var(--good); }
.form-status.err { color: var(--bad); }
.quote .btn { justify-self: start; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 48px 0 32px; color: var(--muted); font-size: 15px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-inner p { margin: 8px 0 0; }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer nav a { color: var(--soft); text-decoration: none; }
.footer nav a:hover { color: var(--ink); }
.legal { margin-top: 32px; font-size: 13px; }

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.btn):not(.nav-signin) { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid-3, .grid-4, .included { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .nav-signin { display: none; }
  .brand-word { font-size: 13px; letter-spacing: 0.22em; }
  .row .short { max-width: none; }
  .steps li { padding: 18px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
