/* TrackMy.Pro HQ */
:root {
  --bg: #f4f6f5;
  --card: #ffffff;
  --text: #1d2b28;
  --muted: #5f6f6b;
  --line: #dfe5e3;
  --brand: #0f6b5f;
  --brand-dark: #0b5248;
  --brand-soft: #e3f1ee;
  --accent: #c98a1b;
  --danger: #b4372f;
  --ok: #2c7a3f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 40, 35, .06), 0 6px 24px rgba(16, 40, 35, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1514;
    --card: #17201e;
    --text: #e6eeec;
    --muted: #9aaba7;
    --line: #2a3633;
    --brand: #3fb3a1;
    --brand-dark: #67c9b9;
    --brand-soft: #173430;
    --accent: #e0a840;
    --danger: #ec7d74;
    --ok: #6fcf86;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.02em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1120px; }
main.wrap { padding-top: 28px; padding-bottom: 56px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Top bar */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.08rem; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .95rem; }
.brand-tag { font-size: .72rem; background: var(--brand-soft); color: var(--brand); padding: 2px 8px; border-radius: 99px; }
.adminnav { display: flex; gap: 4px; flex-wrap: wrap; }
.adminnav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .95rem; }
.adminnav a:hover { background: var(--brand-soft); color: var(--brand); }
.foot { color: var(--muted); font-size: .88rem; padding: 24px 0 40px; text-align: center; }

/* Cards and forms */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card > :last-child { margin-bottom: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.hint { font-weight: 400; color: var(--muted); font-size: .86rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit;
  background: var(--bg); color: var(--text);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 8px; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.choice { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.choice label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font-weight: 500; cursor: pointer; background: var(--bg); margin: 0; }
.choice input { accent-color: var(--brand); }
.choice label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.errors { background: #fbeceb; color: #8a2a23; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.errors ul { margin: 0; padding-left: 18px; }
@media (prefers-color-scheme: dark) { .errors { background: #3a1f1d; color: #f2b5ae; } }
.flash { background: var(--brand-soft); color: var(--brand-dark); padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }

/* Buttons */
.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 11px 20px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; line-height: 1.3; }
.btn:hover { background: var(--brand-dark); }
@media (prefers-color-scheme: dark) { .btn { color: #0f1514; } }
.btn-big { padding: 15px 28px; font-size: 1.08rem; }
.btn-light { background: var(--brand-soft); color: var(--brand); }
.btn-light:hover { background: var(--line); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid currentColor; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-small { padding: 6px 12px; font-size: .88rem; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
details.confirm { display: inline-block; }
details.confirm > summary { list-style: none; }
details.confirm > summary::-webkit-details-marker { display: none; }
.confirm-box { margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); max-width: 420px; }

/* Sales pages */
.hero { padding: 26px 0 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 440px)); gap: 18px; margin: 26px 0; }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 2.2rem; font-weight: 750; letter-spacing: -.02em; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan ul { padding: 0; list-style: none; margin: 14px 0 20px; flex: 1; }
.plan li { padding: 6px 0 6px 28px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 14px; height: 8px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.steps { counter-reset: s; display: grid; gap: 12px; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; }
.steps li::before { content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

/* Onboarding */
.progress { display: flex; gap: 6px; margin: 8px 0 22px; flex-wrap: wrap; }
.progress span { font-size: .85rem; padding: 4px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.progress span.done { background: var(--brand-soft); color: var(--brand); border-color: transparent; font-weight: 600; }
.progress span.done::before { content: "✓ "; }
.summary { width: 100%; border-collapse: collapse; }
.summary th, .summary td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.summary th { width: 38%; color: var(--muted); font-weight: 600; font-size: .93rem; }
.contract-scroll { max-height: 460px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: var(--bg); margin-bottom: 16px; }
.contract h1 { font-size: 1.5rem; }
.contract h2 { font-size: 1.1rem; margin-top: 1.4em; }
.contract p, .contract li { font-size: .95rem; }
.contract table { border-collapse: collapse; width: 100%; margin-bottom: 1em; }
.contract th, .contract td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; font-size: .93rem; vertical-align: top; }
.contract th { width: 40%; }

/* Back office */
.table-scroll { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.list th { text-align: left; color: var(--muted); font-weight: 600; font-size: .85rem; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:hover td { background: var(--bg); }
@media (max-width: 600px) {
  table.compare th { display: none; }
  table.compare td { display: block; border: 0; padding: 4px 0; }
  table.compare tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.compare td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; }
}
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--line); color: var(--text); white-space: nowrap; }
.badge-paid, .badge-started { background: #fdf1dc; color: #8a5a07; }
.badge-signed { background: #e0ecfb; color: #1d4f8c; }
.badge-setup { background: var(--brand-soft); color: var(--brand); }
.badge-live { background: #dff3e4; color: #1e6331; }
.badge-cancelled { background: #f0e3e2; color: #7d2c26; }
.badge-warn { background: #fbeceb; color: #8a2a23; }
@media (prefers-color-scheme: dark) {
  .badge-paid, .badge-started { background: #3b2e14; color: #f0c674; }
  .badge-signed { background: #1b2c44; color: #9cc3f5; }
  .badge-live { background: #183324; color: #8fe0a5; }
  .badge-cancelled, .badge-warn { background: #3a1f1d; color: #f2b5ae; }
}
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; min-width: 80px; }
.bar span { display: block; height: 100%; background: var(--brand); }
.tasks { list-style: none; padding: 0; margin: 0; }
.task { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--card); }
.task.done { opacity: .72; }
.task.done .task-title { text-decoration: line-through; text-decoration-color: var(--muted); }
.task-head { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; }
.task-head form { margin: 0; }
.tick { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--brand); background: transparent; cursor: pointer; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; padding: 0; }
.task.done .tick { background: var(--brand); }
.task-title { font-weight: 650; }
.task-body { padding: 0 14px 12px 52px; font-size: .93rem; }
.task-body ol, .task-body ul { margin: 4px 0; padding-left: 20px; }
.task-body li { margin-bottom: 3px; }
code, .copy { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; word-break: break-all; }
.auto { font-size: .8rem; color: var(--muted); }
.cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
@media print {
  .topbar, .foot, .noprint { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: 0; box-shadow: none; padding: 0; }
}
.domain-check { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.check-ok { color: var(--ok); font-weight: 600; }
.check-bad { color: var(--danger); font-weight: 600; }
