/* hellojade subscription checkout — dark jade theme.
   TODO: reconcile tokens with the estate's shared hj-ui.css (theme VM). */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0b0f0e;
  --panel: #101816;
  --line: #1d2a26;
  --jade: #35e0ae;
  --jade-dim: #27c093;
  --text: #e8f2ee;
  --muted: #9ab3ab;
  --danger: #ff7a6b;
}
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--jade); }

.site-head {
  display: flex; align-items: baseline; gap: .75rem;
  padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line);
}
.mark { font-weight: 700; letter-spacing: .04em; color: var(--jade); font-size: 1.15rem; }
.by { color: var(--muted); font-size: .8rem; }

main.checkout, main.doc {
  flex: 1; width: 100%; max-width: 1060px; margin: 0 auto; padding: 2rem 1.25rem;
}
main.checkout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start;
}
@media (max-width: 860px) { main.checkout { grid-template-columns: 1fr; } }

.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.75rem;
}
.prepared { color: var(--muted); font-size: .85rem; margin-bottom: .5rem; }
.plan h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.price { margin: .5rem 0 1.25rem; }
.price .amount { font-size: 2.2rem; font-weight: 700; color: var(--jade); }
.price .per { color: var(--muted); margin-left: .25rem; }
.items { list-style: none; }
.items li {
  padding: .7rem 0; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .1rem;
}
.items li span { color: var(--muted); font-size: .9rem; }
.notes { margin-top: 1rem; color: var(--muted); font-size: .85rem; }

.pay h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.pay label { display: block; margin-bottom: .9rem; font-size: .9rem; color: var(--muted); }
.pay input:not([type=checkbox]) {
  display: block; width: 100%; margin-top: .3rem; padding: .65rem .75rem;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; font-size: 1rem;
}
.pay input:focus { outline: 2px solid var(--jade-dim); border-color: transparent; }

.disclosure {
  background: rgba(53, 224, 174, .06); border: 1px solid var(--line);
  border-radius: 10px; padding: .9rem 1rem; margin: 1.1rem 0;
  font-size: .88rem; color: var(--text);
}
.consent { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0 1.25rem; }
.consent input { margin-top: .3rem; accent-color: var(--jade); }
.consent span { font-size: .85rem; color: var(--muted); }

button {
  width: 100%; padding: .85rem 1rem; border: 0; border-radius: 10px;
  background: var(--jade); color: #04120d; font-size: 1rem; font-weight: 700;
  cursor: pointer;
}
button:hover { background: var(--jade-dim); }
button:disabled { opacity: .6; cursor: default; }

.pm-hint { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
#payment-element { margin-bottom: 1.25rem; }
.fine { margin-top: .8rem; font-size: .78rem; color: var(--muted); }
.err { margin-top: .8rem; color: var(--danger); font-size: .9rem; min-height: 1.2em; }

.site-foot {
  border-top: 1px solid var(--line); padding: 1.25rem 1.5rem;
  color: var(--muted); font-size: .8rem;
}
.site-foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: .5rem; }

/* document pages */
main.doc { max-width: 760px; }
main.doc h1 { font-size: 1.6rem; margin-bottom: .25rem; }
main.doc h2 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; color: var(--jade); }
main.doc p, main.doc li { color: var(--text); font-size: .95rem; margin-bottom: .6rem; }
main.doc ul, main.doc ol { padding-left: 1.4rem; }
.doc-meta { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }
.draft {
  background: rgba(255, 122, 107, .08); border: 1px solid rgba(255, 122, 107, .35);
  border-radius: 10px; padding: .8rem 1rem; margin: 1rem 0; font-size: .85rem;
}
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 2rem; text-align: center; max-width: 520px; margin: 3rem auto;
}
.card h1 { color: var(--jade); margin-bottom: .75rem; }
.card p { color: var(--muted); margin-bottom: .5rem; }
