/* home.css — marketing landing page. Reuses the design tokens from styles.css
   (:root variables, base body font). All classes are `lp-` prefixed so they
   never collide with the worksheet app's styles. */

* { box-sizing: border-box; }
body { margin: 0; }
.lp a { color: inherit; text-decoration: none; }
.lp img { max-width: 100%; }

.lp-wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.lp-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.lp-header .lp-wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.lp-brand .logo {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(120deg, #4f46e5, #6d28d9); color: #fff; font-size: 20px;
}
.lp-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.lp-nav a { color: var(--muted); font-size: 14.5px; font-weight: 600; }
.lp-nav a:hover { color: var(--ink); }

/* Account area (login state) */
.lp-acct { display: inline-flex; align-items: center; gap: 14px; }
.acct-link { color: var(--muted); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.acct-link:hover { color: var(--ink); }
.acct-email { font-size: 13.5px; color: var(--muted); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lp-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 14.5px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(79,70,229,.28); }
.lp-btn-primary:hover { background: #4338ca; }
.lp-btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.lp-btn-disabled { opacity: .55; cursor: not-allowed; }
.lp-btn-disabled:hover { transform: none; }

/* ---------- Hero ---------- */
.lp-hero { background: radial-gradient(1200px 500px at 70% -10%, #eef0fe 0%, rgba(238,240,254,0) 60%); }
.lp-hero .lp-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 70px 22px 60px; }
.lp-eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 5px 11px; border-radius: 999px; margin-bottom: 18px;
}
.lp-h1 { font-size: 46px; line-height: 1.08; margin: 0 0 16px; letter-spacing: -1px; color: var(--ink); }
.lp-h1 .hl { color: var(--accent-2); }
.lp-sub { font-size: 18px; line-height: 1.5; color: var(--muted); margin: 0 0 26px; max-width: 30em; }
.lp-cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.lp-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.lp-note b { color: var(--ink); }

/* Hero worksheet mock */
.lp-mock {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(20,24,50,.14); padding: 22px 24px; transform: rotate(1.4deg);
}
.lp-mock-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 14px; }
.lp-mock-head h4 { margin: 0; font-size: 17px; }
.lp-mock-key { font-size: 11px; font-weight: 700; color: #fff; background: var(--accent-2); border-radius: 6px; padding: 2px 8px; }
.lp-mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 26px; font-size: 15px; font-variant-numeric: tabular-nums; }
.lp-mock-grid .num { color: #9aa0ad; margin-right: 6px; }
.lp-mock-grid .ans { color: var(--accent-2); font-weight: 700; }

/* ---------- Trust strip ---------- */
.lp-trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.lp-trust .lp-wrap { display: flex; flex-wrap: wrap; gap: 12px 34px; justify-content: center; padding: 16px 22px; font-size: 14px; color: var(--muted); font-weight: 600; }
.lp-trust b { color: var(--ink); }

/* ---------- Sections ---------- */
.lp-section { padding: 72px 0; }
.lp-section.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-section h2 { font-size: 32px; text-align: center; margin: 0 0 10px; letter-spacing: -.5px; }
.lp-section .lp-lead { text-align: center; color: var(--muted); font-size: 17px; max-width: 36em; margin: 0 auto 44px; }

.lp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lp-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.lp-card .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 21px; background: var(--accent-soft); margin-bottom: 14px; }
.lp-card h3 { margin: 0 0 7px; font-size: 16.5px; }
.lp-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* Topic chips */
.lp-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 800px; margin: 0 auto; }
.lp-chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--ink); }
.lp-chip .c { color: var(--muted); font-weight: 500; }

/* Steps */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-step { text-align: center; }
.lp-step .n { width: 40px; height: 40px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--accent); }
.lp-step h3 { margin: 0 0 6px; font-size: 17px; }
.lp-step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Pricing */
.lp-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 720px; margin: 0 auto; }
.lp-price { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.lp-price.pro { border-color: var(--accent); box-shadow: 0 18px 44px rgba(79,70,229,.18); position: relative; }
.lp-price .pop { position: absolute; top: -12px; right: 22px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.lp-price h3 { margin: 0 0 4px; font-size: 19px; }
.lp-price .amt { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin: 6px 0 2px; }
.lp-price .amt small { font-size: 15px; font-weight: 600; color: var(--muted); }
.lp-price .per { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.lp-feats { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.lp-feats li { font-size: 14.5px; color: var(--ink); padding-left: 26px; position: relative; }
.lp-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 800; }
.lp-feats li.off { color: var(--muted); }
.lp-feats li.off::before { content: "–"; color: var(--muted); }
.lp-price .lp-btn { margin-top: auto; justify-content: center; }

/* Final CTA */
.lp-final { text-align: center; background: linear-gradient(120deg, #4f46e5, #6d28d9); color: #fff; }
.lp-final h2 { color: #fff; }
.lp-final .lp-lead { color: rgba(255,255,255,.85); }
.lp-final .lp-btn { background: #fff; color: var(--accent); border-color: #fff; }

/* Support */
.lp-faq { max-width: 720px; margin: 0 auto; display: grid; gap: 14px; }
.lp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.lp-faq summary { font-weight: 700; cursor: pointer; font-size: 15.5px; }
.lp-faq p { color: var(--muted); margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; }

/* Footer */
.lp-footer { background: var(--ink); color: #c9cdda; }
.lp-footer .lp-wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding: 26px 22px; font-size: 14px; }
.lp-footer a { color: #c9cdda; }
.lp-footer a:hover { color: #fff; }
.lp-footer .links { display: flex; gap: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .lp-nav a:not(.lp-btn) { display: none; }
  .lp-hero .lp-wrap { grid-template-columns: 1fr; gap: 30px; padding: 48px 22px 44px; }
  .lp-mock { transform: none; }
  .lp-h1 { font-size: 34px; }
  .lp-cards { grid-template-columns: 1fr 1fr; }
  .lp-steps { grid-template-columns: 1fr; gap: 28px; }
  .lp-prices { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .lp-cards { grid-template-columns: 1fr; }
}
