/* LightPane — inner pages (features, pricing, docs, about, auth) */

.lp-page-head {
  padding: 70px 0 30px;
  position: relative;
  overflow: hidden;
}
.lp-page-head::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 500px;
  background: var(--lp-glow-warm); pointer-events: none; z-index: 0;
}
.lp-page-head .lp-container { position: relative; z-index: 1; }
.lp-page-head h1 {
  font-family: var(--lp-font-serif); font-weight: 400;
  font-size: clamp(42px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.02em;
  margin-top: 14px; margin-bottom: 18px;
}
.lp-page-head h1 em { color: var(--lp-ember); font-style: italic; }
.lp-page-head .lede { font-size: 19px; }

/* ===== FEATURES ===== */
.feat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin: 36px 0 60px;
}
.feat-card {
  padding: 30px;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-lg);
  box-shadow: var(--lp-shadow-2);
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s var(--lp-ease), transform .25s var(--lp-ease);
}
.feat-card:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow-hover); }
.feat-card .lbl {
  font-family: var(--lp-font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lp-ember); margin-bottom: 10px;
}
.feat-card h3 {
  font-family: var(--lp-font-serif); font-weight: 400; font-size: 28px;
  line-height: 1.1; margin-bottom: 10px;
}
.feat-card p { color: var(--lp-ink-2); font-size: 15px; line-height: 1.55; }
.feat-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.feat-card li {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start;
  font-size: 14px; color: var(--lp-ink-2);
}
.feat-card li::before {
  content: ""; width: 14px; height: 14px; margin-top: 4px;
  background: var(--lp-amber-wash); border: 1px solid var(--lp-amber-soft); border-radius: 4px;
  box-shadow: inset 0 0 0 3px var(--lp-amber);
}
.feat-card .example {
  margin-top: 20px;
  background: var(--lp-canvas);
  border: 1px dashed var(--lp-line);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--lp-font-mono); font-size: 12px; line-height: 1.7;
  color: var(--lp-ink-3);
}
.feat-card .example .k { color: var(--lp-coral); }
.feat-card .example .s { color: #6a8a3a; }
.feat-card .example .a { color: #8a6a00; }

/* ===== PRICING ===== */
.price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 40px 0 30px;
}
.price-card {
  padding: 26px 22px 24px;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-lg);
  box-shadow: var(--lp-shadow-2);
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  transition: transform .2s var(--lp-ease), box-shadow .2s var(--lp-ease);
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow-hover); }
.price-card.featured {
  border-color: var(--lp-amber);
  box-shadow: 0 0 0 4px rgba(245,197,24,.15), var(--lp-shadow-3);
  background:
    radial-gradient(ellipse at top, rgba(255, 200, 90, .12), transparent 55%),
    var(--lp-paper);
}
.price-card.featured::before {
  content: "Most embedded";
  position: absolute; top: -11px; left: 20px;
  background: var(--lp-amber); color: var(--lp-ink);
  font-family: var(--lp-font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(245,197,24,.45);
}
.price-card .tier {
  font-family: var(--lp-font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lp-ink-3);
}
.price-card h3 {
  font-family: var(--lp-font-serif); font-weight: 400; font-size: 26px;
}
.price-card .amount {
  font-family: var(--lp-font-sans); font-weight: 600;
  font-size: 32px; letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: 4px;
}
.price-card .amount .per { font-size: 13px; color: var(--lp-ink-3); font-weight: 500; }
.price-card .for { font-size: 13px; color: var(--lp-ink-3); min-height: 38px; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13px; color: var(--lp-ink-2); }
.price-card li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; align-items: start; }
.price-card li::before {
  content: ""; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%;
  background: var(--lp-amber-wash); border: 1px solid var(--lp-amber-soft);
}
.price-card .btn { margin-top: auto; justify-content: center; }

/* ===== DOCS ===== */
.docs-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 40px;
  padding: 30px 0 80px;
  align-items: start;
}
.docs-toc {
  position: sticky; top: 90px;
  padding: 12px 10px;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-lg);
  box-shadow: var(--lp-shadow-2);
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.docs-toc h5 {
  font-family: var(--lp-font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lp-ink-4); padding: 10px 12px 6px; font-weight: 500;
}
.docs-toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; }
.docs-toc a {
  display: block;
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--lp-ink-2);
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all .15s var(--lp-ease);
}
.docs-toc a:hover {
  color: var(--lp-ink);
  background: linear-gradient(180deg, #efe9dd, #f4efe4);
  box-shadow: var(--lp-shadow-inset-cde);
  border-color: var(--lp-line);
}
.docs-toc a.active {
  color: var(--lp-ink);
  background: var(--lp-amber-wash);
  border-color: var(--lp-amber-soft);
}
.docs-content { min-width: 0; }
.docs-content h2 {
  font-family: var(--lp-font-serif); font-weight: 400; font-size: 36px;
  margin-top: 48px; margin-bottom: 12px;
}
.docs-content h2:first-child { margin-top: 0; }
.docs-content h3 {
  font-size: 18px; margin-top: 32px; margin-bottom: 10px; font-weight: 600;
}
.docs-content p { color: var(--lp-ink-2); font-size: 15.5px; line-height: 1.65; margin-bottom: 14px; }
.docs-content p code, .docs-content li code {
  font-family: var(--lp-font-mono); font-size: 13px;
  background: var(--lp-amber-wash); color: #8a6a00;
  padding: 2px 6px; border-radius: 5px;
}
.docs-content ul { padding-left: 18px; color: var(--lp-ink-2); }
.docs-content .codeblock {
  background: linear-gradient(180deg, #fff, #fbfaf7);
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  padding: 18px 20px;
  font-family: var(--lp-font-mono); font-size: 13px; line-height: 1.75;
  color: var(--lp-ink-2);
  margin: 14px 0;
  position: relative;
  white-space: pre;
  overflow-x: auto;
}
.docs-content .codeblock .lbl {
  position: absolute; top: 10px; right: 14px;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--lp-ink-4);
}
.docs-content .codeblock .k { color: var(--lp-coral); }
.docs-content .codeblock .s { color: #6a8a3a; }
.docs-content .codeblock .a { color: #8a6a00; }
.docs-content .codeblock .c { color: var(--lp-ink-4); font-style: italic; }

.docs-callout {
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--lp-amber-wash);
  border: 1px solid var(--lp-amber-soft);
  color: #8a6a00;
  display: grid; grid-template-columns: 20px 1fr; gap: 14px;
  margin: 18px 0;
  font-size: 14px;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 30px 0 60px;
  align-items: start;
}
.about-grid p { font-size: 17px; line-height: 1.65; color: var(--lp-ink-2); margin-bottom: 14px; }
.about-card {
  padding: 28px;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-lg);
  box-shadow: var(--lp-shadow-2);
}
.about-card h4 {
  font-family: var(--lp-font-serif); font-weight: 400; font-size: 22px; margin-bottom: 8px;
}
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 30px 0;
}
.team-card {
  padding: 24px;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-lg);
  box-shadow: var(--lp-shadow-2);
  display: grid; gap: 10px;
}
.team-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #fff6d6, #fde9a6);
  border: 1px solid var(--lp-amber-soft);
  display: grid; place-items: center;
  font-family: var(--lp-font-serif); font-size: 26px; color: #8a6a00;
  box-shadow: 0 0 0 4px rgba(245,197,24,.1);
}
.team-card .role { font-family: var(--lp-font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-ink-3); }
.team-card .name { font-size: 17px; font-weight: 600; }
.team-card .bio { font-size: 13px; color: var(--lp-ink-3); }

/* ===== AUTH ===== */
.auth-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 600px;
  /* Top + bottom margin matched on purpose — workflow pages should
     sit equidistant from header and footer. Width 1200px matches the
     header bar + footer container so the auth card visually aligns
     with the rest of the site chrome. */
  margin: 80px auto 80px; max-width: 1200px;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-xl);
  box-shadow: var(--lp-shadow-3);
  overflow: hidden;
}
.auth-side {
  padding: 50px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255,200,90,.25), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(255,138,61,.12), transparent 60%),
    linear-gradient(180deg, #fffbee, #fff6d6);
  border-right: 1px solid var(--lp-line);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-side h2 {
  font-family: var(--lp-font-serif); font-weight: 400; font-size: 40px; line-height: 1.05; letter-spacing: -.01em;
  margin-bottom: 14px;
}
.auth-side h2 em { color: var(--lp-ember); font-style: italic; }
.auth-side p { color: var(--lp-ink-2); font-size: 15px; max-width: 30ch; }
.auth-side .badges {
  margin-top: 24px; display: grid; gap: 10px;
}
.auth-side .badge-row {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center;
  font-size: 13px; color: var(--lp-ink-2);
}
.auth-side .badge-row .ico {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--lp-paper); border: 1px solid var(--lp-amber-soft);
  display: grid; place-items: center; color: var(--lp-ember);
}
.auth-main {
  padding: 50px;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-main h3 {
  font-family: var(--lp-font-serif); font-weight: 400; font-size: 32px; margin-bottom: 8px;
}
.auth-main .sub { color: var(--lp-ink-3); margin-bottom: 24px; font-size: 14px; }
.auth-field { display: grid; gap: 6px; margin-bottom: 14px; }
.auth-field label { font-size: 12px; font-family: var(--lp-font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--lp-ink-3); }
.auth-field input {
  height: 44px; padding: 0 14px;
  border: 1px solid var(--lp-line); background: var(--lp-canvas);
  border-radius: 12px;
  font-family: var(--lp-font-sans); font-size: 15px; color: var(--lp-ink);
  transition: all .15s var(--lp-ease);
}
.auth-field input:focus {
  outline: none;
  border-color: var(--lp-amber);
  background: var(--lp-paper);
  box-shadow: 0 0 0 4px rgba(245,197,24,.18);
}
.auth-main .btn-amber { height: 46px; margin-top: 10px; justify-content: center; }
.auth-main .oauth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.auth-main .oauth button {
  height: 42px; border: 1px solid var(--lp-line); background: var(--lp-paper);
  border-radius: 12px; font-family: inherit; font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .15s var(--lp-ease); color: var(--lp-ink-2);
}
.auth-main .oauth button:hover {
  background: linear-gradient(180deg, #efe9dd, #f4efe4);
  box-shadow: var(--lp-shadow-inset-cde);
}
.auth-main .or {
  display: flex; align-items: center; gap: 12px;
  color: var(--lp-ink-4); font-family: var(--lp-font-mono); font-size: 11px; letter-spacing: .14em;
  margin-bottom: 14px;
}
.auth-main .or::before, .auth-main .or::after { content: ""; flex: 1; height: 1px; background: var(--lp-line); }
.auth-main .foot { margin-top: 18px; font-size: 13px; color: var(--lp-ink-3); text-align: center; }

/* Password input with show/hide toggle. Wraps the <input> so the eye
   button can sit absolute-positioned inside the field. */
.auth-pw-wrap { position: relative; }
.auth-pw-wrap > input { padding-right: 44px; }
.auth-pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  background: transparent; border: 0; padding: 0;
  display: grid; place-items: center;
  color: var(--lp-ink-3); cursor: pointer;
  border-radius: 8px;
  transition: color .15s var(--lp-ease), background .15s var(--lp-ease);
}
.auth-pw-toggle:hover { color: var(--lp-ember); background: rgba(245,197,24,.08); }
.auth-pw-toggle:focus-visible { outline: 2px solid var(--lp-amber); outline-offset: 2px; }
.auth-pw-toggle svg { display: block; }
.auth-pw-toggle .icon-hide { display: none; }
.auth-pw-wrap.is-revealed .auth-pw-toggle .icon-show { display: none; }
.auth-pw-wrap.is-revealed .auth-pw-toggle .icon-hide { display: block; }

/* Password strength meter (registration). Bar fills from 0 to 100%
   as the 5 rules are met; rule list shows ○ unmet / ✓ met. */
.auth-strength { margin-top: 8px; font-family: var(--lp-font-sans); }
.auth-strength-bar {
  height: 5px; background: var(--lp-line); border-radius: 3px; overflow: hidden;
  margin-bottom: 8px;
}
.auth-strength-bar > span {
  display: block; height: 100%; width: 0%;
  background: var(--lp-ember);
  transition: width .2s ease, background .2s ease;
}
.auth-strength-bar.s-weak   > span { background: #d44a3a; }
.auth-strength-bar.s-medium > span { background: #d4a017; }
.auth-strength-bar.s-good   > span { background: var(--lp-ember); }
.auth-strength-bar.s-strong > span { background: #5a8a3a; }
.auth-strength-rules {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 12px;
  font-size: 12px; color: var(--lp-ink-3);
}
.auth-strength-rules li::before {
  content: "○ "; color: var(--lp-ink-3); display: inline-block; width: 14px;
}
.auth-strength-rules li.met { color: var(--lp-ink-2); }
.auth-strength-rules li.met::before { content: "✓ "; color: #5a8a3a; }
.auth-main .foot a { color: var(--lp-ember); font-weight: 600; }

/* Auth utility classes — replacing the bits we lost when we dropped
   Bootstrap. Kept local to the auth pages so the rest of the site
   doesn't pick up surprising utility styles. */
.d-none { display: none !important; }

.auth-banner {
  border: 1px solid var(--lp-line);
  background: var(--lp-paper);
  border-radius: var(--lp-r-sm);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--lp-ink-2);
  margin-bottom: 14px;
}
.auth-banner strong { color: var(--lp-ink); font-weight: 600; }
.auth-banner-ok   { background: var(--lp-amber-wash); border-color: var(--lp-amber-soft); }
.auth-banner-info { background: var(--lp-sunk); }
.auth-banner-err  { background: var(--lp-coral-soft); border-color: var(--lp-coral); color: #6a1a1a; }
.auth-banner-err strong { color: #6a1a1a; }

.auth-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--lp-ink-2);
  margin: 4px 0 14px;
}
.auth-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--lp-amber);
}
.auth-check label { cursor: pointer; }

.auth-field input.is-invalid {
  border-color: var(--lp-coral);
  background: var(--lp-coral-soft);
}
.auth-field-hint {
  font-size: 12px; color: var(--lp-ink-3); margin-top: 4px;
}
.auth-field-hint.is-invalid { color: var(--lp-coral); }

/* Shared "state card" shell used by verify-email.html's multiple
   status panels (verifying / verified / already-verified / error). */
.auth-state {
  padding: 40px;
  text-align: center;
}
.auth-state h3 {
  font-family: var(--lp-font-serif); font-weight: 400; font-size: 28px; margin-bottom: 8px;
}
.auth-state p { color: var(--lp-ink-2); margin-bottom: 20px; }
.auth-state .auth-state-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 18px;
  background: var(--lp-amber-wash);
  color: var(--lp-ember);
}
.auth-state .auth-state-icon.err { background: var(--lp-coral-soft); color: #6a1a1a; }
.auth-state .spinner {
  width: 32px; height: 32px; margin: 0 auto 18px;
  border: 3px solid var(--lp-line);
  border-top-color: var(--lp-amber);
  border-radius: 50%;
  animation: lp-spin 0.8s linear infinite;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { order: -1; }
}
@media (max-width: 900px) {
  .feat-grid, .about-grid, .team-grid { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { position: static; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { border-right: none; border-bottom: 1px solid var(--lp-line); padding: 36px; }
  .auth-main { padding: 36px; }
}
